20 #ifndef _TDEGLOBALACCEL_X11_H 21 #define _TDEGLOBALACCEL_X11_H 26 #include "tdeaccelbase.h" 27 #include "kkeyserver_x11.h" 28 #include "tdeshortcut.h" 33 class TDEGlobalAccelPrivate :
public TQWidget,
public TDEAccelBase
38 TDEGlobalAccelPrivate();
39 virtual ~TDEGlobalAccelPrivate();
43 virtual bool emitSignal( Signal signal );
44 virtual bool connectKey( TDEAccelAction& action,
const KKeyServer::Key& key );
46 virtual bool disconnectKey( TDEAccelAction& action,
const KKeyServer::Key& key );
69 bool operator < (
const CodeMod& b )
const 71 if( code < b.code )
return true;
72 if( code == b.code && mod < b.mod )
return true;
76 typedef TQMap<CodeMod, TDEAccelAction*> CodeModMap;
78 CodeModMap m_rgCodeModToAction;
92 virtual bool x11Event( XEvent* );
93 void x11MappingNotify();
94 bool x11KeyPress(
const XEvent *pEvent );
95 void activate( TDEAccelAction* pAction,
const KKeySequence& seq );
96 virtual bool isEnabledInternal()
const;
97 static void blockShortcuts(
bool block );
98 void disableBlocking(
bool disable );
99 void suspend(
bool s );
102 void slotActivated(
int iAction );
103 void fakeKeyPressed(
unsigned int keyCode);
106 bool m_blockingDisabled;
110 #endif // _TDEGLOBALACCEL_X11_H A KKeySequence object holds a sequence of up to 4 keys.
TDEGlobalAccel allows you to have global accelerators that are independent of the focused window...
void setEnabled(bool bEnabled)
Enables or disables the TDEGlobalAccel.