Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2011 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Jun 22, 2004, 12:37:05 PM (21 years ago)
Author:
bensch
Message:

orxonox/branches/gui/guicc: now only saves, if it is told to ⇒ now fully functional.

Location:
orxonox/branches/gui/guicc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/gui/guicc/orxonox_gui.cc

    r2009 r2011  
    209209   * Quits the orxonox_GUI
    210210   */
    211   exec->writeToFile (orxonoxGUI);
     211  if (exec->shouldsave())
     212    exec->writeToFile (orxonoxGUI);
    212213
    213214  gtk_main_quit();
  • orxonox/branches/gui/guicc/orxonox_gui_exec.cc

    r2009 r2011  
    1313  execBox->fill (start);
    1414  saveSettings = new CheckButton ("Save Settings");
     15  saveSettings->value = 1;
    1516  execBox->fill (saveSettings);
    1617  verboseMode = new Menu ("verbose mode", "no output", "verbose", "debug", "lastItem");
     
    4950    sprintf(configFile, "%s", buffer);
    5051  delete buffer;
     52}
     53
     54int OrxonoxGuiExec::shouldsave ()
     55{
     56  return ( static_cast<Option*>(saveSettings)->value);
    5157}
    5258
  • orxonox/branches/gui/guicc/orxonox_gui_exec.h

    r2007 r2011  
    2525 
    2626  void setFilename (char* filename);
     27  int shouldsave ();
    2728  void writeToFile (Widget* widget);
    2829  void writeFileText (Widget* widget);
Note: See TracChangeset for help on using the changeset viewer.