author | schurig <schurig> | 2004-09-13 13:54:56 (UTC) |
---|---|---|
committer | schurig <schurig> | 2004-09-13 13:54:56 (UTC) |
commit | 5880f51e9d6a4ad2c670f7679e874fc0610d850a (patch) (unidiff) | |
tree | 50f251b078dc63588f0a521e9ccea014dabc0ca7 | |
parent | 79c99fb1b7317ad104e3b54bcbcf726f6413e8be (diff) | |
download | opie-5880f51e9d6a4ad2c670f7679e874fc0610d850a.zip opie-5880f51e9d6a4ad2c670f7679e874fc0610d850a.tar.gz opie-5880f51e9d6a4ad2c670f7679e874fc0610d850a.tar.bz2 |
Renamed 'Mine Hunt' to 'Mine Sweep', both in title and icon name
-rw-r--r-- | apps/Games/minesweep.desktop | 2 | ||||
-rw-r--r-- | noncore/games/minesweep/minesweep.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/Games/minesweep.desktop b/apps/Games/minesweep.desktop index 3a74b46..b630647 100644 --- a/apps/Games/minesweep.desktop +++ b/apps/Games/minesweep.desktop | |||
@@ -1,27 +1,27 @@ | |||
1 | [Desktop Entry] | 1 | [Desktop Entry] |
2 | Exec=minesweep | 2 | Exec=minesweep |
3 | Icon=minesweep/MineHunt | 3 | Icon=minesweep/MineSweep |
4 | Type=Application | 4 | Type=Application |
5 | Name=Mine Hunt | 5 | Name=Mine Hunt |
6 | Comment=Find the mines | 6 | Comment=Find the mines |
7 | Name[fr]=Démineur | 7 | Name[fr]=Démineur |
8 | Comment[fr]=Jeu de déminage | 8 | Comment[fr]=Jeu de déminage |
9 | Name[de]=Minenjagd | 9 | Name[de]=Minenjagd |
10 | Comment[de]=Finde die Minen | 10 | Comment[de]=Finde die Minen |
11 | Name[es]=Busca Minas | 11 | Name[es]=Busca Minas |
12 | Comment[es]=Busca las minas | 12 | Comment[es]=Busca las minas |
13 | Name[fr]=Démineur | 13 | Name[fr]=Démineur |
14 | Name[hu]=Aknakeresõ | 14 | Name[hu]=Aknakeresõ |
15 | Name[it]=Campo Minato | 15 | Name[it]=Campo Minato |
16 | Comment[it]=Campo Minato | 16 | Comment[it]=Campo Minato |
17 | Name[no]=Minesøk | 17 | Name[no]=Minesøk |
18 | Name[pt]=Minas | 18 | Name[pt]=Minas |
19 | Comment[pt]=Procura as minas | 19 | Comment[pt]=Procura as minas |
20 | Name[pt_BR]=Caça-Minas | 20 | Name[pt_BR]=Caça-Minas |
21 | Comment[pt_BR]=Caça as minas | 21 | Comment[pt_BR]=Caça as minas |
22 | Name[zh_TW]=踩地雷 | 22 | Name[zh_TW]=踩地雷 |
23 | Name[sl]=Minolovec | 23 | Name[sl]=Minolovec |
24 | Comment[sl]=Najdi mine | 24 | Comment[sl]=Najdi mine |
25 | Name[nl]=Mijnenveger | 25 | Name[nl]=Mijnenveger |
26 | Name[ru]=Сапер | 26 | Name[ru]=Сапер |
27 | Comment[ru]=Отыщите мины | 27 | Comment[ru]=Отыщите мины |
diff --git a/noncore/games/minesweep/minesweep.cpp b/noncore/games/minesweep/minesweep.cpp index 4a6a92c..c14609d 100644 --- a/noncore/games/minesweep/minesweep.cpp +++ b/noncore/games/minesweep/minesweep.cpp | |||
@@ -211,67 +211,67 @@ void ResultIndicator::timerEvent( QTimerEvent *te ) | |||
211 | twoStage = FALSE; | 211 | twoStage = FALSE; |
212 | timerId = startTimer( 1000 ); | 212 | timerId = startTimer( 1000 ); |
213 | } else { | 213 | } else { |
214 | delete this; | 214 | delete this; |
215 | } | 215 | } |
216 | } | 216 | } |
217 | 217 | ||
218 | 218 | ||
219 | class MineFrame : public QFrame | 219 | class MineFrame : public QFrame |
220 | { | 220 | { |
221 | public: | 221 | public: |
222 | MineFrame( QWidget *parent, const char *name = 0 ) | 222 | MineFrame( QWidget *parent, const char *name = 0 ) |
223 | :QFrame( parent, name ), field(0) {} | 223 | :QFrame( parent, name ), field(0) {} |
224 | void setField( MineField *f ) { | 224 | void setField( MineField *f ) { |
225 | field = f; | 225 | field = f; |
226 | setMinimumSize( field->sizeHint() ); | 226 | setMinimumSize( field->sizeHint() ); |
227 | } | 227 | } |
228 | protected: | 228 | protected: |
229 | void resizeEvent( QResizeEvent *e ) { | 229 | void resizeEvent( QResizeEvent *e ) { |
230 | field->setAvailableRect( contentsRect()); | 230 | field->setAvailableRect( contentsRect()); |
231 | QFrame::resizeEvent(e); | 231 | QFrame::resizeEvent(e); |
232 | } | 232 | } |
233 | private: | 233 | private: |
234 | MineField *field; | 234 | MineField *field; |
235 | }; | 235 | }; |
236 | 236 | ||
237 | 237 | ||
238 | 238 | ||
239 | MineSweep::MineSweep( QWidget* parent, const char* name, WFlags f ) | 239 | MineSweep::MineSweep( QWidget* parent, const char* name, WFlags f ) |
240 | : QMainWindow( parent, name, f ) | 240 | : QMainWindow( parent, name, f ) |
241 | { | 241 | { |
242 | srand(::time(0)); | 242 | srand(::time(0)); |
243 | setCaption( tr("Mine Hunt") ); | 243 | setCaption( tr("Mine Sweep") ); |
244 | QPEApplication::setInputMethodHint(this, QPEApplication::AlwaysOff ); | 244 | QPEApplication::setInputMethodHint(this, QPEApplication::AlwaysOff ); |
245 | setIcon( Resource::loadPixmap( "minesweep/MineHunt" ) ); | 245 | setIcon( Resource::loadPixmap( "minesweep/MineSweep" ) ); |
246 | 246 | ||
247 | QToolBar *toolBar = new QToolBar( this ); | 247 | QToolBar *toolBar = new QToolBar( this ); |
248 | toolBar->setHorizontalStretchable( TRUE ); | 248 | toolBar->setHorizontalStretchable( TRUE ); |
249 | 249 | ||
250 | QMenuBar *menuBar = new QMenuBar( toolBar ); | 250 | QMenuBar *menuBar = new QMenuBar( toolBar ); |
251 | 251 | ||
252 | QPopupMenu *gameMenu = new QPopupMenu( this ); | 252 | QPopupMenu *gameMenu = new QPopupMenu( this ); |
253 | gameMenu->insertItem( tr("Beginner"), this, SLOT( beginner() ) ); | 253 | gameMenu->insertItem( tr("Beginner"), this, SLOT( beginner() ) ); |
254 | gameMenu->insertItem( tr("Advanced"), this, SLOT( advanced() ) ); | 254 | gameMenu->insertItem( tr("Advanced"), this, SLOT( advanced() ) ); |
255 | 255 | ||
256 | if (qApp->desktop()->width() >= 240) { | 256 | if (qApp->desktop()->width() >= 240) { |
257 | gameMenu->insertItem( tr("Expert"), this, SLOT( expert() ) ); | 257 | gameMenu->insertItem( tr("Expert"), this, SLOT( expert() ) ); |
258 | } | 258 | } |
259 | 259 | ||
260 | menuBar->insertItem( tr("Game"), gameMenu ); | 260 | menuBar->insertItem( tr("Game"), gameMenu ); |
261 | 261 | ||
262 | guessLCD = new QLCDNumber( toolBar ); | 262 | guessLCD = new QLCDNumber( toolBar ); |
263 | toolBar->setStretchableWidget( guessLCD ); | 263 | toolBar->setStretchableWidget( guessLCD ); |
264 | 264 | ||
265 | QPalette lcdPal( red ); | 265 | QPalette lcdPal( red ); |
266 | lcdPal.setColor( QColorGroup::Background, QApplication::palette().active().background() ); | 266 | lcdPal.setColor( QColorGroup::Background, QApplication::palette().active().background() ); |
267 | lcdPal.setColor( QColorGroup::Button, QApplication::palette().active().button() ); | 267 | lcdPal.setColor( QColorGroup::Button, QApplication::palette().active().button() ); |
268 | 268 | ||
269 | // guessLCD->setPalette( lcdPal ); | 269 | // guessLCD->setPalette( lcdPal ); |
270 | guessLCD->setSegmentStyle( QLCDNumber::Flat ); | 270 | guessLCD->setSegmentStyle( QLCDNumber::Flat ); |
271 | guessLCD->setFrameStyle( QFrame::NoFrame ); | 271 | guessLCD->setFrameStyle( QFrame::NoFrame ); |
272 | guessLCD->setNumDigits( 2 ); | 272 | guessLCD->setNumDigits( 2 ); |
273 | guessLCD->setBackgroundMode( PaletteButton ); | 273 | guessLCD->setBackgroundMode( PaletteButton ); |
274 | newGameButton = new QPushButton( toolBar ); | 274 | newGameButton = new QPushButton( toolBar ); |
275 | newGameButton->setPixmap( QPixmap( pix_new ) ); | 275 | newGameButton->setPixmap( QPixmap( pix_new ) ); |
276 | newGameButton->setFocusPolicy(QWidget::NoFocus); | 276 | newGameButton->setFocusPolicy(QWidget::NoFocus); |
277 | connect( newGameButton, SIGNAL(clicked()), this, SLOT(newGame()) ); | 277 | connect( newGameButton, SIGNAL(clicked()), this, SLOT(newGame()) ); |