author | imm <imm> | 2002-08-31 22:59:38 (UTC) |
---|---|---|
committer | imm <imm> | 2002-08-31 22:59:38 (UTC) |
commit | 277ec30e2807c7bd6bdc9efdb086e9c72c3741e9 (patch) (unidiff) | |
tree | 399c6bd30dbc766688fea389a96988ac85e30ac7 | |
parent | af1fb861d849575d9c10d33f0a49423fc2b4d976 (diff) | |
download | opie-277ec30e2807c7bd6bdc9efdb086e9c72c3741e9.zip opie-277ec30e2807c7bd6bdc9efdb086e9c72c3741e9.tar.gz opie-277ec30e2807c7bd6bdc9efdb086e9c72c3741e9.tar.bz2 |
remove credits
-rw-r--r-- | noncore/games/buzzword/buzzword.cpp | 7 | ||||
-rw-r--r-- | noncore/games/buzzword/buzzword.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/noncore/games/buzzword/buzzword.cpp b/noncore/games/buzzword/buzzword.cpp index 324b5bd..b870a59 100644 --- a/noncore/games/buzzword/buzzword.cpp +++ b/noncore/games/buzzword/buzzword.cpp | |||
@@ -70,18 +70,16 @@ void BuzzItem::flip() | |||
70 | 70 | ||
71 | BuzzWord::BuzzWord() : QMainWindow(0) | 71 | BuzzWord::BuzzWord() : QMainWindow(0) |
72 | { | 72 | { |
73 | setCaption(tr("buZzword")); | 73 | setCaption(tr("buZzword")); |
74 | 74 | ||
75 | menu = menuBar(); | 75 | menu = menuBar(); |
76 | game = new QPopupMenu; | 76 | game = new QPopupMenu; |
77 | game->insertItem(tr("&New game"), this, SLOT(newGame()), Key_N ); | 77 | game->insertItem(tr("&New game"), this, SLOT(newGame()), Key_N ); |
78 | game->insertSeparator(); | ||
79 | game->insertItem(tr("&About"), this, SLOT(about())); | ||
80 | menu->insertItem( tr("&Game"), game ); | 78 | menu->insertItem( tr("&Game"), game ); |
81 | 79 | ||
82 | gridVal = 4; | 80 | gridVal = 4; |
83 | grid = NULL; | 81 | grid = NULL; |
84 | gameOver = false; | 82 | gameOver = false; |
85 | newGame(); | 83 | newGame(); |
86 | } | 84 | } |
87 | 85 | ||
@@ -170,20 +168,15 @@ void BuzzWord::clicked(int row, int column) | |||
170 | } | 168 | } |
171 | 169 | ||
172 | void BuzzWord::bingo() | 170 | void BuzzWord::bingo() |
173 | { | 171 | { |
174 | gameOver = true; | 172 | gameOver = true; |
175 | QMessageBox::information( this, "BUZZWORD", tr("<h1><b>BINGO !</b></h1>")); | 173 | QMessageBox::information( this, "BUZZWORD", tr("<h1><b>BINGO !</b></h1>")); |
176 | } | 174 | } |
177 | 175 | ||
178 | void BuzzWord::about() | ||
179 | { | ||
180 | QMessageBox::information( this, "About", "buZzword 1.0\n(c) 2002 Martin Imobersteg\n\nThis program is distributed\nunder the terms of the GPL v2." ); | ||
181 | } | ||
182 | |||
183 | void BuzzWord::newGame() | 176 | void BuzzWord::newGame() |
184 | { | 177 | { |
185 | gameOver = false; | 178 | gameOver = false; |
186 | delete grid; | 179 | delete grid; |
187 | drawGrid(); | 180 | drawGrid(); |
188 | setCentralWidget(grid); | 181 | setCentralWidget(grid); |
189 | } | 182 | } |
diff --git a/noncore/games/buzzword/buzzword.h b/noncore/games/buzzword/buzzword.h index 2e00563..37dd5b4 100644 --- a/noncore/games/buzzword/buzzword.h +++ b/noncore/games/buzzword/buzzword.h | |||
@@ -75,15 +75,14 @@ private: | |||
75 | QPopupMenu *game; | 75 | QPopupMenu *game; |
76 | QGrid *grid; | 76 | QGrid *grid; |
77 | 77 | ||
78 | int gridVal; | 78 | int gridVal; |
79 | int map[4][4]; | 79 | int map[4][4]; |
80 | bool gameOver; | 80 | bool gameOver; |
81 | 81 | ||
82 | public slots: | 82 | public slots: |
83 | void about(); | ||
84 | void newGame(); | 83 | void newGame(); |
85 | void clicked(int row, int column); | 84 | void clicked(int row, int column); |
86 | 85 | ||
87 | }; | 86 | }; |
88 | 87 | ||
89 | #endif | 88 | #endif |