Diffstat (limited to 'libopie2/opieui/okeyconfigwidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opieui/okeyconfigwidget.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libopie2/opieui/okeyconfigwidget.h b/libopie2/opieui/okeyconfigwidget.h index 8d2a1ef..9e26719 100644 --- a/libopie2/opieui/okeyconfigwidget.h +++ b/libopie2/opieui/okeyconfigwidget.h | |||
@@ -18,18 +18,20 @@ | |||
18 | 18 | ||
19 | class QKeyEvent; | 19 | class QKeyEvent; |
20 | class QLabel; | 20 | class QLabel; |
21 | class QPushButton; | 21 | class QPushButton; |
22 | class QListViewItem; | 22 | class QListViewItem; |
23 | class QRadioButton; | 23 | class QRadioButton; |
24 | class QTimer; | ||
24 | 25 | ||
25 | namespace Opie { | 26 | namespace Opie { |
26 | namespace Ui { | 27 | namespace Ui { |
27 | namespace Private { | 28 | namespace Private { |
28 | class OKeyConfigWidgetPrivate; | 29 | class OKeyConfigWidgetPrivate; |
29 | typedef QValueList<OKeyConfigWidgetPrivate> OKeyConfigWidgetPrivateList; | 30 | typedef QValueList<OKeyConfigWidgetPrivate> OKeyConfigWidgetPrivateList; |
31 | class OKeyListViewItem; | ||
30 | } | 32 | } |
31 | class OListViewItem; | 33 | class OListViewItem; |
32 | class OListView; | 34 | class OListView; |
33 | 35 | ||
34 | /** | 36 | /** |
35 | * \brief small class representing a Key with possible modifiers | 37 | * \brief small class representing a Key with possible modifiers |
@@ -248,12 +250,14 @@ private slots: | |||
248 | void slotNoKey(); | 250 | void slotNoKey(); |
249 | void slotDefaultKey(); | 251 | void slotDefaultKey(); |
250 | void slotCustomKey(); | 252 | void slotCustomKey(); |
251 | void slotConfigure(); | 253 | void slotConfigure(); |
252 | 254 | ||
253 | private: | 255 | private: |
256 | void updateItem( Opie::Ui::Private::OKeyListViewItem* man, | ||
257 | const OKeyPair& newItem); | ||
254 | void initUi(); | 258 | void initUi(); |
255 | Opie::Ui::OListView *m_view; | 259 | Opie::Ui::OListView *m_view; |
256 | Opie::Ui::Private::OKeyConfigWidgetPrivateList m_list; | 260 | Opie::Ui::Private::OKeyConfigWidgetPrivateList m_list; |
257 | QLabel *m_lbl; | 261 | QLabel *m_lbl; |
258 | QPushButton *m_btn; | 262 | QPushButton *m_btn; |
259 | QRadioButton *m_def, *m_cus, *m_none; | 263 | QRadioButton *m_def, *m_cus, *m_none; |
@@ -293,14 +297,21 @@ protected: | |||
293 | void keyPressEvent( QKeyEvent* ); | 297 | void keyPressEvent( QKeyEvent* ); |
294 | void keyReleaseEvent( QKeyEvent* ); | 298 | void keyReleaseEvent( QKeyEvent* ); |
295 | 299 | ||
296 | signals: | 300 | signals: |
297 | void keyCaptured(); | 301 | void keyCaptured(); |
298 | 302 | ||
303 | private slots: | ||
304 | void slotTimeUp(); | ||
305 | |||
299 | private: | 306 | private: |
307 | QTimer *m_timer; | ||
308 | QLabel *m_lbl; | ||
309 | bool m_virtKey : 1; | ||
300 | OKeyPair m_keyPair; | 310 | OKeyPair m_keyPair; |
311 | int m_key, m_mod; | ||
301 | class Private; | 312 | class Private; |
302 | Private *d; | 313 | Private *d; |
303 | }; | 314 | }; |
304 | 315 | ||
305 | } | 316 | } |
306 | } | 317 | } |