QTfrontend/pages.cpp
changeset 1457 44cc464de8f3
parent 1450 f854866390a5
child 1487 b4cc59a6d50a
equal deleted inserted replaced
1456:2539dd079be1 1457:44cc464de8f3
   597 	QHBoxLayout * topLine = new QHBoxLayout();
   597 	QHBoxLayout * topLine = new QHBoxLayout();
   598 	QHBoxLayout * middleLine = new QHBoxLayout();
   598 	QHBoxLayout * middleLine = new QHBoxLayout();
   599 	QHBoxLayout * bottomLine = new QHBoxLayout();
   599 	QHBoxLayout * bottomLine = new QHBoxLayout();
   600 	vLayout->addStretch();
   600 	vLayout->addStretch();
   601 	vLayout->addLayout(topLine);
   601 	vLayout->addLayout(topLine);
       
   602 	vLayout->addSpacing(30);
   602 	vLayout->addLayout(middleLine);
   603 	vLayout->addLayout(middleLine);
   603 	vLayout->addStretch();
   604 	vLayout->addStretch();
   604 	vLayout->addLayout(bottomLine);
   605 	vLayout->addLayout(bottomLine);
   605 
   606 
       
   607 	topLine->addStretch();
   606 	BtnSimpleGamePage = addButton(":/res/SimpleGame.png", topLine, 0, true);
   608 	BtnSimpleGamePage = addButton(":/res/SimpleGame.png", topLine, 0, true);
   607 	BtnSimpleGamePage->setToolTip(tr("Simple Game (a quick game against the computer, settings are chosen for you)"));
   609 	BtnSimpleGamePage->setToolTip(tr("Simple Game (a quick game against the computer, settings are chosen for you)"));
   608 	
   610 	topLine->addSpacing(60);
   609 	BtnMultiplayer = addButton(":/res/Multiplayer.png", topLine, 1, true);
   611 	BtnMultiplayer = addButton(":/res/Multiplayer.png", topLine, 1, true);
   610 	BtnMultiplayer->setToolTip(tr("Multiplayer (play a hotseat game against your friends, or AI teams)"));
   612 	BtnMultiplayer->setToolTip(tr("Multiplayer (play a hotseat game against your friends, or AI teams)"));
   611 //	pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter);
   613 	topLine->addStretch();
       
   614 	
       
   615 
   612 	BtnTrainPage = addButton(":/res/Trainings.png", middleLine, 0, true);
   616 	BtnTrainPage = addButton(":/res/Trainings.png", middleLine, 0, true);
   613 	BtnTrainPage->setToolTip(tr("Training Mode (Practice your skills in a range of training missions). IN DEVELOPMENT"));
   617 	BtnTrainPage->setToolTip(tr("Training Mode (Practice your skills in a range of training missions). IN DEVELOPMENT"));
   614 	
   618 	
   615 	BtnBack = addButton(":/res/Exit.png", bottomLine, 0, true);
   619 	BtnBack = addButton(":/res/Exit.png", bottomLine, 0, true);
   616 	bottomLine->addStretch();
   620 	bottomLine->addStretch();