Changeset 3379 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui_exec.cc
- Timestamp:
- Jan 24, 2005, 2:34:16 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_exec.cc
r3318 r3379 154 154 int counter = 0; 155 155 while(counter < depth &&((widget->isOption>0 156 &&(static_cast<Option*>(widget)->isSaveable()) 156 &&(static_cast<Option*>(widget)->isSaveable())) 157 157 ||(widget->isOption<0 158 158 && static_cast<Packer*>(widget)->getGroupName()))) 159 159 { 160 160 fprintf(this->CONFIG_FILE, " ", depth); … … 224 224 groupWidget = widget; 225 225 } 226 else 227 PRINT(3)("Group %s located.\n", static_cast<Packer*>(groupWidget)->groupName); 226 228 } 227 229 // option-setting // … … 245 247 } 246 248 } 249 247 250 /** 248 251 \brief Maps Confugurations to the Options. … … 253 256 { 254 257 VarInfo* info =(VarInfo*)varInfo; 255 256 if(widget->isOption >= 1 && widget->isOption <= 3)257 {258 if( !strcmp(static_cast<Option*>(widget)->title, info->variableName))259 static_cast<Option*>(widget)->value = atoi(info->variableValue);260 } 261 else if(widget->isOption == 5) 262 { 263 if(!strcmp(static_cast<Option*>(widget)->title, info->variableName))258 if(widget->title && !strcmp(widget->title, info->variableName)) 259 { 260 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) 264 267 static_cast<OptionLabel*>(widget)->setValue(info->variableValue); 265 268 }
Note: See TracChangeset
for help on using the changeset viewer.