Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7633 in orxonox.OLD for branches


Ignore:
Timestamp:
May 17, 2006, 9:27:50 AM (19 years ago)
Author:
bensch
Message:

better default values

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

Legend:

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

    r7632 r7633  
    5858  void Saveable::load()
    5959  {
    60     this->value() = Preferences::getInstance()->getMultiType(this->group->getName(), this->getName(), this->_value);
     60    this->value() = Preferences::getInstance()->getMultiType(this->group->getName(), this->getName(), this->_defaultValue);
    6161    PRINTF(4)("Loaded to '%s' of group '%s' value '%s'\n", this->getName(), this->group->getName(), this->value().getCString());
    6262  }
  • branches/qt_gui/src/lib/gui/gui_saveable.h

    r7632 r7633  
    3030    MultiType&       value() { return this->_value; };
    3131    const MultiType& value() const { return this->_value; };
     32    MultiType&       defaultValue() { return this->_defaultValue; };
     33    const MultiType& defaultValue() const { return this->_defaultValue; };
    3234    bool             isSaveable() const { return this->bSaveable; };
    3335
  • branches/qt_gui/src/lib/gui/qt_gui/gui_video.cc

    r7632 r7633  
    131131      QGridLayout* advLayout = new QGridLayout(this);              //!< Advanced Layout
    132132      {
    133         QtGuiCheckBox* shadows = new QtGuiCheckBox(CONFIG_NAME_SHADOWS, this);         //!< CheckBox for shadows
     133        QtGuiCheckBox* shadows = new QtGuiCheckBox(CONFIG_NAME_SHADOWS, this, true);         //!< CheckBox for shadows
    134134        advLayout->addWidget(shadows, 0,0);
    135         QtGuiCheckBox* fog = new QtGuiCheckBox(CONFIG_NAME_FOG, this);                 //!< CheckBox for fog.
     135        QtGuiCheckBox* fog = new QtGuiCheckBox(CONFIG_NAME_FOG, this, true);                 //!< CheckBox for fog.
    136136        advLayout->addWidget(fog, 1,0);
    137         QtGuiCheckBox* reflections = new QtGuiCheckBox(CONFIG_NAME_REFLECTIONS, this);  //!< CheckBox for reflections
     137        QtGuiCheckBox* reflections = new QtGuiCheckBox(CONFIG_NAME_REFLECTIONS, this, true);  //!< CheckBox for reflections
    138138        advLayout->addWidget(reflections, 2, 0);
    139         QtGuiCheckBox* textures = new QtGuiCheckBox(CONFIG_NAME_TEXTURES, this);       //!< CheckBox for textures
     139        QtGuiCheckBox* textures = new QtGuiCheckBox(CONFIG_NAME_TEXTURES, this, true);       //!< CheckBox for textures
    140140        advLayout->addWidget(textures, 3, 0);
    141141          /*
Note: See TracChangeset for help on using the changeset viewer.