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) | |
| 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) | 
| 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 | 
| 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. References endl(). | 
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: 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()) ); * 
 
 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. References KShortcut::null(). | 
| 
 | ||||||||||||
| 
Set the shortcut to be associated with the action named by  
 
 
 Definition at line 70 of file kglobalaccel.cpp. | 
| 
 | ||||||||||||||||
| 
Set the slot to be called when the shortcut of the action named by  
 
 
 Definition at line 72 of file kglobalaccel.cpp. | 
| 
 | 
| 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:

