Changeset 3147 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_exec.cc
- Timestamp:
- Dec 11, 2004, 3:08:34 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui_exec.cc
r2740 r3147 125 125 { 126 126 int counter = 0; 127 while (counter < depth && ((widget->is _option>0127 while (counter < depth && ((widget->isOption>0 128 128 && (static_cast<Option*>(widget)->saveable) ) 129 || (widget->is _option<0129 || (widget->isOption<0 130 130 && strcmp (static_cast<Packer*>(widget)->getGroupName(), "")))) 131 131 { … … 135 135 136 136 // check if it is a Packer, and if it is, check if it has a name and if there is something in it. 137 if (widget->is _option <0)137 if (widget->isOption <0) 138 138 { 139 139 if (strcmp (static_cast<Packer*>(widget)->getGroupName(), "")) … … 148 148 } 149 149 } 150 // if (widget->is _option == 0)150 // if (widget->isOption == 0) 151 151 // printf ("%s\n",widget->label); 152 if (widget->is _option >= 1)152 if (widget->isOption >= 1) 153 153 if (static_cast<Option*>(widget)->saveable) 154 154 { … … 219 219 void OrxonoxGuiExec::readFileText (Widget* widget, char* variableName, int variableValue, int depth) 220 220 { 221 if (widget->is _option >= 1)221 if (widget->isOption >= 1) 222 222 if (!strcmp (static_cast<Option*>(widget)->label, variableName)) 223 223 static_cast<Option*>(widget)->value = variableValue; 224 224 225 if (widget->is _option < 0)225 if (widget->isOption < 0) 226 226 { 227 227 readFileText (static_cast<Packer*>(widget)->down, variableName, variableValue, depth+1); … … 246 246 } 247 247 248 if (widget->is _option < 0)248 if (widget->isOption < 0) 249 249 { 250 250 if (!strcmp(groupName, static_cast<Packer*>(widget)->getGroupName()))
Note: See TracChangeset
for help on using the changeset viewer.