68 BtnNet->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
69 BtnNet->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
69 BtnNet->setFont(*font14); |
70 BtnNet->setFont(*font14); |
70 BtnNet->setText(QPushButton::tr("Net game")); |
71 BtnNet->setText(QPushButton::tr("Net game")); |
71 pageLayout->addWidget(BtnNet, 3, 1); |
72 pageLayout->addWidget(BtnNet, 3, 1); |
72 |
73 |
|
74 BtnLoad = new QPushButton(this); |
|
75 BtnLoad->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
76 BtnLoad->setFont(*font14); |
|
77 BtnLoad->setText(QPushButton::tr("Load")); |
|
78 pageLayout->addWidget(BtnLoad, 4, 1); |
|
79 |
73 BtnDemos = new QPushButton(this); |
80 BtnDemos = new QPushButton(this); |
74 BtnDemos->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
81 BtnDemos->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
75 BtnDemos->setFont(*font14); |
82 BtnDemos->setFont(*font14); |
76 BtnDemos->setText(QPushButton::tr("Demos")); |
83 BtnDemos->setText(QPushButton::tr("Demos")); |
77 pageLayout->addWidget(BtnDemos, 4, 1); |
84 pageLayout->addWidget(BtnDemos, 5, 1); |
78 |
85 |
79 BtnSetup = new QPushButton(this); |
86 BtnSetup = new QPushButton(this); |
80 BtnSetup->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
87 BtnSetup->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
81 BtnSetup->setFont(*font14); |
88 BtnSetup->setFont(*font14); |
82 BtnSetup->setText(QPushButton::tr("Setup")); |
89 BtnSetup->setText(QPushButton::tr("Setup")); |
83 pageLayout->addWidget(BtnSetup, 5, 1); |
90 pageLayout->addWidget(BtnSetup, 6, 1); |
84 |
91 |
85 BtnInfo = new QPushButton(this); |
92 BtnInfo = new QPushButton(this); |
86 BtnInfo->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
93 BtnInfo->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
87 BtnInfo->setFont(*font14); |
94 BtnInfo->setFont(*font14); |
88 BtnInfo->setText(QPushButton::tr("About")); |
95 BtnInfo->setText(QPushButton::tr("About")); |
89 pageLayout->addWidget(BtnInfo, 6, 1); |
96 pageLayout->addWidget(BtnInfo, 7, 1); |
90 |
97 |
91 BtnExit = new QPushButton(parent); |
98 BtnExit = new QPushButton(parent); |
92 BtnExit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
99 BtnExit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
93 BtnExit->setFont(*font14); |
100 BtnExit->setFont(*font14); |
94 BtnExit->setText(QPushButton::tr("Exit")); |
101 BtnExit->setText(QPushButton::tr("Exit")); |
304 BtnStartMPGame->setFont(*font14); |
311 BtnStartMPGame->setFont(*font14); |
305 BtnStartMPGame->setText(QPushButton::tr("Start")); |
312 BtnStartMPGame->setText(QPushButton::tr("Start")); |
306 pageLayout->addWidget(BtnStartMPGame, 1, 3); |
313 pageLayout->addWidget(BtnStartMPGame, 1, 3); |
307 } |
314 } |
308 |
315 |
309 PagePlayDemo::PagePlayDemo(QWidget* parent) : QWidget(parent) |
|
310 { |
|
311 QFont * font14 = new QFont("MS Shell Dlg", 14); |
|
312 QGridLayout * pageLayout = new QGridLayout(this); |
|
313 pageLayout->setColumnStretch(0, 1); |
|
314 pageLayout->setColumnStretch(1, 2); |
|
315 pageLayout->setColumnStretch(2, 1); |
|
316 |
|
317 BtnBack = new QPushButton(this); |
|
318 BtnBack->setFont(*font14); |
|
319 BtnBack->setText(QPushButton::tr("Back")); |
|
320 pageLayout->addWidget(BtnBack, 1, 0); |
|
321 |
|
322 BtnPlayDemo = new QPushButton(this); |
|
323 BtnPlayDemo->setGeometry(QRect(240, 330, 161, 41)); |
|
324 BtnPlayDemo->setFont(*font14); |
|
325 BtnPlayDemo->setText(QPushButton::tr("Play demo")); |
|
326 pageLayout->addWidget(BtnPlayDemo, 1, 2); |
|
327 |
|
328 DemosList = new QListWidget(this); |
|
329 DemosList->setGeometry(QRect(170, 10, 311, 311)); |
|
330 pageLayout->addWidget(DemosList, 0, 1); |
|
331 } |
|
332 |
|
333 PageOptions::PageOptions(QWidget* parent) : QWidget(parent) |
316 PageOptions::PageOptions(QWidget* parent) : QWidget(parent) |
334 { |
317 { |
335 QFont * font14 = new QFont("MS Shell Dlg", 14); |
318 QFont * font14 = new QFont("MS Shell Dlg", 14); |
336 QGridLayout * pageLayout = new QGridLayout(this); |
319 QGridLayout * pageLayout = new QGridLayout(this); |
337 pageLayout->setColumnStretch(0, 100); |
320 pageLayout->setColumnStretch(0, 100); |