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) |
bool | setActionEnabled (const QString &sAction, bool bEnable) |
QString | label (const QString &sAction) const |
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 | |
static 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 39 of file kglobalaccel.cpp. References endl(). |
Member Function Documentation
|
Checks whether the accelerators are enabled.
Definition at line 62 of file kglobalaccel.cpp. |
|
Enables or disables the KGlobalAccel.
Definition at line 65 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 68 of file kglobalaccel.cpp. |
|
Removes the accelerator action identified by the name. Remember to also call updateConnections().
Definition at line 84 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 79 of file kglobalaccel.cpp. |
|
Updates the connections of the accelerations after changing them.
Definition at line 81 of file kglobalaccel.cpp. |
|
Return the shortcut associated with the action named by
Definition at line 87 of file kglobalaccel.cpp. References KShortcut::null(). |
|
Set the shortcut to be associated with the action named by
Definition at line 93 of file kglobalaccel.cpp. |
|
Set the slot to be called when the shortcut of the action named by
Definition at line 95 of file kglobalaccel.cpp. |
|
Enables or disables action
Definition at line 102 of file kglobalaccel.cpp. |
|
Return the label (i18n'ized short description) associated with the action named by
Definition at line 97 of file kglobalaccel.cpp. |
|
Returns the configuration group that is used to save the accelerators.
Definition at line 107 of file kglobalaccel.cpp. Referenced by KAccelShortcutList::KAccelShortcutList(). |
|
Sets the configuration group that is used to save the accelerators.
Definition at line 110 of file kglobalaccel.cpp. |
|
Read all shortcuts from
Definition at line 113 of file kglobalaccel.cpp. |
|
Write the current shortcuts to
Definition at line 115 of file kglobalaccel.cpp. |
|
Write the current shortcuts to Alternatively, if bGlobal is true, then write to kdeglobals.
Definition at line 117 of file kglobalaccel.cpp. |
The documentation for this class was generated from the following files: