QTfrontend/ui/page/pageoptions.cpp
changeset 14677 93429d8f6b3f
parent 14551 1c623169a44d
child 14852 56293aa24e81
equal deleted inserted replaced
14676:9377ee00f1f1 14677:93429d8f6b3f
   319             SLQuality->setMaximum(5);
   319             SLQuality->setMaximum(5);
   320             SLQuality->setMinimum(0);
   320             SLQuality->setMinimum(0);
   321             SLQuality->setFixedWidth(150);
   321             SLQuality->setFixedWidth(150);
   322             groupGame->layout()->addWidget(SLQuality, 3, 1, Qt::AlignLeft);
   322             groupGame->layout()->addWidget(SLQuality, 3, 1, Qt::AlignLeft);
   323 
   323 
       
   324             // Zoom
       
   325             QLabel * lblZoom = new QLabel(groupGame);
       
   326             lblZoom->setText(QLabel::tr("Zoom (%)"));
       
   327             lblZoom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
       
   328             groupGame->layout()->addWidget(lblZoom, 4, 0);
       
   329 
       
   330             SLZoom = new QSpinBox(groupGame);
       
   331             SLZoom->setSingleStep(5);
       
   332             SLZoom->setMaximum(150);
       
   333             SLZoom->setMinimum(50);
       
   334             groupGame->layout()->addWidget(SLZoom, 4, 1, Qt::AlignLeft);
       
   335 
   324             // Stereo spacing
   336             // Stereo spacing
   325 
   337 
   326             QLabel * lblStereo = new QLabel(groupGame);
   338             QLabel * lblStereo = new QLabel(groupGame);
   327             lblStereo->setText(QLabel::tr("Stereoscopy"));
   339             lblStereo->setText(QLabel::tr("Stereoscopy"));
   328             groupGame->layout()->addWidget(lblStereo, 4, 0);
   340             groupGame->layout()->addWidget(lblStereo, 5, 0);
   329 
   341 
   330             CBStereoMode = new QComboBox(groupGame);
   342             CBStereoMode = new QComboBox(groupGame);
   331             CBStereoMode->setWhatsThis(QComboBox::tr("Stereoscopy creates an illusion of depth when you wear 3D glasses."));
   343             CBStereoMode->setWhatsThis(QComboBox::tr("Stereoscopy creates an illusion of depth when you wear 3D glasses."));
   332             CBStereoMode->setMaxVisibleItems(50);
   344             CBStereoMode->setMaxVisibleItems(50);
   333             CBStereoMode->addItem(QComboBox::tr("Disabled"));
   345             CBStereoMode->addItem(QComboBox::tr("Disabled"));
   344             CBStereoMode->addItem(QComboBox::tr("Red/Green grayscale"));
   356             CBStereoMode->addItem(QComboBox::tr("Red/Green grayscale"));
   345             CBStereoMode->addItem(QComboBox::tr("Green/Red grayscale"));
   357             CBStereoMode->addItem(QComboBox::tr("Green/Red grayscale"));
   346             CBStereoMode->addItem(QComboBox::tr("Side-by-side"));
   358             CBStereoMode->addItem(QComboBox::tr("Side-by-side"));
   347             CBStereoMode->addItem(QComboBox::tr("Top-Bottom"));
   359             CBStereoMode->addItem(QComboBox::tr("Top-Bottom"));
   348             CBStereoMode->setFixedWidth(CBResolution->width());
   360             CBStereoMode->setFixedWidth(CBResolution->width());
   349             groupGame->layout()->addWidget(CBStereoMode, 4, 1);
   361             groupGame->layout()->addWidget(CBStereoMode, 5, 1);
   350 
   362 
   351             // Divider
   363             // Divider
   352 
   364 
   353             groupGame->addDivider(); // row 5
   365             groupGame->addDivider(); // row 6
   354 
   366 
   355             // FPS limit
   367             // FPS limit
   356 
   368 
   357             QHBoxLayout * fpsLayout = new QHBoxLayout();
   369             QHBoxLayout * fpsLayout = new QHBoxLayout();
   358             groupGame->layout()->addLayout(fpsLayout, 6, 0, 1, 2);
   370             groupGame->layout()->addLayout(fpsLayout, 7, 0, 1, 2);
   359             QLabel * maxfps = new QLabel(groupGame);
   371             QLabel * maxfps = new QLabel(groupGame);
   360             maxfps->setText(QLabel::tr("FPS limit"));
   372             maxfps->setText(QLabel::tr("FPS limit"));
   361             fpsLayout->addWidget(maxfps);
   373             fpsLayout->addWidget(maxfps);
   362             fpsLayout->addSpacing(30);
   374             fpsLayout->addSpacing(30);
   363             fpsedit = new FPSEdit(groupGame);
   375             fpsedit = new FPSEdit(groupGame);
   370             fpsLayout->addWidget(CBShowFPS);
   382             fpsLayout->addWidget(CBShowFPS);
   371             fpsLayout->addStretch(1);
   383             fpsLayout->addStretch(1);
   372 
   384 
   373             // Divider
   385             // Divider
   374 
   386 
   375             groupGame->addDivider(); // row 7
   387             groupGame->addDivider(); // row 8
   376 
   388 
   377             // Alternative damage show
   389             // Alternative damage show
   378 
   390 
   379             CBAltDamage = new QCheckBox(groupGame);
   391             CBAltDamage = new QCheckBox(groupGame);
   380             CBAltDamage->setText(QCheckBox::tr("Alternative damage show"));
   392             CBAltDamage->setText(QCheckBox::tr("Alternative damage show"));
   381             groupGame->layout()->addWidget(CBAltDamage, 8, 0, 1, 2);
   393             groupGame->layout()->addWidget(CBAltDamage, 9, 0, 1, 2);
   382 
   394 
   383             // Show ammo menu tooltips
   395             // Show ammo menu tooltips
   384 
   396 
   385             WeaponTooltip = new QCheckBox(groupGame);
   397             WeaponTooltip = new QCheckBox(groupGame);
   386             WeaponTooltip->setText(QCheckBox::tr("Show ammo menu tooltips"));
   398             WeaponTooltip->setText(QCheckBox::tr("Show ammo menu tooltips"));
   387             groupGame->layout()->addWidget(WeaponTooltip, 9, 0, 1, 2);
   399             groupGame->layout()->addWidget(WeaponTooltip, 10, 0, 1, 2);
   388 
   400 
   389             groupGame->addDivider();
   401             groupGame->addDivider();
   390 
   402 
   391             lblTags = new QLabel(groupGame);
   403             lblTags = new QLabel(groupGame);
   392             lblTags->setText(QLabel::tr("Displayed tags above hogs and translucent tags"));
   404             lblTags->setText(QLabel::tr("Displayed tags above hogs and translucent tags"));
   393             groupGame->layout()->addWidget(lblTags, 11, 0, 1, 2);
   405             groupGame->layout()->addWidget(lblTags, 12, 0, 1, 2);
   394 
   406 
   395             tagsContainer = new QWidget();
   407             tagsContainer = new QWidget();
   396             QHBoxLayout * tagsLayout = new QHBoxLayout(tagsContainer);
   408             QHBoxLayout * tagsLayout = new QHBoxLayout(tagsContainer);
   397             tagsLayout->setSpacing(0);
   409             tagsLayout->setSpacing(0);
   398             groupGame->layout()->addWidget(tagsContainer, 12, 0, 1, 2);
   410             groupGame->layout()->addWidget(tagsContainer, 13, 0, 1, 2);
   399 
   411 
   400             CBTeamTag = new QCheckBox(groupGame);
   412             CBTeamTag = new QCheckBox(groupGame);
   401             CBTeamTag->setText(QCheckBox::tr("Team"));
   413             CBTeamTag->setText(QCheckBox::tr("Team"));
   402             CBTeamTag->setWhatsThis(QCheckBox::tr("Enable team tags by default"));
   414             CBTeamTag->setWhatsThis(QCheckBox::tr("Enable team tags by default"));
   403 
   415