Diffstat (limited to 'development/keyview/keyview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | development/keyview/keyview.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/development/keyview/keyview.h b/development/keyview/keyview.h new file mode 100644 index 0000000..ab4ae60 --- a/dev/null +++ b/development/keyview/keyview.h | |||
@@ -0,0 +1,43 @@ | |||
1 | #ifndef KEYVIEW_H | ||
2 | #define KEYVIEW_H | ||
3 | #include <qgrid.h> | ||
4 | #include <qlineedit.h> | ||
5 | #include <qwindowsystem_qws.h> | ||
6 | |||
7 | |||
8 | class Keyview : public QGrid | ||
9 | { | ||
10 | Q_OBJECT | ||
11 | |||
12 | public: | ||
13 | Keyview( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
14 | ~Keyview(); | ||
15 | |||
16 | private slots: | ||
17 | void updateItems(int, int, int, bool, bool); | ||
18 | |||
19 | private: | ||
20 | |||
21 | QLineEdit *unicode; | ||
22 | QLineEdit *keycode; | ||
23 | QLineEdit *modifiers; | ||
24 | QLineEdit *isPress; | ||
25 | QLineEdit *autoRepeat; | ||
26 | |||
27 | }; | ||
28 | |||
29 | class KeyFilter : public QObject, public QWSServer::KeyboardFilter | ||
30 | { | ||
31 | Q_OBJECT | ||
32 | |||
33 | public: | ||
34 | KeyFilter( QObject* parent, const char* name = 0); | ||
35 | virtual bool filter(int unicode, int keycode, int modifiers, bool isPress, | ||
36 | bool autoRepeat); | ||
37 | |||
38 | signals: | ||
39 | void keyPressed(int, int, int, bool, bool); | ||
40 | |||
41 | }; | ||
42 | |||
43 | #endif | ||