Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3166 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_gtk.cc


Ignore:
Timestamp:
Dec 13, 2004, 2:20:31 AM (21 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: now it does something without GTK and it looks nice

File:
1 edited

Legend:

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

    r3165 r3166  
    178178void Widget::listOptions (Widget* widget)
    179179{
    180   if (widget->isOption >= 1)
    181     cout << static_cast<Option*>(widget)->label <<" is : " << static_cast<Option*>(widget)->value <<endl;
     180  if (widget->isOption < 0 && static_cast<Packer*>(widget)->groupName)
     181    cout << "[" << static_cast<Packer*>(widget)->groupName << "]\n";
     182  if (widget->isOption >= 1 && widget->isOption <= 3)
     183    cout << "  " << static_cast<Option*>(widget)->label <<" is : " << static_cast<Option*>(widget)->value <<endl;
     184  else if (widget->isOption == 5)
     185    cout << "  " << static_cast<Option*>(widget)->label <<" is : " << static_cast<OptionLabel*>(widget)->cValue <<endl;
    182186}
    183187
     
    342346  if (!isOpen)
    343347    {
    344       printf ("showall\n");
     348      //      printf ("showall\n");
    345349#ifdef HAVE_GTK2
    346350      gtk_widget_show_all  (widget);
     
    350354  else
    351355    {
    352       printf ("showone\n");
     356      //      printf ("showone\n");
    353357#ifdef HAVE_GTK2
    354358      gtk_widget_show (widget);
     
    665669  strcpy(flagName, flagname);
    666670  defaultValue = defaultvalue;
    667   cout << "Set Flagname of " << label << " to " << flagname << endl;
     671
     672  //  cout << "Set Flagname of " << label << " to " << flagname << endl;
    668673}
    669674
     
    686691  strcpy(flagNameShort, flagnameshort);
    687692  defaultValue = defaultvalue;
    688   cout << "Set Flagname of " << label << " to " << flagname << endl;
     693  //  cout << "Set Flagname of " << label << " to " << flagname << endl;
    689694}
    690695
Note: See TracChangeset for help on using the changeset viewer.