LeechCraft 0.6.70-14794-g33744ae6ce
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
IHaveShortcuts Class Referenceabstract

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.
 
virtual QMap< QString, LC::ActionInfoGetActionInfo () const =0
 Returns information about all the shortcuts.
 
virtual ~IHaveShortcuts ()
 

Detailed Description

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.

See also
LC::Util::ShortcutManager

Definition at line 88 of file ihaveshortcuts.h.

Constructor & Destructor Documentation

◆ ~IHaveShortcuts()

virtual IHaveShortcuts::~IHaveShortcuts ( )
inlinevirtual

Definition at line 110 of file ihaveshortcuts.h.

Member Function Documentation

◆ GetActionInfo()

virtual QMap< QString, LC::ActionInfo > IHaveShortcuts::GetActionInfo ( ) const
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.

Returns
Shortcut IDs mapped to the corresponding ActionInfo.

◆ SetShortcut()

virtual void IHaveShortcuts::SetShortcut ( const QString &  id,
const QKeySequences_t sequences 
)
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().

Parameters
[in]idThe id of the action.
[in]sequencesThe new key sequences.

The documentation for this class was generated from the following file: