Diffstat (limited to 'noncore/games/backgammon/rulesdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/backgammon/rulesdialog.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/noncore/games/backgammon/rulesdialog.h b/noncore/games/backgammon/rulesdialog.h new file mode 100644 index 0000000..9269a0e --- a/dev/null +++ b/noncore/games/backgammon/rulesdialog.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef RULESDIALOG_H_ | ||
2 | #define RULESDIALOG_H_ | ||
3 | |||
4 | #include <qcheckbox.h> | ||
5 | #include <qdialog.h> | ||
6 | #include "definition.h" | ||
7 | |||
8 | |||
9 | class RulesDialog : public QDialog | ||
10 | { | ||
11 | Q_OBJECT | ||
12 | private: | ||
13 | QCheckBox* pieces_out; | ||
14 | QCheckBox* nice_dice; | ||
15 | Rules rules; | ||
16 | public: | ||
17 | RulesDialog(QWidget* parent=0,const char* name=0,bool modal=TRUE,WFlags f=0); | ||
18 | ~RulesDialog(); | ||
19 | private slots: | ||
20 | void pieces_out_clicked(); | ||
21 | void nice_dice_clicked(); | ||
22 | public: | ||
23 | void setRules(const Rules& new_rules); | ||
24 | Rules getRules(); | ||
25 | }; | ||
26 | |||
27 | #endif //RULESDIALOG_H | ||