206 GBoxTeamLvl->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
206 GBoxTeamLvl->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
207 GBoxTeamLvl->setTitle(QGroupBox::tr("Team level")); |
207 GBoxTeamLvl->setTitle(QGroupBox::tr("Team level")); |
208 QGridLayout * GBTLLayout = new QGridLayout(GBoxTeamLvl); |
208 QGridLayout * GBTLLayout = new QGridLayout(GBoxTeamLvl); |
209 CBTeamLvl = new QComboBox(GBoxTeamLvl); |
209 CBTeamLvl = new QComboBox(GBoxTeamLvl); |
210 CBTeamLvl->addItem(QComboBox::tr("Human")); |
210 CBTeamLvl->addItem(QComboBox::tr("Human")); |
|
211 CBTeamLvl->addItem(QComboBox::tr("Level 5")); |
|
212 CBTeamLvl->addItem(QComboBox::tr("Level 4")); |
|
213 CBTeamLvl->addItem(QComboBox::tr("Level 3")); |
|
214 CBTeamLvl->addItem(QComboBox::tr("Level 2")); |
211 CBTeamLvl->addItem(QComboBox::tr("Level 1")); |
215 CBTeamLvl->addItem(QComboBox::tr("Level 1")); |
212 CBTeamLvl->addItem(QComboBox::tr("Level 2")); |
|
213 CBTeamLvl->addItem(QComboBox::tr("Level 3")); |
|
214 CBTeamLvl->addItem(QComboBox::tr("Level 4")); |
|
215 CBTeamLvl->addItem(QComboBox::tr("Level 5")); |
|
216 CBTeamLvl->setMaxCount(6); |
216 CBTeamLvl->setMaxCount(6); |
217 GBTLLayout->addWidget(CBTeamLvl, 0, 0, 1, 3); |
217 GBTLLayout->addWidget(CBTeamLvl, 0, 0, 1, 3); |
218 LevelPict = new QLabel(GBoxTeamLvl); |
218 LevelPict = new QLabel(GBoxTeamLvl); |
219 LevelPict->setScaledContents(false); |
219 LevelPict->setScaledContents(false); |
220 LevelPict->setFixedSize(32, 32); |
220 LevelPict->setFixedSize(32, 32); |
324 |
324 |
325 PageOptions::PageOptions(QWidget* parent) : QWidget(parent) |
325 PageOptions::PageOptions(QWidget* parent) : QWidget(parent) |
326 { |
326 { |
327 QFont * font14 = new QFont("MS Shell Dlg", 14); |
327 QFont * font14 = new QFont("MS Shell Dlg", 14); |
328 QGridLayout * pageLayout = new QGridLayout(this); |
328 QGridLayout * pageLayout = new QGridLayout(this); |
|
329 pageLayout->setColumnStretch(0, 100); |
|
330 pageLayout->setColumnStretch(1, 100); |
|
331 pageLayout->setColumnStretch(2, 100); |
|
332 pageLayout->setRowStretch(0, 0); |
|
333 pageLayout->setRowStretch(1, 0); |
|
334 pageLayout->setRowStretch(2, 100); |
|
335 pageLayout->setRowStretch(3, 0); |
|
336 |
329 groupBox = new QGroupBox(this); |
337 groupBox = new QGroupBox(this); |
330 groupBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
338 groupBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
331 groupBox->setTitle(QGroupBox::tr("Teams")); |
339 groupBox->setTitle(QGroupBox::tr("Teams")); |
332 pageLayout->addWidget(groupBox, 0, 0, 1, 3); |
340 pageLayout->addWidget(groupBox, 0, 0, 1, 3); |
333 |
341 |
346 GBTlayout->addWidget(BtnEditTeam, 0, 2); |
354 GBTlayout->addWidget(BtnEditTeam, 0, 2); |
347 |
355 |
348 AGGroupBox = new QGroupBox(this); |
356 AGGroupBox = new QGroupBox(this); |
349 AGGroupBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
357 AGGroupBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
350 AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options")); |
358 AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options")); |
351 pageLayout->addWidget(AGGroupBox, 1, 0, 1, 3); |
359 pageLayout->addWidget(AGGroupBox, 1, 1); |
352 |
360 |
353 QGridLayout * GBAlayout = new QGridLayout(AGGroupBox); |
361 QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox); |
|
362 QHBoxLayout * GBAreslayout = new QHBoxLayout(AGGroupBox); |
|
363 QLabel * resolution = new QLabel(AGGroupBox); |
|
364 resolution->setText(QLabel::tr("Resolution")); |
|
365 GBAreslayout->addWidget(resolution); |
|
366 |
354 CBResolution = new QComboBox(AGGroupBox); |
367 CBResolution = new QComboBox(AGGroupBox); |
355 CBResolution->addItem("640x480"); |
368 CBResolution->addItem("640x480"); |
356 CBResolution->addItem("800x600"); |
369 CBResolution->addItem("800x600"); |
357 CBResolution->addItem("1024x768"); |
370 CBResolution->addItem("1024x768"); |
358 CBResolution->addItem("1280x1024"); |
371 CBResolution->addItem("1280x1024"); |
359 GBAlayout->addWidget(CBResolution, 0, 0); |
372 GBAreslayout->addWidget(CBResolution); |
|
373 GBAlayout->addLayout(GBAreslayout); |
|
374 |
|
375 QHBoxLayout * GBAfpslayout = new QHBoxLayout(AGGroupBox); |
|
376 QLabel * maxfps = new QLabel(AGGroupBox); |
|
377 maxfps->setText(QLabel::tr("FPS limit")); |
|
378 GBAfpslayout->addWidget(maxfps); |
|
379 GBAlayout->addLayout(GBAfpslayout); |
360 |
380 |
361 CBFullscreen = new QCheckBox(AGGroupBox); |
381 CBFullscreen = new QCheckBox(AGGroupBox); |
362 CBFullscreen->setText(QCheckBox::tr("Fullscreen")); |
382 CBFullscreen->setText(QCheckBox::tr("Fullscreen")); |
363 GBAlayout->addWidget(CBFullscreen, 0, 1); |
383 GBAlayout->addWidget(CBFullscreen); |
364 |
384 |
365 CBEnableSound = new QCheckBox(AGGroupBox); |
385 CBEnableSound = new QCheckBox(AGGroupBox); |
366 CBEnableSound->setText(QCheckBox::tr("Enable sound")); |
386 CBEnableSound->setText(QCheckBox::tr("Enable sound")); |
367 GBAlayout->addWidget(CBEnableSound, 0, 2); |
387 GBAlayout->addWidget(CBEnableSound); |
368 |
388 |
369 CBShowFPS = new QCheckBox(AGGroupBox); |
389 CBShowFPS = new QCheckBox(AGGroupBox); |
370 CBShowFPS->setText(QCheckBox::tr("Show FPS")); |
390 CBShowFPS->setText(QCheckBox::tr("Show FPS")); |
371 GBAlayout->addWidget(CBShowFPS, 0, 3); |
391 GBAlayout->addWidget(CBShowFPS); |
372 |
392 |
373 fpsedit = new FPSEdit(AGGroupBox); |
393 fpsedit = new FPSEdit(AGGroupBox); |
374 GBAlayout->addWidget(fpsedit, 0, 4); |
394 GBAfpslayout->addWidget(fpsedit); |
375 |
|
376 pageLayout->addWidget(new QWidget(), 3, 0, 1, 3); |
|
377 |
395 |
378 BtnSaveOptions = new QPushButton(this); |
396 BtnSaveOptions = new QPushButton(this); |
379 BtnSaveOptions->setFont(*font14); |
397 BtnSaveOptions->setFont(*font14); |
380 BtnSaveOptions->setText(QPushButton::tr("Save")); |
398 BtnSaveOptions->setText(QPushButton::tr("Save")); |
381 pageLayout->addWidget(BtnSaveOptions, 4, 2); |
399 pageLayout->addWidget(BtnSaveOptions, 4, 2); |