Diffstat (limited to 'noncore/games/kpacman/keys.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kpacman/keys.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/noncore/games/kpacman/keys.h b/noncore/games/kpacman/keys.h new file mode 100644 index 0000000..c0c9d82 --- a/dev/null +++ b/noncore/games/kpacman/keys.h | |||
@@ -0,0 +1,48 @@ | |||
1 | #ifndef KEYS_H | ||
2 | #define KEYS_H | ||
3 | |||
4 | #ifdef HAVE_CONFIG_H | ||
5 | #include <config.h> | ||
6 | #endif | ||
7 | |||
8 | #include "portable.h" | ||
9 | |||
10 | #if defined( KDE2_PORT ) | ||
11 | #include <kapp.h> | ||
12 | #include <kaccel.h> | ||
13 | #endif | ||
14 | |||
15 | #include <qdialog.h> | ||
16 | #include <qlabel.h> | ||
17 | #include <qstring.h> | ||
18 | |||
19 | class Keys : public QDialog | ||
20 | { | ||
21 | Q_OBJECT | ||
22 | public: | ||
23 | Keys( QWidget *parent=0, const char *name=0 ); | ||
24 | |||
25 | private slots: | ||
26 | void butRight(); | ||
27 | void butLeft(); | ||
28 | void butUp(); | ||
29 | void butDown(); | ||
30 | |||
31 | void getKey(int); | ||
32 | void defaults(); | ||
33 | void focusIn(QLabel *); | ||
34 | void focusOut(QLabel *); | ||
35 | |||
36 | void ok(); | ||
37 | |||
38 | protected: | ||
39 | void keyPressEvent( QKeyEvent * ); | ||
40 | |||
41 | private: | ||
42 | void init(); | ||
43 | |||
44 | QLabel *labels[4]; | ||
45 | QLabel *lab; | ||
46 | }; | ||
47 | |||
48 | #endif // KEYS_H | ||