Changeset 7447 in orxonox.OLD for branches/qt_gui/src/lib/gui/qt_gui/gui_saveable.cc
- Timestamp:
- Apr 29, 2006, 7:49:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/qt_gui/gui_saveable.cc
r7442 r7447 18 18 #include "gui_saveable.h" 19 19 20 using namespace std; 20 namespace OrxGui 21 { 22 23 /** 24 * standard constructor 25 */ 26 GuiSaveable::GuiSaveable (const std::string& optionName) 27 { 28 this->bSaveable = false; 29 } 21 30 22 31 23 /** 24 * standard constructor 25 */ 26 GuiSaveable::GuiSaveable () 27 { 28 this->setClassID(CL_GUI_SAVEABLE, "GuiSaveable"); 29 30 } 32 /** 33 * standard deconstructor 34 */ 35 GuiSaveable::~GuiSaveable () 36 { 37 // delete what has to be deleted here 38 } 31 39 32 40 33 /** 34 * standard deconstructor 35 */ 36 GuiSaveable::~GuiSaveable () 37 { 38 // delete what has to be deleted here 39 } 41 void GuiSaveable::makeSaveable() 42 { 43 this->bSaveable = true; 44 45 } 40 46 41 47 42 GuiGroup::GuiGroup(const char* groupName) 43 { 44 this->setName(groupName); 45 } 48 GuiSaveableGroup::GuiSaveableGroup(const std::string& groupName) 49 : GuiSaveable(groupName) 50 { 51 // this->setName(groupName); 52 } 46 53 47 54 48 GuiGroup::~GuiGroup() 49 { 55 56 57 GuiSaveableGroup::~GuiSaveableGroup() 58 { 59 std::vector<GuiSaveableGroup*>::iterator delGroup = std::find(saveableGroups.begin(), saveableGroups.end(), this); 60 61 if (delGroup != saveableGroups.end() ) 62 saveableGroups.erase(delGroup); 63 } 64 65 std::vector<GuiSaveableGroup*> GuiSaveableGroup::saveableGroups; 66 67 void GuiSaveableGroup::makingElementSaveable() 68 { 69 GuiSaveableGroup::saveableGroups.push_back(this); 70 } 50 71 51 72
Note: See TracChangeset
for help on using the changeset viewer.