Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1983 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 18, 2004, 7:15:46 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/gui/guicc: added setFlagName

Location:
orxonox/branches/gui/guicc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/gui/guicc/orxonox_gui.cc

    r1979 r1983  
    104104    cout << static_cast<Option*>(this)->option_name <<" is : " << static_cast<Option*>(this)->value <<endl;
    105105
    106   if (this->next != NULL)
    107     this->next->listOptions ();
    108 
    109106  switch (this->is_option)
    110107    {
     
    116113      break;
    117114    }
     115
     116  if (this->next != NULL)
     117    this->next->listOptions ();
     118
     119
    118120}
    119121
     
    294296/* OPTION */
    295297
     298void 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
    296308/* BUTTON */
    297309Button::Button(char* buttonname)
     
    304316  next = NULL;
    305317  option_name = buttonname;
     318  flag_name = "";
    306319  widget = gtk_button_new_with_label (buttonname);
    307320}
     
    317330  next = NULL;
    318331  option_name = buttonname;
     332  flag_name = "";
    319333  widget = gtk_check_button_new_with_label (buttonname);
    320334
     
    340354  next = NULL;
    341355  option_name = slidername;
     356  flag_name = "";
    342357  widget = gtk_hscale_new_with_range (start, end, 5);
    343358  value = start;
     
    365380  next = NULL;
    366381  option_name = menuname;
     382  flag_name = "";
    367383  char *tmp;
    368384  va_list itemlist;
  • orxonox/branches/gui/guicc/orxonox_gui.h

    r1978 r1983  
    9696 
    9797  int value;
    98   char *option_name;
     98  char* option_name;
     99  char* flag_name;
     100
     101  void setFlagName (char *flagname);
    99102};
    100103
  • orxonox/branches/gui/guicc/orxonox_gui_audio.cc

    r1978 r1983  
    77 
    88  enableSound = new CheckButton ("Enable Sound");
     9  enableSound->setFlagName ("enablesound");
    910  audioBox->fill (enableSound);
    1011  musicVolume = new Slider ("Music Volume", 0, 100);
     12  musicVolume->setFlagName ("music-volume");
    1113  audioBox->fill (musicVolume);
    1214  effectsVolume = new Slider ("Effects Volume", 0, 100);
     15  effectsVolume->setFlagName ("effects-volume");
    1316  audioBox->fill (effectsVolume);
    1417
  • orxonox/branches/gui/guicc/orxonox_gui_exec.cc

    r1980 r1983  
    1111  execBox->fill (saveSettings);
    1212  verboseMode = new Menu ("verbose mode", "no output", "verbose", "debug", "lastItem");
     13  verboseMode->setFlagName ("verbose");
    1314  execBox->fill (verboseMode);
    1415  alwaysShow = new CheckButton ("Always Show this Menu");
     16  alwaysShow->setFlagName ("verbose");
    1517  execBox->fill (alwaysShow);
    1618  quit = new Button ("Quit");
  • orxonox/branches/gui/guicc/orxonox_gui_video.cc

    r1978 r1983  
    99 
    1010  fullscreen = new CheckButton ("Fullscreen-mode");
     11  fullscreen->setFlagName ("fullscreen");
    1112  videoBox->fill (fullscreen);
    1213  wireframe = new CheckButton ("WireFrame-mode");
     14  wireframe->setFlagName ("wireframe");
    1315  videoBox->fill (wireframe);
    1416
Note: See TracChangeset for help on using the changeset viewer.