[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 | |
---|
[7585] | 27 | #include "gui_general.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] | 34 | namespace OrxGui |
---|
[2018] | 35 | { |
---|
[7481] | 36 | /** |
---|
[7585] | 37 | * Creates the General-Option-Frame |
---|
[7481] | 38 | */ |
---|
[7585] | 39 | GuiGeneral::GuiGeneral(OrxGui::Gui* gui) |
---|
| 40 | : Element("General", gui), QGroupBox() |
---|
[4064] | 41 | { |
---|
[7484] | 42 | QGridLayout* layout = new QGridLayout(this); |
---|
[7493] | 43 | |
---|
[7484] | 44 | { |
---|
[7585] | 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); |
---|
[7484] | 49 | |
---|
[7585] | 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); |
---|
[7493] | 54 | |
---|
[7585] | 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"); |
---|
[7484] | 61 | } |
---|
| 62 | |
---|
| 63 | |
---|
[4064] | 64 | } |
---|
[2018] | 65 | |
---|
[7481] | 66 | /** |
---|
[7585] | 67 | * Destructs the General-stuff |
---|
[7481] | 68 | */ |
---|
[7585] | 69 | GuiGeneral::~GuiGeneral() |
---|
[7481] | 70 | { |
---|
| 71 | // nothing to do here. |
---|
| 72 | } |
---|
[3423] | 73 | |
---|
| 74 | |
---|
[3624] | 75 | } |
---|