|
StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, QObject *target, const char *slot, const QString &shortcut="", const QString &altShortcut="", bool global=false) |
| Create and add a new StelAction, connected to an object property or slot. More...
|
|
StelAction * | findAction (const QString &id) |
|
bool | pushKey (int key, bool global=false) |
|
QStringList | getGroupList () const |
|
QList< StelAction * > | getActionList (const QString &group) const |
|
void | saveShortcuts () |
| Save current shortcuts to file. More...
|
|
void | restoreDefaultShortcuts () |
| Restore the default shortcuts combinations. More...
|
|
Definition at line 109 of file StelActionMgr.hpp.
StelAction* StelActionMgr::addAction |
( |
const QString & |
id, |
|
|
const QString & |
groupId, |
|
|
const QString & |
text, |
|
|
QObject * |
target, |
|
|
const char * |
slot, |
|
|
const QString & |
shortcut = "" , |
|
|
const QString & |
altShortcut = "" , |
|
|
bool |
global = false |
|
) |
| |
Create and add a new StelAction, connected to an object property or slot.
- Parameters
-
id | Global identifier. |
groupId | Group identifier. |
text | Short human-readable description in English. |
shortcut | Default shortcut. |
target | The QObject the action is linked to. |
slot | The target slot or property that the action will trigger. Either a slot name of the form 'func()' and in that case the action is made non checkable, a slot name of the form 'func(bool)' and in that case the action is made checkable, or a property name and in that case the action is made checkable. |
void StelActionMgr::restoreDefaultShortcuts |
( |
| ) |
|
Restore the default shortcuts combinations.
void StelActionMgr::saveShortcuts |
( |
| ) |
|
Save current shortcuts to file.
void StelActionMgr::setAllActionsEnabled |
( |
bool |
value | ) |
|
|
inlineslot |
Enable/disable all actions of application.
need for editing shortcuts without trigging any actions
Definition at line 146 of file StelActionMgr.hpp.
The documentation for this class was generated from the following file: