Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7551 in orxonox.OLD for branches


Ignore:
Timestamp:
May 6, 2006, 11:11:57 AM (19 years ago)
Author:
bensch
Message:

orxonox/qt_gui: more gui-stuff

Location:
branches/qt_gui/src/lib/gui/qt_gui
Files:
3 edited

Legend:

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

    r7549 r7551  
    4444    {
    4545      QtGuiCheckBox* fullscreen = new QtGuiCheckBox("Enabled", true);
    46       layout->addWidget(fullscreen, 0, 0);
     46      layout->addWidget(fullscreen, 0, 1);
    4747
    48       QtGuiCheckBox* wireframe = new QtGuiCheckBox("Test");
    49       layout->addWidget(wireframe, 1, 0);
    5048
     49      QLabel* soundCardLabel = new QLabel("Soundcard");
     50      layout->addWidget(soundCardLabel, 1,1);
    5151      QtGuiComboBox* soundCard = new QtGuiComboBox("SoundCard");
    52       layout->addWidget(soundCard, 2, 0);
     52      layout->addWidget(soundCard, 2, 1);
    5353
    54       QtGuiSlider* channels = new QtGuiSlider("Channels");
    55       layout->addWidget(channels, 3, 0);
     54      QtGuiSlider* channels = new QtGuiSlider("Channels", Qt::Vertical);
     55      layout->addWidget(channels, 0, 0, 3, 1);
     56      QLabel* channelsLabel = new QLabel("Channels");
     57      layout->addWidget(channelsLabel, 3,0);
    5658
     59
     60      QLabel* musicLabel = new QLabel("Music Volume");
     61      layout->addWidget(musicLabel, 0, 2);
    5762      QtGuiSlider* musicVolume = new QtGuiSlider("Music-Volume");
    58       layout->addWidget(musicVolume,0, 1);
     63      layout->addWidget(musicVolume, 1, 2);
     64
     65
     66      QLabel* effectsLabel = new QLabel("Effects Volume");
     67      layout->addWidget(effectsLabel, 2,2);
    5968      QtGuiSlider* effectVolume = new QtGuiSlider("Effects-Volume");
    60       layout->addWidget(effectVolume, 0, 2);
     69      layout->addWidget(effectVolume, 3, 2);
    6170    }
    6271
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc

    r7549 r7551  
    4747
    4848
    49   QtGuiSlider::QtGuiSlider(const std::string& name)
    50   : QSlider(), Saveable(name)
     49  QtGuiSlider::QtGuiSlider(const std::string& name, Qt::Orientation orientation)
     50  : QSlider(orientation), Saveable(name)
    5151  {
    5252
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.h

    r7549 r7551  
    4848
    4949  public:
    50     QtGuiSlider(const std::string& name);
     50    QtGuiSlider(const std::string& name, Qt::Orientation orientation = Qt::Horizontal);
    5151    virtual ~QtGuiSlider();
    5252
Note: See TracChangeset for help on using the changeset viewer.