Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4071 in orxonox.OLD for orxonox/trunk/src/lib/gui/gui/gui_exec.cc


Ignore:
Timestamp:
May 5, 2005, 11:30:32 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: new isOption-tag of Widgets: optionType

File:
1 edited

Legend:

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

    r4068 r4071  
    177177{
    178178  int counter = 0;
    179   while(counter < depth &&((widget->isOption>0
     179  while(counter < depth &&((widget->optionType > GUI_NOTHING
    180180                              &&(static_cast<Option*>(widget)->isSaveable()))
    181                              ||(widget->isOption<0
     181                             ||(widget->optionType < GUI_NOTHING
    182182                                && static_cast<Packer*>(widget)->getGroupName())))
    183183    {
     
    187187 
    188188  // check if it is a Packer, and if it is, check if it has a name and if there is something in it.
    189   if(widget->isOption <0)
     189  if(widget->optionType < GUI_NOTHING)
    190190    {
    191191      if(static_cast<Packer*>(widget)->getGroupName())
     
    200200        }
    201201    }
    202   //  if(widget->isOption == 0)
    203   //    printf("%s\n",widget->title);
    204   if(widget->isOption >= 1)
     202
     203  if(widget->optionType > GUI_NOTHING)
    205204    if (static_cast<Option*>(widget)->isSaveable())
    206205      {
     
    280279    {
    281280      PRINT(5)("Located Option %s.\n", widget->title);
    282       if(widget->isOption >= 1)
     281      if(widget->optionType > GUI_NOTHING)
    283282        static_cast<Option*>(widget)->load(info->variableValue);
    284283    }
     
    305304    }
    306305
    307   if(widget->isOption < 0)
     306  if(widget->optionType < GUI_NOTHING)
    308307    {
    309308      if(static_cast<Packer*>(widget)->getGroupName() &&
Note: See TracChangeset for help on using the changeset viewer.