summaryrefslogtreecommitdiff
path: root/noncore/games/kpacman/kpacman.h
authorleseb <leseb>2002-04-15 22:40:28 (UTC)
committer leseb <leseb>2002-04-15 22:40:28 (UTC)
commita91544d04ed391bbdc0c6f95ff8a80d35190788c (patch) (unidiff)
tree85dea85fd8a1cdb6d2d18fef57753d0b5e4bd143 /noncore/games/kpacman/kpacman.h
parent6396d8b9fca7f3f50010a13a26e4ee9569abefb3 (diff)
downloadopie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.zip
opie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.tar.gz
opie-a91544d04ed391bbdc0c6f95ff8a80d35190788c.tar.bz2
New directory structure
Diffstat (limited to 'noncore/games/kpacman/kpacman.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/kpacman/kpacman.h95
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>
17class 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
41class Kpacman : public KTMainWindow
42{
43 Q_OBJECT
44public:
45 Kpacman(QWidget *parent = 0, const char *name = 0);
46 virtual ~Kpacman();
47
48public slots:
49 void forcedHallOfFame(bool);
50
51private 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
65protected:
66
67private:
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