![]() |
MIDI2LR 6.3.0.1
MIDI2LR is an application that interfaces MIDI controllers with Lightroom 6+/CC Classic. It processes MIDI input into develop parameter updates and photo actions, and sends MIDI output when parameters are changed for motorized feedback (on controllers that have motorized faders). A listing of available LightRoom commands is in the Wiki. Assistance on the code and design is welcome.
|
#include <CommandMenu.h>
Public Member Functions | |
| CommandMenu (rsj::MidiMessageId message, const CommandSet &command_set, Profile &profile) | |
| void | SetMsg (rsj::MidiMessageId message) noexcept |
| void | SetSelectedItem (size_t index) |
| void | ShowCCDialog () const |
| Public Member Functions inherited from TextButtonAligned | |
| TextButtonAligned (const juce::Justification::Flags alignment) | |
| TextButtonAligned (const juce::String &button_name, const juce::Justification::Flags alignment) | |
| TextButtonAligned (const juce::String &button_name, const juce::String &tool_tip, const juce::Justification::Flags alignment) | |
| void | paintButton (juce::Graphics &, bool, bool) override |
Private Member Functions | |
| void | AddSubMenuItems (juce::PopupMenu &sub_menu, const juce::String &command, size_t index, bool &ticked) const |
| void | AddSubMenusToMainMenu (juce::PopupMenu &main_menu, size_t index) const |
| void | clicked (const juce::ModifierKeys &modifiers) override |
| void | ProcessMenuItems () |
| void | ProcessUserSelection (juce::PopupMenu &main_menu) |
| void | ShowDialogBasedOnMessageType () const |
| void | ShowPWDialog () const |
Private Attributes | |
| const CommandSet & | command_set_ |
| rsj::MidiMessageId | message_ |
| Profile & | profile_ |
| size_t | selected_item_ {std::numeric_limits<decltype(selected_item_)>::max()} |
| CommandMenu::CommandMenu | ( | rsj::MidiMessageId | message, |
| const CommandSet & | command_set, | ||
| Profile & | profile ) |
|
private |
References command_set_, Profile::CommandHasAssociatedMessage(), profile_, and selected_item_.
|
private |
References command_set_.
|
overrideprivate |
References ProcessMenuItems(), and ShowDialogBasedOnMessageType().
|
private |
References selected_item_.
Referenced by clicked().
|
private |
References Profile::InsertOrAssign(), message_, profile_, and selected_item_.
|
inlinenoexcept |
|
inline |
References command_set_, CommandSet::CommandAbbrevSize(), CommandSet::CommandLabelAt(), and selected_item_.
| void CommandMenu::ShowCCDialog | ( | ) | const |
References rsj::MidiMessageId::channel, rsj::MidiMessageId::control_number, and message_.
Referenced by ShowDialogBasedOnMessageType().
|
private |
References rsj::kCc, rsj::kChanPressure, rsj::kKeyPressure, rsj::kNoteOff, rsj::kNoteOn, rsj::kPgmChange, rsj::kPw, rsj::kSystem, message_, rsj::MidiMessageId::msg_id_type, ShowCCDialog(), and ShowPWDialog().
Referenced by clicked().
|
private |
References rsj::MidiMessageId::channel, and message_.
Referenced by ShowDialogBasedOnMessageType().
|
private |
Referenced by AddSubMenuItems(), AddSubMenusToMainMenu(), and SetSelectedItem().
|
private |
Referenced by ProcessUserSelection(), SetMsg(), ShowCCDialog(), ShowDialogBasedOnMessageType(), and ShowPWDialog().
|
private |
Referenced by AddSubMenuItems(), and ProcessUserSelection().
|
private |
Referenced by AddSubMenuItems(), ProcessMenuItems(), ProcessUserSelection(), and SetSelectedItem().