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 //BtnTestSound->setEnabled(openal_ready()); |
199 hbox->setStretchFactor(BtnTestSound, 1); |
199 hbox->setStretchFactor(BtnTestSound, 1); |
200 connect(BtnTestSound, SIGNAL(clicked()), this, SLOT(testSound())); |
200 connect(BtnTestSound, SIGNAL(clicked()), this, SLOT(testSound())); |
201 GBTLayout->addLayout(hbox); |
201 GBTLayout->addLayout(hbox); |
202 } |
202 } |
203 |
203 |
425 CBFrontendFullscreen->setText(QCheckBox::tr("Frontend fullscreen")); |
425 CBFrontendFullscreen->setText(QCheckBox::tr("Frontend fullscreen")); |
426 GBAlayout->addWidget(CBFrontendFullscreen); |
426 GBAlayout->addWidget(CBFrontendFullscreen); |
427 |
427 |
428 CBEnableSound = new QCheckBox(AGGroupBox); |
428 CBEnableSound = new QCheckBox(AGGroupBox); |
429 CBEnableSound->setText(QCheckBox::tr("Enable sound")); |
429 CBEnableSound->setText(QCheckBox::tr("Enable sound")); |
430 CBEnableSound->setEnabled(openal_ready()); |
430 //CBEnableSound->setEnabled(openal_ready()); |
431 GBAlayout->addWidget(CBEnableSound); |
431 GBAlayout->addWidget(CBEnableSound); |
432 |
432 |
433 CBEnableMusic = new QCheckBox(AGGroupBox); |
433 CBEnableMusic = new QCheckBox(AGGroupBox); |
434 CBEnableMusic->setText(QCheckBox::tr("Enable music")); |
434 CBEnableMusic->setText(QCheckBox::tr("Enable music")); |
435 CBEnableMusic->setEnabled(openal_ready()); |
435 //CBEnableMusic->setEnabled(openal_ready()); |
436 GBAlayout->addWidget(CBEnableMusic); |
436 GBAlayout->addWidget(CBEnableMusic); |
437 |
437 |
438 QHBoxLayout * GBAvollayout = new QHBoxLayout(0); |
438 QHBoxLayout * GBAvollayout = new QHBoxLayout(0); |
439 QLabel * vol = new QLabel(AGGroupBox); |
439 QLabel * vol = new QLabel(AGGroupBox); |
440 vol->setText(QLabel::tr("Initial sound volume")); |
440 vol->setText(QLabel::tr("Initial sound volume")); |