| 45 | } |
| 46 | |
| 47 | void NoteExpressionRouter::CreateUIControls() |
| 48 | { |
| 49 | IDrawableModule::CreateUIControls(); |
| 50 | |
| 51 | UIBLOCK0(); |
| 52 | for (int i = 0; i < kMaxDestinations; ++i) |
| 53 | { |
| 54 | TEXTENTRY(mExpressionWidget[i], ("expression" + ofToString(i)).c_str(), 30, mExpressionText[i]); |
| 55 | mDestinationCables[i] = new AdditionalNoteCable(); |
| 56 | mDestinationCables[i]->SetPatchCableSource(new PatchCableSource(this, kConnectionType_Note)); |
| 57 | mDestinationCables[i]->GetPatchCableSource()->SetOverrideCableDir(ofVec2f(1, 0), PatchCableSource::Side::kRight); |
| 58 | AddPatchCableSource(mDestinationCables[i]->GetPatchCableSource()); |
| 59 | ofRectangle rect = mExpressionWidget[i]->GetRect(true); |
| 60 | mDestinationCables[i]->GetPatchCableSource()->SetManualPosition(rect.getMaxX() + 10, rect.y + rect.height / 2); |
| 61 | } |
| 62 | ENDUIBLOCK(mWidth, mHeight); |
| 63 | mWidth += 20; |
| 64 | |
| 65 | GetPatchCableSource()->SetEnabled(false); |
| 66 | } |
| 67 | |
| 68 | void NoteExpressionRouter::DrawModule() |
| 69 | { |
nothing calls this directly
no test coverage detected