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/themedialog.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/themedialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/backgammon/themedialog.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/noncore/games/backgammon/themedialog.h b/noncore/games/backgammon/themedialog.h new file mode 100644 index 0000000..45a61f2 --- a/dev/null +++ b/noncore/games/backgammon/themedialog.h | |||
@@ -0,0 +1,42 @@ | |||
1 | #ifndef THEMEDIALOG_H | ||
2 | #define THEMEDIALOG_H | ||
3 | |||
4 | #include <qcombobox.h> | ||
5 | #include <qdialog.h> | ||
6 | #include <qlineedit.h> | ||
7 | |||
8 | struct ImageNames | ||
9 | { | ||
10 | QString theme; | ||
11 | QString board; | ||
12 | QString pieces1; | ||
13 | QString pieces2; | ||
14 | QString dice1; | ||
15 | QString dice2; | ||
16 | QString odds; | ||
17 | QString table; | ||
18 | }; | ||
19 | |||
20 | class ThemeDialog : public QDialog | ||
21 | { | ||
22 | Q_OBJECT | ||
23 | private: | ||
24 | QLineEdit* lineName; | ||
25 | QComboBox* boxboard; | ||
26 | QComboBox* boxpiecesA; | ||
27 | QComboBox* boxpiecesB; | ||
28 | QComboBox* boxdiceA; | ||
29 | QComboBox* boxdiceB; | ||
30 | QComboBox* boxodds; | ||
31 | QComboBox* boxtable; | ||
32 | public: | ||
33 | ThemeDialog(QWidget* parent=0,const char* name=0,bool modal=TRUE,WFlags f=0); | ||
34 | ~ThemeDialog(); | ||
35 | public: | ||
36 | ImageNames getNames(); | ||
37 | void setCurrent(const ImageNames& current); | ||
38 | private: | ||
39 | void fillBox(QString dirname,QComboBox* thebox); | ||
40 | }; | ||
41 | |||
42 | #endif //THEMEDIALOG_H | ||