summaryrefslogtreecommitdiff
path: root/noncore/games/backgammon/themedialog.h
authorwaspe <waspe>2003-03-30 11:30:54 (UTC)
committer waspe <waspe>2003-03-30 11:30:54 (UTC)
commit3065a1c13bec5d0b101bec48ff666d45a02ce8a6 (patch) (side-by-side diff)
treef8fe8d3eba81ef4e371c12f530be9cd4debc895b /noncore/games/backgammon/themedialog.h
parent87ba3646367397e149979a8477a33239cb341e99 (diff)
downloadopie-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.h42
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