Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7634 in orxonox.OLD for branches/qt_gui


Ignore:
Timestamp:
May 17, 2006, 9:35:53 AM (19 years ago)
Author:
bensch
Message:

better layout in Sound

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

Legend:

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

    r7632 r7634  
    4646    {
    4747      QtGuiCheckBox* fullscreen = new QtGuiCheckBox(CONFIG_NAME_DISABLE_AUDIO, this, true);
    48       layout->addWidget(fullscreen, 0, 1);
     48      layout->addWidget(fullscreen, 0, 0);
    4949
    5050
    5151      QLabel* soundCardLabel = new QLabel("Soundcard");
    52       layout->addWidget(soundCardLabel, 1,1);
     52      layout->addWidget(soundCardLabel, 0,1);
    5353      QtGuiComboBox* soundCard = new QtGuiComboBox(CONFIG_NAME_SOUNDCARD, this, "");
    54       layout->addWidget(soundCard, 2, 1);
     54      layout->addWidget(soundCard, 0, 2);
    5555
    5656
    5757      QtGuiSlider* channels = new QtGuiSlider(CONFIG_NAME_AUDIO_CHANNELS, this, 16, Qt::Vertical);
    58       layout->addWidget(channels, 0, 0, 2, 1);
     58      layout->addWidget(channels, 0, 3, 2, 1);
    5959      QLabel* channelsLabel = new QLabel("Channels");
    60       layout->addWidget(channelsLabel, 3,0);
     60      layout->addWidget(channelsLabel, 3,3);
    6161      QLCDNumber* channelNumber = new QLCDNumber();
    6262      connect(channels, SIGNAL(valueChanged(int)), channelNumber, SLOT(display(int)));
    63       layout->addWidget(channelNumber, 2,0);
     63      layout->addWidget(channelNumber, 2,3);
    6464
    6565
    6666      QLabel* musicLabel = new QLabel("Music Volume");
    67       layout->addWidget(musicLabel, 0, 2);
     67      layout->addWidget(musicLabel, 1, 0);
    6868      QtGuiSlider* musicVolume = new QtGuiSlider(CONFIG_NAME_MUSIC_VOLUME, this, 80);
    69       layout->addWidget(musicVolume, 1, 2);
     69      layout->addWidget(musicVolume, 2, 0, 1, 2);
    7070
    7171
    7272      QLabel* effectsLabel = new QLabel("Effects Volume");
    73       layout->addWidget(effectsLabel, 2,2);
     73      layout->addWidget(effectsLabel, 3, 0);
    7474      QtGuiSlider* effectVolume = new QtGuiSlider(CONFIG_NAME_EFFECTS_VOLUME, this, 80);
    75       layout->addWidget(effectVolume, 3, 2);
     75      layout->addWidget(effectVolume, 4, 0, 1, 2);
    7676    }
    7777
  • branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc

    r7632 r7634  
    7878  void GuiGeneral::openDataFileDialog()
    7979  {
     80    QString browsePath = this->dataDir->text();
     81    if (browsePath.isEmpty())
     82      browsePath = ".";
     83
    8084    QString s = QFileDialog::getOpenFileName(
    8185        this,
    8286    "Choose the ORXONOX DATA DIRECTORY",
    83     ".",
     87    browsePath,
    8488    "ORXONOX DATA INDEX (" DEFAULT_DATA_DIR_CHECKFILE ")" );
    8589
Note: See TracChangeset for help on using the changeset viewer.