Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2005, 12:13:38 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: code-standartisation updated in all files.

  1. member → this→member
  2. function (bla) → function(bla)
  3. other small fixes
File:
1 edited

Legend:

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

    r3300 r3315  
    3030   \param widget The Widget from which the data will be parsed
    3131*/
    32 OrxonoxGuiFlags::OrxonoxGuiFlags (Widget* widget)
     32OrxonoxGuiFlags::OrxonoxGuiFlags(void)
    3333{
    34   this->flagsFrame = new Frame ("Orxonox-Startup-Flags:");
    35   this->flagsBox = new Box ('v');
     34  this->flagsFrame = new Frame("Orxonox-Startup-Flags:");
     35  this->flagsBox = new Box('v');
    3636
    37   this->flagsLabel = new Label ();
    38   this->flagsLabel->setSize (260,60);
    39   this->flagsBox->fill (flagsLabel);
    40   this->shortFlags = new CheckButton ("shortFlags");
    41   this->flagsBox->fill (shortFlags);
     37  this->flagsLabel = new Label();
     38  this->flagsLabel->setSize(260,60);
     39  this->flagsBox->fill(flagsLabel);
     40  this->shortFlags = new CheckButton("shortFlags");
     41  this->flagsBox->fill(shortFlags);
    4242
    43   this->flagsFrame->fill (flagsBox);
     43  this->flagsFrame->fill(flagsBox);
    4444}
    4545
     
    4848   \returns Frame that holds the Flagtext.
    4949*/
    50 Widget* OrxonoxGuiFlags::getWidget ()
     50Widget* OrxonoxGuiFlags::getWidget(void)
    5151{
    5252  return this->flagsFrame;
     
    5757   \param widget the Widget from which on to scan for deeper Options and their settings.
    5858*/
    59 void OrxonoxGuiFlags::setTextFromFlags (Widget* widget)
     59void OrxonoxGuiFlags::setTextFromFlags(Widget* widget)
    6060{
    6161  FlagInfo flagInfo;
     
    7676void OrxonoxGuiFlags::flagsText(Widget* widget, void* flagInfo)
    7777{
    78   FlagInfo* info = (FlagInfo*)flagInfo;
    79   if (widget->isOption >= 1)
    80     if  (static_cast<Option*>(widget)->value != static_cast<Option*>(widget)->defaultValue )
     78  FlagInfo* info =(FlagInfo*)flagInfo;
     79  if(widget->isOption >= 1)
     80    if (static_cast<Option*>(widget)->value != static_cast<Option*>(widget)->defaultValue )
    8181      {
    82         if (info->shortFlags->isActive() && static_cast<Option*>(widget)->flagNameShort)
     82        if(info->shortFlags->isActive() && static_cast<Option*>(widget)->flagNameShort)
    8383          {
    8484            info->flagsLabel->appendText(" -");
    8585            info->flagsLabel->appendText(static_cast<Option*>(widget)->flagNameShort);
    8686          }
    87         else if (!info->shortFlags->isActive() && static_cast<Option*>(widget)->flagName)
     87        else if(!info->shortFlags->isActive() && static_cast<Option*>(widget)->flagName)
    8888          {
    8989            info->flagsLabel->appendText(" --");
     
    9191          }
    9292
    93         if (static_cast<Option*>(widget)->isOption == 2)
     93        if(static_cast<Option*>(widget)->isOption == 2)
    9494          {
    9595            info->flagsLabel->appendText("=");
Note: See TracChangeset for help on using the changeset viewer.