Changeset 2739 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_exec.cc
- Timestamp:
- Nov 6, 2004, 4:51:59 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui_exec.cc
r2635 r2739 45 45 saveSettings = new CheckButton ("Save Settings"); 46 46 saveSettings->value = 1; 47 saveSettings->saveable = true; 47 48 execBox->fill (saveSettings); 48 49 verboseMode = new Menu ("verbose mode", "no output", "verbose", "debug", "lastItem"); 49 50 verboseMode->setFlagName ("verbose", "v", 0); 51 verboseMode->saveable = true; 50 52 execBox->fill (verboseMode); 51 53 alwaysShow = new CheckButton ("Always Show this Menu"); 52 54 alwaysShow->setFlagName ("gui", "g", 0); 55 alwaysShow->saveable = true; 53 56 execBox->fill (alwaysShow); 54 57 quit = new Button ("Quit"); … … 98 101 int OrxonoxGuiExec::shouldsave () 99 102 { 100 return ( 103 return (static_cast<Option*>(saveSettings)->value); 101 104 } 102 105 … … 123 126 int counter = 0; 124 127 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) ) 127 129 || (widget->is_option<0 128 130 && strcmp (static_cast<Packer*>(widget)->getGroupName(), "")))) … … 148 150 149 151 if (widget->is_option >= 1) 150 if (st rcmp (static_cast<Option*>(widget)->flag_name, "") || strcmp (static_cast<Option*>(widget)->flag_name_short, ""))152 if (static_cast<Option*>(widget)->saveable) 151 153 { 152 154 char Buffer[256];
Note: See TracChangeset
for help on using the changeset viewer.