Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 4, 2005, 11:50:34 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/guiMerge: heavy clean-up of the gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/guiMerge/src/lib/gui/gui/orxonox_gui_audio.cc

    r4024 r4046  
    3131OrxonoxGuiAudio::OrxonoxGuiAudio(void)
    3232{
    33   this->audioFrame = new Frame("Audio-Options:");
    34   this->audioBox = new Box('v');
    35   this->audioFrame->setGroupName("audio");
    36  
    37   this->enableSound = new CheckButton("Disable Sound");
    38   this->enableSound->setFlagName ("no-sound", 0);
    39   this->enableSound->saveability();
    40   this->audioBox->fill(this->enableSound);
    41   Label* musicVolumeLabel = new Label("Music Volume");
    42   this->audioBox->fill(musicVolumeLabel);
    43   this->musicVolume = new Slider("Music Volume", 0, 100);
    44   this->musicVolume->setFlagName("music-volume", "m", 80);
    45   this->musicVolume->saveability();
    46   this->audioBox->fill (this->musicVolume);
    47   Label* effectsVolumeLabel = new Label ("Effects Volume");
    48   this->audioBox->fill (effectsVolumeLabel);
    49   this->effectsVolume = new Slider ("Effects Volume", 0, 100);
    50   this->effectsVolume->setFlagName ("effects-volume", "e", 80);
    51   this->effectsVolume->saveability();
    52   this->audioBox->fill (this->effectsVolume);
     33  Frame* audioFrame;        //!< The Frame that holds the audio Options.
     34  Box* audioBox;            //!< The Box that holds the audio Options.
     35  CheckButton* enableSound; //!< A Ckeckbutton for enabling Sound.
     36  Slider* musicVolume;      //!< A Slider for music volume.
     37  Slider* effectsVolume;    //!< A Slider for effects volume.
    5338
    54   this->audioFrame->fill(this->audioBox);
    55   this->setMainWidget(this->audioFrame);
     39  audioFrame = new Frame("Audio-Options:");
     40  audioFrame->setGroupName("audio");
     41  {
     42    audioBox = new Box('v');
     43    {
     44     
     45      enableSound = new CheckButton("Disable Sound");
     46      enableSound->setFlagName ("no-sound", 0);
     47      enableSound->saveability();
     48      audioBox->fill(enableSound);
     49      Label* musicVolumeLabel = new Label("Music Volume");
     50      audioBox->fill(musicVolumeLabel);
     51      musicVolume = new Slider("Music Volume", 0, 100);
     52      musicVolume->setFlagName("music-volume", "m", 80);
     53      musicVolume->saveability();
     54      audioBox->fill (musicVolume);
     55      Label* effectsVolumeLabel = new Label ("Effects Volume");
     56      audioBox->fill (effectsVolumeLabel);
     57      effectsVolume = new Slider ("Effects Volume", 0, 100);
     58      effectsVolume->setFlagName ("effects-volume", "e", 80);
     59      effectsVolume->saveability();
     60      audioBox->fill (effectsVolume);
     61    }
     62    audioFrame->fill(audioBox);
     63  }
     64  setMainWidget(audioFrame);
    5665}
    5766
Note: See TracChangeset for help on using the changeset viewer.