summaryrefslogtreecommitdiff
path: root/noncore
authorar <ar>2004-02-14 16:06:45 (UTC)
committer ar <ar>2004-02-14 16:06:45 (UTC)
commit1ab6282d6869ca200133a0e47323ae9a760b3400 (patch) (unidiff)
treea7f2b4fb6f34edb4b50f00b12cf649b9cf59b8ca /noncore
parentc7cf5faa7f1512fa48fb298a75902d4557bc9cfa (diff)
downloadopie-1ab6282d6869ca200133a0e47323ae9a760b3400.zip
opie-1ab6282d6869ca200133a0e47323ae9a760b3400.tar.gz
opie-1ab6282d6869ca200133a0e47323ae9a760b3400.tar.bz2
improve support for BigScreen
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/backgammon/aidialog.cpp3
-rw-r--r--noncore/games/backgammon/filedialog.cpp3
-rw-r--r--noncore/games/backgammon/playerdialog.cpp4
-rw-r--r--noncore/games/backgammon/rulesdialog.cpp4
-rw-r--r--noncore/games/backgammon/themedialog.cpp2
-rw-r--r--noncore/games/sfcave/helpwindow.cpp4
-rw-r--r--noncore/games/tetrix/ohighscoredlg.cpp3
-rw-r--r--noncore/games/tictac/tictac.cpp4
8 files changed, 18 insertions, 9 deletions
diff --git a/noncore/games/backgammon/aidialog.cpp b/noncore/games/backgammon/aidialog.cpp
index 7dfe403..32e9b52 100644
--- a/noncore/games/backgammon/aidialog.cpp
+++ b/noncore/games/backgammon/aidialog.cpp
@@ -1,16 +1,17 @@
1#include "aidialog.h" 1#include "aidialog.h"
2 2
3#include <qgroupbox.h> 3#include <qgroupbox.h>
4 4
5#include <qpe/qpeapplication.h>
5 6
6AI_Dialog::AI_Dialog(QWidget* parent,const char* name,bool modal,WFlags f) 7AI_Dialog::AI_Dialog(QWidget* parent,const char* name,bool modal,WFlags f)
7 : QDialog(parent,name,modal,f) 8 : QDialog(parent,name,modal,f)
8{ 9{
9 setCaption("AI Configuration"); 10 setCaption("AI Configuration");
10 11
11 QGroupBox* settings=new QGroupBox(tr( "Settings" ),this); 12 QGroupBox* settings=new QGroupBox(tr( "Settings" ),this);
12 settings->setGeometry(10,5,220,170); 13 settings->setGeometry(10,5,220,170);
13 14
14 QLabel* rescue_label=new QLabel(tr( "<b>Rescue</b>" ),settings); 15 QLabel* rescue_label=new QLabel(tr( "<b>Rescue</b>" ),settings);
15 rescue_label->setGeometry(50,20,50,20); 16 rescue_label->setGeometry(50,20,50,20);
16 rescue=new QSpinBox(0,6,1,settings); 17 rescue=new QSpinBox(0,6,1,settings);
@@ -67,25 +68,25 @@ AI_Dialog::AI_Dialog(QWidget* parent,const char* name,bool modal,WFlags f)
67 68
68 defaultvalues=new QPushButton(tr( "Default Values" ),settings); 69 defaultvalues=new QPushButton(tr( "Default Values" ),settings);
69 defaultvalues->setGeometry(60,140,90,20); 70 defaultvalues->setGeometry(60,140,90,20);
70 connect(defaultvalues,SIGNAL(clicked()),this,SLOT(setDefaultValues())); 71 connect(defaultvalues,SIGNAL(clicked()),this,SLOT(setDefaultValues()));
71 72
72 QGroupBox* helpbox=new QGroupBox(tr( "Help" ),this); 73 QGroupBox* helpbox=new QGroupBox(tr( "Help" ),this);
73 helpbox->setGeometry(10,185,220,90); 74 helpbox->setGeometry(10,185,220,90);
74 75
75 help=new QLabel(helpbox); 76 help=new QLabel(helpbox);
76 help->setGeometry(10,15,200,65); 77 help->setGeometry(10,15,200,65);
77 78
78 setHelpText(); 79 setHelpText();
79 showMaximized(); 80 QPEApplication::showDialog( this );
80} 81}
81 82
82 83
83AI_Dialog::~AI_Dialog() 84AI_Dialog::~AI_Dialog()
84{ 85{
85} 86}
86 87
87void AI_Dialog::rescuehelp_pressed() 88void AI_Dialog::rescuehelp_pressed()
88{ 89{
89 setHelpText("rescue"); 90 setHelpText("rescue");
90} 91}
91 92
diff --git a/noncore/games/backgammon/filedialog.cpp b/noncore/games/backgammon/filedialog.cpp
index 6c858a2..a5e71c9 100644
--- a/noncore/games/backgammon/filedialog.cpp
+++ b/noncore/games/backgammon/filedialog.cpp
@@ -13,25 +13,26 @@ FileDialog::FileDialog(QWidget* parent,QString header,QString extension,const ch
13 setCaption(header); 13 setCaption(header);
14 ext=extension; 14 ext=extension;
15 dirselector=new QListView(this); 15 dirselector=new QListView(this);
16 dirselector->setGeometry(1,10,235,200); 16 dirselector->setGeometry(1,10,235,200);
17 dirselector->addColumn("Files"); 17 dirselector->addColumn("Files");
18 connect(dirselector,SIGNAL(clicked(QListViewItem*)),this,SLOT(selectorclicked(QListViewItem*))); 18 connect(dirselector,SIGNAL(clicked(QListViewItem*)),this,SLOT(selectorclicked(QListViewItem*)));
19 19
20 getCurrentDir(); 20 getCurrentDir();
21 21
22 file_name="user"; 22 file_name="user";
23 fileinput=new QLineEdit(file_name,this); 23 fileinput=new QLineEdit(file_name,this);
24 fileinput->setGeometry(1,220,235,20); 24 fileinput->setGeometry(1,220,235,20);
25 showMaximized(); 25
26 QPEApplication::showDialog( this );
26} 27}
27 28
28FileDialog::~FileDialog() 29FileDialog::~FileDialog()
29{} 30{}
30 31
31 32
32void FileDialog::selectorclicked(QListViewItem* entry) 33void FileDialog::selectorclicked(QListViewItem* entry)
33{ 34{
34 if(entry==NULL) 35 if(entry==NULL)
35 return; 36 return;
36 file_name=entry->text(0); 37 file_name=entry->text(0);
37 fileinput->setText(file_name); 38 fileinput->setText(file_name);
diff --git a/noncore/games/backgammon/playerdialog.cpp b/noncore/games/backgammon/playerdialog.cpp
index c16f202..0faf7e2 100644
--- a/noncore/games/backgammon/playerdialog.cpp
+++ b/noncore/games/backgammon/playerdialog.cpp
@@ -1,16 +1,18 @@
1#include "playerdialog.h" 1#include "playerdialog.h"
2 2
3#include <qgroupbox.h> 3#include <qgroupbox.h>
4 4
5#include <qpe/qpeapplication.h>
6
5PlayerDialog::PlayerDialog(QWidget* parent,const char* name,bool modal,WFlags f) 7PlayerDialog::PlayerDialog(QWidget* parent,const char* name,bool modal,WFlags f)
6 :QDialog(parent,name,modal,f) 8 :QDialog(parent,name,modal,f)
7{ 9{
8 auto2=false; 10 auto2=false;
9 auto2=true; 11 auto2=true;
10 setCaption("Player Settings"); 12 setCaption("Player Settings");
11 13
12 QGroupBox* player1_box=new QGroupBox("Player 1",this); 14 QGroupBox* player1_box=new QGroupBox("Player 1",this);
13 player1_box->setGeometry(10,30,220,60); 15 player1_box->setGeometry(10,30,220,60);
14 16
15 manual_button1=new QRadioButton("Human",player1_box); 17 manual_button1=new QRadioButton("Human",player1_box);
16 connect(manual_button1,SIGNAL(clicked()),this,SLOT(button_manual1())); 18 connect(manual_button1,SIGNAL(clicked()),this,SLOT(button_manual1()));
@@ -22,25 +24,25 @@ PlayerDialog::PlayerDialog(QWidget* parent,const char* name,bool modal,WFlags f)
22 24
23 QGroupBox* player2_box=new QGroupBox("Player 2",this); 25 QGroupBox* player2_box=new QGroupBox("Player 2",this);
24 player2_box->setGeometry(10,150,220,60); 26 player2_box->setGeometry(10,150,220,60);
25 27
26 manual_button2=new QRadioButton("Human",player2_box); 28 manual_button2=new QRadioButton("Human",player2_box);
27 connect(manual_button2,SIGNAL(clicked()),this,SLOT(button_manual2())); 29 connect(manual_button2,SIGNAL(clicked()),this,SLOT(button_manual2()));
28 manual_button2->setGeometry(10,20,100,20); 30 manual_button2->setGeometry(10,20,100,20);
29 auto_button2=new QRadioButton("Computer",player2_box); 31 auto_button2=new QRadioButton("Computer",player2_box);
30 connect(auto_button2,SIGNAL(clicked()),this,SLOT(button_auto2())); 32 connect(auto_button2,SIGNAL(clicked()),this,SLOT(button_auto2()));
31 auto_button2->setGeometry(110,20,100,20); 33 auto_button2->setGeometry(110,20,100,20);
32 button2_state(auto2); 34 button2_state(auto2);
33 35
34 showMaximized(); 36 QPEApplication::showDialog( this );
35} 37}
36 38
37PlayerDialog::~PlayerDialog() 39PlayerDialog::~PlayerDialog()
38{} 40{}
39 41
40 42
41void PlayerDialog::button_manual1() 43void PlayerDialog::button_manual1()
42{ 44{
43 auto1=false; 45 auto1=false;
44 button1_state(auto1); 46 button1_state(auto1);
45} 47}
46 48
diff --git a/noncore/games/backgammon/rulesdialog.cpp b/noncore/games/backgammon/rulesdialog.cpp
index 85c3db3..5e17eeb 100644
--- a/noncore/games/backgammon/rulesdialog.cpp
+++ b/noncore/games/backgammon/rulesdialog.cpp
@@ -1,17 +1,19 @@
1#include "rulesdialog.h" 1#include "rulesdialog.h"
2 2
3#include <qgroupbox.h> 3#include <qgroupbox.h>
4#include <qlabel.h> 4#include <qlabel.h>
5 5
6#include <qpe/qpeapplication.h>
7
6RulesDialog::RulesDialog(QWidget* parent,const char* name,bool modal,WFlags f) 8RulesDialog::RulesDialog(QWidget* parent,const char* name,bool modal,WFlags f)
7 : QDialog(parent,name,modal,f) 9 : QDialog(parent,name,modal,f)
8{ 10{
9 setCaption("Rules Configuration"); 11 setCaption("Rules Configuration");
10 QLabel* header=new QLabel("<b>Change the game rules here</b>",this); 12 QLabel* header=new QLabel("<b>Change the game rules here</b>",this);
11 header->setGeometry(10,10,200,20); 13 header->setGeometry(10,10,200,20);
12 14
13 // 15 //
14 QGroupBox* pieces_out_box=new QGroupBox("Movement",this); 16 QGroupBox* pieces_out_box=new QGroupBox("Movement",this);
15 pieces_out_box->setGeometry(10,10,220,120); 17 pieces_out_box->setGeometry(10,10,220,120);
16 18
17 pieces_out=new QCheckBox("Don't care about others",pieces_out_box); 19 pieces_out=new QCheckBox("Don't care about others",pieces_out_box);
@@ -23,25 +25,25 @@ RulesDialog::RulesDialog(QWidget* parent,const char* name,bool modal,WFlags f)
23 25
24 // 26 //
25 QGroupBox* nice_dice_box=new QGroupBox("Dice",this); 27 QGroupBox* nice_dice_box=new QGroupBox("Dice",this);
26 nice_dice_box->setGeometry(10,140,220,120); 28 nice_dice_box->setGeometry(10,140,220,120);
27 29
28 nice_dice=new QCheckBox("Big dice for small numbers",nice_dice_box); 30 nice_dice=new QCheckBox("Big dice for small numbers",nice_dice_box);
29 nice_dice->setGeometry(10,20,200,20); 31 nice_dice->setGeometry(10,20,200,20);
30 connect(nice_dice,SIGNAL(clicked()),this,SLOT(nice_dice_clicked())); 32 connect(nice_dice,SIGNAL(clicked()),this,SLOT(nice_dice_clicked()));
31 33
32 QLabel* nice_dice_help=new QLabel("allow to rescue pieces with dice\nvalues graeter than the distance\nto the players endzone.",nice_dice_box); 34 QLabel* nice_dice_help=new QLabel("allow to rescue pieces with dice\nvalues graeter than the distance\nto the players endzone.",nice_dice_box);
33 nice_dice_help->setGeometry(10,40,200,60); 35 nice_dice_help->setGeometry(10,40,200,60);
34 36
35 showMaximized(); 37 QPEApplication::showDialog( this );
36} 38}
37 39
38 40
39RulesDialog::~RulesDialog() 41RulesDialog::~RulesDialog()
40{ 42{
41} 43}
42 44
43void RulesDialog::pieces_out_clicked() 45void RulesDialog::pieces_out_clicked()
44{ 46{
45 if(pieces_out->isChecked()) 47 if(pieces_out->isChecked())
46 rules.move_with_pieces_out=true; 48 rules.move_with_pieces_out=true;
47 else 49 else
diff --git a/noncore/games/backgammon/themedialog.cpp b/noncore/games/backgammon/themedialog.cpp
index dcb957c..f342381 100644
--- a/noncore/games/backgammon/themedialog.cpp
+++ b/noncore/games/backgammon/themedialog.cpp
@@ -50,25 +50,25 @@ ThemeDialog::ThemeDialog(QWidget* parent,const char* name,bool modal,WFlags f)
50 labelodds->setGeometry(0,200,40,20); 50 labelodds->setGeometry(0,200,40,20);
51 boxodds=new QComboBox(this); 51 boxodds=new QComboBox(this);
52 boxodds->setGeometry(40,200,195,20); 52 boxodds->setGeometry(40,200,195,20);
53 fillBox("odds",boxodds); 53 fillBox("odds",boxodds);
54 boxodds->setEnabled(false); 54 boxodds->setEnabled(false);
55 55
56 QLabel* labeltable=new QLabel("table",this); 56 QLabel* labeltable=new QLabel("table",this);
57 labeltable->setGeometry(0,225,40,20); 57 labeltable->setGeometry(0,225,40,20);
58 boxtable=new QComboBox(this); 58 boxtable=new QComboBox(this);
59 boxtable->setGeometry(40,225,195,20); 59 boxtable->setGeometry(40,225,195,20);
60 fillBox("table",boxtable); 60 fillBox("table",boxtable);
61 61
62 showMaximized(); 62 QPEApplication::showDialog( this );
63} 63}
64 64
65ThemeDialog::~ThemeDialog() 65ThemeDialog::~ThemeDialog()
66{} 66{}
67 67
68 68
69ImageNames ThemeDialog::getNames() 69ImageNames ThemeDialog::getNames()
70{ 70{
71 ImageNames names; 71 ImageNames names;
72 names.theme=lineName->text(); 72 names.theme=lineName->text();
73 names.board=boxboard->currentText(); 73 names.board=boxboard->currentText();
74 names.pieces1=boxpiecesA->currentText(); 74 names.pieces1=boxpiecesA->currentText();
diff --git a/noncore/games/sfcave/helpwindow.cpp b/noncore/games/sfcave/helpwindow.cpp
index c920312..544e237 100644
--- a/noncore/games/sfcave/helpwindow.cpp
+++ b/noncore/games/sfcave/helpwindow.cpp
@@ -11,24 +11,26 @@
11 * This program is free software; you can redistribute it and/or modify * 11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. * 14 * (at your option) any later version. *
15 * * 15 * *
16 ***************************************************************************/ 16 ***************************************************************************/
17 17
18#include <qwidget.h> 18#include <qwidget.h>
19#include <qlayout.h> 19#include <qlayout.h>
20#include <qstring.h> 20#include <qstring.h>
21#include <qtextview.h> 21#include <qtextview.h>
22 22
23#include <qpe/qpeapplication.h>
24
23#include "helpwindow.h" 25#include "helpwindow.h"
24 26
25 27
26#define HELP_TEXT \ 28#define HELP_TEXT \
27"<qt><h1>SFCave Help</h1><p> " \ 29"<qt><h1>SFCave Help</h1><p> " \
28"SFCave is a flying game for the Zaurus.<br><br> " \ 30"SFCave is a flying game for the Zaurus.<br><br> " \
29"The aim is to stay alive for as long as possible and get the highest score " \ 31"The aim is to stay alive for as long as possible and get the highest score " \
30"you can.<br><br>" \ 32"you can.<br><br>" \
31"There are three game types currently - SFCave, Gates, and Fly.<br>" \ 33"There are three game types currently - SFCave, Gates, and Fly.<br>" \
32"<b>SFCave</b> is a remake of the classic SFCave game - fly through the " \ 34"<b>SFCave</b> is a remake of the classic SFCave game - fly through the " \
33"cavern avoiding all the blocks that just happen to be hanging in " \ 35"cavern avoiding all the blocks that just happen to be hanging in " \
34"midair<br><br>" \ 36"midair<br><br>" \
@@ -62,18 +64,18 @@ HelpWindow::HelpWindow( QWidget *parent, const char *name, bool modal, WFlags fl
62{ 64{
63// resize( 230, 280 ); 65// resize( 230, 280 );
64 66
65 setCaption( "Help for SFCave" ); 67 setCaption( "Help for SFCave" );
66 68
67 QVBoxLayout *layout = new QVBoxLayout( this ); 69 QVBoxLayout *layout = new QVBoxLayout( this );
68 QString text = HELP_TEXT;; 70 QString text = HELP_TEXT;;
69 QTextView *view = new QTextView( text, 0, this, "view" ); 71 QTextView *view = new QTextView( text, 0, this, "view" );
70 layout->insertSpacing( -1, 5 ); 72 layout->insertSpacing( -1, 5 );
71 layout->insertWidget( -1, view ); 73 layout->insertWidget( -1, view );
72 layout->insertSpacing( -1, 5 ); 74 layout->insertSpacing( -1, 5 );
73 75
74 showMaximized(); 76 QPEApplication::showDialog( this );
75} 77}
76 78
77HelpWindow::~HelpWindow() 79HelpWindow::~HelpWindow()
78{ 80{
79} 81}
diff --git a/noncore/games/tetrix/ohighscoredlg.cpp b/noncore/games/tetrix/ohighscoredlg.cpp
index cf0dcf7..7581f51 100644
--- a/noncore/games/tetrix/ohighscoredlg.cpp
+++ b/noncore/games/tetrix/ohighscoredlg.cpp
@@ -8,24 +8,25 @@
8 * * 8 * *
9 * This program is free software; you can redistribute it and/or modify * 9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by * 10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or * 11 * the Free Software Foundation; either version 2 of the License, or *
12 * ( at your option ) any later version. * 12 * ( at your option ) any later version. *
13 * * 13 * *
14 **************************************************************************/ 14 **************************************************************************/
15 15
16#include <qdialog.h> 16#include <qdialog.h>
17#include <qpe/config.h> 17#include <qpe/config.h>
18#include <qlayout.h> 18#include <qlayout.h>
19#include <qpe/config.h> 19#include <qpe/config.h>
20#include <qpe/qpeapplication.h>
20 21
21#include <qstring.h> 22#include <qstring.h>
22#include <qhbox.h> 23#include <qhbox.h>
23#include <qvbox.h> 24#include <qvbox.h>
24#include <qlabel.h> 25#include <qlabel.h>
25#include <qlistview.h> 26#include <qlistview.h>
26#include <qlineedit.h> 27#include <qlineedit.h>
27 28
28#include "ohighscoredlg.h" 29#include "ohighscoredlg.h"
29 30
30OHighscore::OHighscore( int score , int playerLevel ) 31OHighscore::OHighscore( int score , int playerLevel )
31{ 32{
@@ -160,25 +161,25 @@ OHighscoreDialog::OHighscoreDialog(OHighscore *highscore, QWidget *parent, const
160 setCaption( tr( "Highscores" ) ); 161 setCaption( tr( "Highscores" ) );
161 vbox_layout = new QVBoxLayout( this, 4 , 4 ); 162 vbox_layout = new QVBoxLayout( this, 4 , 4 );
162 list = new QListView( this ); 163 list = new QListView( this );
163 list->setSorting( -1 ); 164 list->setSorting( -1 );
164 list->addColumn( tr( "#" )); 165 list->addColumn( tr( "#" ));
165 list->addColumn( tr( "Name" )); 166 list->addColumn( tr( "Name" ));
166 list->addColumn( tr( "Points" )); 167 list->addColumn( tr( "Points" ));
167 list->addColumn( tr( "Level" )); 168 list->addColumn( tr( "Level" ));
168 169
169 createHighscoreListView(); 170 createHighscoreListView();
170 171
171 vbox_layout->addWidget( list ); 172 vbox_layout->addWidget( list );
172 showMaximized(); 173 QPEApplication::showDialog( this );
173} 174}
174 175
175void OHighscoreDialog::createHighscoreListView() 176void OHighscoreDialog::createHighscoreListView()
176{ 177{
177 int pos = 10; 178 int pos = 10;
178 int points_ = 0; 179 int points_ = 0;
179 int level_ = 0; 180 int level_ = 0;
180 181
181 std::list<t_playerData*>::reverse_iterator iListe = hs_->playerData.rbegin(); 182 std::list<t_playerData*>::reverse_iterator iListe = hs_->playerData.rbegin();
182 183
183 for ( ; iListe != hs_->playerData.rend() ; ++iListe ) 184 for ( ; iListe != hs_->playerData.rend() ; ++iListe )
184 { 185 {
diff --git a/noncore/games/tictac/tictac.cpp b/noncore/games/tictac/tictac.cpp
index 4954ba4..9de3b58 100644
--- a/noncore/games/tictac/tictac.cpp
+++ b/noncore/games/tictac/tictac.cpp
@@ -54,25 +54,25 @@ void TicTacButton::drawButtonLabel( QPainter *p )
54//*************************************************************************** 54//***************************************************************************
55//* TicTacGameBoard member functions 55//* TicTacGameBoard member functions
56//*************************************************************************** 56//***************************************************************************
57 57
58// -------------------------------------------------------------------------- 58// --------------------------------------------------------------------------
59// Creates a game board with N x N buttons and connects the "clicked()" 59// Creates a game board with N x N buttons and connects the "clicked()"
60// signal of all buttons to the "buttonClicked()" slot. 60// signal of all buttons to the "buttonClicked()" slot.
61// 61//
62 62
63TicTacGameBoard::TicTacGameBoard( int n, QWidget *parent, const char *name ) 63TicTacGameBoard::TicTacGameBoard( int n, QWidget *parent, const char *name )
64 : QWidget( parent, name ) 64 : QWidget( parent, name )
65{ 65{
66 showMaximized(); 66 QPEApplication::showWidget( this );
67 st = Init; // initial state 67 st = Init; // initial state
68 nBoard = n; 68 nBoard = n;
69 n *= n; // make square 69 n *= n; // make square
70 comp_starts = FALSE; // human starts 70 comp_starts = FALSE; // human starts
71 buttons = new TicTacButtons(n); // create real buttons 71 buttons = new TicTacButtons(n); // create real buttons
72 btArray = new TicTacArray(n); // create button model 72 btArray = new TicTacArray(n); // create button model
73 QGridLayout * grid = new QGridLayout( this, 3, 3, 4 ); 73 QGridLayout * grid = new QGridLayout( this, 3, 3, 4 );
74 QPalette p( blue ); 74 QPalette p( blue );
75 for ( int i=0; i<n; i++ ) { // create and connect buttons 75 for ( int i=0; i<n; i++ ) { // create and connect buttons
76 TicTacButton *ttb = new TicTacButton( this ); 76 TicTacButton *ttb = new TicTacButton( this );
77 ttb->setPalette( p ); 77 ttb->setPalette( p );
78 ttb->setEnabled( FALSE ); 78 ttb->setEnabled( FALSE );
@@ -324,25 +324,25 @@ TicTacToe::TicTacToe( QWidget *parent, const char *name, WFlags fl )
324 324
325 // Create the push buttons and connect their clicked() signals 325 // Create the push buttons and connect their clicked() signals
326 // to this right slots. 326 // to this right slots.
327 327
328 newGame = new QPushButton( tr( "Play!" ), this ); 328 newGame = new QPushButton( tr( "Play!" ), this );
329 connect( newGame, SIGNAL(clicked()), SLOT(newGameClicked()) ); 329 connect( newGame, SIGNAL(clicked()), SLOT(newGameClicked()) );
330 quit = new QPushButton( tr( "Quit" ), this ); 330 quit = new QPushButton( tr( "Quit" ), this );
331 connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); 331 connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
332 QHBoxLayout * b = new QHBoxLayout; 332 QHBoxLayout * b = new QHBoxLayout;
333 l->addLayout( b ); 333 l->addLayout( b );
334 b->addWidget( newGame ); 334 b->addWidget( newGame );
335 b->addWidget( quit ); 335 b->addWidget( quit );
336 showMaximized(); 336 QPEApplication::showWidget( this );
337 newState(); 337 newState();
338} 338}
339 339
340 340
341// -------------------------------------------------------------------------- 341// --------------------------------------------------------------------------
342// TicTacToe::newGameClicked() - SLOT 342// TicTacToe::newGameClicked() - SLOT
343// 343//
344// This slot is activated when the new game button is clicked. 344// This slot is activated when the new game button is clicked.
345// 345//
346 346
347void TicTacToe::newGameClicked() 347void TicTacToe::newGameClicked()
348{ 348{