Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7605 in orxonox.OLD for branches/qt_gui/src


Ignore:
Timestamp:
May 12, 2006, 10:30:49 AM (19 years ago)
Author:
bensch
Message:

better saveability

Location:
branches/qt_gui/src
Files:
2 edited

Legend:

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

    r7604 r7605  
    5858  {
    5959    this->value() = Preferences::getInstance()->getMultiType(this->group->getName(), this->getName(), this->_value);
    60     PRINTF(4)("Loaded to '%s' of group '%s' value ", this->getName(), this->group->getName());
    61     this->value().debug();
    62 
     60    PRINTF(4)("Loaded to '%s' of group '%s' value '%s'\n", this->getName(), this->group->getName(), this->value().getCString());
    6361  }
    6462
     
    6664  {
    6765    Preferences::getInstance()->setMultiType(this->group->getName(), this->getName(), this->value(), true);
    68     PRINTF(4)("Saved to '%s' of group '%s' value ", this->getName(), this->group->getName());
    69     this->value().debug();
     66    PRINTF(4)("Saved to '%s' of group '%s' value '%s'\n", this->getName(), this->group->getName(), this->value().getCString());
    7067  }
    7168
  • branches/qt_gui/src/orxonox.cc

    r7601 r7605  
    421421
    422422  IniFilePrefsReader ini(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE));
     423  Preferences::getInstance()->setUserIni(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE));
    423424
    424425  prefs.parse(argc, argv);
     
    498499
    499500    // starting the GUI
    500     OrxGui::Gui* gui = new OrxGui::QtGui(argc, argv);
    501     gui->startGui();
    502 
    503     if (gui->getState() & OrxGui::Gui::Quitting)
     501    OrxGui::QtGui gui(argc, argv);
     502    gui.startGui();
     503
     504    if (gui.getState() & OrxGui::Gui::Quitting)
    504505      return 0;
    505506
    506     delete gui;
    507507  }
    508508
Note: See TracChangeset for help on using the changeset viewer.