| 570 | } |
| 571 | |
| 572 | void EnvelopeEditor::ButtonClicked(ClickButton* button, double time) |
| 573 | { |
| 574 | if (button == mPinButton) |
| 575 | { |
| 576 | if (!mPinned) |
| 577 | { |
| 578 | TheSynth->AddDynamicModule(this); |
| 579 | TheSynth->PopModalFocusItem(); |
| 580 | |
| 581 | SetName(GetUniqueName("envelopeeditor", TheSynth->GetModuleNames<EnvelopeEditor*>()).c_str()); |
| 582 | |
| 583 | Pin(); |
| 584 | } |
| 585 | } |
| 586 | } |
| 587 | |
| 588 | void EnvelopeEditor::Pin() |
| 589 | { |
nothing calls this directly
no test coverage detected