QTfrontend/pages.cpp
changeset 2915 a02f276035e8
parent 2913 865ae941d59e
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2914:7db64c269a5b 2915:a02f276035e8
  1305 	SB_MineDuds->setRange(0, 100);
  1305 	SB_MineDuds->setRange(0, 100);
  1306 	SB_MineDuds->setValue(0);
  1306 	SB_MineDuds->setValue(0);
  1307 	SB_MineDuds->setSingleStep(5);
  1307 	SB_MineDuds->setSingleStep(5);
  1308 	glBSLayout->addWidget(SB_MineDuds,7,2,1,1);
  1308 	glBSLayout->addWidget(SB_MineDuds,7,2,1,1);
  1309 
  1309 
       
  1310 
       
  1311 	l = new QLabel(gbBasicSettings);
       
  1312 	l->setText(QLabel::tr("Explosives"));
       
  1313 	l->setWordWrap(true);
       
  1314 	glBSLayout->addWidget(l,8,0,1,1);
       
  1315 	l = new QLabel(gbBasicSettings);
       
  1316 	l->setFixedSize(32,32);
       
  1317 	l->setPixmap(QPixmap(":/res/iconDamage.png"));
       
  1318 	glBSLayout->addWidget(l,8,1,1,1);
       
  1319 	SB_Explosives = new QSpinBox(gbBasicSettings);
       
  1320 	SB_Explosives->setRange(0, 40);
       
  1321 	SB_Explosives->setValue(0);
       
  1322 	SB_Explosives->setSingleStep(1);
       
  1323 	glBSLayout->addWidget(SB_Explosives,8,2,1,1);
       
  1324 
       
  1325 
  1310 	l = new QLabel(gbBasicSettings);
  1326 	l = new QLabel(gbBasicSettings);
  1311 	l->setText(QLabel::tr("Scheme Name:"));
  1327 	l->setText(QLabel::tr("Scheme Name:"));
  1312 
  1328 
  1313 	LE_name = new QLineEdit(this);
  1329 	LE_name = new QLineEdit(this);
  1314 
  1330 
  1358 	mapper->addMapping(SB_SuddenDeath, 20);
  1374 	mapper->addMapping(SB_SuddenDeath, 20);
  1359 	mapper->addMapping(SB_CaseProb, 21);
  1375 	mapper->addMapping(SB_CaseProb, 21);
  1360 	mapper->addMapping(SB_MinesTime, 22);
  1376 	mapper->addMapping(SB_MinesTime, 22);
  1361 	mapper->addMapping(SB_Mines, 23);
  1377 	mapper->addMapping(SB_Mines, 23);
  1362 	mapper->addMapping(SB_MineDuds, 24);
  1378 	mapper->addMapping(SB_MineDuds, 24);
       
  1379 	mapper->addMapping(SB_Explosives, 25);
  1363 
  1380 
  1364 	mapper->toFirst();
  1381 	mapper->toFirst();
  1365 }
  1382 }
  1366 
  1383 
  1367 void PageScheme::newRow()
  1384 void PageScheme::newRow()
  1430 
  1447 
  1431 	BtnLAN = addButton(tr("LAN game"), pageLayout, 1, 2);
  1448 	BtnLAN = addButton(tr("LAN game"), pageLayout, 1, 2);
  1432 	BtnOfficialServer = addButton(tr("Official server"), pageLayout, 2, 2);
  1449 	BtnOfficialServer = addButton(tr("Official server"), pageLayout, 2, 2);
  1433 
  1450 
  1434 	// hack: temporary deactivated - requires server modifications that aren't backward compatible (yet)
  1451 	// hack: temporary deactivated - requires server modifications that aren't backward compatible (yet)
  1435 	BtnOfficialServer->setEnabled(false);
  1452 	//BtnOfficialServer->setEnabled(false);
  1436 
  1453 
  1437 	BtnBack = addButton(":/res/Exit.png", pageLayout, 4, 0, true);
  1454 	BtnBack = addButton(":/res/Exit.png", pageLayout, 4, 0, true);
  1438 }
  1455 }