Changeset 3288 in orxonox.OLD for orxonox/branches/updater/src/gui
- Timestamp:
- Dec 26, 2004, 3:22:05 AM (20 years ago)
- Location:
- orxonox/branches/updater/src/gui
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_audio.cc
r2739 r3288 37 37 enableSound = new CheckButton ("Disable Sound"); 38 38 enableSound->setFlagName ("no-sound", 0); 39 enableSound->saveab le = true;39 enableSound->saveability(); 40 40 audioBox->fill (enableSound); 41 41 Label* musicVolumeLabel = new Label ("Music Volume"); … … 43 43 musicVolume = new Slider ("Music Volume", 0, 100); 44 44 musicVolume->setFlagName ("music-volume", "m", 80); 45 musicVolume->saveab le = true;45 musicVolume->saveability(); 46 46 audioBox->fill (musicVolume); 47 47 Label* effectsVolumeLabel = new Label ("Effects Volume"); … … 49 49 effectsVolume = new Slider ("Effects Volume", 0, 100); 50 50 effectsVolume->setFlagName ("effects-volume", "e", 80); 51 effectsVolume->saveab le = true;51 effectsVolume->saveability(); 52 52 audioBox->fill (effectsVolume); 53 53 -
orxonox/branches/updater/src/gui/orxonox_gui_exec.cc
r3260 r3288 47 47 saveSettings = new CheckButton ("Save Settings"); 48 48 saveSettings->value = 1; 49 saveSettings->saveab le = true;49 saveSettings->saveability(); 50 50 execBox->fill (saveSettings); 51 51 verboseMode = new Menu ("verbose mode", "no output", "error", "warning", "info", "lastItem"); 52 52 verboseMode->setFlagName ("verbose", "v", 0); 53 verboseMode->saveab le = true;53 verboseMode->saveability(); 54 54 execBox->fill (verboseMode); 55 55 alwaysShow = new CheckButton ("Always Show this Menu"); 56 56 alwaysShow->setFlagName ("gui", "g", 0); 57 alwaysShow->saveab le = true;57 alwaysShow->saveability(); 58 58 execBox->fill (alwaysShow); 59 59 quit = new Button ("Quit"); … … 131 131 int counter = 0; 132 132 while (counter < depth && ((widget->isOption>0 133 && (static_cast<Option*>(widget)-> saveable) )133 && (static_cast<Option*>(widget)->isSaveable()) ) 134 134 || (widget->isOption<0 135 135 && static_cast<Packer*>(widget)->getGroupName()))) … … 156 156 // printf ("%s\n",widget->label); 157 157 if (widget->isOption >= 1) 158 if (static_cast<Option*>(widget)-> saveable)158 if (static_cast<Option*>(widget)->isSaveable()) 159 159 { 160 160 char Buffer[256]; -
orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc
r3287 r3288 708 708 } 709 709 710 /** 711 \brief Sets the saveable-state of the option to true. 712 */ 713 void Option::saveability(void) 714 { 715 this->saveable = true; 716 } 717 718 /** 719 \brief Sets the saveable-state of the option. 720 \param isSaveable the saveable-state to set. 721 */ 722 void Option::saveability(bool isSaveable) 723 { 724 this->saveable = isSaveable; 725 } 726 727 /** 728 \returns The saveable-state. 729 */ 730 bool Option::isSaveable(void) 731 { 732 return this->saveable; 733 } 710 734 711 735 /* BUTTON */ -
orxonox/branches/updater/src/gui/orxonox_gui_gtk.h
r3287 r3288 193 193 class Option : public Widget 194 194 { 195 protected: 196 bool saveable; //!< Options can be Saved. 197 195 198 public: 196 199 //virtual gint OptionChange (GtkWidget* widget, GdkEvent* event, gpointer data); … … 201 204 char* flagNameShort; //!< like flag_name but shorter 202 205 int defaultValue; //!< A default value is good, for hiding a option if it is not needed. (hidden if value == default_value) 203 bool saveable; //!< Options can be Saved. 204 206 207 void saveability(void); 208 void saveability(bool isSaveable); 209 bool isSaveable(void); 205 210 void setFlagName (char* flagname, int defaultvalue); 206 211 void setFlagName (char* flagname, char* flagnameshort, int defaultvalue); -
orxonox/branches/updater/src/gui/orxonox_gui_keys.cc
r3187 r3288 114 114 inputKey[key]->pKeyButton = new Button(name); 115 115 inputKey[key]->pKeyOLabel = new OptionLabel (name, name); 116 inputKey[key]->pKeyOLabel->saveab le = true;116 inputKey[key]->pKeyOLabel->saveability(); 117 117 118 118 #ifdef HAVE_GTK2 -
orxonox/branches/updater/src/gui/orxonox_gui_update.cc
r3286 r3288 53 53 this->updateBox->fill(this->autoUpdate); 54 54 this->autoUpdate->setFlagName ("update", "u", 0); 55 this->autoUpdate->saveab le = true;55 this->autoUpdate->saveability(); 56 56 57 57 this->updateSourceWindowCreate (); -
orxonox/branches/updater/src/gui/orxonox_gui_video.cc
r3187 r3288 38 38 fullscreen = new CheckButton ("Fullscreen-mode"); 39 39 fullscreen->setFlagName ("windowed", "q", 1); 40 fullscreen->saveab le = true;40 fullscreen->saveability(); 41 41 videoBox->fill (fullscreen); 42 42 wireframe = new CheckButton ("WireFrame-mode"); 43 43 wireframe->setFlagName ("wireframe", "w", 0); 44 wireframe->saveab le = true;44 wireframe->saveability(); 45 45 videoBox->fill (wireframe); 46 46
Note: See TracChangeset
for help on using the changeset viewer.