45 const QString &description,
50 const QString &newkey,
51 const QString &oldkey);
QList< ActionID > ActionList
A class that uniquely identifies an action.
Maintains consistancy between actions and keybindings.
QHash< QString, ActionContext > ContextMap
static const QString kJumpContext
The statically assigned context for jump point actions.
bool Remove(const ActionID &id, const QString &key)
Remove a key from an action identifier.
bool Replace(const ActionID &id, const QString &newkey, const QString &oldkey)
Replace a specific key in a specific action.
QStringList GetContextStrings(void) const
Returns a list of all contexts in the action set.
QString GetKeyString(const ActionID &id) const
Returns a string containing all the keys in bound to an action by its identifier.
bool IsModified(const ActionID &id) const
Returns true iff the action is modified.
bool Add(const ActionID &id, const QString &key)
Add a binding.
bool HasModified(void) const
Returns true iff changes have been made.
QStringList GetKeys(const ActionID &id) const
Get the keys bound to an action by its identifier.
bool AddAction(const ActionID &id, const QString &description, const QString &keys)
Add an action.
QMap< QString, ActionList > m_keyToActionMap
ActionList GetModified(void) const
Returns the appropriate container of modified actions.
QStringList GetActionStrings(const QString &context_name) const
Returns a list of all action in the action set.
QStringList GetAllKeys(void) const
Get all keys (from every context) to which an action is bound.
QStringList GetContextKeys(const QString &context_name) const
static const QString kGlobalContext
The name of global actions.
Action * GetAction(const ActionID &id)
Returns a pointer to an action by its identifier.
bool SetModifiedFlag(const ActionID &id, bool modified)
Mark an action as modified or unmodified by its identifier.
ActionSet()=default
Create a new, empty set of action bindings.
QString GetDescription(const ActionID &id) const
Returns the description of an action by its identifier.
ActionList GetActions(const QString &key) const
Returns the actions bound to the specified key.
An action (for this plugin) consists of a description, and a set of key sequences.
static bool modified(uint64_t sig)