![]() |
LeechCraft 0.6.70-16373-g319c272718
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 QByteArray &id, const QKeySequences_t &sequences)=0 |
Sets shortcut's list of key sequences if it has been changed. | |
virtual QMap< QByteArray, LC::ActionInfo > | GetActionInfo () const =0 |
Returns information about all the shortcuts. | |
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 67 of file ihaveshortcuts.h.
|
inlinevirtual |
Definition at line 89 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. |