Changeset 2614 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_exec.cc
- Timestamp:
- Oct 22, 2004, 12:52:33 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui_exec.cc
r2605 r2614 38 38 execFrame = new Frame ("Execute-Tags:"); 39 39 execBox = new Box ('v'); 40 execFrame->setGroupName ("misc"); 40 41 41 42 start = new Button ("Start"); … … 119 120 void OrxonoxGuiExec::writeFileText (Widget* widget) 120 121 { 122 if (widget->is_option <0) 123 if (strcmp (static_cast<Packer*>(widget)->getGroupName(), "")) 124 fprintf (CONFIG_FILE, "[%s]\n", static_cast<Packer*>(widget)->getGroupName()); 125 121 126 if (widget->is_option >= 1) 122 127 if (strcmp (static_cast<Option*>(widget)->flag_name, "") || strcmp (static_cast<Option*>(widget)->flag_name_short, "")) … … 126 131 sprintf (Buffer, "%s", static_cast<Option*>(widget)->label); 127 132 if (strchr (Buffer, '_')) 128 cout << "Warning Optionname" << Buffer << " is not Valid for Saving, because it includes an underscore" << endl; 133 cout << "Warning Optionname" << Buffer << " is not Valid for Saving, because it includes an underscore" << endl; 129 134 while (space2under = strchr(Buffer, ' ')) 130 135 { … … 133 138 fprintf (CONFIG_FILE, "%s = %i\n", Buffer, static_cast<Option*>(widget)->value); 134 139 } 135 switch (widget->is_option)140 if (widget->is_option<0) 136 141 { 137 case -1: 138 writeFileText (static_cast<Container*>(widget)->down); 139 break; 140 case -2: 141 writeFileText (static_cast<Box*>(widget)->down); 142 break; 142 writeFileText (static_cast<Packer*>(widget)->down); 143 143 } 144 144
Note: See TracChangeset
for help on using the changeset viewer.