Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc @ 7585

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

orxonox/qt_gui: more guo-elements

File size: 1.9 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
27#include "gui_general.h"
28
29#include <QtGui/QLayout>
30#include "debug.h"
31
32#include "qt_gui_elements.h"
33
34namespace OrxGui
35{
36  /**
37   *  Creates the General-Option-Frame
38  */
39  GuiGeneral::GuiGeneral(OrxGui::Gui* gui)
40  : Element("General", gui), QGroupBox()
41  {
42    QGridLayout* layout = new QGridLayout(this);
43
44    {
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);
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);
54
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");
61    }
62
63
64  }
65
66  /**
67   *  Destructs the General-stuff
68  */
69  GuiGeneral::~GuiGeneral()
70  {
71    // nothing to do here.
72  }
73
74
75}
Note: See TracBrowser for help on using the repository browser.