- Timestamp:
- Feb 16, 2006, 12:51:42 AM (19 years ago)
- Location:
- branches/qt_gui/src/lib/gui/qt_gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/qt_gui/Makefile.am
r7142 r7149 14 14 libORXqtgui_a_SOURCES = \ 15 15 gui_saveable.cc \ 16 \ 16 17 qt_gui.cc 17 18 18 noinst_HEADERS= 19 noinst_HEADERS= \ 20 gui_saveable.h \ 21 \ 22 qt_gui.h 19 23 20 24 EXTRA_DIST = -
branches/qt_gui/src/lib/gui/qt_gui/gui_saveable.cc
r7143 r7149 40 40 41 41 42 GuiGroup::GuiGroup(const std::string& name)42 GuiGroup::GuiGroup(const char* groupName) 43 43 { 44 44 this->setName(groupName); 45 45 } 46 46 -
branches/qt_gui/src/lib/gui/qt_gui/gui_saveable.h
r7145 r7149 10 10 #include "multi_type.h" 11 11 #include <list> 12 #include <string>13 12 14 13 // FORWARD DECLARATION … … 16 15 17 16 //! A class for ... 18 class GuiSaveable : virtual public BaseObject { 17 class GuiSaveable : virtual public BaseObject 18 { 19 19 20 public: 20 public: 21 21 22 22 23 protected: … … 27 28 virtual const MultiType& save() = 0; 28 29 29 private:30 30 protected: 31 MultiType value; 31 32 }; 32 33 33 34 34 class GuiGroup 35 36 class GuiGroup : virtual public BaseObject 35 37 { 36 37 GuiGroup(const std::string&name);38 38 public: 39 GuiGroup(const char* name); 40 ~GuiGroup(); 39 41 40 private:42 void addSaveable(GuiSaveable* saveable); 41 43 44 private: 45 std::list<GuiSaveable*> saveables; 42 46 }; 43 47 -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc
r7140 r7149 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Benjamin Grauer 13 13 co-programmer: ... 14 14 */ -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h
r7142 r7149 8 8 9 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 10 19 #include <qpushbutton.h> 20 21 // options 11 22 #include <qcheckbox.h> 12 23 #include <qslider.h> 24 #include <qlineedit.h> 13 25 14 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 QtGuiWidget, public GuiSaveable 81 { 82 public: 83 QtGuiCheckBox(const char* name, bool defaultValue = false); 84 ~QtGuiCheckBox(); 85 86 //slot 87 88 private: 89 90 }; 15 91 16 92
Note: See TracChangeset
for help on using the changeset viewer.