Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1998 in orxonox.OLD


Ignore:
Timestamp:
Jun 21, 2004, 4:39:11 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/gui/guicc: added style! and labled the sliders

Location:
orxonox/branches/gui/guicc
Files:
1 added
3 edited

Legend:

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

    r1997 r1998  
    2727   */
    2828  gtk_init (&argc, &argv);
    29 
     29  gtk_rc_parse( "rc" );
    3030
    3131  orxonoxGUI = new Window("Graphical Orxonox Launcher");
     
    448448  gtk_label_set_line_wrap (GTK_LABEL(widget), TRUE);
    449449}
     450
     451Label:: Label (char* text)
     452{
     453  is_option = 0;
     454  next = NULL;
     455  widget = gtk_label_new (text);
     456  gtk_label_set_line_wrap (GTK_LABEL(widget), TRUE);
     457}
     458
    450459Label::~Label ()
    451460{}
  • orxonox/branches/gui/guicc/orxonox_gui.h

    r1997 r1998  
    126126  Slider (char* slidername,int start, int end);
    127127  ~Slider ();
    128   int i;
    129128  static gint OptionChange (GtkWidget* widget, Widget* slider);
    130129};
     
    143142 public:
    144143  Label ();
     144  Label (char* text);
    145145  ~Label ();
    146146 
  • orxonox/branches/gui/guicc/orxonox_gui_audio.cc

    r1996 r1998  
    99  enableSound->setFlagName ("no-sound", 0);
    1010  audioBox->fill (enableSound);
     11  Label* musicVolumeLabel = new Label ("Music Volume");
     12  audioBox->fill (musicVolumeLabel);
    1113  musicVolume = new Slider ("Music Volume", 0, 100);
    1214  musicVolume->setFlagName ("music-volume", "m", 80);
    1315  audioBox->fill (musicVolume);
     16  Label* effectsVolumeLabel = new Label ("Effects Volume");
     17  audioBox->fill (effectsVolumeLabel);
    1418  effectsVolume = new Slider ("Effects Volume", 0, 100);
    1519  effectsVolume->setFlagName ("effects-volume", "e", 80);
Note: See TracChangeset for help on using the changeset viewer.