47 #include "hwconsts.h" |
47 #include "hwconsts.h" |
48 #include "gamecfgwidget.h" |
48 #include "gamecfgwidget.h" |
49 #include "teamselect.h" |
49 #include "teamselect.h" |
50 #include "gamecfgwidget.h" |
50 #include "gamecfgwidget.h" |
51 #include "SquareLabel.h" |
51 #include "SquareLabel.h" |
|
52 #include "mapContainer.h" |
52 |
53 |
53 PageMain::PageMain(QWidget* parent) : QWidget(parent) |
54 PageMain::PageMain(QWidget* parent) : QWidget(parent) |
54 { |
55 { |
55 QFont * font14 = new QFont("MS Shell Dlg", 14); |
56 QFont * font14 = new QFont("MS Shell Dlg", 14); |
56 QGridLayout * pageLayout = new QGridLayout(this); |
57 QGridLayout * pageLayout = new QGridLayout(this); |
256 |
257 |
257 BtnBack = new QPushButton(this); |
258 BtnBack = new QPushButton(this); |
258 BtnBack->setFont(*font14); |
259 BtnBack->setFont(*font14); |
259 BtnBack->setText(QPushButton::tr("Back")); |
260 BtnBack->setText(QPushButton::tr("Back")); |
260 pageLayout->addWidget(BtnBack, 1, 0); |
261 pageLayout->addWidget(BtnBack, 1, 0); |
|
262 |
|
263 //HWMapContainer* pMapContainer=new HWMapContainer(this); |
|
264 //pageLayout->addWidget(pMapContainer, 1, 1); |
261 |
265 |
262 gameCFG = new GameCFGWidget(this); |
266 gameCFG = new GameCFGWidget(this); |
263 pageLayout->addWidget(gameCFG, 0, 0, 1, 2); |
267 pageLayout->addWidget(gameCFG, 0, 0, 1, 2); |
264 teamsSelect = new TeamSelWidget(this); |
268 teamsSelect = new TeamSelWidget(this); |
265 pageLayout->addWidget(teamsSelect, 0, 2, 1, 2); |
269 pageLayout->addWidget(teamsSelect, 0, 2, 1, 2); |