74 QHash<QString, QList<QAction*>> Actions_;
75 QHash<QString, QList<QShortcut*>> Shortcuts_;
77 QMap<QString, ActionInfo> ActionInfo_;
147 const ActionInfo& info, QShortcut *shortcut,
bool update =
false);
195 UTIL_API ShortcutManager& operator<< (const QPair<QString, QAction*>& pair);
197 void handleActionDestroyed ();
198 void handleShortcutDestroyed ();
UTIL_API QMap< QString, ActionInfo > GetActionInfo() const
Returns the map with information about actions.
UTIL_API ShortcutManager(ICoreProxy_ptr proxy, QObject *parent=0)
Creates the shortcut manager.
UTIL_API void SetObject(QObject *pluginObj)
Sets the plugin instance object of this manager.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
QList< QKeySequence > QKeySequences_t
UTIL_API void SetShortcut(const QString &id, const QKeySequences_t &sequences) const
Sets the key sequence for the given action.
UTIL_API void RegisterAction(const QString &id, QAction *action, bool update=false)
Registers the given QAction by the given id.
Describes an action exposed in shortcut manager.
QPair< QString, QAction * > IDPair_t
Aids in providing configurable shortcuts.
Proxy for requesting shortcuts from the shortcut manager in the Core.
UTIL_API void RegisterShortcut(const QString &id, const ActionInfo &info, QShortcut *shortcut, bool update=false)
Registers the given QShortcut with the given id.
UTIL_API void RegisterActionInfo(const QString &id, const ActionInfo &info)
Registers the given action info with the given id.