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