Go to the documentation of this file.
53 const QString &action_name,
56 const QString &key,
int &level)
const;
58 const QString &action_name,
59 const QString &newkey,
60 const QString &oldkey);
62 const QString &action_name,
67 QStringList
GetKeys(
void)
const;
69 QStringList
GetActions(
const QString &context)
const;
72 const QString &action_name)
const;
76 const QString &action_name)
const;
Main header for the action set class.
QStringList GetKeys(void) const
Returns a list of all keys bound to an action.
Maintains consistancy between actions and keybindings.
QList< ActionID > ActionList
void LoadJumppoints(void)
Load the jumppoints from the database.
QStringList m_defaultKeys
KeyBindings(QString hostname, Filter Filters=AllBindings)
Create a new KeyBindings instance.
ActionList m_mandatoryBindings
QStringList GetActions(const QString &context) const
Get a list of the actions in a context.
bool HasMandatoryBindings(void) const
Returns true iff all mandatory bindings are satisfied.
Main header for the action class.
Encapsulates information about the current keybindings.
void CommitAction(const ActionID &id)
Commit an action to the database, and reload its keybindings.
void ReplaceActionKey(const QString &context_name, const QString &action_name, const QString &newkey, const QString &oldkey)
Replace a key in an action.
void CommitChanges(void)
Commit all changes made to the keybindings.
ConflictLevels
Levels of conflict.
void LoadContexts(void)
Load the keybindings from the database.
void GetKeyActions(const QString &key, ActionList &list) const
Get a list of the actions in a context.
bool HasModified(void) const
Returns true iff changes have been made.
void LoadMandatoryBindings(void)
Load the mandatory bindings.
QStringList GetKeyContexts(const QString &key) const
Get the context names in which a key is bound.
bool RemoveActionKey(const QString &context_name, const QString &action_name, const QString &key)
Unbind a key from an action.
QStringList GetActionKeys(const QString &context_name, const QString &action_name) const
Get an action's keys.
void CommitJumppoint(const ActionID &id)
Commit a jumppoint to the database.
QStringList GetContexts(void) const
Returns a list of the context names.
QStringList GetContextKeys(const QString &context) const
Get the keys within a context.
A class that uniquely identifies an action.
QString GetActionDescription(const QString &context_name, const QString &action_name) const
Get an action's description.
bool AddActionKey(const QString &context_name, const QString &action_name, const QString &key)
Add a key to an action.
ActionID * GetConflict(const QString &context_name, const QString &key, int &level) const
Determine if adding a key would cause a conflict.
bool HasChanges(void) const