#include <kglobalaccel.h>
Public Methods | |
| KGlobalAccel (QObject *pParent, const char *psName=0) | |
| bool | isEnabled () |
| void | setEnabled (bool bEnabled) |
| KAccelAction * | insert (const QString &sAction, const QString &sLabel, const QString &sWhatsThis, const KShortcut &cutDef3, const KShortcut &cutDef4, const QObject *pObjSlot, const char *psMethodSlot, bool bConfigurable=true, bool bEnabled=true) |
| bool | remove (const QString &sAction) |
| KAccelAction * | insert (const QString &sName, const QString &sLabel) |
| bool | updateConnections () |
| const KShortcut & | shortcut (const QString &sAction) const |
| bool | setShortcut (const QString &sAction, const KShortcut &shortcut) |
| bool | setSlot (const QString &sAction, const QObject *pObjSlot, const char *psMethodSlot) |
| bool | setEnabled (const QString &sAction, bool bEnabled) |
| const QString & | configGroup () const |
| void | setConfigGroup (const QString &cg) |
| bool | readSettings (KConfigBase *pConfig=0) |
| bool | writeSettings (KConfigBase *pConfig=0) const |
| bool | writeSettings (KConfigBase *pConfig, bool bGlobal) const |
KGlobalAccel allows you to have global accelerators that are independent of the focused window. Unlike KAccel it does not matter which window is currently active.
Definition at line 45 of file kglobalaccel.h.
|
||||||||||||
|
Creates a new KGlobalAccel object with the given pParent and psName.
|
|
|
Returns the configuration group that is used to save the accelerators.
|
|
||||||||||||
|
Use this to insert a label into the action list. This will be displayed when the user configures shortcuts.
|
|
||||||||||||||||||||||||||||||||||||||||
|
Create an accelerator action. Usage:
insert( "Do Something", i18n("Do Something"),
i18n("This action allows you to do something really great with this program to "
"the currently open document."),
ALT+CTRL+Key_Q, KKey::QtWIN+CTRL+Key_Q, this, SLOT(slotDoSomething()) );
*
|
|
|
Checks whether the accelerators are enabled.
|
|
|
Read all shortcuts from
|
|
|
Removes the accelerator action identified by the name. Remember to also call updateConnections().
|
|
|
Sets the configuration group that is used to save the accelerators.
|
|
||||||||||||
|
Enable or disable the action named by
|
|
|
Checks whether the accelerators are enabled.
|
|
||||||||||||
|
Set the shortcut to be associated with the action named by
|
|
||||||||||||||||
|
Set the slot to be called when the shortcut of the action named by
|
|
|
Set the shortcut to be associated with the action named by
|
|
|
Updates the connections of the accelerations after changing them.
|
|
||||||||||||
|
Write the current shortcuts to
|
|
|
Write the current shortcuts to
|
1.2.18