KGlobalAccel Class Reference
KGlobalAccel allows you to have global accelerators that are independent of the focused window. Configurable global shortcut support. More...
#include <kglobalaccel.h>
Inheritance diagram for KGlobalAccel:


Public Member Functions | |
KGlobalAccel (QObject *pParent, const char *psName=0) | |
Creates a new KGlobalAccel object with the given pParent and psName. | |
bool | isEnabled () |
Checks whether the accelerators are enabled. | |
void | setEnabled (bool bEnabled) |
Checks whether the accelerators are enabled. | |
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) |
Create an accelerator action. | |
bool | remove (const QString &sAction) |
Removes the accelerator action identified by the name. | |
KAccelAction * | insert (const QString &sName, const QString &sLabel) |
Use this to insert a label into the action list. | |
bool | updateConnections () |
Updates the connections of the accelerations after changing them. | |
const KShortcut & | shortcut (const QString &sAction) const |
Set the shortcut to be associated with the action named by sAction . | |
bool | setShortcut (const QString &sAction, const KShortcut &shortcut) |
Set the shortcut to be associated with the action named by sAction . | |
bool | setSlot (const QString &sAction, const QObject *pObjSlot, const char *psMethodSlot) |
Set the slot to be called when the shortcut of the action named by sAction is pressed. | |
bool | setEnabled (const QString &sAction, bool bEnabled) |
Enable or disable the action named by sAction . | |
const QString & | configGroup () const |
Returns the configuration group that is used to save the accelerators. | |
void | setConfigGroup (const QString &cg) |
Sets the configuration group that is used to save the accelerators. | |
bool | readSettings (KConfigBase *pConfig=0) |
Read all shortcuts from pConfig , or (if pConfig is zero) from the application's configuration file KGlobal::config(). | |
bool | writeSettings (KConfigBase *pConfig=0) const |
Write the current shortcuts to pConfig , or (if pConfig is zero) to the application's configuration file. | |
bool | writeSettings (KConfigBase *pConfig, bool bGlobal) const |
Write the current shortcuts to pConfig , or (if pConfig is zero) to the application's configuration file. | |
Static Public Member Functions | |
bool | useFourModifierKeys () |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Friends | |
class | KGlobalAccelPrivate |
class | KAccelShortcutList |
Detailed Description
KGlobalAccel allows you to have global accelerators that are independent of the focused window. Configurable global shortcut support.Unlike KAccel it does not matter which window is currently active.
- See also:
- KAccel
Definition at line 45 of file kglobalaccel.h.
Constructor & Destructor Documentation
|
Creates a new KGlobalAccel object with the given pParent and psName.
Definition at line 16 of file kglobalaccel.cpp. |
Member Function Documentation
|
Checks whether the accelerators are enabled.
Definition at line 39 of file kglobalaccel.cpp. |
|
Checks whether the accelerators are enabled.
Definition at line 42 of file kglobalaccel.cpp. |
|
Create an accelerator action. Usage:
Definition at line 45 of file kglobalaccel.cpp. |
|
Removes the accelerator action identified by the name. Remember to also call updateConnections().
Definition at line 61 of file kglobalaccel.cpp. |
|
Use this to insert a label into the action list. This will be displayed when the user configures shortcuts.
Definition at line 56 of file kglobalaccel.cpp. |
|
Updates the connections of the accelerations after changing them.
Definition at line 58 of file kglobalaccel.cpp. |
|
Set the shortcut to be associated with the action named by
Definition at line 64 of file kglobalaccel.cpp. |
|
Set the shortcut to be associated with the action named by
Definition at line 70 of file kglobalaccel.cpp. References KStdAction::cut(). |
|
Set the slot to be called when the shortcut of the action named by
Definition at line 72 of file kglobalaccel.cpp. |
|
Enable or disable the action named by
|
|
Returns the configuration group that is used to save the accelerators.
Definition at line 75 of file kglobalaccel.cpp. |
|
Sets the configuration group that is used to save the accelerators.
Definition at line 78 of file kglobalaccel.cpp. |
|
Read all shortcuts from
Definition at line 81 of file kglobalaccel.cpp. |
|
Write the current shortcuts to
Definition at line 83 of file kglobalaccel.cpp. |
|
Write the current shortcuts to Alternatively, if bGlobal is true, then write to kdeglobals.
Definition at line 85 of file kglobalaccel.cpp. |
The documentation for this class was generated from the following files: