Changeset 7634 in orxonox.OLD for branches/qt_gui
- Timestamp:
- May 17, 2006, 9:35:53 AM (19 years ago)
- 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 46 46 { 47 47 QtGuiCheckBox* fullscreen = new QtGuiCheckBox(CONFIG_NAME_DISABLE_AUDIO, this, true); 48 layout->addWidget(fullscreen, 0, 1);48 layout->addWidget(fullscreen, 0, 0); 49 49 50 50 51 51 QLabel* soundCardLabel = new QLabel("Soundcard"); 52 layout->addWidget(soundCardLabel, 1,1);52 layout->addWidget(soundCardLabel, 0,1); 53 53 QtGuiComboBox* soundCard = new QtGuiComboBox(CONFIG_NAME_SOUNDCARD, this, ""); 54 layout->addWidget(soundCard, 2, 1);54 layout->addWidget(soundCard, 0, 2); 55 55 56 56 57 57 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); 59 59 QLabel* channelsLabel = new QLabel("Channels"); 60 layout->addWidget(channelsLabel, 3, 0);60 layout->addWidget(channelsLabel, 3,3); 61 61 QLCDNumber* channelNumber = new QLCDNumber(); 62 62 connect(channels, SIGNAL(valueChanged(int)), channelNumber, SLOT(display(int))); 63 layout->addWidget(channelNumber, 2, 0);63 layout->addWidget(channelNumber, 2,3); 64 64 65 65 66 66 QLabel* musicLabel = new QLabel("Music Volume"); 67 layout->addWidget(musicLabel, 0, 2);67 layout->addWidget(musicLabel, 1, 0); 68 68 QtGuiSlider* musicVolume = new QtGuiSlider(CONFIG_NAME_MUSIC_VOLUME, this, 80); 69 layout->addWidget(musicVolume, 1, 2);69 layout->addWidget(musicVolume, 2, 0, 1, 2); 70 70 71 71 72 72 QLabel* effectsLabel = new QLabel("Effects Volume"); 73 layout->addWidget(effectsLabel, 2,2);73 layout->addWidget(effectsLabel, 3, 0); 74 74 QtGuiSlider* effectVolume = new QtGuiSlider(CONFIG_NAME_EFFECTS_VOLUME, this, 80); 75 layout->addWidget(effectVolume, 3, 2);75 layout->addWidget(effectVolume, 4, 0, 1, 2); 76 76 } 77 77 -
branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc
r7632 r7634 78 78 void GuiGeneral::openDataFileDialog() 79 79 { 80 QString browsePath = this->dataDir->text(); 81 if (browsePath.isEmpty()) 82 browsePath = "."; 83 80 84 QString s = QFileDialog::getOpenFileName( 81 85 this, 82 86 "Choose the ORXONOX DATA DIRECTORY", 83 ".",87 browsePath, 84 88 "ORXONOX DATA INDEX (" DEFAULT_DATA_DIR_CHECKFILE ")" ); 85 89
Note: See TracChangeset
for help on using the changeset viewer.