author | harlekin <harlekin> | 2003-05-16 10:48:08 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-05-16 10:48:08 (UTC) |
commit | 708f1846703c3f13f7c9ac67130b6930f9607523 (patch) (unidiff) | |
tree | 7d8e136a19b473d1d80b00496f8947f42d849702 | |
parent | c6de8acfd02b24dead5a1ff815c3f167a578a48b (diff) | |
download | opie-708f1846703c3f13f7c9ac67130b6930f9607523.zip opie-708f1846703c3f13f7c9ac67130b6930f9607523.tar.gz opie-708f1846703c3f13f7c9ac67130b6930f9607523.tar.bz2 |
qpe/config.h
-rw-r--r-- | noncore/games/kpacman/score.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/games/kpacman/score.cpp b/noncore/games/kpacman/score.cpp index b3ff3d9..e91771b 100644 --- a/noncore/games/kpacman/score.cpp +++ b/noncore/games/kpacman/score.cpp | |||
@@ -1,63 +1,63 @@ | |||
1 | 1 | ||
2 | #include "portable.h" | 2 | #include "portable.h" |
3 | 3 | ||
4 | #if defined( KDE2_PORT ) | 4 | #if defined( KDE2_PORT ) |
5 | #include <score.h> | 5 | #include <score.h> |
6 | #include <score.moc> | 6 | #include <score.moc> |
7 | 7 | ||
8 | #include <kaccel.h> | 8 | #include <kaccel.h> |
9 | #include <kapp.h> | 9 | #include <kapp.h> |
10 | #include <kconfig.h> | 10 | #include <kconfig.h> |
11 | #include <kstddirs.h> | 11 | #include <kstddirs.h> |
12 | #include <kmessagebox.h> | 12 | #include <kmessagebox.h> |
13 | #elif defined( QPE_PORT ) | 13 | #elif defined( QPE_PORT ) |
14 | #include <qaccel.h> | 14 | #include <qaccel.h> |
15 | #include "config.h" | 15 | #include <qpe/config.h> |
16 | #include "score.h" | 16 | #include "score.h" |
17 | #endif | 17 | #endif |
18 | 18 | ||
19 | #include <stdlib.h> | 19 | #include <stdlib.h> |
20 | #include <ctype.h> | 20 | #include <ctype.h> |
21 | 21 | ||
22 | #include <qpixmap.h> | 22 | #include <qpixmap.h> |
23 | #include <qstring.h> | 23 | #include <qstring.h> |
24 | #include <qdstream.h> | 24 | #include <qdstream.h> |
25 | #include <qkeycode.h> | 25 | #include <qkeycode.h> |
26 | #include <qtimer.h> | 26 | #include <qtimer.h> |
27 | #include <qfileinfo.h> | 27 | #include <qfileinfo.h> |
28 | 28 | ||
29 | #include "bitfont.h" | 29 | #include "bitfont.h" |
30 | 30 | ||
31 | Score::Score(QWidget *parent, const char *name, int Scheme, int Mode, Bitfont *font) : QWidget(parent, name) | 31 | Score::Score(QWidget *parent, const char *name, int Scheme, int Mode, Bitfont *font) : QWidget(parent, name) |
32 | { | 32 | { |
33 | setFocusPolicy(QWidget::StrongFocus); | 33 | setFocusPolicy(QWidget::StrongFocus); |
34 | 34 | ||
35 | paused = FALSE; | 35 | paused = FALSE; |
36 | 36 | ||
37 | lastScore = -1; | 37 | lastScore = -1; |
38 | lastPlayer = -1; | 38 | lastPlayer = -1; |
39 | 39 | ||
40 | cursorBlinkTimer = 0; | 40 | cursorBlinkTimer = 0; |
41 | cursorBlinkMS = -1; | 41 | cursorBlinkMS = -1; |
42 | cursor.x = -1; | 42 | cursor.x = -1; |
43 | cursor.y = -1; | 43 | cursor.y = -1; |
44 | cursor.on = FALSE; | 44 | cursor.on = FALSE; |
45 | cursor.chr = QChar('?'); | 45 | cursor.chr = QChar('?'); |
46 | 46 | ||
47 | initKeys(); | 47 | initKeys(); |
48 | 48 | ||
49 | scheme = Scheme; | 49 | scheme = Scheme; |
50 | mode = Mode; | 50 | mode = Mode; |
51 | confScheme(); | 51 | confScheme(); |
52 | 52 | ||
53 | bitfont = font; | 53 | bitfont = font; |
54 | 54 | ||
55 | highscoreFile.setName(locateHighscoreFilePath().filePath()); | 55 | highscoreFile.setName(locateHighscoreFilePath().filePath()); |
56 | read(); | 56 | read(); |
57 | 57 | ||
58 | for (int p = 0; p < maxPlayer; p++) { | 58 | for (int p = 0; p < maxPlayer; p++) { |
59 | playerScore[p] = 0; | 59 | playerScore[p] = 0; |
60 | playerName[p] = getenv("LOGNAME"); | 60 | playerName[p] = getenv("LOGNAME"); |
61 | if (playerName[p].length() < minPlayerNameLength) | 61 | if (playerName[p].length() < minPlayerNameLength) |
62 | playerName[p].setExpand(minPlayerNameLength-1, ' '); | 62 | playerName[p].setExpand(minPlayerNameLength-1, ' '); |
63 | 63 | ||