Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2006, 12:22:03 AM (18 years ago)
Author:
bensch
Message:

orxonox/qt_gui: more guo-elements

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc

    r7582 r7585  
    2525
    2626
    27 #include "gui_audio.h"
     27#include "gui_general.h"
    2828
    2929#include <QtGui/QLayout>
     
    3535{
    3636  /**
    37    *  Creates the Audio-Option-Frame
     37   *  Creates the General-Option-Frame
    3838  */
    39   GuiAudio::GuiAudio(OrxGui::Gui* gui)
    40   : Element("Audio", gui), QGroupBox()
     39  GuiGeneral::GuiGeneral(OrxGui::Gui* gui)
     40  : Element("General", gui), QGroupBox()
    4141  {
    4242    QGridLayout* layout = new QGridLayout(this);
    4343
    4444    {
    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);
    4749
     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);
    4854
    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");
    7061    }
    7162
     
    7465
    7566  /**
    76    *  Destructs the Audio-stuff
     67   *  Destructs the General-stuff
    7768  */
    78   GuiAudio::~GuiAudio()
     69  GuiGeneral::~GuiGeneral()
    7970  {
    8071    // nothing to do here.
Note: See TracChangeset for help on using the changeset viewer.