1 | /*! |
---|
2 | * @file qt_gui_elements.h |
---|
3 | * @brief Definition of ... |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef __QT_GUI_ELEMENTS_H |
---|
7 | #define __QT_GUI_ELEMENTS_H |
---|
8 | |
---|
9 | #include "../gui_saveable.h" |
---|
10 | #include <list> |
---|
11 | |
---|
12 | // grouping |
---|
13 | #include <QtGui/QGroupBox> |
---|
14 | #include <QtGui/QProgressBar> |
---|
15 | #include <QtGui/QLabel> |
---|
16 | |
---|
17 | // events |
---|
18 | #include <QtGui/QPushButton> |
---|
19 | |
---|
20 | // options |
---|
21 | #include <QtGui/QCheckBox> |
---|
22 | #include <QtGui/QSlider> |
---|
23 | #include <QtGui/QLineEdit> |
---|
24 | #include <QtGui/QComboBox> |
---|
25 | |
---|
26 | namespace OrxGui |
---|
27 | { |
---|
28 | class QtGuiCheckBox : public QCheckBox, public Saveable |
---|
29 | { |
---|
30 | public: |
---|
31 | QtGuiCheckBox(const std::string& name, bool defaultValue = false); |
---|
32 | virtual ~QtGuiCheckBox() {}; |
---|
33 | |
---|
34 | virtual void load(const MultiType& value); |
---|
35 | virtual const MultiType& save(); |
---|
36 | |
---|
37 | public slots: |
---|
38 | void setCheckValue(int); |
---|
39 | |
---|
40 | signals: |
---|
41 | void checkValueChanged(); |
---|
42 | }; |
---|
43 | |
---|
44 | class QtGuiSlider : public QSlider, public Saveable |
---|
45 | { |
---|
46 | public: |
---|
47 | QtGuiSlider(); |
---|
48 | virtual ~QtGuiSlider() {}; |
---|
49 | |
---|
50 | public slots: |
---|
51 | void setSliderValue(float); |
---|
52 | |
---|
53 | signals: |
---|
54 | void sliderValueChanged(float); |
---|
55 | }; |
---|
56 | |
---|
57 | |
---|
58 | class QtGuiComboBox : public QComboBox, public OrxGui::Saveable |
---|
59 | { |
---|
60 | public: |
---|
61 | QtGuiComboBox(const std::string& name); |
---|
62 | |
---|
63 | virtual void load(const MultiType& value); |
---|
64 | virtual const MultiType& save(); |
---|
65 | }; |
---|
66 | |
---|
67 | } |
---|
68 | |
---|
69 | #endif /* __QT_GUI_ELEMENTS_H */ |
---|