Changeset 1983 in orxonox.OLD for orxonox/branches/gui
- Timestamp:
- Jun 18, 2004, 7:15:46 PM (20 years ago)
- Location:
- orxonox/branches/gui/guicc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/gui/guicc/orxonox_gui.cc
r1979 r1983 104 104 cout << static_cast<Option*>(this)->option_name <<" is : " << static_cast<Option*>(this)->value <<endl; 105 105 106 if (this->next != NULL)107 this->next->listOptions ();108 109 106 switch (this->is_option) 110 107 { … … 116 113 break; 117 114 } 115 116 if (this->next != NULL) 117 this->next->listOptions (); 118 119 118 120 } 119 121 … … 294 296 /* OPTION */ 295 297 298 void Option::setFlagName (char *flagname) 299 { 300 /** 301 * \brief Sets the Flagname of an Option. If it is set different then "" this Option will be saved to the Configurationfile 302 */ 303 flag_name = flagname; 304 cout << "Set Flagname of " << option_name << " to " << flagname << endl; 305 } 306 307 296 308 /* BUTTON */ 297 309 Button::Button(char* buttonname) … … 304 316 next = NULL; 305 317 option_name = buttonname; 318 flag_name = ""; 306 319 widget = gtk_button_new_with_label (buttonname); 307 320 } … … 317 330 next = NULL; 318 331 option_name = buttonname; 332 flag_name = ""; 319 333 widget = gtk_check_button_new_with_label (buttonname); 320 334 … … 340 354 next = NULL; 341 355 option_name = slidername; 356 flag_name = ""; 342 357 widget = gtk_hscale_new_with_range (start, end, 5); 343 358 value = start; … … 365 380 next = NULL; 366 381 option_name = menuname; 382 flag_name = ""; 367 383 char *tmp; 368 384 va_list itemlist; -
orxonox/branches/gui/guicc/orxonox_gui.h
r1978 r1983 96 96 97 97 int value; 98 char *option_name; 98 char* option_name; 99 char* flag_name; 100 101 void setFlagName (char *flagname); 99 102 }; 100 103 -
orxonox/branches/gui/guicc/orxonox_gui_audio.cc
r1978 r1983 7 7 8 8 enableSound = new CheckButton ("Enable Sound"); 9 enableSound->setFlagName ("enablesound"); 9 10 audioBox->fill (enableSound); 10 11 musicVolume = new Slider ("Music Volume", 0, 100); 12 musicVolume->setFlagName ("music-volume"); 11 13 audioBox->fill (musicVolume); 12 14 effectsVolume = new Slider ("Effects Volume", 0, 100); 15 effectsVolume->setFlagName ("effects-volume"); 13 16 audioBox->fill (effectsVolume); 14 17 -
orxonox/branches/gui/guicc/orxonox_gui_exec.cc
r1980 r1983 11 11 execBox->fill (saveSettings); 12 12 verboseMode = new Menu ("verbose mode", "no output", "verbose", "debug", "lastItem"); 13 verboseMode->setFlagName ("verbose"); 13 14 execBox->fill (verboseMode); 14 15 alwaysShow = new CheckButton ("Always Show this Menu"); 16 alwaysShow->setFlagName ("verbose"); 15 17 execBox->fill (alwaysShow); 16 18 quit = new Button ("Quit"); -
orxonox/branches/gui/guicc/orxonox_gui_video.cc
r1978 r1983 9 9 10 10 fullscreen = new CheckButton ("Fullscreen-mode"); 11 fullscreen->setFlagName ("fullscreen"); 11 12 videoBox->fill (fullscreen); 12 13 wireframe = new CheckButton ("WireFrame-mode"); 14 wireframe->setFlagName ("wireframe"); 13 15 videoBox->fill (wireframe); 14 16
Note: See TracChangeset
for help on using the changeset viewer.