Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2005, 2:34:16 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches/updater: implemented advanced-Video-Options. Patrick I believe you will need them…
could not resist, during looking StarTreck TNG, after listening to graphical data processing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/src/gui/orxonox_gui_exec.cc

    r3318 r3379  
    154154  int counter = 0;
    155155  while(counter < depth &&((widget->isOption>0
    156                               &&(static_cast<Option*>(widget)->isSaveable()) )
     156                              &&(static_cast<Option*>(widget)->isSaveable()))
    157157                             ||(widget->isOption<0
    158                                  && static_cast<Packer*>(widget)->getGroupName())))
     158                                && static_cast<Packer*>(widget)->getGroupName())))
    159159    {
    160160      fprintf(this->CONFIG_FILE, "  ", depth);
     
    224224                  groupWidget = widget;
    225225                }
     226              else
     227                PRINT(3)("Group %s located.\n", static_cast<Packer*>(groupWidget)->groupName);
    226228            }
    227229          // option-setting //
     
    245247    }
    246248}
     249
    247250/**
    248251   \brief Maps Confugurations to the Options.
     
    253256{
    254257  VarInfo* info =(VarInfo*)varInfo;
    255 
    256   if(widget->isOption >= 1 && widget->isOption <= 3)
    257     {
    258       if(!strcmp(static_cast<Option*>(widget)->title, info->variableName))
    259         static_cast<Option*>(widget)->value = atoi(info->variableValue);
    260     }
    261   else if(widget->isOption == 5)
    262     {
    263        if(!strcmp(static_cast<Option*>(widget)->title, info->variableName))
     258  if(widget->title && !strcmp(widget->title, info->variableName))
     259    {
     260      PRINT(3)("Located Option %s.\n", widget->title);
     261      if(widget->isOption >= 1 && widget->isOption <= 3)
     262        {
     263          static_cast<Option*>(widget)->value = atoi(info->variableValue);
     264          static_cast<Option*>(widget)->redraw(); //!< \todo change this to setValue.
     265        }
     266      else if(widget->isOption == 5)
    264267        static_cast<OptionLabel*>(widget)->setValue(info->variableValue);
    265268    }
Note: See TracChangeset for help on using the changeset viewer.