| 440 | } |
| 441 | |
| 442 | void FloatSliderLFOControl::ButtonClicked(ClickButton* button, double time) |
| 443 | { |
| 444 | if (button == mPinButton) |
| 445 | { |
| 446 | if (!mPinned) |
| 447 | { |
| 448 | mPinned = true; |
| 449 | TheSynth->AddDynamicModule(this); |
| 450 | TheSynth->PopModalFocusItem(); |
| 451 | |
| 452 | SetName(GetUniqueName("lfo", TheSynth->GetModuleNames<FloatSliderLFOControl*>()).c_str()); |
| 453 | |
| 454 | if (mTargetCable == nullptr) |
| 455 | { |
| 456 | mTargetCable = new PatchCableSource(this, kConnectionType_Modulator); |
| 457 | mTargetCable->SetModulatorOwner(this); |
| 458 | AddPatchCableSource(mTargetCable); |
| 459 | mTargetCable->SetTarget(GetSliderTarget()); |
| 460 | } |
| 461 | } |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | void FloatSliderLFOControl::SaveLayout(ofxJSONElement& moduleInfo) |
| 466 | { |
nothing calls this directly
no test coverage detected