Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2739 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_exec.cc


Ignore:
Timestamp:
Nov 6, 2004, 4:51:59 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: modified savable rutine. now a widget has to be set saveable, otherwise it won't be saved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui_exec.cc

    r2635 r2739  
    4545  saveSettings = new CheckButton ("Save Settings");
    4646  saveSettings->value = 1;
     47  saveSettings->saveable = true;
    4748  execBox->fill (saveSettings);
    4849  verboseMode = new Menu ("verbose mode", "no output", "verbose", "debug", "lastItem");
    4950  verboseMode->setFlagName ("verbose", "v", 0);
     51  verboseMode->saveable = true;
    5052  execBox->fill (verboseMode);
    5153  alwaysShow = new CheckButton ("Always Show this Menu");
    5254  alwaysShow->setFlagName ("gui", "g", 0);
     55  alwaysShow->saveable = true;
    5356  execBox->fill (alwaysShow);
    5457  quit = new Button ("Quit");
     
    98101int OrxonoxGuiExec::shouldsave ()
    99102{
    100   return ( static_cast<Option*>(saveSettings)->value);
     103  return (static_cast<Option*>(saveSettings)->value);
    101104}
    102105
     
    123126  int counter = 0;
    124127  while (counter < depth && ((widget->is_option>0
    125                               && (strcmp (static_cast<Option*>(widget)->flag_name, "")
    126                                   || strcmp (static_cast<Option*>(widget)->flag_name_short, "")) )
     128                              && (static_cast<Option*>(widget)->saveable) )
    127129                             || (widget->is_option<0
    128130                                 && strcmp (static_cast<Packer*>(widget)->getGroupName(), ""))))
     
    148150 
    149151  if (widget->is_option >= 1)
    150     if  (strcmp (static_cast<Option*>(widget)->flag_name, "") || strcmp (static_cast<Option*>(widget)->flag_name_short, ""))
     152    if  (static_cast<Option*>(widget)->saveable)
    151153      {
    152154        char Buffer[256];
Note: See TracChangeset for help on using the changeset viewer.