| 728 | } |
| 729 | |
| 730 | void StateComponent::buttonClicked(juce::Button* clickedButton) |
| 731 | { |
| 732 | // if (clickedButton == &toggleABButton) |
| 733 | // { |
| 734 | // the code is moved to Editor |
| 735 | // } |
| 736 | if (clickedButton == ©ABButton) |
| 737 | procStateAB.copyAB(); |
| 738 | if (clickedButton == &previousButton) |
| 739 | setPreviousPreset(); |
| 740 | if (clickedButton == &nextButton) |
| 741 | setNextPreset(); |
| 742 | if (clickedButton == &savePresetButton) |
| 743 | savePresetAlertWindow(); |
| 744 | //if (clickedButton == &deletePresetButton) |
| 745 | // deletePresetAndRefresh(); |
| 746 | if (clickedButton == &menuButton) |
| 747 | popPresetMenu(); |
| 748 | } |
| 749 | |
| 750 | void StateComponent::markAsDirty() |
| 751 | { |