kglobalaccel.cpp
77 KAccelAction* KGlobalAccel::insert( const TQString& sAction, const TQString& sDesc, const TQString& sHelp,
104 bool KGlobalAccel::setSlot( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot )
bool remove(const TQString &sAction)
Removes the accelerator action identified by the name.
Definition: kglobalaccel.cpp:93
bool setShortcut(const TQString &sAction, const KShortcut &shortcut)
Set the shortcut to be associated with the action named by sAction.
Definition: kglobalaccel.cpp:102
void setConfigGroup(const TQString &cg)
Sets the configuration group that is used to save the accelerators.
Definition: kglobalaccel.cpp:119
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
const KShortcut & shortcut(const TQString &sAction) const
Return the shortcut associated with the action named by sAction.
Definition: kglobalaccel.cpp:96
KAccelAction * insert(const TQString &sAction, const TQString &sLabel, const TQString &sWhatsThis, const KShortcut &cutDef3, const KShortcut &cutDef4, const TQObject *pObjSlot, const char *psMethodSlot, bool bConfigurable=true, bool bEnabled=true)
Create an accelerator action.
Definition: kglobalaccel.cpp:77
The KShortcut class is used to represent a keyboard shortcut to an action.
Definition: kshortcut.h:543
bool readSettings(KConfigBase *pConfig=0)
Read all shortcuts from pConfig, or (if pConfig is zero) from the application's configuration file KG...
Definition: kglobalaccel.cpp:122
bool setActionEnabled(const TQString &sAction, bool bEnable)
Enables or disables action sAction.
Definition: kglobalaccel.cpp:111
bool writeSettings(KConfigBase *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
KGlobalAccel(TQObject *pParent, const char *psName=0)
Creates a new KGlobalAccel object with the given pParent and psName.
Definition: kglobalaccel.cpp:39
const TQString & configGroup() const
Returns the configuration group that is used to save the accelerators.
Definition: kglobalaccel.cpp:116
bool updateConnections()
Updates the connections of the accelerations after changing them.
Definition: kglobalaccel.cpp:90