20 #ifndef STELSHORTCUTMGR_HPP
21 #define STELSHORTCUTMGR_HPP
26 class StelShortcutGroup;
46 bool loadShortcuts(
const QString& filePath,
bool overload =
false);
65 const QString& primaryKey,
66 const QString& altKey,
67 const QString &groupId,
68 bool checkable =
true,
69 bool autoRepeat =
false,
72 void changeActionPrimaryKey(
const QString& actionId,
const QString& groupId, QKeySequence newKey);
73 void changeActionAltKey(
const QString& actionId,
const QString& groupId, QKeySequence newKey);
74 void setShortcutText(
const QString& actionId,
75 const QString& groupId,
76 const QString& description);
85 #ifndef DISABLE_SCRIPTING
87 QAction*
addScriptToAction(
const QString& actionId,
const QString& script,
const QString& scriptAction = QString());
94 void shortcutChanged(StelShortcut* shortcut);
108 bool copyDefaultFile();
113 QAction* getAction(
const QString& groupId,
const QString& actionId);
117 StelShortcut* getShortcut(
const QString& groupId,
const QString& shId);
125 void addGroup(
const QString&
id,
127 const QString& pluginId = QString());
132 QMap<QString, StelShortcutGroup*> shGroups;
135 #endif // STELSHORTCUTMGR_HPP