Last change
on this file since 7442 was
7442,
checked in by bensch, 18 years ago
|
qt_gui: merged old qt_gui-changes back here.
|
File size:
1.9 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file qt_gui.h |
---|
3 | * @brief Definition of ... |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef __QT_GUI_H |
---|
7 | #define __QT_GUI_H |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | #include "gui_saveable.h" |
---|
11 | #include <list> |
---|
12 | |
---|
13 | // grouping |
---|
14 | #include <qgroupbox.h> |
---|
15 | #include <qprogressbar.h> |
---|
16 | #include <qlabel.h> |
---|
17 | |
---|
18 | // events |
---|
19 | #include <qpushbutton.h> |
---|
20 | |
---|
21 | // options |
---|
22 | #include <qcheckbox.h> |
---|
23 | #include <qslider.h> |
---|
24 | #include <qlineedit.h> |
---|
25 | |
---|
26 | |
---|
27 | class QtGuiWidget : virtual public BaseObject |
---|
28 | { |
---|
29 | public: |
---|
30 | }; |
---|
31 | |
---|
32 | |
---|
33 | class QtGuiContainer |
---|
34 | { |
---|
35 | public: |
---|
36 | virtual bool pack(QtGuiWidget* widget) = 0; |
---|
37 | |
---|
38 | protected: |
---|
39 | QtGuiContainer(); |
---|
40 | ~QtGuiContainer(); |
---|
41 | |
---|
42 | private: |
---|
43 | |
---|
44 | }; |
---|
45 | |
---|
46 | |
---|
47 | class QtGuiBox : public QtGuiContainer |
---|
48 | { |
---|
49 | public: |
---|
50 | typedef enum Orientation |
---|
51 | { |
---|
52 | horizontal, |
---|
53 | vertical |
---|
54 | }; |
---|
55 | |
---|
56 | public: |
---|
57 | QtGuiBox(Orientation orientation); |
---|
58 | ~QtGuiBox(); |
---|
59 | |
---|
60 | virtual bool pack(QtGuiWidget* widget); |
---|
61 | |
---|
62 | private: |
---|
63 | std::list<QtGuiWidget*> children; |
---|
64 | |
---|
65 | }; |
---|
66 | |
---|
67 | class QtGuiGroupBox : public QtGuiContainer, public GuiGroup |
---|
68 | { |
---|
69 | public: |
---|
70 | QtGuiGroupBox(const char* groupName); |
---|
71 | ~QtGuiGroupBox(); |
---|
72 | |
---|
73 | virtual bool pack(QtGuiWidget* widget); |
---|
74 | |
---|
75 | private: |
---|
76 | QtGuiWidget* child; |
---|
77 | }; |
---|
78 | |
---|
79 | |
---|
80 | class QtGuiCheckBox : public QCheckBox, public QtGuiWidget, public GuiSaveable |
---|
81 | { |
---|
82 | public: |
---|
83 | QtGuiCheckBox(const char* name, bool defaultValue = false); |
---|
84 | ~QtGuiCheckBox(); |
---|
85 | |
---|
86 | public slots: |
---|
87 | void setCheckValue(int); |
---|
88 | |
---|
89 | signals: |
---|
90 | void checkValueChanged(); |
---|
91 | }; |
---|
92 | |
---|
93 | class QtGuiPushButtom : public QPushButton, public QtGuiWidget |
---|
94 | { |
---|
95 | public: |
---|
96 | QtGuiPushButtom(); |
---|
97 | ~QtGuiPushButtom(); |
---|
98 | }; |
---|
99 | |
---|
100 | class QtGuiSlider : public QSlider, public QtGuiWidget, public GuiSaveable |
---|
101 | { |
---|
102 | public: |
---|
103 | QtGuiSlider(); |
---|
104 | ~QtGuiSlider(); |
---|
105 | |
---|
106 | public slots: |
---|
107 | void setSliderValue(float); |
---|
108 | |
---|
109 | signals: |
---|
110 | void sliderValueChanged(float); |
---|
111 | }; |
---|
112 | |
---|
113 | class QtGuiTextLine : public QLineEdit, public QtGuiWidget, public GuiSaveable |
---|
114 | { |
---|
115 | public: |
---|
116 | QtGuiTextLine(); |
---|
117 | ~QtGuiTextLine(); |
---|
118 | |
---|
119 | public slots: |
---|
120 | void setTextLineValue(const char*); |
---|
121 | signals: |
---|
122 | void textLineChanged(const char*); |
---|
123 | |
---|
124 | }; |
---|
125 | |
---|
126 | |
---|
127 | #endif /* __QT_GUI_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.