Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/qt_gui/src/lib/gui/qt_gui/gui_audio.cc @ 7555

Last change on this file since 7555 was 7555, checked in by bensch, 18 years ago

orxonox/qt_gui: more elaborate Saveables

File size: 2.2 KB
RevLine 
[4777]1/*
[2581]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,
[4777]18   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
[2581]19
20
21   ### File Specific:
22   main-programmer: Benjamin Grauer
23
24*/
25
26
[7495]27#include "gui_audio.h"
[7484]28
[7534]29#include <QtGui/QLayout>
[7481]30#include "debug.h"
[3624]31
[7539]32#include "qt_gui_elements.h"
[7484]33
[7481]34namespace OrxGui
[2018]35{
[7481]36  /**
[7495]37   *  Creates the Audio-Option-Frame
[7481]38  */
[7549]39  GuiAudio::GuiAudio(OrxGui::Gui* gui)
40  : Element("Audio", gui), QGroupBox()
[4064]41  {
[7484]42    QGridLayout* layout = new QGridLayout(this);
[7493]43
[7484]44    {
[7555]45      QtGuiCheckBox* fullscreen = new QtGuiCheckBox("Enabled", this, true);
[7551]46      layout->addWidget(fullscreen, 0, 1);
[7484]47
[7493]48
[7551]49      QLabel* soundCardLabel = new QLabel("Soundcard");
50      layout->addWidget(soundCardLabel, 1,1);
[7555]51      QtGuiComboBox* soundCard = new QtGuiComboBox("SoundCard", this);
[7551]52      layout->addWidget(soundCard, 2, 1);
[7493]53
[7555]54      QtGuiSlider* channels = new QtGuiSlider("Channels", this, Qt::Vertical);
[7551]55      layout->addWidget(channels, 0, 0, 3, 1);
56      QLabel* channelsLabel = new QLabel("Channels");
57      layout->addWidget(channelsLabel, 3,0);
[7493]58
[7551]59
60      QLabel* musicLabel = new QLabel("Music Volume");
61      layout->addWidget(musicLabel, 0, 2);
[7555]62      QtGuiSlider* musicVolume = new QtGuiSlider("Music-Volume", this);
[7551]63      layout->addWidget(musicVolume, 1, 2);
64
65
66      QLabel* effectsLabel = new QLabel("Effects Volume");
67      layout->addWidget(effectsLabel, 2,2);
[7555]68      QtGuiSlider* effectVolume = new QtGuiSlider("Effects-Volume", this);
[7551]69      layout->addWidget(effectVolume, 3, 2);
[7484]70    }
71
72
[4064]73  }
[2018]74
[7481]75  /**
[7495]76   *  Destructs the Audio-stuff
[7481]77  */
[7495]78  GuiAudio::~GuiAudio()
[7481]79  {
80    // nothing to do here.
81  }
[3423]82
83
[3624]84}
Note: See TracBrowser for help on using the repository browser.