Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2625 in orxonox.OLD for orxonox/trunk/gui


Ignore:
Timestamp:
Oct 22, 2004, 12:28:17 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: minor optimization

Location:
orxonox/trunk/gui
Files:
3 edited

Legend:

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

    r2615 r2625  
    139139          fprintf (CONFIG_FILE, "[%s]\n", static_cast<Packer*>(widget)->getGroupName());
    140140          writeFileText (static_cast<Packer*>(widget)->down, depth+1);
     141          fprintf(CONFIG_FILE, "\n");
    141142        }
    142143      else
     
    210211        static_cast<Option*>(widget)->value = variableValue;
    211212
    212   switch (widget->is_option)
    213     {
    214     case -1:
    215       readFileText (static_cast<Container*>(widget)->down, variableName, variableValue);
    216       break;
    217     case -2:
    218       readFileText (static_cast<Box*>(widget)->down, variableName, variableValue);
    219       break;
     213  if (widget->is_option < 0)
     214    {
     215
     216      readFileText (static_cast<Packer*>(widget)->down, variableName, variableValue);
    220217    }
    221218
  • orxonox/trunk/gui/orxonox_gui_keys.cc

    r2613 r2625  
    3333{
    3434  keysFrame = new Frame ("Keyboard-Options:");
     35  keysFrame->setGroupName("Keyboard");
    3536  keysBox = new Box ('v');
    3637  player1 = new Player("player1");
  • orxonox/trunk/gui/orxonox_gui_keys.h

    r2613 r2625  
    2323  Button* openButton;
    2424  Window* window;
     25 
    2526 public:
    2627  Player(char* player);
Note: See TracChangeset for help on using the changeset viewer.