kglobalaccel.cpp
77 TDEAccelAction* TDEGlobalAccel::insert( const TQString& sAction, const TQString& sDesc, const TQString& sHelp,
104 bool TDEGlobalAccel::setSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot )
void setConfigGroup(const TQString &cg)
Sets the configuration group that is used to save the accelerators.
Definition: kglobalaccel.cpp:119
bool writeSettings(TDEConfigBase *pConfig=0) const
Write the current shortcuts to pConfig, or (if pConfig is zero) to the application's configuration fi...
Definition: kglobalaccel.cpp:124
TQString label(const TQString &sAction) const
Return the label (i18n'ized short description) associated with the action named by sAction.
Definition: kglobalaccel.cpp:106
TDEAccelAction * insert(const TQString &sAction, const TQString &sLabel, const TQString &sWhatsThis, const TDEShortcut &cutDef3, const TDEShortcut &cutDef4, const TQObject *pObjSlot, const char *psMethodSlot, bool bConfigurable=true, bool bEnabled=true)
Create an accelerator action.
Definition: kglobalaccel.cpp:77
bool updateConnections()
Updates the connections of the accelerations after changing them.
Definition: kglobalaccel.cpp:90
void setEnabled(bool bEnabled)
Enables or disables the TDEGlobalAccel.
Definition: kglobalaccel.cpp:65
bool readSettings(TDEConfigBase *pConfig=0)
Read all shortcuts from pConfig, or (if pConfig is zero) from the application's configuration file TD...
Definition: kglobalaccel.cpp:122
bool setActionEnabled(const TQString &sAction, bool bEnable)
Enables or disables action sAction.
Definition: kglobalaccel.cpp:111
TDEGlobalAccel(TQObject *pParent, const char *psName=0)
Creates a new TDEGlobalAccel object with the given pParent and psName.
Definition: kglobalaccel.cpp:39
bool setShortcut(const TQString &sAction, const TDEShortcut &shortcut)
Set the shortcut to be associated with the action named by sAction.
Definition: kglobalaccel.cpp:102
const TDEShortcut & shortcut(const TQString &sAction) const
Return the shortcut associated with the action named by sAction.
Definition: kglobalaccel.cpp:96
bool remove(const TQString &sAction)
Removes the accelerator action identified by the name.
Definition: kglobalaccel.cpp:93
const TQString & configGroup() const
Returns the configuration group that is used to save the accelerators.
Definition: kglobalaccel.cpp:116
bool setSlot(const TQString &sAction, const TQObject *pObjSlot, const char *psMethodSlot)
Set the slot to be called when the shortcut of the action named by sAction is pressed.
Definition: kglobalaccel.cpp:104
The TDEShortcut class is used to represent a keyboard shortcut to an action.
Definition: tdeshortcut.h:544