QTfrontend/ui/page/pageoptions.cpp
changeset 9249 7b8c82785145
parent 9080 9b42757d7e71
child 9998 736015b847e3
equal deleted inserted replaced
9247:68bbe56badcc 9249:7b8c82785145
   277 
   277 
   278             // TODO: less random max. also:
   278             // TODO: less random max. also:
   279             // make some min/max-consts, shared with engine?
   279             // make some min/max-consts, shared with engine?
   280             windowWidthEdit = new QSpinBox(groupGame);
   280             windowWidthEdit = new QSpinBox(groupGame);
   281             windowWidthEdit->setRange(640, 102400);
   281             windowWidthEdit->setRange(640, 102400);
   282             windowWidthEdit->setFixedSize(55, CBResolution->height());
   282             windowWidthEdit->setFixedSize(60, CBResolution->height());
   283             windowHeightEdit = new QSpinBox(groupGame);
   283             windowHeightEdit = new QSpinBox(groupGame);
   284             windowHeightEdit->setRange(480, 102400);
   284             windowHeightEdit->setRange(480, 102400);
   285             windowHeightEdit->setFixedSize(55, CBResolution->height());
   285             windowHeightEdit->setFixedSize(60, CBResolution->height());
   286 
   286 
   287             winResLayout->addWidget(windowWidthEdit, 0);
   287             winResLayout->addWidget(windowWidthEdit, 0);
   288             winResLayout->addWidget(winLabelX, 0);
   288             winResLayout->addWidget(winLabelX, 0);
   289             winResLayout->addWidget(windowHeightEdit, 0);
   289             winResLayout->addWidget(windowHeightEdit, 0);
   290             winResLayout->addStretch(1);
   290             winResLayout->addStretch(1);
   363             // Show ammo menu tooltips
   363             // Show ammo menu tooltips
   364 
   364 
   365             WeaponTooltip = new QCheckBox(groupGame);
   365             WeaponTooltip = new QCheckBox(groupGame);
   366             WeaponTooltip->setText(QCheckBox::tr("Show ammo menu tooltips"));
   366             WeaponTooltip->setText(QCheckBox::tr("Show ammo menu tooltips"));
   367             groupGame->layout()->addWidget(WeaponTooltip, 9, 0, 1, 2);
   367             groupGame->layout()->addWidget(WeaponTooltip, 9, 0, 1, 2);
       
   368 
       
   369             groupGame->addDivider();
       
   370 
       
   371             lblTags = new QLabel(groupGame);
       
   372             lblTags->setText(QLabel::tr("Displayed tags above hogs and translucent tags"));
       
   373             groupGame->layout()->addWidget(lblTags, 11, 0, 1, 2);
       
   374 
       
   375             tagsContainer = new QWidget();
       
   376             QHBoxLayout * tagsLayout = new QHBoxLayout(tagsContainer);
       
   377             tagsLayout->setSpacing(0);
       
   378             groupGame->layout()->addWidget(tagsContainer, 12, 0, 1, 2);
       
   379 
       
   380             CBTeamTag = new QCheckBox(groupGame);
       
   381             CBTeamTag->setText(QCheckBox::tr("Team"));
       
   382             CBTeamTag->setWhatsThis(QCheckBox::tr("Enable team tags by default"));
       
   383 
       
   384             CBHogTag = new QCheckBox(groupGame);
       
   385             CBHogTag->setText(QCheckBox::tr("Hog"));
       
   386             CBHogTag->setWhatsThis(QCheckBox::tr("Enable hedgehog tags by default"));
       
   387 
       
   388             CBHealthTag = new QCheckBox(groupGame);
       
   389             CBHealthTag->setText(QCheckBox::tr("Health"));
       
   390             CBHealthTag->setWhatsThis(QCheckBox::tr("Enable health tags by default"));
       
   391 
       
   392             CBTagOpacity = new QCheckBox(groupGame);
       
   393             CBTagOpacity->setText(QCheckBox::tr("Translucent"));
       
   394             CBTagOpacity->setWhatsThis(QCheckBox::tr("Enable translucent tags by default"));
       
   395 
       
   396             tagsLayout->addWidget(CBTeamTag, 0);
       
   397             tagsLayout->addWidget(CBHogTag, 0);
       
   398             tagsLayout->addWidget(CBHealthTag, 0);
       
   399             tagsLayout->addWidget(CBTagOpacity, 0);
       
   400             tagsLayout->addStretch(1); 
   368         }
   401         }
   369 
   402 
   370         { // group: frontend
   403         { // group: frontend
   371             OptionGroupBox * groupFrontend = new OptionGroupBox(":/res/graphicsicon.png", tr("Frontend"), this);
   404             OptionGroupBox * groupFrontend = new OptionGroupBox(":/res/graphicsicon.png", tr("Frontend"), this);
   372             rightColumn->addWidget(groupFrontend);
   405             rightColumn->addWidget(groupFrontend);