author | ar <ar> | 2004-02-14 16:06:45 (UTC) |
---|---|---|
committer | ar <ar> | 2004-02-14 16:06:45 (UTC) |
commit | 1ab6282d6869ca200133a0e47323ae9a760b3400 (patch) (unidiff) | |
tree | a7f2b4fb6f34edb4b50f00b12cf649b9cf59b8ca /noncore | |
parent | c7cf5faa7f1512fa48fb298a75902d4557bc9cfa (diff) | |
download | opie-1ab6282d6869ca200133a0e47323ae9a760b3400.zip opie-1ab6282d6869ca200133a0e47323ae9a760b3400.tar.gz opie-1ab6282d6869ca200133a0e47323ae9a760b3400.tar.bz2 |
improve support for BigScreen
-rw-r--r-- | noncore/games/backgammon/aidialog.cpp | 3 | ||||
-rw-r--r-- | noncore/games/backgammon/filedialog.cpp | 3 | ||||
-rw-r--r-- | noncore/games/backgammon/playerdialog.cpp | 4 | ||||
-rw-r--r-- | noncore/games/backgammon/rulesdialog.cpp | 4 | ||||
-rw-r--r-- | noncore/games/backgammon/themedialog.cpp | 2 | ||||
-rw-r--r-- | noncore/games/sfcave/helpwindow.cpp | 4 | ||||
-rw-r--r-- | noncore/games/tetrix/ohighscoredlg.cpp | 3 | ||||
-rw-r--r-- | noncore/games/tictac/tictac.cpp | 4 |
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,10 +1,11 @@ | |||
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 | ||
6 | AI_Dialog::AI_Dialog(QWidget* parent,const char* name,bool modal,WFlags f) | 7 | AI_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 | ||
@@ -73,13 +74,13 @@ AI_Dialog::AI_Dialog(QWidget* parent,const char* name,bool modal,WFlags f) | |||
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 | ||
83 | AI_Dialog::~AI_Dialog() | 84 | AI_Dialog::~AI_Dialog() |
84 | { | 85 | { |
85 | } | 86 | } |
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 | |||
@@ -19,13 +19,14 @@ FileDialog::FileDialog(QWidget* parent,QString header,QString extension,const ch | |||
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 | ||
28 | FileDialog::~FileDialog() | 29 | FileDialog::~FileDialog() |
29 | {} | 30 | {} |
30 | 31 | ||
31 | 32 | ||
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,10 +1,12 @@ | |||
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 | |||
5 | PlayerDialog::PlayerDialog(QWidget* parent,const char* name,bool modal,WFlags f) | 7 | PlayerDialog::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"); |
@@ -28,13 +30,13 @@ PlayerDialog::PlayerDialog(QWidget* parent,const char* name,bool modal,WFlags f) | |||
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 | ||
37 | PlayerDialog::~PlayerDialog() | 39 | PlayerDialog::~PlayerDialog() |
38 | {} | 40 | {} |
39 | 41 | ||
40 | 42 | ||
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,11 +1,13 @@ | |||
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 | |||
6 | RulesDialog::RulesDialog(QWidget* parent,const char* name,bool modal,WFlags f) | 8 | RulesDialog::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); |
@@ -29,13 +31,13 @@ RulesDialog::RulesDialog(QWidget* parent,const char* name,bool modal,WFlags f) | |||
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 | ||
39 | RulesDialog::~RulesDialog() | 41 | RulesDialog::~RulesDialog() |
40 | { | 42 | { |
41 | } | 43 | } |
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 | |||
@@ -56,13 +56,13 @@ ThemeDialog::ThemeDialog(QWidget* parent,const char* name,bool modal,WFlags f) | |||
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 | ||
65 | ThemeDialog::~ThemeDialog() | 65 | ThemeDialog::~ThemeDialog() |
66 | {} | 66 | {} |
67 | 67 | ||
68 | 68 | ||
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 | |||
@@ -17,12 +17,14 @@ | |||
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> " \ |
@@ -68,12 +70,12 @@ HelpWindow::HelpWindow( QWidget *parent, const char *name, bool modal, WFlags fl | |||
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 | ||
77 | HelpWindow::~HelpWindow() | 79 | HelpWindow::~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 | |||
@@ -14,12 +14,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> |
@@ -166,13 +167,13 @@ OHighscoreDialog::OHighscoreDialog(OHighscore *highscore, QWidget *parent, const | |||
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 | ||
175 | void OHighscoreDialog::createHighscoreListView() | 176 | void OHighscoreDialog::createHighscoreListView() |
176 | { | 177 | { |
177 | int pos = 10; | 178 | int pos = 10; |
178 | int points_ = 0; | 179 | int points_ = 0; |
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 | |||
@@ -60,13 +60,13 @@ void TicTacButton::drawButtonLabel( QPainter *p ) | |||
60 | // signal of all buttons to the "buttonClicked()" slot. | 60 | // signal of all buttons to the "buttonClicked()" slot. |
61 | // | 61 | // |
62 | 62 | ||
63 | TicTacGameBoard::TicTacGameBoard( int n, QWidget *parent, const char *name ) | 63 | TicTacGameBoard::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 |
@@ -330,13 +330,13 @@ TicTacToe::TicTacToe( QWidget *parent, const char *name, WFlags fl ) | |||
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 |