QTfrontend/ui/page/pagescheme.cpp
changeset 11694 d448b304bc70
parent 11046 47a8c19ecb60
child 11695 3301d4d734a6
equal deleted inserted replaced
11646:42d7f5dbd8dc 11694:d448b304bc70
   217     l->setText(QLabel::tr("Sudden Death Timeout"));
   217     l->setText(QLabel::tr("Sudden Death Timeout"));
   218     l->setWordWrap(true);
   218     l->setWordWrap(true);
   219     glBSLayout->addWidget(l,3,0,1,1);
   219     glBSLayout->addWidget(l,3,0,1,1);
   220     l = new QLabel(gbBasicSettings);
   220     l = new QLabel(gbBasicSettings);
   221     l->setFixedSize(32,32);
   221     l->setFixedSize(32,32);
   222     l->setPixmap(QPixmap(":/res/iconSuddenDeath.png"));
   222     l->setPixmap(QPixmap(":/res/iconSuddenDeathTime.png"));
   223     glBSLayout->addWidget(l,3,1,1,1);
   223     glBSLayout->addWidget(l,3,1,1,1);
   224     SB_SuddenDeath = new QSpinBox(gbBasicSettings);
   224     SB_SuddenDeath = new QSpinBox(gbBasicSettings);
   225     SB_SuddenDeath->setRange(0, 50);
   225     SB_SuddenDeath->setRange(0, 50);
   226     SB_SuddenDeath->setValue(15);
   226     SB_SuddenDeath->setValue(15);
   227     SB_SuddenDeath->setSingleStep(3);
   227     SB_SuddenDeath->setSingleStep(3);
   231     l->setText(QLabel::tr("Sudden Death Water Rise"));
   231     l->setText(QLabel::tr("Sudden Death Water Rise"));
   232     l->setWordWrap(true);
   232     l->setWordWrap(true);
   233     glBSLayout->addWidget(l,4,0,1,1);
   233     glBSLayout->addWidget(l,4,0,1,1);
   234     l = new QLabel(gbBasicSettings);
   234     l = new QLabel(gbBasicSettings);
   235     l->setFixedSize(32,32);
   235     l->setFixedSize(32,32);
   236     l->setPixmap(QPixmap(":/res/iconSuddenDeath.png")); // TODO: icon
   236     l->setPixmap(QPixmap(":/res/iconSuddenDeathWater.png"));
   237     glBSLayout->addWidget(l,4,1,1,1);
   237     glBSLayout->addWidget(l,4,1,1,1);
   238     SB_WaterRise = new QSpinBox(gbBasicSettings);
   238     SB_WaterRise = new QSpinBox(gbBasicSettings);
   239     SB_WaterRise->setRange(0, 100);
   239     SB_WaterRise->setRange(0, 100);
   240     SB_WaterRise->setValue(47);
   240     SB_WaterRise->setValue(47);
   241     SB_WaterRise->setSingleStep(5);
   241     SB_WaterRise->setSingleStep(5);
   245     l->setText(QLabel::tr("Sudden Death Health Decrease"));
   245     l->setText(QLabel::tr("Sudden Death Health Decrease"));
   246     l->setWordWrap(true);
   246     l->setWordWrap(true);
   247     glBSLayout->addWidget(l,5,0,1,1);
   247     glBSLayout->addWidget(l,5,0,1,1);
   248     l = new QLabel(gbBasicSettings);
   248     l = new QLabel(gbBasicSettings);
   249     l->setFixedSize(32,32);
   249     l->setFixedSize(32,32);
   250     l->setPixmap(QPixmap(":/res/iconSuddenDeath.png")); // TODO: icon
   250     l->setPixmap(QPixmap(":/res/iconSuddenDeath.png"));
   251     glBSLayout->addWidget(l,5,1,1,1);
   251     glBSLayout->addWidget(l,5,1,1,1);
   252     SB_HealthDecrease = new QSpinBox(gbBasicSettings);
   252     SB_HealthDecrease = new QSpinBox(gbBasicSettings);
   253     SB_HealthDecrease->setRange(0, 100);
   253     SB_HealthDecrease->setRange(0, 100);
   254     SB_HealthDecrease->setValue(5);
   254     SB_HealthDecrease->setValue(5);
   255     SB_HealthDecrease->setSingleStep(1);
   255     SB_HealthDecrease->setSingleStep(1);
   286     l->setText(QLabel::tr("% Health Crates"));
   286     l->setText(QLabel::tr("% Health Crates"));
   287     l->setWordWrap(true);
   287     l->setWordWrap(true);
   288     glBSLayout->addWidget(l,8,0,1,1);
   288     glBSLayout->addWidget(l,8,0,1,1);
   289     l = new QLabel(gbBasicSettings);
   289     l = new QLabel(gbBasicSettings);
   290     l->setFixedSize(32,32);
   290     l->setFixedSize(32,32);
   291     l->setPixmap(QPixmap(":/res/iconHealth.png")); // TODO: icon
   291     l->setPixmap(QPixmap(":/res/iconHealthPercent.png"));
   292     glBSLayout->addWidget(l,8,1,1,1);
   292     glBSLayout->addWidget(l,8,1,1,1);
   293     SB_HealthCrates = new QSpinBox(gbBasicSettings);
   293     SB_HealthCrates = new QSpinBox(gbBasicSettings);
   294     SB_HealthCrates->setRange(0, 100);
   294     SB_HealthCrates->setRange(0, 100);
   295     SB_HealthCrates->setValue(35);
   295     SB_HealthCrates->setValue(35);
   296     SB_HealthCrates->setSingleStep(5);
   296     SB_HealthCrates->setSingleStep(5);
   300     l->setText(QLabel::tr("Health in Crates"));
   300     l->setText(QLabel::tr("Health in Crates"));
   301     l->setWordWrap(true);
   301     l->setWordWrap(true);
   302     glBSLayout->addWidget(l,9,0,1,1);
   302     glBSLayout->addWidget(l,9,0,1,1);
   303     l = new QLabel(gbBasicSettings);
   303     l = new QLabel(gbBasicSettings);
   304     l->setFixedSize(32,32);
   304     l->setFixedSize(32,32);
   305     l->setPixmap(QPixmap(":/res/iconHealth.png")); // TODO: icon
   305     l->setPixmap(QPixmap(":/res/iconHealth.png"));
   306     glBSLayout->addWidget(l,9,1,1,1);
   306     glBSLayout->addWidget(l,9,1,1,1);
   307     SB_CrateHealth = new QSpinBox(gbBasicSettings);
   307     SB_CrateHealth = new QSpinBox(gbBasicSettings);
   308     SB_CrateHealth->setRange(0, 200);
   308     SB_CrateHealth->setRange(0, 200);
   309     SB_CrateHealth->setValue(25);
   309     SB_CrateHealth->setValue(25);
   310     SB_CrateHealth->setSingleStep(5);
   310     SB_CrateHealth->setSingleStep(5);
   314     l->setText(QLabel::tr("Mines Time"));
   314     l->setText(QLabel::tr("Mines Time"));
   315     l->setWordWrap(true);
   315     l->setWordWrap(true);
   316     glBSLayout->addWidget(l,10,0,1,1);
   316     glBSLayout->addWidget(l,10,0,1,1);
   317     l = new QLabel(gbBasicSettings);
   317     l = new QLabel(gbBasicSettings);
   318     l->setFixedSize(32,32);
   318     l->setFixedSize(32,32);
   319     l->setPixmap(QPixmap(":/res/iconTime.png")); // TODO: icon
   319     l->setPixmap(QPixmap(":/res/iconMineTime.png"));
   320     glBSLayout->addWidget(l,10,1,1,1);
   320     glBSLayout->addWidget(l,10,1,1,1);
   321     SB_MinesTime = new QSpinBox(gbBasicSettings);
   321     SB_MinesTime = new QSpinBox(gbBasicSettings);
   322     SB_MinesTime->setRange(-1, 5);
   322     SB_MinesTime->setRange(-1, 5);
   323     SB_MinesTime->setValue(3);
   323     SB_MinesTime->setValue(3);
   324     SB_MinesTime->setSingleStep(1);
   324     SB_MinesTime->setSingleStep(1);
   330     l->setText(QLabel::tr("Mines"));
   330     l->setText(QLabel::tr("Mines"));
   331     l->setWordWrap(true);
   331     l->setWordWrap(true);
   332     glBSLayout->addWidget(l,11,0,1,1);
   332     glBSLayout->addWidget(l,11,0,1,1);
   333     l = new QLabel(gbBasicSettings);
   333     l = new QLabel(gbBasicSettings);
   334     l->setFixedSize(32,32);
   334     l->setFixedSize(32,32);
   335     l->setPixmap(QPixmap(":/res/iconMine.png")); // TODO: icon
   335     l->setPixmap(QPixmap(":/res/iconMine.png"));
   336     glBSLayout->addWidget(l,11,1,1,1);
   336     glBSLayout->addWidget(l,11,1,1,1);
   337     SB_Mines = new QSpinBox(gbBasicSettings);
   337     SB_Mines = new QSpinBox(gbBasicSettings);
   338     SB_Mines->setRange(0, 200);
   338     SB_Mines->setRange(0, 200);
   339     SB_Mines->setValue(0);
   339     SB_Mines->setValue(0);
   340     SB_Mines->setSingleStep(5);
   340     SB_Mines->setSingleStep(5);
   358     l->setText(QLabel::tr("Explosives"));
   358     l->setText(QLabel::tr("Explosives"));
   359     l->setWordWrap(true);
   359     l->setWordWrap(true);
   360     glBSLayout->addWidget(l,13,0,1,1);
   360     glBSLayout->addWidget(l,13,0,1,1);
   361     l = new QLabel(gbBasicSettings);
   361     l = new QLabel(gbBasicSettings);
   362     l->setFixedSize(32,32);
   362     l->setFixedSize(32,32);
   363     l->setPixmap(QPixmap(":/res/iconDamage.png"));
   363     l->setPixmap(QPixmap(":/res/iconExplosive.png"));
   364     glBSLayout->addWidget(l,13,1,1,1);
   364     glBSLayout->addWidget(l,13,1,1,1);
   365     SB_Explosives = new QSpinBox(gbBasicSettings);
   365     SB_Explosives = new QSpinBox(gbBasicSettings);
   366     SB_Explosives->setRange(0, 200);
   366     SB_Explosives->setRange(0, 200);
   367     SB_Explosives->setValue(0);
   367     SB_Explosives->setValue(0);
   368     SB_Explosives->setSingleStep(3);
   368     SB_Explosives->setSingleStep(3);
   372     l->setText(QLabel::tr("Air Mines"));
   372     l->setText(QLabel::tr("Air Mines"));
   373     l->setWordWrap(true);
   373     l->setWordWrap(true);
   374     glBSLayout->addWidget(l,14,0,1,1);
   374     glBSLayout->addWidget(l,14,0,1,1);
   375     l = new QLabel(gbBasicSettings);
   375     l = new QLabel(gbBasicSettings);
   376     l->setFixedSize(32,32);
   376     l->setFixedSize(32,32);
   377     l->setPixmap(QPixmap(":/res/iconMine.png")); // TODO: icon
   377     l->setPixmap(QPixmap(":/res/iconAirMine.png"));
   378     glBSLayout->addWidget(l,14,1,1,1);
   378     glBSLayout->addWidget(l,14,1,1,1);
   379     SB_AirMines = new QSpinBox(gbBasicSettings);
   379     SB_AirMines = new QSpinBox(gbBasicSettings);
   380     SB_AirMines->setRange(0, 200);
   380     SB_AirMines->setRange(0, 200);
   381     SB_AirMines->setValue(0);
   381     SB_AirMines->setValue(0);
   382     SB_AirMines->setSingleStep(5);
   382     SB_AirMines->setSingleStep(5);
   418     l->setText(QLabel::tr("Script parameter"));
   418     l->setText(QLabel::tr("Script parameter"));
   419     l->setWordWrap(true);
   419     l->setWordWrap(true);
   420     glBSLayout->addWidget(l,17,0,1,1);
   420     glBSLayout->addWidget(l,17,0,1,1);
   421     l = new QLabel(gbBasicSettings);
   421     l = new QLabel(gbBasicSettings);
   422     l->setFixedSize(32,32);
   422     l->setFixedSize(32,32);
   423     l->setPixmap(QPixmap(":/res/iconBox.png"));
   423     l->setPixmap(QPixmap(":/res/iconScript.png"));
   424     glBSLayout->addWidget(l,17,1,1,1);
   424     glBSLayout->addWidget(l,17,1,1,1);
   425 
   425 
   426     LE_ScriptParam = new QLineEdit(gbBasicSettings);
   426     LE_ScriptParam = new QLineEdit(gbBasicSettings);
   427     LE_ScriptParam->setMaxLength(240);
   427     LE_ScriptParam->setMaxLength(240);
   428     glBSLayout->addWidget(LE_ScriptParam,17,2,1,1);
   428     glBSLayout->addWidget(LE_ScriptParam,17,2,1,1);