34 if ( pHydrogenApp !=
nullptr ) {
35 pHydrogenApp->removeEventListener(
this );
void addEventListener(EventListener *pListener)
static HydrogenApp * get_instance()
Returns the instance of HydrogenApp class.
std::vector< std::pair< H2Core::MidiMessage::Event, int > > m_registeredMidiEvents
Stores all MIDI events mapped to m_pAction.
virtual void updateTooltip()
Indicates child class to recalculate its tool tip in case m_registeredMidiEvents changed.
std::shared_ptr< Action > m_pAction
void setAction(std::shared_ptr< Action > pAction)
void midiMapChangedEvent() override
Update m_registeredMidiEvents since the underlying #H2Core::MidiMap changed.
static MidiMap * get_instance()
Returns a pointer to the current MidiMap singleton stored in __instance.
std::vector< std::pair< H2Core::MidiMessage::Event, int > > getRegisteredMidiEvents(std::shared_ptr< Action > pAction) const