| 60 | } |
| 61 | |
| 62 | void TimelineControl::DrawModule() |
| 63 | { |
| 64 | mTime = TheTransport->GetMeasureTime(gTime); |
| 65 | |
| 66 | if (Minimized()) |
| 67 | return; |
| 68 | |
| 69 | if (mDock) |
| 70 | { |
| 71 | float w, h; |
| 72 | GetModuleDimensions(w, h); |
| 73 | SetPosition(0, ofGetHeight() / GetOwningContainer()->GetDrawScale() - h); |
| 74 | Resize(ofGetWidth() / GetOwningContainer()->GetDrawScale(), h); |
| 75 | } |
| 76 | |
| 77 | mDockCheckbox->SetShowing(GetOwningContainer() == TheSynth->GetRootContainer() || GetOwningContainer() == TheSynth->GetUIContainer()); |
| 78 | |
| 79 | mTimeSlider->Draw(); |
| 80 | mNumMeasuresEntry->Draw(); |
| 81 | mResetButton->Draw(); |
| 82 | mLoopCheckbox->Draw(); |
| 83 | mDockCheckbox->Draw(); |
| 84 | mLoopStartSlider->Draw(); |
| 85 | mLoopEndSlider->Draw(); |
| 86 | } |
| 87 | |
| 88 | void TimelineControl::GetModuleDimensions(float& w, float& h) |
| 89 | { |
nothing calls this directly
no test coverage detected