Changeset 3464 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui_exec.cc
- Timestamp:
- Mar 9, 2005, 2:41:38 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_exec.cc
r3379 r3464 50 50 this->saveSettings->saveability(); 51 51 this->execBox->fill(this->saveSettings); 52 this->verboseMode = new Menu("verbose mode", "no output", "error", "warning", "info", "lastItem");52 this->verboseMode = new Menu("verbose mode", "nothing", "error", "warning", "info", "lastItem"); 53 53 this->verboseMode->setFlagName("verbose", "v", 0); 54 54 this->verboseMode->saveability(); … … 190 190 space2under[0] = '_'; 191 191 } 192 if(widget->isOption <=3) 193 fprintf(CONFIG_FILE, "%s = %d\n", Buffer, static_cast<Option*>(widget)->value); 194 else if(widget->isOption == 5) 195 fprintf(CONFIG_FILE, "%s = %s\n", Buffer, static_cast<OptionLabel*>(widget)->cValue); 192 fprintf(CONFIG_FILE, "%s = %s\n", Buffer, static_cast<Option*>(widget)->save()); 196 193 } 197 194 … … 259 256 { 260 257 PRINT(3)("Located Option %s.\n", widget->title); 261 if(widget->isOption >= 1 && widget->isOption <= 3) 262 { 263 static_cast<Option*>(widget)->value = atoi(info->variableValue); 264 static_cast<Option*>(widget)->redraw(); //!< \todo change this to setValue. 265 } 266 else if(widget->isOption == 5) 267 static_cast<OptionLabel*>(widget)->setValue(info->variableValue); 258 if(widget->isOption >= 1) 259 static_cast<Option*>(widget)->load(info->variableValue); 268 260 } 269 261 }
Note: See TracChangeset
for help on using the changeset viewer.