Stellarium 0.13.0
List of all members | Public Slots | Public Member Functions
StelActionMgr Class Reference

Public Slots

void setAllActionsEnabled (bool value)
 Enable/disable all actions of application. More...
 

Public Member Functions

StelActionaddAction (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...
 
StelActionfindAction (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...
 

Member Function Documentation

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
idGlobal identifier.
groupIdGroup identifier.
textShort human-readable description in English.
shortcutDefault shortcut.
targetThe QObject the action is linked to.
slotEither a slot name, in that case the action is not checkable, either a property name, in that case the action is 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