author | imm <imm> | 2002-09-21 12:24:59 (UTC) |
---|---|---|
committer | imm <imm> | 2002-09-21 12:24:59 (UTC) |
commit | 99d546ce72f40e28b04f09201d92d58294401591 (patch) (unidiff) | |
tree | 4589ba17c622a114efb4811334e0adce02cedeca /noncore/games/kpacman/kpacman.h | |
parent | 279f025b03efdade9c211dd9441eec0c2a91ad94 (diff) | |
download | opie-99d546ce72f40e28b04f09201d92d58294401591.zip opie-99d546ce72f40e28b04f09201d92d58294401591.tar.gz opie-99d546ce72f40e28b04f09201d92d58294401591.tar.bz2 |
center widget
Diffstat (limited to 'noncore/games/kpacman/kpacman.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kpacman/kpacman.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/noncore/games/kpacman/kpacman.h b/noncore/games/kpacman/kpacman.h index d7de9de..2c1de70 100644 --- a/noncore/games/kpacman/kpacman.h +++ b/noncore/games/kpacman/kpacman.h | |||
@@ -1,51 +1,37 @@ | |||
1 | #ifndef KPACMAN_H | 1 | #ifndef KPACMAN_H |
2 | #define KPACMAN_H | 2 | #define KPACMAN_H |
3 | 3 | ||
4 | #ifdef HAVE_CONFIG_H | 4 | #ifdef HAVE_CONFIG_H |
5 | #include <config.h> | 5 | #include <config.h> |
6 | #endif | 6 | #endif |
7 | 7 | ||
8 | #include "portable.h" | 8 | #include "portable.h" |
9 | 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> | 10 | #include <qmainwindow.h> |
17 | class QMenuBar; | 11 | class QMenuBar; |
18 | #endif | ||
19 | |||
20 | #include <qregexp.h> | 12 | #include <qregexp.h> |
21 | 13 | ||
22 | #include "kpacmanwidget.h" | 14 | #include "kpacmanwidget.h" |
23 | 15 | ||
24 | #include <qpopmenu.h> | 16 | #include <qpopmenu.h> |
25 | 17 | ||
26 | #include <qlist.h> | 18 | #include <qlist.h> |
27 | #include <qfileinf.h> | 19 | #include <qfileinf.h> |
20 | #include <qlayout.h> | ||
28 | 21 | ||
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" | 22 | #include "referee.h" |
36 | #include "status.h" | 23 | #include "status.h" |
37 | #include "score.h" | 24 | #include "score.h" |
38 | #include "keys.h" | 25 | #include "keys.h" |
39 | #endif | ||
40 | 26 | ||
41 | class Kpacman : public KTMainWindow | 27 | class Kpacman : public KTMainWindow |
42 | { | 28 | { |
43 | Q_OBJECT | 29 | Q_OBJECT |
44 | public: | 30 | public: |
45 | Kpacman(QWidget *parent = 0, const char *name = 0); | 31 | Kpacman(QWidget *parent = 0, const char *name = 0); |
46 | virtual ~Kpacman(); | 32 | virtual ~Kpacman(); |
47 | 33 | ||
48 | public slots: | 34 | public slots: |
49 | void forcedHallOfFame(bool); | 35 | void forcedHallOfFame(bool); |
50 | 36 | ||
51 | private slots: | 37 | private slots: |
@@ -62,24 +48,26 @@ private slots: | |||
62 | void toggleHideMouseCursor(); | 48 | void toggleHideMouseCursor(); |
63 | void confKeys(); | 49 | void confKeys(); |
64 | 50 | ||
65 | protected: | 51 | protected: |
66 | 52 | ||
67 | private: | 53 | private: |
68 | KpacmanWidget *view; | 54 | KpacmanWidget *view; |
69 | 55 | ||
70 | void menu(); | 56 | void menu(); |
71 | 57 | ||
72 | int lookupSchemes(); | 58 | int lookupSchemes(); |
73 | 59 | ||
60 | QGridLayout *m_layout; | ||
61 | QWidget *m_view; | ||
74 | KMenuBar *_menuBar; | 62 | KMenuBar *_menuBar; |
75 | QPopupMenu *gamePopup; | 63 | QPopupMenu *gamePopup; |
76 | QPopupMenu *optionsPopup; | 64 | QPopupMenu *optionsPopup; |
77 | QPopupMenu *modesPopup; | 65 | QPopupMenu *modesPopup; |
78 | QList<QPopupMenu> *schemesPopup; | 66 | QList<QPopupMenu> *schemesPopup; |
79 | 67 | ||
80 | int newID; | 68 | int newID; |
81 | int pauseID; | 69 | int pauseID; |
82 | int hofID; | 70 | int hofID; |
83 | QArray<int> modeID; | 71 | QArray<int> modeID; |
84 | QArray<int> schemeID; | 72 | QArray<int> schemeID; |
85 | QArray<int> schemeMode; | 73 | QArray<int> schemeMode; |