summaryrefslogtreecommitdiff
path: root/noncore/games/backgammon/themedialog.h
blob: 45a61f2b2dbdeb9702374d96eaf23fca4bb93908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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