Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7595 in orxonox.OLD for branches/qt_gui/src/lib/gui/gui_saveable.cc


Ignore:
Timestamp:
May 11, 2006, 2:02:37 PM (18 years ago)
Author:
bensch
Message:

qt_gui: better stuff and so on

File:
1 edited

Legend:

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

    r7555 r7595  
    1818#include "gui_saveable.h"
    1919#include "gui.h"
     20#include "preferences.h"
    2021
    2122namespace OrxGui
     
    3031    this->bSaveable = false;
    3132
     33    assert(group != NULL);
    3234    this->group = group;
    3335    this->group->addSaveable(this);
     
    5153
    5254  }
     55
     56
     57  void Saveable::load(const MultiType& value)
     58  {
     59    Preferences::getInstance()->setMultiType(this->group->getName(), this->getName(), value);
     60  }
     61
     62  const MultiType& Saveable::save()
     63  {
     64    Preferences::getInstance()->getMultiType(this->group->getName(), this->getName(), 0);
     65  }
     66
     67
    5368
    5469
     
    98113   */
    99114  void SaveableGroup::load(const MultiType& value)
    100   {}
     115  {
     116  }
    101117
    102118  /**
Note: See TracChangeset for help on using the changeset viewer.