243 AGGroupBox->setIcon(QIcon(":/res/graphicsicon.png")); |
243 AGGroupBox->setIcon(QIcon(":/res/graphicsicon.png")); |
244 //AGGroupBox->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); |
244 //AGGroupBox->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); |
245 AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options")); |
245 AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options")); |
246 |
246 |
247 QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox); |
247 QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox); |
|
248 QGridLayout * GBAfrontendlayout = new QGridLayout(0); |
248 QHBoxLayout * GBAreslayout = new QHBoxLayout(0); |
249 QHBoxLayout * GBAreslayout = new QHBoxLayout(0); |
249 QHBoxLayout * GBAstereolayout = new QHBoxLayout(0); |
250 QHBoxLayout * GBAstereolayout = new QHBoxLayout(0); |
250 QHBoxLayout * GBAqualayout = new QHBoxLayout(0); |
251 QHBoxLayout * GBAqualayout = new QHBoxLayout(0); |
251 |
252 |
|
253 QLabel * frontend = new QLabel(AGGroupBox); |
|
254 frontend->setText(QLabel::tr("Frontend")); |
|
255 frontend->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
|
256 GBAfrontendlayout->addWidget(frontend, 0, 0, 1, 2); |
|
257 |
252 CBFrontendFullscreen = new QCheckBox(AGGroupBox); |
258 CBFrontendFullscreen = new QCheckBox(AGGroupBox); |
253 CBFrontendFullscreen->setText(QCheckBox::tr("Frontend fullscreen")); |
259 CBFrontendFullscreen->setText(QCheckBox::tr("Fullscreen")); |
254 GBAlayout->addWidget(CBFrontendFullscreen); |
260 GBAfrontendlayout->addWidget(CBFrontendFullscreen, 1, 0); |
255 |
261 |
256 CBFrontendEffects = new QCheckBox(AGGroupBox); |
262 CBFrontendEffects = new QCheckBox(AGGroupBox); |
257 CBFrontendEffects->setText(QCheckBox::tr("Frontend effects")); |
263 CBFrontendEffects->setText(QCheckBox::tr("Visual effects")); |
258 GBAlayout->addWidget(CBFrontendEffects); |
264 GBAfrontendlayout->addWidget(CBFrontendEffects, 2, 0); |
259 |
265 |
260 CBFrontendSound = new QCheckBox(AGGroupBox); |
266 CBFrontendSound = new QCheckBox(AGGroupBox); |
261 CBFrontendSound->setText(QCheckBox::tr("Frontend sounds")); |
267 CBFrontendSound->setText(QCheckBox::tr("Sound")); |
262 GBAlayout->addWidget(CBFrontendSound); |
268 GBAfrontendlayout->addWidget(CBFrontendSound, 1, 1); |
263 |
269 |
264 CBFrontendMusic = new QCheckBox(AGGroupBox); |
270 CBFrontendMusic = new QCheckBox(AGGroupBox); |
265 CBFrontendMusic->setText(QCheckBox::tr("Frontend music")); |
271 CBFrontendMusic->setText(QCheckBox::tr("Music")); |
266 GBAlayout->addWidget(CBFrontendMusic); |
272 GBAfrontendlayout->addWidget(CBFrontendMusic, 2, 1); |
|
273 |
|
274 GBAlayout->addLayout(GBAfrontendlayout); |
267 |
275 |
268 QFrame * hr = new QFrame(AGGroupBox); |
276 QFrame * hr = new QFrame(AGGroupBox); |
269 hr->setFrameStyle(QFrame::HLine); |
277 hr->setFrameStyle(QFrame::HLine); |
270 hr->setLineWidth(3); |
278 hr->setLineWidth(3); |
271 hr->setFixedHeight(10); |
279 hr->setFixedHeight(10); |
337 volumeBox->setSingleStep(5); |
345 volumeBox->setSingleStep(5); |
338 GBAvollayout->addWidget(volumeBox, 0, 2); |
346 GBAvollayout->addWidget(volumeBox, 0, 2); |
339 |
347 |
340 CBSound = new QCheckBox(AGGroupBox); |
348 CBSound = new QCheckBox(AGGroupBox); |
341 CBSound->setText(QCheckBox::tr("Sound")); |
349 CBSound->setText(QCheckBox::tr("Sound")); |
|
350 CBSound->setWhatsThis(QCheckBox::tr("In-game sound effects")); |
342 GBAvollayout->addWidget(CBSound, 1, 0); |
351 GBAvollayout->addWidget(CBSound, 1, 0); |
343 |
352 |
344 CBMusic = new QCheckBox(AGGroupBox); |
353 CBMusic = new QCheckBox(AGGroupBox); |
345 CBMusic->setText(QCheckBox::tr("Music")); |
354 CBMusic->setText(QCheckBox::tr("Music")); |
|
355 CBMusic->setWhatsThis(QCheckBox::tr("In-game music")); |
346 GBAvollayout->addWidget(CBMusic, 1, 1, 1, 2); |
356 GBAvollayout->addWidget(CBMusic, 1, 1, 1, 2); |
347 |
357 |
348 GBAvollayout->setSizeConstraint(QLayout::SetMinimumSize); |
358 GBAvollayout->setSizeConstraint(QLayout::SetMinimumSize); |
349 |
359 |
350 hr = new QFrame(AGGroupBox); |
360 hr = new QFrame(AGGroupBox); |