Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3628 in orxonox.OLD


Ignore:
Timestamp:
Mar 22, 2005, 2:06:09 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: nicer output for non-gtk-users

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/gui/gui/orxonox_gui_gtk.cc

    r3627 r3628  
    6969#else /* HAVE_GTK2 */
    7070  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
    7276  while(true)
    7377    {
    74       PRINT(0)(" Listing all the Orxonox Options: \n");
     78      PRINT(0)("\n Listing all the Orxonox Options: \n");
    7579      PRINT(0)("  #############################\n");
    7680      Window::mainWindow->walkThrough(Widget::listOptionsAndGroups, 1);
     
    275279{
    276280  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    }
    282286}
    283287
     
    288292void Widget::listOptions(Widget* widget)
    289293{
    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());
    294296}
    295297
     
    302304{
    303305 
    304   if (widget->isOption >= 1 && widget->isOption <= 3)
     306  if (widget->isOption >= 1)
    305307    {
    306308      int* count =(int*)data;
    307309      *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());
    315311    }
    316312}
Note: See TracChangeset for help on using the changeset viewer.