193 QStringList list = tmpdir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot, QDir::Name); |
193 QStringList list = tmpdir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot, QDir::Name); |
194 CBVoicepack->addItems(list); |
194 CBVoicepack->addItems(list); |
195 } |
195 } |
196 hbox->addWidget(CBVoicepack, 100); |
196 hbox->addWidget(CBVoicepack, 100); |
197 BtnTestSound = addButton(":/res/PlaySound.png", hbox, 1, true); |
197 BtnTestSound = addButton(":/res/PlaySound.png", hbox, 1, true); |
|
198 BtnTestSound->setEnabled(openal_ready()); |
198 hbox->setStretchFactor(BtnTestSound, 1); |
199 hbox->setStretchFactor(BtnTestSound, 1); |
199 connect(BtnTestSound, SIGNAL(clicked()), this, SLOT(testSound())); |
200 connect(BtnTestSound, SIGNAL(clicked()), this, SLOT(testSound())); |
200 GBTLayout->addLayout(hbox); |
201 GBTLayout->addLayout(hbox); |
201 } |
202 } |
202 |
203 |
423 CBFrontendFullscreen->setText(QCheckBox::tr("Frontend fullscreen")); |
424 CBFrontendFullscreen->setText(QCheckBox::tr("Frontend fullscreen")); |
424 GBAlayout->addWidget(CBFrontendFullscreen); |
425 GBAlayout->addWidget(CBFrontendFullscreen); |
425 |
426 |
426 CBEnableSound = new QCheckBox(AGGroupBox); |
427 CBEnableSound = new QCheckBox(AGGroupBox); |
427 CBEnableSound->setText(QCheckBox::tr("Enable sound")); |
428 CBEnableSound->setText(QCheckBox::tr("Enable sound")); |
|
429 CBEnableSound->setEnabled(openal_ready()); |
428 GBAlayout->addWidget(CBEnableSound); |
430 GBAlayout->addWidget(CBEnableSound); |
429 |
431 |
430 CBEnableMusic = new QCheckBox(AGGroupBox); |
432 CBEnableMusic = new QCheckBox(AGGroupBox); |
431 CBEnableMusic->setText(QCheckBox::tr("Enable music")); |
433 CBEnableMusic->setText(QCheckBox::tr("Enable music")); |
|
434 CBEnableMusic->setEnabled(openal_ready()); |
432 GBAlayout->addWidget(CBEnableMusic); |
435 GBAlayout->addWidget(CBEnableMusic); |
433 |
436 |
434 QHBoxLayout * GBAvollayout = new QHBoxLayout(0); |
437 QHBoxLayout * GBAvollayout = new QHBoxLayout(0); |
435 QLabel * vol = new QLabel(AGGroupBox); |
438 QLabel * vol = new QLabel(AGGroupBox); |
436 vol->setText(QLabel::tr("Initial sound volume")); |
439 vol->setText(QLabel::tr("Initial sound volume")); |
437 GBAvollayout->addWidget(vol); |
440 GBAvollayout->addWidget(vol); |
438 GBAlayout->addLayout(GBAvollayout); |
441 GBAlayout->addLayout(GBAvollayout); |
439 volumeBox = new QSpinBox(AGGroupBox); |
442 volumeBox = new QSpinBox(AGGroupBox); |
440 volumeBox->setRange(0, 100); |
443 volumeBox->setRange(0, 100); |
441 volumeBox->setSingleStep(5); |
444 volumeBox->setSingleStep(5); |
|
445 volumeBox->setEnabled(openal_ready()); |
442 GBAvollayout->addWidget(volumeBox); |
446 GBAvollayout->addWidget(volumeBox); |
443 |
447 |
444 |
448 |
445 CBShowFPS = new QCheckBox(AGGroupBox); |
449 CBShowFPS = new QCheckBox(AGGroupBox); |
446 CBShowFPS->setText(QCheckBox::tr("Show FPS")); |
450 CBShowFPS->setText(QCheckBox::tr("Show FPS")); |