Changeset 7472 in orxonox.OLD for branches/qt_gui/src
- Timestamp:
- May 2, 2006, 9:29:30 AM (19 years ago)
- Location:
- branches/qt_gui/src/lib/gui/qt_gui
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h
r7470 r7472 7 7 #define __QT_GUI_H 8 8 9 #include "base_object.h" 10 #include "../gui_saveable.h" 9 #include "../gui.h" 11 10 #include <list> 12 13 // grouping14 #include <qgroupbox.h>15 #include <qprogressbar.h>16 #include <qlabel.h>17 18 // events19 #include <qpushbutton.h>20 21 // options22 #include <qcheckbox.h>23 #include <qslider.h>24 #include <qlineedit.h>25 11 26 12 namespace OrxGui 27 13 { 28 29 class QtGuiWidget : virtual public BaseObject30 {31 public:32 };33 34 35 class QtGuiContainer : public QtGuiWidget36 {37 public:38 virtual bool pack(QtGuiWidget* widget) = 0;39 40 protected:41 QtGuiContainer();42 ~QtGuiContainer();43 44 private:45 46 };47 48 49 typedef enum Orientation50 {51 horizontal,52 vertical53 };54 55 class QtGuiBox : public QtGuiContainer, public GuiSaveableGroup56 {57 58 public:59 QtGuiBox(Orientation orientation);60 ~QtGuiBox();61 62 virtual bool pack(QtGuiWidget* widget);63 64 private:65 std::list<QtGuiWidget*> children;66 67 };68 69 class QtGuiGroupBox : public QtGuiContainer, public GuiSaveableGroup70 {71 public:72 QtGuiGroupBox(const std::string& groupName);73 ~QtGuiGroupBox();74 75 virtual bool pack(QtGuiWidget* widget);76 77 private:78 QtGuiWidget* child;79 };80 81 82 83 class QtGuiCheckBox : public QCheckBox, public QtGuiWidget, public GuiSaveable84 {85 public:86 QtGuiCheckBox(const std::string& name, bool defaultValue = false);87 ~QtGuiCheckBox();88 89 public slots:90 void setCheckValue(int);91 92 signals:93 void checkValueChanged();94 };95 96 97 class QtGuiPushButtom : public QPushButton, public QtGuiWidget98 {99 public:100 QtGuiPushButtom();101 ~QtGuiPushButtom();102 };103 104 class QtGuiSlider : public QSlider, public QtGuiWidget, public GuiSaveable105 {106 public:107 QtGuiSlider();108 ~QtGuiSlider();109 110 public slots:111 void setSliderValue(float);112 113 signals:114 void sliderValueChanged(float);115 };116 117 class QtGuiTextLine : public QLineEdit, public QtGuiWidget, public GuiSaveable118 {119 public:120 QtGuiTextLine();121 ~QtGuiTextLine();122 123 public slots:124 void setTextLineValue(const char*);125 signals:126 void textLineChanged(const char*);127 };128 129 130 131 class QtGuiImage : public QtGuiWidget132 {133 }134 ;135 14 } 136 15 -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.h
r7471 r7472 1 1 /*! 2 * @file qt_gui .h2 * @file qt_gui_elements.h 3 3 * @brief Definition of ... 4 4 */ 5 5 6 #ifndef __QT_GUI_ H7 #define __QT_GUI_ H6 #ifndef __QT_GUI_ELEMENTS_H 7 #define __QT_GUI_ELEMENTS_H 8 8 9 9 #include "base_object.h" … … 135 135 } 136 136 137 #endif /* __QT_GUI_ H */137 #endif /* __QT_GUI_ELEMENTS_H */
Note: See TracChangeset
for help on using the changeset viewer.