|
QVISH 0.1
|
One VParameter, multiple shortcuts, identified via some subindex of an arbitrary type, e.g. More...
#include <ShortcutEmitter.hpp>
Classes | |
| struct | MyActivator |
| Internal activator class. More... | |
Public Types | |
| using | action_t = std::function< void(void)> |
Public Member Functions | |
| void | insertShortcutAction (const string &ShortcutSequence, const SubindexType &SubIndex, const string &theName, const string &tooltip, const action_t &theAction) |
| Insert the action that is supposed to be associated with a given shortcut sequence. | |
| RefPtr< MyActivator > | mkActivator (const SubindexType &SubIndex, const string &theName, const string &tooltip, const action_t &theAction) |
Public Attributes | |
| std::unordered_map< SubindexType, RefPtr< MyActivator > > | myShortcutActivators |
One VParameter, multiple shortcuts, identified via some subindex of an arbitrary type, e.g.
some integer. The shortcut action disappears once the parameter dies.
Use case: radio buttons, or list of labels.
Usage: