Changeset 3315 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui_flags.cc
- Timestamp:
- Jan 3, 2005, 12:13:38 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_flags.cc
r3300 r3315 30 30 \param widget The Widget from which the data will be parsed 31 31 */ 32 OrxonoxGuiFlags::OrxonoxGuiFlags (Widget* widget)32 OrxonoxGuiFlags::OrxonoxGuiFlags(void) 33 33 { 34 this->flagsFrame = new Frame 35 this->flagsBox = new Box 34 this->flagsFrame = new Frame("Orxonox-Startup-Flags:"); 35 this->flagsBox = new Box('v'); 36 36 37 this->flagsLabel = new Label 38 this->flagsLabel->setSize 39 this->flagsBox->fill 40 this->shortFlags = new CheckButton 41 this->flagsBox->fill 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); 42 42 43 this->flagsFrame->fill 43 this->flagsFrame->fill(flagsBox); 44 44 } 45 45 … … 48 48 \returns Frame that holds the Flagtext. 49 49 */ 50 Widget* OrxonoxGuiFlags::getWidget ()50 Widget* OrxonoxGuiFlags::getWidget(void) 51 51 { 52 52 return this->flagsFrame; … … 57 57 \param widget the Widget from which on to scan for deeper Options and their settings. 58 58 */ 59 void OrxonoxGuiFlags::setTextFromFlags 59 void OrxonoxGuiFlags::setTextFromFlags(Widget* widget) 60 60 { 61 61 FlagInfo flagInfo; … … 76 76 void OrxonoxGuiFlags::flagsText(Widget* widget, void* flagInfo) 77 77 { 78 FlagInfo* info = 79 if 80 if 78 FlagInfo* info =(FlagInfo*)flagInfo; 79 if(widget->isOption >= 1) 80 if (static_cast<Option*>(widget)->value != static_cast<Option*>(widget)->defaultValue ) 81 81 { 82 if 82 if(info->shortFlags->isActive() && static_cast<Option*>(widget)->flagNameShort) 83 83 { 84 84 info->flagsLabel->appendText(" -"); 85 85 info->flagsLabel->appendText(static_cast<Option*>(widget)->flagNameShort); 86 86 } 87 else if 87 else if(!info->shortFlags->isActive() && static_cast<Option*>(widget)->flagName) 88 88 { 89 89 info->flagsLabel->appendText(" --"); … … 91 91 } 92 92 93 if 93 if(static_cast<Option*>(widget)->isOption == 2) 94 94 { 95 95 info->flagsLabel->appendText("=");
Note: See TracChangeset
for help on using the changeset viewer.