- Timestamp:
- May 2, 2006, 10:23:52 PM (19 years ago)
- Location:
- branches/qt_gui/src/lib/gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/gui_element.cc
r7478 r7480 28 28 */ 29 29 GuiElement::GuiElement (const std::string& name) 30 : GuiSaveableGroup(name)30 : SaveableGroup(name) 31 31 { 32 32 //this->mainWidget = NULL; -
branches/qt_gui/src/lib/gui/gui_element.h
r7478 r7480 15 15 16 16 //! A SuperClass for all the Different GuiElements 17 class GuiElement : public GuiSaveableGroup17 class GuiElement : public SaveableGroup 18 18 { 19 19 -
branches/qt_gui/src/lib/gui/gui_saveable.cc
r7479 r7480 24 24 * standard constructor 25 25 */ 26 GuiSaveable::GuiSaveable (const std::string& optionName)26 Saveable::Saveable (const std::string& optionName) 27 27 : BaseObject(optionName) 28 28 { … … 35 35 * standard deconstructor 36 36 */ 37 GuiSaveable::~GuiSaveable ()37 Saveable::~Saveable () 38 38 { 39 39 // delete what has to be deleted here … … 41 41 42 42 43 void GuiSaveable::makeSaveable()43 void Saveable::makeSaveable() 44 44 { 45 45 this->bSaveable = true; … … 48 48 49 49 50 GuiSaveableGroup::GuiSaveableGroup(const std::string& groupName)51 : GuiSaveable(groupName)50 SaveableGroup::SaveableGroup(const std::string& groupName) 51 : Saveable(groupName) 52 52 { 53 53 } … … 56 56 57 57 58 GuiSaveableGroup::~GuiSaveableGroup()58 SaveableGroup::~SaveableGroup() 59 59 { 60 std::vector< GuiSaveableGroup*>::iterator delGroup = std::find(saveableGroups.begin(), saveableGroups.end(), this);60 std::vector<SaveableGroup*>::iterator delGroup = std::find(saveableGroups.begin(), saveableGroups.end(), this); 61 61 62 62 if (delGroup != saveableGroups.end() ) … … 64 64 } 65 65 66 std::vector< GuiSaveableGroup*> GuiSaveableGroup::saveableGroups;66 std::vector<SaveableGroup*> SaveableGroup::saveableGroups; 67 67 68 void GuiSaveableGroup::makingElementSaveable()68 void SaveableGroup::makingElementSaveable() 69 69 { 70 GuiSaveableGroup::saveableGroups.push_back(this);70 SaveableGroup::saveableGroups.push_back(this); 71 71 } 72 72 -
branches/qt_gui/src/lib/gui/gui_saveable.h
r7479 r7480 15 15 { 16 16 //! A class for ... 17 class GuiSaveable : public BaseObject17 class Saveable : public BaseObject 18 18 { 19 19 public: 20 virtual ~ GuiSaveable();20 virtual ~Saveable(); 21 21 22 22 void makeSaveable(); … … 30 30 31 31 protected: 32 GuiSaveable(const std::string& optionName);32 Saveable(const std::string& optionName); 33 33 virtual void makingElementSaveable() {}; 34 34 … … 40 40 41 41 42 class GuiSaveableGroup : public GuiSaveable42 class SaveableGroup : public Saveable 43 43 { 44 44 public: 45 virtual ~ GuiSaveableGroup();45 virtual ~SaveableGroup(); 46 46 47 void addSaveable( GuiSaveable* saveable);48 void removeSaveable( GuiSaveable* saveable);47 void addSaveable(Saveable* saveable); 48 void removeSaveable(Saveable* saveable); 49 49 50 50 protected: 51 GuiSaveableGroup(const std::string& name);51 SaveableGroup(const std::string& name); 52 52 virtual void makingElementSaveable(); 53 53 54 54 private: 55 std::vector< GuiSaveable*> saveables;56 static std::vector< GuiSaveableGroup*> saveableGroups;55 std::vector<Saveable*> saveables; 56 static std::vector<SaveableGroup*> saveableGroups; 57 57 }; 58 58 -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc
r7479 r7480 19 19 20 20 #include <qapplication.h> 21 21 #include <qgroupbox.h> 22 #include <qlayout.h> 22 23 23 24 namespace OrxGui … … 28 29 29 30 this->mainWindow = new QMainWindow(); 31 32 33 QGroupBox* groupBox = new QGroupBox; 34 QGridLayout* mainLayout = new QGridLayout(groupBox); 35 36 37 38 39 this->mainWindow->setCentralWidget(groupBox); 30 40 this->mainWindow->show(); 31 41 … … 37 47 QtGui::~QtGui() 38 48 { 39 49 delete this->mainWindow; 40 50 } 41 51
Note: See TracChangeset
for help on using the changeset viewer.