Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7600 in orxonox.OLD for branches/qt_gui/src/lib


Ignore:
Timestamp:
May 11, 2006, 5:54:36 PM (19 years ago)
Author:
bensch
Message:

save does not work yet

Location:
branches/qt_gui/src/lib/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/gui.cc

    r7598 r7600  
    5555  void Gui::saveAll()
    5656  {
    57 
     57    std::vector<SaveableGroup*>::iterator saveElem;
     58    for (saveElem = this->groups.begin(); saveElem != this->groups.end(); ++saveElem)
     59    {
     60      (*saveElem)->save();
     61    }
    5862  }
    5963
  • branches/qt_gui/src/lib/gui/gui_saveable.cc

    r7598 r7600  
    6666  {
    6767    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();
    6870  }
    6971
     
    127129   */
    128130  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  }
    130136
    131137
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc

    r7598 r7600  
    7575    this->loadAll();
    7676    this->exec();
    77 
    7877  }
    7978
    8079  QtGui::~QtGui()
    8180  {
     81    this->saveAll();
     82
    8283    delete this->mainWindow;
    8384  }
Note: See TracChangeset for help on using the changeset viewer.