summaryrefslogtreecommitdiff
authorar <ar>2004-02-14 16:06:45 (UTC)
committer ar <ar>2004-02-14 16:06:45 (UTC)
commit1ab6282d6869ca200133a0e47323ae9a760b3400 (patch) (side-by-side diff)
treea7f2b4fb6f34edb4b50f00b12cf649b9cf59b8ca
parentc7cf5faa7f1512fa48fb298a75902d4557bc9cfa (diff)
downloadopie-1ab6282d6869ca200133a0e47323ae9a760b3400.zip
opie-1ab6282d6869ca200133a0e47323ae9a760b3400.tar.gz
opie-1ab6282d6869ca200133a0e47323ae9a760b3400.tar.bz2
improve support for BigScreen
Diffstat (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,10 +1,11 @@
#include "aidialog.h"
#include <qgroupbox.h>
+#include <qpe/qpeapplication.h>
AI_Dialog::AI_Dialog(QWidget* parent,const char* name,bool modal,WFlags f)
: QDialog(parent,name,modal,f)
{
setCaption("AI Configuration");
@@ -73,13 +74,13 @@ AI_Dialog::AI_Dialog(QWidget* parent,const char* name,bool modal,WFlags f)
helpbox->setGeometry(10,185,220,90);
help=new QLabel(helpbox);
help->setGeometry(10,15,200,65);
setHelpText();
- showMaximized();
+ QPEApplication::showDialog( this );
}
AI_Dialog::~AI_Dialog()
{
}
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
getCurrentDir();
file_name="user";
fileinput=new QLineEdit(file_name,this);
fileinput->setGeometry(1,220,235,20);
- showMaximized();
+
+ QPEApplication::showDialog( this );
}
FileDialog::~FileDialog()
{}
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 @@
#include "playerdialog.h"
#include <qgroupbox.h>
+#include <qpe/qpeapplication.h>
+
PlayerDialog::PlayerDialog(QWidget* parent,const char* name,bool modal,WFlags f)
:QDialog(parent,name,modal,f)
{
auto2=false;
auto2=true;
setCaption("Player Settings");
@@ -28,13 +30,13 @@ PlayerDialog::PlayerDialog(QWidget* parent,const char* name,bool modal,WFlags f)
manual_button2->setGeometry(10,20,100,20);
auto_button2=new QRadioButton("Computer",player2_box);
connect(auto_button2,SIGNAL(clicked()),this,SLOT(button_auto2()));
auto_button2->setGeometry(110,20,100,20);
button2_state(auto2);
- showMaximized();
+ QPEApplication::showDialog( this );
}
PlayerDialog::~PlayerDialog()
{}
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 @@
#include "rulesdialog.h"
#include <qgroupbox.h>
#include <qlabel.h>
+#include <qpe/qpeapplication.h>
+
RulesDialog::RulesDialog(QWidget* parent,const char* name,bool modal,WFlags f)
: QDialog(parent,name,modal,f)
{
setCaption("Rules Configuration");
QLabel* header=new QLabel("<b>Change the game rules here</b>",this);
header->setGeometry(10,10,200,20);
@@ -29,13 +31,13 @@ RulesDialog::RulesDialog(QWidget* parent,const char* name,bool modal,WFlags f)
nice_dice->setGeometry(10,20,200,20);
connect(nice_dice,SIGNAL(clicked()),this,SLOT(nice_dice_clicked()));
QLabel* nice_dice_help=new QLabel("allow to rescue pieces with dice\nvalues graeter than the distance\nto the players endzone.",nice_dice_box);
nice_dice_help->setGeometry(10,40,200,60);
- showMaximized();
+ QPEApplication::showDialog( this );
}
RulesDialog::~RulesDialog()
{
}
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)
QLabel* labeltable=new QLabel("table",this);
labeltable->setGeometry(0,225,40,20);
boxtable=new QComboBox(this);
boxtable->setGeometry(40,225,195,20);
fillBox("table",boxtable);
- showMaximized();
+ QPEApplication::showDialog( this );
}
ThemeDialog::~ThemeDialog()
{}
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 @@
#include <qwidget.h>
#include <qlayout.h>
#include <qstring.h>
#include <qtextview.h>
+#include <qpe/qpeapplication.h>
+
#include "helpwindow.h"
#define HELP_TEXT \
"<qt><h1>SFCave Help</h1><p> " \
"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
QString text = HELP_TEXT;;
QTextView *view = new QTextView( text, 0, this, "view" );
layout->insertSpacing( -1, 5 );
layout->insertWidget( -1, view );
layout->insertSpacing( -1, 5 );
- showMaximized();
+ QPEApplication::showDialog( this );
}
HelpWindow::~HelpWindow()
{
}
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 @@
**************************************************************************/
#include <qdialog.h>
#include <qpe/config.h>
#include <qlayout.h>
#include <qpe/config.h>
+#include <qpe/qpeapplication.h>
#include <qstring.h>
#include <qhbox.h>
#include <qvbox.h>
#include <qlabel.h>
#include <qlistview.h>
@@ -166,13 +167,13 @@ OHighscoreDialog::OHighscoreDialog(OHighscore *highscore, QWidget *parent, const
list->addColumn( tr( "Points" ));
list->addColumn( tr( "Level" ));
createHighscoreListView();
vbox_layout->addWidget( list );
- showMaximized();
+ QPEApplication::showDialog( this );
}
void OHighscoreDialog::createHighscoreListView()
{
int pos = 10;
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 )
// signal of all buttons to the "buttonClicked()" slot.
//
TicTacGameBoard::TicTacGameBoard( int n, QWidget *parent, const char *name )
: QWidget( parent, name )
{
- showMaximized();
+ QPEApplication::showWidget( this );
st = Init; // initial state
nBoard = n;
n *= n; // make square
comp_starts = FALSE; // human starts
buttons = new TicTacButtons(n); // create real buttons
btArray = new TicTacArray(n); // create button model
@@ -330,13 +330,13 @@ TicTacToe::TicTacToe( QWidget *parent, const char *name, WFlags fl )
quit = new QPushButton( tr( "Quit" ), this );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
QHBoxLayout * b = new QHBoxLayout;
l->addLayout( b );
b->addWidget( newGame );
b->addWidget( quit );
- showMaximized();
+ QPEApplication::showWidget( this );
newState();
}
// --------------------------------------------------------------------------
// TicTacToe::newGameClicked() - SLOT