| 653 | } |
| 654 | |
| 655 | void GlobalEditor::buttonClicked (juce::Button* buttonThatWasClicked) |
| 656 | { |
| 657 | //[UserbuttonClicked_Pre] |
| 658 | //[/UserbuttonClicked_Pre] |
| 659 | |
| 660 | if (buttonThatWasClicked == oscSync.get()) |
| 661 | { |
| 662 | //[UserButtonCode_oscSync] -- add your button handler code here.. |
| 663 | repaint(); |
| 664 | //[/UserButtonCode_oscSync] |
| 665 | } |
| 666 | else if (buttonThatWasClicked == lfoSync.get()) |
| 667 | { |
| 668 | //[UserButtonCode_lfoSync] -- add your button handler code here.. |
| 669 | repaint(); |
| 670 | //[/UserButtonCode_lfoSync] |
| 671 | } |
| 672 | else if (buttonThatWasClicked == initButton.get()) |
| 673 | { |
| 674 | //[UserButtonCode_initButton] -- add your button handler code here.. |
| 675 | editor->initProgram(); |
| 676 | //[/UserButtonCode_initButton] |
| 677 | } |
| 678 | else if (buttonThatWasClicked == parmButton.get()) |
| 679 | { |
| 680 | //[UserButtonCode_parmButton] -- add your button handler code here.. |
| 681 | editor->parmShow(); |
| 682 | //[/UserButtonCode_parmButton] |
| 683 | } |
| 684 | else if (buttonThatWasClicked == cartButton.get()) |
| 685 | { |
| 686 | //[UserButtonCode_cartButton] -- add your button handler code here.. |
| 687 | editor->cartShow(); |
| 688 | //[/UserButtonCode_cartButton] |
| 689 | } |
| 690 | else if (buttonThatWasClicked == storeButton.get()) |
| 691 | { |
| 692 | //[UserButtonCode_storeButton] -- add your button handler code here.. |
| 693 | editor->storeProgram(); |
| 694 | //[/UserButtonCode_storeButton] |
| 695 | } |
| 696 | else if (buttonThatWasClicked == monoMode.get()) |
| 697 | { |
| 698 | //[UserButtonCode_monoMode] -- add your button handler code here.. |
| 699 | //[/UserButtonCode_monoMode] |
| 700 | } |
| 701 | else if (buttonThatWasClicked == aboutButton.get()) |
| 702 | { |
| 703 | //[UserButtonCode_aboutButton] -- add your button handler code here.. |
| 704 | aboutBox = std::make_unique<AboutBox>(); |
| 705 | getParentComponent()->addAndMakeVisible(aboutBox.get()); |
| 706 | aboutBox->centreWithSize(aboutBox->getWidth(), aboutBox->getHeight()); |
| 707 | aboutBox->enterModalState(true,{}); |
| 708 | //[/UserButtonCode_aboutButton] |
| 709 | } |
| 710 | |
| 711 | //[UserbuttonClicked_Post] |
| 712 | //[/UserbuttonClicked_Post] |
nothing calls this directly
no test coverage detected