-rw-r--r-- | libopie2/opieui/okeyconfigwidget.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libopie2/opieui/okeyconfigwidget.h b/libopie2/opieui/okeyconfigwidget.h index d76ea46..bcbb579 100644 --- a/libopie2/opieui/okeyconfigwidget.h +++ b/libopie2/opieui/okeyconfigwidget.h | |||
@@ -58,39 +58,48 @@ class OKeyConfig : public QObject { | |||
58 | public: | 58 | public: |
59 | OKeyConfig(Opie::Core::OConfig *conf = 0, bool grabkeyboard); | 59 | OKeyConfig(Opie::Core::OConfig *conf = 0, bool grabkeyboard); |
60 | ~OKeyConfig(); | 60 | ~OKeyConfig(); |
61 | 61 | ||
62 | void load(); | 62 | void load(); |
63 | void save(); | 63 | void save(); |
64 | 64 | ||
65 | OKeyConfigItem handleKeyEvent( QKeyEvent* ); | 65 | OKeyConfigItem handleKeyEvent( QKeyEvent* ); |
66 | QString handleKeyEventString( QKeyEvent* ); | 66 | QString handleKeyEventString( QKeyEvent* ); |
67 | 67 | ||
68 | void addKeyConfig( const OKeyConfigItem& ); | 68 | void addKeyConfig( const OKeyConfigItem& ); |
69 | void removeKeyConfig( const OKeyConfigItem& ); | 69 | void removeKeyConfig( const OKeyConfigItem& ); |
70 | |||
71 | void handleWidget( QWidget* ); | ||
70 | signals: | 72 | signals: |
71 | void keyConfigChanged( OKeyConfig* ); | 73 | void keyConfigChanged( OKeyConfig* ); |
74 | void actionActivated( QWidget*, QKeyEvent*, const OKeyConfigItem& ); | ||
72 | 75 | ||
73 | private: | 76 | private: |
74 | OKeyConfigItemList m_keys; | 77 | OKeyConfigItemList m_keys; |
78 | QValueList<QWidget*> m_widgets; | ||
79 | class Private; | ||
80 | Private *d; | ||
75 | }; | 81 | }; |
76 | 82 | ||
77 | 83 | ||
78 | class OKeyConfigWidget : public QHBox { | 84 | class OKeyConfigWidget : public QHBox { |
79 | Q_OBJECT | 85 | Q_OBJECT |
80 | public: | 86 | public: |
81 | enum ChangeMode { Imediate, Queu }; | 87 | enum ChangeMode { Imediate, Queu }; |
82 | OKeyConfigWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 88 | OKeyConfigWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
83 | OKeyConfigWidget( OKeyConfig *, QWidget* parent = 0, const char* = 0, WFlags = 0 ); | 89 | OKeyConfigWidget( OKeyConfig *, QWidget* parent = 0, const char* = 0, WFlags = 0 ); |
84 | ~OKeyConfigWidget(); | 90 | ~OKeyConfigWidget(); |
85 | 91 | ||
86 | void setChangeMode( enum ChangeMode ); | 92 | void setChangeMode( enum ChangeMode ); |
87 | ChangeMode changeMode()const; | 93 | ChangeMode changeMode()const; |
88 | 94 | ||
89 | void reload(); | 95 | void reload(); |
96 | private: | ||
97 | class Private; | ||
98 | Private *d; | ||
90 | }; | 99 | }; |
91 | 100 | ||
92 | } | 101 | } |
93 | } | 102 | } |
94 | 103 | ||
95 | 104 | ||
96 | #endif | 105 | #endif |