Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/gui/gui/gui_audio.cc @ 4056

Last change on this file since 4056 was 4056, checked in by bensch, 19 years ago

orxonox/trunk/gui: naming

File size: 2.3 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   This program is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with this program; if not, write to the Free Software Foundation,
18   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
19
20
21   ### File Specific:
22   main-programmer: Benjamin Grauer
23
24*/
25
26#include "gui_audio.h"
27
28#include "gui_gtk.h"
29
30/**
31   \brief Creates an Audio-Frame
32*/
33GuiAudio::GuiAudio(void)
34{
35  Frame* audioFrame;        //!< The Frame that holds the audio Options.
36
37  audioFrame = new Frame("Audio-Options:");
38  audioFrame->setGroupName("audio");
39  {
40    Box* audioBox;            //!< The Box that holds the audio Options.
41    audioBox = new Box('v');
42    {
43      CheckButton* enableSound; //!< A Ckeckbutton for enabling Sound.
44      Slider* musicVolume;      //!< A Slider for music volume.
45      Slider* effectsVolume;    //!< A Slider for effects volume.
46     
47      enableSound = new CheckButton("Disable Sound");
48      enableSound->setFlagName ("no-sound", 0);
49      enableSound->saveability();
50      audioBox->fill(enableSound);
51      Label* musicVolumeLabel = new Label("Music Volume");
52      audioBox->fill(musicVolumeLabel);
53      musicVolume = new Slider("Music Volume", 0, 100);
54      musicVolume->setFlagName("music-volume", "m", 80);
55      musicVolume->saveability();
56      audioBox->fill (musicVolume);
57      Label* effectsVolumeLabel = new Label ("Effects Volume");
58      audioBox->fill (effectsVolumeLabel);
59      effectsVolume = new Slider ("Effects Volume", 0, 100);
60      effectsVolume->setFlagName ("effects-volume", "e", 80);
61      effectsVolume->saveability();
62      audioBox->fill (effectsVolume);
63    }
64    audioFrame->fill(audioBox);
65  }
66  setMainWidget(audioFrame);
67}
68
69/**
70    \brief Destructs the Audio-Stuff
71*/
72GuiAudio::~GuiAudio(void)
73{
74  // nothing to do here.
75}
Note: See TracBrowser for help on using the repository browser.