| 425 | } |
| 426 | |
| 427 | void CtrlrModulator::setReference (const String &modulatorToReference) |
| 428 | { |
| 429 | if (modulatorToReference == COMBO_NONE_ITEM) |
| 430 | { |
| 431 | ctrlrModulatorReference = 0; |
| 432 | } |
| 433 | else if (modulatorToReference != getName()) |
| 434 | { |
| 435 | CtrlrModulator *m = owner.getModulator (modulatorToReference); |
| 436 | if (m == nullptr) |
| 437 | { |
| 438 | _WRN("CtrlrModulator::setReference ["+getName()+"] can't find modulator with name \""+modulatorToReference+"\" link won't work"); |
| 439 | } |
| 440 | ctrlrModulatorReference = m; |
| 441 | } |
| 442 | else |
| 443 | { |
| 444 | AlertWindow::showMessageBox (AlertWindow::WarningIcon, "Modulator link", "Can't link to myself"); |
| 445 | setProperty (Ids::modulatorLinkedToModulator, COMBO_NONE_ITEM); |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | void CtrlrModulator::modifyReference(const int newValue) |
| 450 | { |
nothing calls this directly
no test coverage detected