20 #ifndef _KGLOBALACCEL_H_
21 #define _KGLOBALACCEL_H_
24 #include <tdeshortcut.h>
29 class TDEAccelActions;
32 class TDEGlobalAccelPrivate;
69 void setEnabled(
bool bEnabled );
93 TDEAccelAction* insert(
const TQString& sAction,
const TQString& sLabel,
const TQString& sWhatsThis,
95 const TQObject* pObjSlot,
const char* psMethodSlot,
96 bool bConfigurable =
true,
bool bEnabled =
true );
104 bool remove(
const TQString& sAction );
113 TDEAccelAction* insert(
const TQString& sName,
const TQString& sLabel );
119 bool updateConnections();
126 const TDEShortcut& shortcut(
const TQString& sAction )
const;
133 bool setShortcut(
const TQString& sAction,
const TDEShortcut &shortcut );
142 bool setSlot(
const TQString& sAction,
const TQObject* pObjSlot,
const char* psMethodSlot );
148 bool setActionEnabled(
const TQString& sAction,
bool bEnable );
155 TQString label(
const TQString& sAction )
const;
162 const TQString& configGroup()
const;
169 void setConfigGroup(
const TQString &cg );
202 bool writeSettings(
TDEConfigBase* pConfig,
bool bGlobal )
const;
208 static bool useFourModifierKeys();
213 static void blockShortcuts(
bool block );
217 void disableBlocking(
bool disable );
223 void suspend(
bool s );
227 TDEAccelActions& actions();
228 const TDEAccelActions& actions()
const;
230 friend class TDEGlobalAccelPrivate;
236 class TDEGlobalAccelPrivate* d;
TDEShortcutList implementation to access TDEAccel and TDEGlobalAccel lists.
virtual void virtual_hook(int id, void *data)
used to extend the interface with virtuals without breaking binary compatibility
KDE Configuration Management abstract base class.
TDEGlobalAccel allows you to have global accelerators that are independent of the focused window.
The TDEShortcut class is used to represent a keyboard shortcut to an action.