Diffstat (limited to 'noncore/games/backgammon/aidialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/backgammon/aidialog.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/noncore/games/backgammon/aidialog.h b/noncore/games/backgammon/aidialog.h new file mode 100644 index 0000000..2597f8b --- a/dev/null +++ b/noncore/games/backgammon/aidialog.h | |||
@@ -0,0 +1,48 @@ | |||
1 | #ifndef AIDIALOG_H_ | ||
2 | #define AIDIALOG_H_ | ||
3 | |||
4 | #include "moveengine.h" | ||
5 | |||
6 | #include <qdialog.h> | ||
7 | #include <qlabel.h> | ||
8 | #include <qpushbutton.h> | ||
9 | #include <qspinbox.h> | ||
10 | |||
11 | class AI_Dialog : public QDialog | ||
12 | { | ||
13 | Q_OBJECT | ||
14 | private: | ||
15 | //GUI stuff | ||
16 | QPushButton* defaultvalues; | ||
17 | QSpinBox* rescue; | ||
18 | QSpinBox* eliminate; | ||
19 | QSpinBox* expose; | ||
20 | QSpinBox* protect; | ||
21 | QSpinBox* safe; | ||
22 | QSpinBox* empty; | ||
23 | QLabel* help; | ||
24 | public: | ||
25 | AI_Dialog(QWidget* parent=0,const char* name=0,bool modal=TRUE,WFlags f=0); | ||
26 | ~AI_Dialog(); | ||
27 | private slots: | ||
28 | void rescuehelp_pressed(); | ||
29 | void rescuehelp_released(); | ||
30 | void eliminatehelp_pressed(); | ||
31 | void eliminatehelp_released(); | ||
32 | void exposehelp_pressed(); | ||
33 | void exposehelp_released(); | ||
34 | void protecthelp_pressed(); | ||
35 | void protecthelp_released(); | ||
36 | void safehelp_pressed(); | ||
37 | void safehelp_released(); | ||
38 | void emptyhelp_pressed(); | ||
39 | void emptyhelp_released(); | ||
40 | void setDefaultValues(); | ||
41 | public: | ||
42 | void setAISettings(const AISettings& values); | ||
43 | AISettings getAISettings(); | ||
44 | private: | ||
45 | void setHelpText(const QString& type="default"); | ||
46 | }; | ||
47 | |||
48 | #endif //AIDIALOG_H | ||