| 532 | } |
| 533 | |
| 534 | void MainComponent::getCommandInfo(juce::CommandID commandID, juce::ApplicationCommandInfo &result) { |
| 535 | juce::String category {GETTEXT("Preset")}; |
| 536 | |
| 537 | switch (commandID) { |
| 538 | case juce::StandardApplicationCommandIDs::copy: |
| 539 | result.setInfo(GETTEXT("Copy"), "", category, 0); |
| 540 | result.addDefaultKeypress('c', juce::ModifierKeys::commandModifier); |
| 541 | break; |
| 542 | case juce::StandardApplicationCommandIDs::paste: |
| 543 | result.setInfo(GETTEXT("Paste"), "", category, 0); |
| 544 | result.addDefaultKeypress('v', juce::ModifierKeys::commandModifier); |
| 545 | break; |
| 546 | case juce::StandardApplicationCommandIDs::undo: |
| 547 | result.setInfo(GETTEXT("Undo"), "", category, 0); |
| 548 | result.addDefaultKeypress('z', juce::ModifierKeys::commandModifier); |
| 549 | break; |
| 550 | case juce::StandardApplicationCommandIDs::redo: |
| 551 | result.setInfo(GETTEXT("Redo"), "", category, 0); |
| 552 | result.addDefaultKeypress('z', juce::ModifierKeys::commandModifier | juce::ModifierKeys::shiftModifier); |
| 553 | break; |
| 554 | case randomisePreset: |
| 555 | result.setInfo(GETTEXT("Randomise"), GETTEXT("Sets all parameters to a random value"), category, 0); |
| 556 | result.addDefaultKeypress('r', juce::ModifierKeys::commandModifier); |
| 557 | break; |
| 558 | default: |
| 559 | break; |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | bool MainComponent::perform(const InvocationInfo &info) { |
| 564 | auto presetController = impl_->presetController_; |
nothing calls this directly
no outgoing calls
no test coverage detected