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/games/backgammon/rulesdialog.cpp | |
parent | c7cf5faa7f1512fa48fb298a75902d4557bc9cfa (diff) | |
download | opie-1ab6282d6869ca200133a0e47323ae9a760b3400.zip opie-1ab6282d6869ca200133a0e47323ae9a760b3400.tar.gz opie-1ab6282d6869ca200133a0e47323ae9a760b3400.tar.bz2 |
improve support for BigScreen
Diffstat (limited to 'noncore/games/backgammon/rulesdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/backgammon/rulesdialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
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); |
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 | ||
39 | RulesDialog::~RulesDialog() | 41 | RulesDialog::~RulesDialog() |
40 | { | 42 | { |
41 | } | 43 | } |
42 | 44 | ||
43 | void RulesDialog::pieces_out_clicked() | 45 | void 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 |