Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1983 in orxonox.OLD for orxonox/branches/gui/guicc/orxonox_gui.cc


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

orxonox/branches/gui/guicc: added setFlagName

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.