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 @@ +#ifndef THEMEDIALOG_H +#define THEMEDIALOG_H + +#include <qcombobox.h> +#include <qdialog.h> +#include <qlineedit.h> + +struct ImageNames +{ + QString theme; + QString board; + QString pieces1; + QString pieces2; + QString dice1; + QString dice2; + QString odds; + QString table; +}; + +class ThemeDialog : public QDialog +{ + Q_OBJECT +private: + QLineEdit* lineName; + QComboBox* boxboard; + QComboBox* boxpiecesA; + QComboBox* boxpiecesB; + QComboBox* boxdiceA; + QComboBox* boxdiceB; + QComboBox* boxodds; + QComboBox* boxtable; +public: + ThemeDialog(QWidget* parent=0,const char* name=0,bool modal=TRUE,WFlags f=0); + ~ThemeDialog(); +public: + ImageNames getNames(); + void setCurrent(const ImageNames& current); +private: + void fillBox(QString dirname,QComboBox* thebox); +}; + +#endif //THEMEDIALOG_H |