![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
Interface for plugins that support configuring shortcuts. More...
#include "ihaveshortcuts.h"
Public Member Functions | |
virtual void | SetShortcut (const QString &id, const QKeySequences_t &sequences)=0 |
Sets shortcut's list of key sequences if it has been changed. More... | |
virtual QMap< QString, LC::ActionInfo > | GetActionInfo () const =0 |
Returns information about all the shortcuts. More... | |
virtual | ~IHaveShortcuts () |
Interface for plugins that support configuring shortcuts.
LC::Util::ShortcutManager class can help creating the GetActionInfo() map and keeping track of created actions, automatically updating their shortcuts.
Definition at line 88 of file ihaveshortcuts.h.
|
inlinevirtual |
Definition at line 110 of file ihaveshortcuts.h.
|
pure virtual |
Returns information about all the shortcuts.
Returns a QMap from action id to the ActionInfo. Action id would be further used in SetShortcut and IShortcutProxy::GetShortcut(), for example.
|
pure virtual |
Sets shortcut's list of key sequences if it has been changed.
The id is the same as in the return value of GetActionInfo().
[in] | id | The id of the action. |
[in] | sequences | The new key sequences. |