Changeset 7585 in orxonox.OLD for branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc
- Timestamp:
- May 11, 2006, 12:22:03 AM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc
r7582 r7585 25 25 26 26 27 #include "gui_ audio.h"27 #include "gui_general.h" 28 28 29 29 #include <QtGui/QLayout> … … 35 35 { 36 36 /** 37 * Creates the Audio-Option-Frame37 * Creates the General-Option-Frame 38 38 */ 39 Gui Audio::GuiAudio(OrxGui::Gui* gui)40 : Element(" Audio", gui), QGroupBox()39 GuiGeneral::GuiGeneral(OrxGui::Gui* gui) 40 : Element("General", gui), QGroupBox() 41 41 { 42 42 QGridLayout* layout = new QGridLayout(this); 43 43 44 44 { 45 QtGuiCheckBox* fullscreen = new QtGuiCheckBox("Enabled", this, true); 46 layout->addWidget(fullscreen, 0, 1); 45 QLabel* dataDirLabel = new QLabel("DataDirectory"); 46 layout->addWidget(dataDirLabel, 0,0); 47 QtGuiInputLine* dataDir = new QtGuiInputLine("SoundCard", this); 48 layout->addWidget(dataDir, 0, 1, 1, 2); 47 49 50 QLabel* debugLabel = new QLabel("debug-mode"); 51 layout->addWidget(debugLabel, 1,0); 52 QtGuiComboBox* debug = new QtGuiComboBox("debug", this); 53 layout->addWidget(debug, 1, 1, 1, 2); 48 54 49 QLabel* soundCardLabel = new QLabel("Soundcard"); 50 layout->addWidget(soundCardLabel, 1,1); 51 QtGuiComboBox* soundCard = new QtGuiComboBox("SoundCard", this); 52 layout->addWidget(soundCard, 2, 1); 53 54 QtGuiSlider* channels = new QtGuiSlider("Channels", this, Qt::Vertical); 55 layout->addWidget(channels, 0, 0, 3, 1); 56 QLabel* channelsLabel = new QLabel("Channels"); 57 layout->addWidget(channelsLabel, 3,0); 58 59 60 QLabel* musicLabel = new QLabel("Music Volume"); 61 layout->addWidget(musicLabel, 0, 2); 62 QtGuiSlider* musicVolume = new QtGuiSlider("Music-Volume", this); 63 layout->addWidget(musicVolume, 1, 2); 64 65 66 QLabel* effectsLabel = new QLabel("Effects Volume"); 67 layout->addWidget(effectsLabel, 2,2); 68 QtGuiSlider* effectVolume = new QtGuiSlider("Effects-Volume", this); 69 layout->addWidget(effectVolume, 3, 2); 55 debug->addItem("0 - minimal"); 56 debug->addItem("1 - errors"); 57 debug->addItem("2 - warnings"); 58 debug->addItem("3 - information"); 59 debug->addItem("4 - debug"); 60 debug->addItem("5 - extremely debug"); 70 61 } 71 62 … … 74 65 75 66 /** 76 * Destructs the Audio-stuff67 * Destructs the General-stuff 77 68 */ 78 Gui Audio::~GuiAudio()69 GuiGeneral::~GuiGeneral() 79 70 { 80 71 // nothing to do here.
Note: See TracChangeset
for help on using the changeset viewer.