Diffstat (limited to 'noncore/games/kpacman/kpacmanwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kpacman/kpacmanwidget.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/noncore/games/kpacman/kpacmanwidget.h b/noncore/games/kpacman/kpacmanwidget.h new file mode 100644 index 0000000..13b4a15 --- a/dev/null +++ b/noncore/games/kpacman/kpacmanwidget.h | |||
@@ -0,0 +1,50 @@ | |||
1 | #ifndef KPACMANWIDGET_H | ||
2 | #define KPACMANWIDGET_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 | #endif | ||
13 | |||
14 | #include <qwidget.h> | ||
15 | #include <qregexp.h> | ||
16 | |||
17 | #include "score.h" | ||
18 | #include "referee.h" | ||
19 | #include "status.h" | ||
20 | #include "painter.h" | ||
21 | |||
22 | class KpacmanWidget : public QWidget | ||
23 | { | ||
24 | Q_OBJECT | ||
25 | public: | ||
26 | KpacmanWidget ( QWidget *parent = 0, const char *name = 0); | ||
27 | virtual ~KpacmanWidget(); | ||
28 | |||
29 | void setScheme(int scheme=-1, int mode=-1); | ||
30 | Score *score; | ||
31 | Referee *referee; | ||
32 | Status *status; | ||
33 | |||
34 | protected: | ||
35 | void confScheme(); | ||
36 | void confMisc(bool defGroup=TRUE); | ||
37 | void resizeEvent( QResizeEvent * ); | ||
38 | |||
39 | private: | ||
40 | Bitfont *bitfont; | ||
41 | uchar bitfontFirstChar; | ||
42 | uchar bitfontLastChar; | ||
43 | |||
44 | QString fontName; | ||
45 | |||
46 | int scheme; | ||
47 | int mode; | ||
48 | }; | ||
49 | |||
50 | #endif // KPACMANWIDGET_H | ||