author | waspe <waspe> | 2003-03-30 11:30:54 (UTC) |
---|---|---|
committer | waspe <waspe> | 2003-03-30 11:30:54 (UTC) |
commit | 3065a1c13bec5d0b101bec48ff666d45a02ce8a6 (patch) (unidiff) | |
tree | f8fe8d3eba81ef4e371c12f530be9cd4debc895b /noncore/games/backgammon/playerdialog.h | |
parent | 87ba3646367397e149979a8477a33239cb341e99 (diff) | |
download | opie-3065a1c13bec5d0b101bec48ff666d45a02ce8a6.zip opie-3065a1c13bec5d0b101bec48ff666d45a02ce8a6.tar.gz opie-3065a1c13bec5d0b101bec48ff666d45a02ce8a6.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'noncore/games/backgammon/playerdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/backgammon/playerdialog.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/noncore/games/backgammon/playerdialog.h b/noncore/games/backgammon/playerdialog.h new file mode 100644 index 0000000..8fccaa7 --- a/dev/null +++ b/noncore/games/backgammon/playerdialog.h | |||
@@ -0,0 +1,35 @@ | |||
1 | #ifndef PLAYERDIALOG_H | ||
2 | #define PLAYERDIALOG_H | ||
3 | |||
4 | #include <qradiobutton.h> | ||
5 | #include <qdialog.h> | ||
6 | |||
7 | class PlayerDialog : public QDialog | ||
8 | { | ||
9 | Q_OBJECT | ||
10 | private: | ||
11 | bool auto1; | ||
12 | bool auto2; | ||
13 | QRadioButton* manual_button1; | ||
14 | QRadioButton* auto_button1; | ||
15 | QRadioButton* manual_button2; | ||
16 | QRadioButton* auto_button2; | ||
17 | public: | ||
18 | PlayerDialog(QWidget* parent=0,const char* name=0,bool modal=TRUE,WFlags f=0); | ||
19 | ~PlayerDialog(); | ||
20 | private slots: | ||
21 | void button_manual1(); | ||
22 | void button_auto1(); | ||
23 | void button_manual2(); | ||
24 | void button_auto2(); | ||
25 | private: | ||
26 | void button1_state(bool computer); | ||
27 | void button2_state(bool computer); | ||
28 | public: | ||
29 | void setAuto1(bool newstate); | ||
30 | bool getAuto1(); | ||
31 | void setAuto2(bool newstate); | ||
32 | bool getAuto2(); | ||
33 | }; | ||
34 | |||
35 | #endif //PLAYERDIALOG_H | ||