kshortcutdialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _KSHORTCUTDIALOG_H_
00021 #define _KSHORTCUTDIALOG_H_
00022
00023 #include "kdialogbase.h"
00024 #include "kshortcut.h"
00025
00026 class QVBox;
00027 class KPushButton;
00028 class KShortcutDialogSimple;
00029 class KShortcutDialogAdvanced;
00030
00031 class KShortcutDialog : public KDialogBase
00032 {
00033 Q_OBJECT
00034 public:
00035 KShortcutDialog( const KShortcut& shortcut, bool bQtShortcut, QWidget* parent = 0, const char* name = 0 );
00036 ~KShortcutDialog();
00037
00038 const KShortcut& shortcut() const { return m_shortcut; }
00039
00040 private:
00041
00042 bool m_bQtShortcut;
00043
00044 KShortcut m_shortcut;
00045 bool m_bGrab;
00046 KPushButton* m_ptxtCurrent;
00047 uint m_iSeq;
00048 uint m_iKey;
00049 bool m_bRecording;
00050 uint m_mod;
00051 KShortcutDialogSimple *m_simple;
00052 KShortcutDialogAdvanced *m_adv;
00053 QVBox *m_stack;
00054
00055 void setShortcut( const KShortcut & shortcut );
00056 void updateShortcutDisplay();
00057
00058 void keyEvent( QKeyEvent * pEvent );
00059 void keyPressed( KKey key );
00060 void updateDetails();
00061
00062 #ifdef Q_WS_X11
00063 virtual bool x11Event( XEvent *pEvent );
00064
00065 void x11KeyPressEvent( XEvent* pEvent );
00066 void x11KeyReleaseEvent( XEvent* pEvent );
00067 #endif
00068
00069 private slots:
00070 void slotDetails();
00071 void slotSelectPrimary();
00072 void slotSelectAlternate();
00073 void slotClearShortcut();
00074 void slotClearPrimary();
00075 void slotClearAlternate();
00076 void slotMultiKeyMode( bool bOn );
00077
00078 private:
00079
00080 static bool s_showMore;
00081 };
00082
00083 #endif // _KSHORTCUTDIALOG_H_
This file is part of the documentation for kdeui Library Version 3.2.3.