33 #include "gamecfgwidget.h" |
33 #include "gamecfgwidget.h" |
34 #include "teamselect.h" |
34 #include "teamselect.h" |
35 #include "gamecfgwidget.h" |
35 #include "gamecfgwidget.h" |
36 #include "SquareLabel.h" |
36 #include "SquareLabel.h" |
37 #include "mapContainer.h" |
37 #include "mapContainer.h" |
|
38 #include "about.h" |
38 |
39 |
39 PageMain::PageMain(QWidget* parent) : QWidget(parent) |
40 PageMain::PageMain(QWidget* parent) : QWidget(parent) |
40 { |
41 { |
41 QFont * font14 = new QFont("MS Shell Dlg", 14); |
42 QFont * font14 = new QFont("MS Shell Dlg", 14); |
42 QGridLayout * pageLayout = new QGridLayout(this); |
43 QGridLayout * pageLayout = new QGridLayout(this); |
73 BtnSetup->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
74 BtnSetup->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
74 BtnSetup->setFont(*font14); |
75 BtnSetup->setFont(*font14); |
75 BtnSetup->setText(QPushButton::tr("Setup")); |
76 BtnSetup->setText(QPushButton::tr("Setup")); |
76 pageLayout->addWidget(BtnSetup, 5, 1); |
77 pageLayout->addWidget(BtnSetup, 5, 1); |
77 |
78 |
|
79 BtnInfo = new QPushButton(this); |
|
80 BtnInfo->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
81 BtnInfo->setFont(*font14); |
|
82 BtnInfo->setText(QPushButton::tr("About")); |
|
83 pageLayout->addWidget(BtnInfo, 6, 1); |
|
84 |
78 BtnExit = new QPushButton(parent); |
85 BtnExit = new QPushButton(parent); |
79 BtnExit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
86 BtnExit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
80 BtnExit->setFont(*font14); |
87 BtnExit->setFont(*font14); |
81 BtnExit->setText(QPushButton::tr("Exit")); |
88 BtnExit->setText(QPushButton::tr("Exit")); |
82 pageLayout->addWidget(BtnExit, 6, 1); |
89 pageLayout->addWidget(BtnExit, 7, 1); |
83 } |
90 } |
84 |
91 |
85 PageLocalGame::PageLocalGame(QWidget* parent) : QWidget(parent) |
92 PageLocalGame::PageLocalGame(QWidget* parent) : QWidget(parent) |
86 { |
93 { |
87 QFont * font14 = new QFont("MS Shell Dlg", 14); |
94 QFont * font14 = new QFont("MS Shell Dlg", 14); |
242 |
249 |
243 BtnBack = new QPushButton(this); |
250 BtnBack = new QPushButton(this); |
244 BtnBack->setFont(*font14); |
251 BtnBack->setFont(*font14); |
245 BtnBack->setText(QPushButton::tr("Back")); |
252 BtnBack->setText(QPushButton::tr("Back")); |
246 pageLayout->addWidget(BtnBack, 1, 0); |
253 pageLayout->addWidget(BtnBack, 1, 0); |
247 |
254 |
248 //HWMapContainer* pMapContainer=new HWMapContainer(this); |
255 //HWMapContainer* pMapContainer=new HWMapContainer(this); |
249 //pageLayout->addWidget(pMapContainer, 1, 1); |
256 //pageLayout->addWidget(pMapContainer, 1, 1); |
250 |
257 |
251 gameCFG = new GameCFGWidget(this); |
258 gameCFG = new GameCFGWidget(this); |
252 pageLayout->addWidget(gameCFG, 0, 0, 1, 2); |
259 pageLayout->addWidget(gameCFG, 0, 0, 1, 2); |
409 BtnCreate->setFont(*font14); |
416 BtnCreate->setFont(*font14); |
410 BtnCreate->setText(QPushButton::tr("Create")); |
417 BtnCreate->setText(QPushButton::tr("Create")); |
411 pageLayout->addWidget(BtnCreate, 1, 2); |
418 pageLayout->addWidget(BtnCreate, 1, 2); |
412 } |
419 } |
413 |
420 |
414 |
|
415 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent) |
421 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent) |
416 { |
422 { |
417 QFont * font14 = new QFont("MS Shell Dlg", 14); |
423 QFont * font14 = new QFont("MS Shell Dlg", 14); |
418 QGridLayout * pageLayout = new QGridLayout(this); |
424 QGridLayout * pageLayout = new QGridLayout(this); |
419 pageLayout->setColumnStretch(0, 1); |
425 pageLayout->setColumnStretch(0, 1); |
436 pageLayout->addWidget(BtnGo, 2, 2); |
442 pageLayout->addWidget(BtnGo, 2, 2); |
437 |
443 |
438 listNetTeams = new QListWidget(this); |
444 listNetTeams = new QListWidget(this); |
439 pageLayout->addWidget(listNetTeams, 0, 1); |
445 pageLayout->addWidget(listNetTeams, 0, 1); |
440 } |
446 } |
|
447 |
|
448 PageInfo::PageInfo(QWidget* parent) : QWidget(parent) |
|
449 { |
|
450 QFont * font14 = new QFont("MS Shell Dlg", 14); |
|
451 QGridLayout * pageLayout = new QGridLayout(this); |
|
452 pageLayout->setColumnStretch(0, 1); |
|
453 pageLayout->setColumnStretch(1, 1); |
|
454 pageLayout->setColumnStretch(2, 1); |
|
455 |
|
456 BtnBack = new QPushButton(this); |
|
457 BtnBack->setFont(*font14); |
|
458 BtnBack->setText(QPushButton::tr("Back")); |
|
459 pageLayout->addWidget(BtnBack, 1, 0); |
|
460 |
|
461 about = new About(this); |
|
462 pageLayout->addWidget(about, 0, 0, 1, 3); |
|
463 } |