Diffstat (limited to 'noncore/games/kpacman/kpacman.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kpacman/kpacman.h | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/noncore/games/kpacman/kpacman.h b/noncore/games/kpacman/kpacman.h new file mode 100644 index 0000000..d7de9de --- a/dev/null +++ b/noncore/games/kpacman/kpacman.h | |||
@@ -0,0 +1,95 @@ | |||
1 | #ifndef KPACMAN_H | ||
2 | #define KPACMAN_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 <klocale.h> | ||
13 | #include <ktmainwindow.h> | ||
14 | #include <kmenubar.h> | ||
15 | #elif defined( QPE_PORT ) | ||
16 | #include <qmainwindow.h> | ||
17 | class QMenuBar; | ||
18 | #endif | ||
19 | |||
20 | #include <qregexp.h> | ||
21 | |||
22 | #include "kpacmanwidget.h" | ||
23 | |||
24 | #include <qpopmenu.h> | ||
25 | |||
26 | #include <qlist.h> | ||
27 | #include <qfileinf.h> | ||
28 | |||
29 | #if defined( KDE2_PORT ) | ||
30 | #include <referee.h> | ||
31 | #include <status.h> | ||
32 | #include <score.h> | ||
33 | #include <keys.h> | ||
34 | #elif defined( QPE_PORT ) | ||
35 | #include "referee.h" | ||
36 | #include "status.h" | ||
37 | #include "score.h" | ||
38 | #include "keys.h" | ||
39 | #endif | ||
40 | |||
41 | class Kpacman : public KTMainWindow | ||
42 | { | ||
43 | Q_OBJECT | ||
44 | public: | ||
45 | Kpacman(QWidget *parent = 0, const char *name = 0); | ||
46 | virtual ~Kpacman(); | ||
47 | |||
48 | public slots: | ||
49 | void forcedHallOfFame(bool); | ||
50 | |||
51 | private slots: | ||
52 | void newKpacman(); | ||
53 | void pauseKpacman(); | ||
54 | void toggleHallOfFame(); | ||
55 | void toggleNew(); | ||
56 | void togglePaused(); | ||
57 | void quitKpacman(); | ||
58 | |||
59 | void schemeChecked(int); | ||
60 | void toggleFocusOutPause(); | ||
61 | void toggleFocusInContinue(); | ||
62 | void toggleHideMouseCursor(); | ||
63 | void confKeys(); | ||
64 | |||
65 | protected: | ||
66 | |||
67 | private: | ||
68 | KpacmanWidget *view; | ||
69 | |||
70 | void menu(); | ||
71 | |||
72 | int lookupSchemes(); | ||
73 | |||
74 | KMenuBar *_menuBar; | ||
75 | QPopupMenu *gamePopup; | ||
76 | QPopupMenu *optionsPopup; | ||
77 | QPopupMenu *modesPopup; | ||
78 | QList<QPopupMenu> *schemesPopup; | ||
79 | |||
80 | int newID; | ||
81 | int pauseID; | ||
82 | int hofID; | ||
83 | QArray<int> modeID; | ||
84 | QArray<int> schemeID; | ||
85 | QArray<int> schemeMode; | ||
86 | int focusOutPauseID; | ||
87 | int focusInContinueID; | ||
88 | int hideMouseCursorID; | ||
89 | |||
90 | bool focusOutPause; | ||
91 | bool focusInContinue; | ||
92 | bool hideMouseCursor; | ||
93 | }; | ||
94 | |||
95 | #endif // KPACMAN_H | ||