Changeset 3628 in orxonox.OLD for orxonox/trunk/src/lib/gui
- Timestamp:
- Mar 22, 2005, 2:06:09 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/gui/gui/orxonox_gui_gtk.cc
r3627 r3628 69 69 #else /* HAVE_GTK2 */ 70 70 char boolAns = 'y'; 71 char ans[10]; 71 char ans[10]; 72 PRINT(0)("================================\n"); 73 PRINT(0)("= ORXONOX CONFIGURATION WIZARD =\n"); 74 PRINT(0)("================================ - version:" PACKAGE_VERSION "\n"); 75 72 76 while(true) 73 77 { 74 PRINT(0)(" Listing all the Orxonox Options: \n");78 PRINT(0)("\n Listing all the Orxonox Options: \n"); 75 79 PRINT(0)(" #############################\n"); 76 80 Window::mainWindow->walkThrough(Widget::listOptionsAndGroups, 1); … … 275 279 { 276 280 if (widget->isOption < 0 && static_cast<Packer*>(widget)->groupName) 277 cout << "[" << static_cast<Packer*>(widget)->groupName << "]\n";278 if (widget->isOption >= 1 && widget->isOption <= 3)279 cout << " " << static_cast<Option*>(widget)->title <<" is : " << static_cast<Option*>(widget)->value <<endl;280 else if (widget->isOption == 5)281 cout << " " << static_cast<Option*>(widget)->title <<" is : " << static_cast<OptionLabel*>(widget)->cValue <<endl;281 PRINT(0)("[%s]\n", static_cast<Packer*>(widget)->groupName); 282 if (widget->isOption >= 1) 283 { 284 Widget::listOptions(widget); 285 } 282 286 } 283 287 … … 288 292 void Widget::listOptions(Widget* widget) 289 293 { 290 if (widget->isOption >= 1 && widget->isOption <= 3) 291 cout << " " << static_cast<Option*>(widget)->title <<" is : " << static_cast<Option*>(widget)->value <<endl; 292 else if (widget->isOption == 5) 293 cout << " " << static_cast<Option*>(widget)->title <<" is : " << static_cast<OptionLabel*>(widget)->cValue <<endl; 294 if(widget->isOption >= 1) 295 PRINT(0)(" %s is %s\n", static_cast<Option*>(widget)->title, static_cast<Option*>(widget)->save()); 294 296 } 295 297 … … 302 304 { 303 305 304 if (widget->isOption >= 1 && widget->isOption <= 3)306 if (widget->isOption >= 1) 305 307 { 306 308 int* count =(int*)data; 307 309 *count = *count +1; 308 cout << *count << ": " << static_cast<Option*>(widget)->title <<" is : " << static_cast<Option*>(widget)->value <<endl; 309 } 310 else if (widget->isOption == 5) 311 { 312 int* count =(int*)data; 313 *count = *count +1; 314 cout << *count << ": " << static_cast<Option*>(widget)->title <<" is : " << static_cast<OptionLabel*>(widget)->cValue <<endl; 310 PRINT(0)(" %d:%s is %s\n", *count, static_cast<Option*>(widget)->title, static_cast<Option*>(widget)->save()); 315 311 } 316 312 }
Note: See TracChangeset
for help on using the changeset viewer.