Changeset 7600 in orxonox.OLD for branches/qt_gui/src/lib
- Timestamp:
- May 11, 2006, 5:54:36 PM (19 years ago)
- Location:
- branches/qt_gui/src/lib/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/gui.cc
r7598 r7600 55 55 void Gui::saveAll() 56 56 { 57 57 std::vector<SaveableGroup*>::iterator saveElem; 58 for (saveElem = this->groups.begin(); saveElem != this->groups.end(); ++saveElem) 59 { 60 (*saveElem)->save(); 61 } 58 62 } 59 63 -
branches/qt_gui/src/lib/gui/gui_saveable.cc
r7598 r7600 66 66 { 67 67 Preferences::getInstance()->setMultiType(this->group->getName(), this->getName(), this->value()); 68 PRINTF(4)("Saved to '%s' of group '%s' value ", this->getName(), this->group->getName()); 69 this->value().debug(); 68 70 } 69 71 … … 127 129 */ 128 130 void SaveableGroup::save() 129 {} 131 { 132 std::vector<Saveable*>::iterator elem; 133 for (elem = this->saveables.begin(); elem != this->saveables.end(); ++elem) 134 (*elem)->save(); 135 } 130 136 131 137 -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc
r7598 r7600 75 75 this->loadAll(); 76 76 this->exec(); 77 78 77 } 79 78 80 79 QtGui::~QtGui() 81 80 { 81 this->saveAll(); 82 82 83 delete this->mainWindow; 83 84 }
Note: See TracChangeset
for help on using the changeset viewer.