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