20 #ifndef _KGLOBALACCEL_H_
21 #define _KGLOBALACCEL_H_
24 #include <kshortcut.h>
32 class KGlobalAccelPrivate;
55 KGlobalAccel( TQObject* pParent,
const char* psName = 0 );
69 void setEnabled(
bool bEnabled );
93 KAccelAction* 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 KAccelAction* insert(
const TQString& sName,
const TQString& sLabel );
119 bool updateConnections();
126 const KShortcut& shortcut(
const TQString& sAction )
const;
133 bool setShortcut(
const TQString& sAction,
const KShortcut &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 );
190 bool writeSettings(
KConfigBase* pConfig = 0 )
const;
202 bool writeSettings(
KConfigBase* 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 KAccelActions& actions();
228 const KAccelActions& actions()
const;
230 friend class KGlobalAccelPrivate;
236 class KGlobalAccelPrivate* d;
239 #endif // _KGLOBALACCEL_H_
virtual void virtual_hook(int id, void *data)
used to extend the interface with virtuals without breaking binary compatibility
The KShortcut class is used to represent a keyboard shortcut to an action.
KShortcutList implementation to access KAccel and KGlobalAccel lists.
KDE Configuration Management abstract base class.
KGlobalAccel allows you to have global accelerators that are independent of the focused window...