118 QGridLayout * page2Layout = new QGridLayout(page2); |
118 QGridLayout * page2Layout = new QGridLayout(page2); |
119 |
119 |
120 // ====== Page 1 ====== |
120 // ====== Page 1 ====== |
121 QVBoxLayout * vbox1 = new QVBoxLayout(); |
121 QVBoxLayout * vbox1 = new QVBoxLayout(); |
122 QVBoxLayout * vbox2 = new QVBoxLayout(); |
122 QVBoxLayout * vbox2 = new QVBoxLayout(); |
123 QVBoxLayout * vbox3 = new QVBoxLayout(); |
|
124 page1Layout->addLayout(vbox1); |
123 page1Layout->addLayout(vbox1); |
125 page1Layout->addLayout(vbox2); |
124 page1Layout->addLayout(vbox2); |
126 page1Layout->addLayout(vbox3); |
|
127 |
125 |
128 GBoxHedgehogs = new QGroupBox(this); |
126 GBoxHedgehogs = new QGroupBox(this); |
129 GBoxHedgehogs->setTitle(QGroupBox::tr("Team Members")); |
127 GBoxHedgehogs->setTitle(QGroupBox::tr("Team Members")); |
130 GBoxHedgehogs->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
128 GBoxHedgehogs->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
131 QGridLayout * GBHLayout = new QGridLayout(GBoxHedgehogs); |
129 QGridLayout * GBHLayout = new QGridLayout(GBoxHedgehogs); |
159 |
157 |
160 vbox1->addWidget(GBoxHedgehogs); |
158 vbox1->addWidget(GBoxHedgehogs); |
161 |
159 |
162 |
160 |
163 GBoxTeam = new QGroupBox(this); |
161 GBoxTeam = new QGroupBox(this); |
164 GBoxTeam->setTitle(QGroupBox::tr("Team")); |
162 GBoxTeam->setTitle(QGroupBox::tr("Team Settings")); |
165 GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
163 GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
166 QVBoxLayout * GBTLayout = new QVBoxLayout(GBoxTeam); |
164 QGridLayout * GBTLayout = new QGridLayout(GBoxTeam); |
|
165 QLabel * tmpLabel = new QLabel(GBoxTeam); |
|
166 tmpLabel->setText(QLabel::tr("Name")); |
|
167 GBTLayout->addWidget(tmpLabel, 0, 0); |
|
168 tmpLabel = new QLabel(GBoxTeam); |
|
169 tmpLabel->setText(QLabel::tr("Type")); |
|
170 GBTLayout->addWidget(tmpLabel, 1, 0); |
|
171 tmpLabel = new QLabel(GBoxTeam); |
|
172 tmpLabel->setText(QLabel::tr("Grave")); |
|
173 GBTLayout->addWidget(tmpLabel, 2, 0); |
|
174 tmpLabel = new QLabel(GBoxTeam); |
|
175 tmpLabel->setText(QLabel::tr("Flag")); |
|
176 GBTLayout->addWidget(tmpLabel, 3, 0); |
|
177 tmpLabel = new QLabel(GBoxTeam); |
|
178 tmpLabel->setText(QLabel::tr("Voice")); |
|
179 GBTLayout->addWidget(tmpLabel, 4, 0); |
|
180 |
|
181 |
167 TeamNameEdit = new QLineEdit(GBoxTeam); |
182 TeamNameEdit = new QLineEdit(GBoxTeam); |
168 TeamNameEdit->setMaxLength(64); |
183 TeamNameEdit->setMaxLength(64); |
169 GBTLayout->addWidget(TeamNameEdit); |
184 GBTLayout->addWidget(TeamNameEdit, 0, 1); |
170 vbox2->addWidget(GBoxTeam); |
185 vbox2->addWidget(GBoxTeam); |
171 |
186 |
172 CBTeamLvl = new QComboBox(GBoxTeam); |
187 CBTeamLvl = new QComboBox(GBoxTeam); |
173 CBTeamLvl->setIconSize(QSize(48, 48)); |
188 CBTeamLvl->setIconSize(QSize(48, 48)); |
174 CBTeamLvl->addItem(QIcon(":/res/botlevels/0.png"), QComboBox::tr("Human")); |
189 CBTeamLvl->addItem(QIcon(":/res/botlevels/0.png"), QComboBox::tr("Human")); |
175 for(int i = 5; i > 0; i--) |
190 for(int i = 5; i > 0; i--) |
176 CBTeamLvl->addItem( |
191 CBTeamLvl->addItem( |
177 QIcon(QString(":/res/botlevels/%1.png").arg(6 - i)), |
192 QIcon(QString(":/res/botlevels/%1.png").arg(6 - i)), |
178 QString("%1 %2").arg(QComboBox::tr("Level")).arg(i) |
193 QString("%1 %2").arg(QComboBox::tr("Level")).arg(i) |
179 ); |
194 ); |
180 GBTLayout->addWidget(CBTeamLvl); |
195 GBTLayout->addWidget(CBTeamLvl, 1, 1); |
181 |
196 |
182 CBGrave = new QComboBox(GBoxTeam); |
197 CBGrave = new QComboBox(GBoxTeam); |
183 CBGrave->setMaxCount(65535); |
198 CBGrave->setMaxCount(65535); |
184 CBGrave->setIconSize(QSize(32, 32)); |
199 CBGrave->setIconSize(QSize(32, 32)); |
185 GBTLayout->addWidget(CBGrave); |
200 GBTLayout->addWidget(CBGrave, 2, 1); |
186 |
201 |
187 CBFlag = new QComboBox(GBoxTeam); |
202 CBFlag = new QComboBox(GBoxTeam); |
188 CBFlag->setMaxCount(65535); |
203 CBFlag->setMaxCount(65535); |
189 CBFlag->setIconSize(QSize(22, 15)); |
204 CBFlag->setIconSize(QSize(22, 15)); |
190 GBTLayout->addWidget(CBFlag); |
205 GBTLayout->addWidget(CBFlag, 3, 1); |
191 |
206 |
192 { |
207 { |
193 QHBoxLayout * hbox = new QHBoxLayout(); |
208 QHBoxLayout * hbox = new QHBoxLayout(); |
194 CBVoicepack = new QComboBox(GBoxTeam); |
209 CBVoicepack = new QComboBox(GBoxTeam); |
195 { |
210 { |
201 } |
216 } |
202 hbox->addWidget(CBVoicepack, 100); |
217 hbox->addWidget(CBVoicepack, 100); |
203 BtnTestSound = addButton(":/res/PlaySound.png", hbox, 1, true); |
218 BtnTestSound = addButton(":/res/PlaySound.png", hbox, 1, true); |
204 hbox->setStretchFactor(BtnTestSound, 1); |
219 hbox->setStretchFactor(BtnTestSound, 1); |
205 connect(BtnTestSound, SIGNAL(clicked()), this, SLOT(testSound())); |
220 connect(BtnTestSound, SIGNAL(clicked()), this, SLOT(testSound())); |
206 GBTLayout->addLayout(hbox); |
221 GBTLayout->addLayout(hbox, 4, 1); |
207 } |
222 } |
208 |
223 |
209 GBoxFort = new QGroupBox(this); |
224 GBoxFort = new QGroupBox(this); |
210 GBoxFort->setTitle(QGroupBox::tr("Fort")); |
225 GBoxFort->setTitle(QGroupBox::tr("Fort")); |
211 QGridLayout * GBFLayout = new QGridLayout(GBoxFort); |
226 QGridLayout * GBFLayout = new QGridLayout(GBoxFort); |
212 CBFort = new QComboBox(GBoxFort); |
227 CBFort = new QComboBox(GBoxFort); |
213 CBFort->setMaxCount(65535); |
228 CBFort->setMaxCount(65535); |
214 GBFLayout->addWidget(CBFort, 0, 0); |
229 GBFLayout->addWidget(CBFort, 0, 0); |
215 FortPreview = new SquareLabel(GBoxFort); |
230 FortPreview = new SquareLabel(GBoxFort); |
216 FortPreview->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
231 FortPreview->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
232 FortPreview->setMinimumSize(128, 128); |
217 FortPreview->setPixmap(QPixmap()); |
233 FortPreview->setPixmap(QPixmap()); |
218 // perhaps due to handling its own paintevents, SquareLabel doesn't play nice with the stars |
234 // perhaps due to handling its own paintevents, SquareLabel doesn't play nice with the stars |
219 //FortPreview->setAttribute(Qt::WA_PaintOnScreen, true); |
235 //FortPreview->setAttribute(Qt::WA_PaintOnScreen, true); |
220 GBFLayout->addWidget(FortPreview, 1, 0); |
236 GBFLayout->addWidget(FortPreview, 1, 0); |
221 vbox3->addWidget(GBoxFort); |
237 vbox2->addWidget(GBoxFort); |
222 |
238 |
223 QDir tmpdir; |
239 QDir tmpdir; |
224 tmpdir.cd(datadir->absolutePath()); |
240 tmpdir.cd(datadir->absolutePath()); |
225 tmpdir.cd("Forts"); |
241 tmpdir.cd("Forts"); |
226 tmpdir.setFilter(QDir::Files); |
242 tmpdir.setFilter(QDir::Files); |
248 CBFlag->addItem(icon, (*it).replace(QRegExp("^(.*)\\.png"), "\\1")); |
264 CBFlag->addItem(icon, (*it).replace(QRegExp("^(.*)\\.png"), "\\1")); |
249 } |
265 } |
250 |
266 |
251 vbox1->addStretch(); |
267 vbox1->addStretch(); |
252 vbox2->addStretch(); |
268 vbox2->addStretch(); |
253 // vbox3->addStretch(); |
|
254 |
269 |
255 // ====== Page 2 ====== |
270 // ====== Page 2 ====== |
256 GBoxBinds = new QGroupBox(this); |
271 GBoxBinds = new QGroupBox(this); |
257 GBoxBinds->setTitle(QGroupBox::tr("Key binds")); |
272 GBoxBinds->setTitle(QGroupBox::tr("Key binds")); |
258 QGridLayout * GBBLayout = new QGridLayout(GBoxBinds); |
273 QGridLayout * GBBLayout = new QGridLayout(GBoxBinds); |
259 BindsBox = new QToolBox(GBoxBinds); |
274 BindsBox = new QToolBox(GBoxBinds); |
260 BindsBox->setLineWidth(0); |
275 BindsBox->setLineWidth(0); |
261 GBBLayout->addWidget(BindsBox); |
276 GBBLayout->addWidget(BindsBox); |
262 page2Layout->addWidget(GBoxBinds, 0, 0); |
277 page2Layout->addWidget(GBoxBinds, 0, 0); |
263 |
278 |
264 quint16 widind = 0, i = 0; |
279 quint16 i = 0; |
265 quint16 num = 0; |
280 quint16 num = 0; |
266 QWidget * curW = NULL; |
281 QWidget * curW = NULL; |
267 QGridLayout * pagelayout = NULL; |
282 QGridLayout * pagelayout = NULL; |
268 QLabel* l = NULL; |
283 QLabel* l = NULL; |
269 while (i < BINDS_NUMBER) { |
284 while (i < BINDS_NUMBER) { |
355 QGroupBox * gbTwoBoxes = new QGroupBox(this); |
370 QGroupBox * gbTwoBoxes = new QGroupBox(this); |
356 pageLayout->addWidget(gbTwoBoxes, 0, 0, 1, 3); |
371 pageLayout->addWidget(gbTwoBoxes, 0, 0, 1, 3); |
357 QGridLayout * gbTBLayout = new QGridLayout(gbTwoBoxes); |
372 QGridLayout * gbTBLayout = new QGridLayout(gbTwoBoxes); |
358 gbTBLayout->setMargin(0); |
373 gbTBLayout->setMargin(0); |
359 gbTBLayout->setSpacing(0); |
374 gbTBLayout->setSpacing(0); |
360 { |
375 gbTBLayout->setAlignment(Qt::AlignTop | Qt::AlignLeft); |
|
376 { |
361 teamsBox = new IconedGroupBox(this); |
377 teamsBox = new IconedGroupBox(this); |
|
378 //teamsBox->setContentTopPadding(0); |
362 //teamsBox->setAttribute(Qt::WA_PaintOnScreen, true); |
379 //teamsBox->setAttribute(Qt::WA_PaintOnScreen, true); |
363 teamsBox->setIcon(QIcon(":/res/teamicon.png")); |
380 teamsBox->setIcon(QIcon(":/res/teamicon.png")); |
364 teamsBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
381 teamsBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
365 teamsBox->setTitle(QGroupBox::tr("Teams")); |
382 teamsBox->setTitle(QGroupBox::tr("Teams")); |
366 |
383 |
374 BtnNewTeam = addButton(tr("New team"), layout1, 0); |
391 BtnNewTeam = addButton(tr("New team"), layout1, 0); |
375 BtnEditTeam = addButton(tr("Edit team"), layout1, 1); |
392 BtnEditTeam = addButton(tr("Edit team"), layout1, 1); |
376 layout1->setStretchFactor(BtnNewTeam, 100); |
393 layout1->setStretchFactor(BtnNewTeam, 100); |
377 layout1->setStretchFactor(BtnEditTeam, 100); |
394 layout1->setStretchFactor(BtnEditTeam, 100); |
378 |
395 |
379 QHBoxLayout * layout2 = new QHBoxLayout; |
|
380 GBTlayout->addLayout(layout2); |
|
381 |
|
382 labelNN = new QLabel(teamsBox); |
|
383 labelNN->setText(QLabel::tr("Net nick")); |
|
384 layout2->addWidget(labelNN); |
|
385 |
|
386 editNetNick = new QLineEdit(teamsBox); |
|
387 editNetNick->setMaxLength(20); |
|
388 editNetNick->setText(QLineEdit::tr("unnamed")); |
|
389 layout2->addWidget(editNetNick); |
|
390 |
|
391 gbTBLayout->addWidget(teamsBox, 0, 0); |
396 gbTBLayout->addWidget(teamsBox, 0, 0); |
392 } |
397 } |
393 |
398 |
394 { |
399 { |
395 IconedGroupBox* groupWeapons = new IconedGroupBox(this); |
400 IconedGroupBox* groupWeapons = new IconedGroupBox(this); |
396 groupWeapons->setContentTopPadding(0); |
401 //groupWeapons->setContentTopPadding(0); |
397 groupWeapons->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
402 groupWeapons->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
398 groupWeapons->setIcon(QIcon(":/res/weaponsicon.png")); |
403 groupWeapons->setIcon(QIcon(":/res/weaponsicon.png")); |
399 //groupWeapons->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
404 //groupWeapons->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
400 groupWeapons->setTitle(QGroupBox::tr("Weapons")); |
405 groupWeapons->setTitle(QGroupBox::tr("Weapons")); |
401 QGridLayout * WeaponsLayout = new QGridLayout(groupWeapons); |
406 QGridLayout * WeaponsLayout = new QGridLayout(groupWeapons); |
411 |
416 |
412 gbTBLayout->addWidget(groupWeapons, 1, 0); |
417 gbTBLayout->addWidget(groupWeapons, 1, 0); |
413 } |
418 } |
414 |
419 |
415 { |
420 { |
|
421 IconedGroupBox* groupMisc = new IconedGroupBox(this); |
|
422 //groupMisc->setContentTopPadding(0); |
|
423 groupMisc->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
424 groupMisc->setIcon(QIcon(":/res/miscicon.png")); |
|
425 //groupMisc->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
|
426 groupMisc->setTitle(QGroupBox::tr("Misc")); |
|
427 QGridLayout * MiscLayout = new QGridLayout(groupMisc); |
|
428 |
|
429 labelNN = new QLabel(groupMisc); |
|
430 labelNN->setText(QLabel::tr("Net nick")); |
|
431 MiscLayout->addWidget(labelNN, 0, 0); |
|
432 |
|
433 editNetNick = new QLineEdit(groupMisc); |
|
434 editNetNick->setMaxLength(20); |
|
435 editNetNick->setText(QLineEdit::tr("unnamed")); |
|
436 MiscLayout->addWidget(editNetNick, 0, 1); |
|
437 |
|
438 CBAltDamage = new QCheckBox(groupMisc); |
|
439 CBAltDamage->setText(QCheckBox::tr("Alternative damage show")); |
|
440 MiscLayout->addWidget(CBAltDamage, 1, 0, 1, 2); |
|
441 |
|
442 CBNameWithDate = new QCheckBox(groupMisc); |
|
443 CBNameWithDate->setText(QCheckBox::tr("Append date and time to record file name")); |
|
444 MiscLayout->addWidget(CBNameWithDate, 2, 0, 1, 2); |
|
445 |
|
446 #ifdef SPARKLE_ENABLED |
|
447 CBAutoUpdate = new QCheckBox(groupMisc); |
|
448 CBAutoUpdate->setText(QCheckBox::tr("Check for updates at startup")); |
|
449 MiscLayout->addWidget(CBAutoUpdate, 3, 0, 1, 2); |
|
450 #endif |
|
451 |
|
452 gbTBLayout->addWidget(groupMisc, 2, 0); |
|
453 } |
|
454 |
|
455 { |
416 AGGroupBox = new IconedGroupBox(this); |
456 AGGroupBox = new IconedGroupBox(this); |
|
457 //AGGroupBox->setContentTopPadding(0); |
417 AGGroupBox->setIcon(QIcon(":/res/graphicsicon.png")); |
458 AGGroupBox->setIcon(QIcon(":/res/graphicsicon.png")); |
418 AGGroupBox->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); |
459 AGGroupBox->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); |
419 AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options")); |
460 AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options")); |
420 |
461 |
421 QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox); |
462 QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox); |
427 |
468 |
428 CBFrontendEffects = new QCheckBox(AGGroupBox); |
469 CBFrontendEffects = new QCheckBox(AGGroupBox); |
429 CBFrontendEffects->setText(QCheckBox::tr("Frontend effects (requires restart)")); |
470 CBFrontendEffects->setText(QCheckBox::tr("Frontend effects (requires restart)")); |
430 GBAlayout->addWidget(CBFrontendEffects); |
471 GBAlayout->addWidget(CBFrontendEffects); |
431 |
472 |
|
473 CBEnableFrontendSound = new QCheckBox(AGGroupBox); |
|
474 CBEnableFrontendSound->setText(QCheckBox::tr("Enable frontend sounds")); |
|
475 GBAlayout->addWidget(CBEnableFrontendSound); |
|
476 |
|
477 CBEnableFrontendMusic = new QCheckBox(AGGroupBox); |
|
478 CBEnableFrontendMusic->setText(QCheckBox::tr("Enable frontend music")); |
|
479 GBAlayout->addWidget(CBEnableFrontendMusic); |
|
480 |
|
481 QFrame * hr = new QFrame(AGGroupBox); |
|
482 hr->setFrameStyle(QFrame::HLine); |
|
483 hr->setLineWidth(3); |
|
484 hr->setFixedHeight(12); |
|
485 GBAlayout->addWidget(hr); |
|
486 |
432 QLabel * resolution = new QLabel(AGGroupBox); |
487 QLabel * resolution = new QLabel(AGGroupBox); |
433 resolution->setText(QLabel::tr("Resolution")); |
488 resolution->setText(QLabel::tr("Resolution")); |
434 GBAreslayout->addWidget(resolution); |
489 GBAreslayout->addWidget(resolution); |
435 |
490 |
436 CBResolution = new QComboBox(AGGroupBox); |
491 CBResolution = new QComboBox(AGGroupBox); |
437 GBAreslayout->addWidget(CBResolution); |
492 GBAreslayout->addWidget(CBResolution); |
438 GBAlayout->addLayout(GBAreslayout); |
493 GBAlayout->addLayout(GBAreslayout); |
439 |
494 |
440 QHBoxLayout * GBAfpslayout = new QHBoxLayout(0); |
|
441 QLabel * maxfps = new QLabel(AGGroupBox); |
|
442 maxfps->setText(QLabel::tr("FPS limit")); |
|
443 GBAfpslayout->addWidget(maxfps); |
|
444 GBAlayout->addLayout(GBAfpslayout); |
|
445 |
|
446 CBFullscreen = new QCheckBox(AGGroupBox); |
495 CBFullscreen = new QCheckBox(AGGroupBox); |
447 CBFullscreen->setText(QCheckBox::tr("Fullscreen")); |
496 CBFullscreen->setText(QCheckBox::tr("Fullscreen")); |
448 GBAlayout->addWidget(CBFullscreen); |
497 GBAlayout->addWidget(CBFullscreen); |
449 |
498 |
450 CBReduceQuality = new QCheckBox(AGGroupBox); |
499 CBReduceQuality = new QCheckBox(AGGroupBox); |
451 CBReduceQuality->setText(QCheckBox::tr("Reduced quality")); |
500 CBReduceQuality->setText(QCheckBox::tr("Reduced quality")); |
452 GBAlayout->addWidget(CBReduceQuality); |
501 GBAlayout->addWidget(CBReduceQuality); |
453 |
502 |
454 CBEnableSound = new QCheckBox(AGGroupBox); |
503 hr = new QFrame(AGGroupBox); |
455 CBEnableSound->setText(QCheckBox::tr("Enable sound")); |
504 hr->setFrameStyle(QFrame::HLine); |
456 GBAlayout->addWidget(CBEnableSound); |
505 hr->setLineWidth(3); |
457 |
506 hr->setFixedHeight(12); |
458 CBEnableFrontendSound = new QCheckBox(AGGroupBox); |
507 GBAlayout->addWidget(hr); |
459 CBEnableFrontendSound->setText(QCheckBox::tr("Enable frontend sounds")); |
|
460 GBAlayout->addWidget(CBEnableFrontendSound); |
|
461 |
|
462 CBEnableMusic = new QCheckBox(AGGroupBox); |
|
463 CBEnableMusic->setText(QCheckBox::tr("Enable music")); |
|
464 GBAlayout->addWidget(CBEnableMusic); |
|
465 |
|
466 CBEnableFrontendMusic = new QCheckBox(AGGroupBox); |
|
467 CBEnableFrontendMusic->setText(QCheckBox::tr("Enable frontend music")); |
|
468 GBAlayout->addWidget(CBEnableFrontendMusic); |
|
469 |
508 |
470 QHBoxLayout * GBAvollayout = new QHBoxLayout(0); |
509 QHBoxLayout * GBAvollayout = new QHBoxLayout(0); |
471 QLabel * vol = new QLabel(AGGroupBox); |
510 QLabel * vol = new QLabel(AGGroupBox); |
472 vol->setText(QLabel::tr("Initial sound volume")); |
511 vol->setText(QLabel::tr("Initial sound volume")); |
473 GBAvollayout->addWidget(vol); |
512 GBAvollayout->addWidget(vol); |
475 volumeBox = new QSpinBox(AGGroupBox); |
514 volumeBox = new QSpinBox(AGGroupBox); |
476 volumeBox->setRange(0, 100); |
515 volumeBox->setRange(0, 100); |
477 volumeBox->setSingleStep(5); |
516 volumeBox->setSingleStep(5); |
478 GBAvollayout->addWidget(volumeBox); |
517 GBAvollayout->addWidget(volumeBox); |
479 |
518 |
|
519 CBEnableSound = new QCheckBox(AGGroupBox); |
|
520 CBEnableSound->setText(QCheckBox::tr("Enable sound")); |
|
521 GBAlayout->addWidget(CBEnableSound); |
|
522 |
|
523 CBEnableMusic = new QCheckBox(AGGroupBox); |
|
524 CBEnableMusic->setText(QCheckBox::tr("Enable music")); |
|
525 GBAlayout->addWidget(CBEnableMusic); |
|
526 |
|
527 hr = new QFrame(AGGroupBox); |
|
528 hr->setFrameStyle(QFrame::HLine); |
|
529 hr->setLineWidth(3); |
|
530 hr->setFixedHeight(12); |
|
531 GBAlayout->addWidget(hr); |
|
532 |
|
533 QHBoxLayout * GBAfpslayout = new QHBoxLayout(0); |
|
534 QLabel * maxfps = new QLabel(AGGroupBox); |
|
535 maxfps->setText(QLabel::tr("FPS limit")); |
|
536 GBAfpslayout->addWidget(maxfps); |
|
537 GBAlayout->addLayout(GBAfpslayout); |
|
538 fpsedit = new FPSEdit(AGGroupBox); |
|
539 GBAfpslayout->addWidget(fpsedit); |
|
540 |
480 CBShowFPS = new QCheckBox(AGGroupBox); |
541 CBShowFPS = new QCheckBox(AGGroupBox); |
481 CBShowFPS->setText(QCheckBox::tr("Show FPS")); |
542 CBShowFPS->setText(QCheckBox::tr("Show FPS")); |
482 GBAlayout->addWidget(CBShowFPS); |
543 GBAlayout->addWidget(CBShowFPS); |
483 |
544 |
484 CBAltDamage = new QCheckBox(AGGroupBox); |
545 gbTBLayout->addWidget(AGGroupBox, 0, 1, 3, 1); |
485 CBAltDamage->setText(QCheckBox::tr("Alternative damage show")); |
|
486 GBAlayout->addWidget(CBAltDamage); |
|
487 |
|
488 CBNameWithDate = new QCheckBox(AGGroupBox); |
|
489 CBNameWithDate->setText(QCheckBox::tr("Append date and time to record file name")); |
|
490 GBAlayout->addWidget(CBNameWithDate); |
|
491 |
|
492 #ifdef SPARKLE_ENABLED |
|
493 CBAutoUpdate = new QCheckBox(AGGroupBox); |
|
494 CBAutoUpdate->setText(QCheckBox::tr("Check for updates at startup")); |
|
495 GBAlayout->addWidget(CBAutoUpdate); |
|
496 #endif |
|
497 |
|
498 fpsedit = new FPSEdit(AGGroupBox); |
|
499 GBAfpslayout->addWidget(fpsedit); |
|
500 gbTBLayout->addWidget(AGGroupBox, 0, 1, 2, 1); |
|
501 } |
546 } |
502 |
547 |
503 BtnSaveOptions = addButton(":/res/Save.png", pageLayout, 2, 2, true); |
548 BtnSaveOptions = addButton(":/res/Save.png", pageLayout, 2, 2, true); |
504 BtnSaveOptions->setStyleSheet("QPushButton{margin: 12px 0px 12px 0px;}"); |
549 BtnSaveOptions->setStyleSheet("QPushButton{margin: 12px 0px 12px 0px;}"); |
505 |
550 |