184
|
1 |
/*
|
|
2 |
* Hedgewars, a worms-like game
|
|
3 |
* Copyright (c) 2006 Andrey Korotaev <unC0Rr@gmail.com>
|
|
4 |
*
|
|
5 |
* This program is free software; you can redistribute it and/or modify
|
|
6 |
* it under the terms of the GNU General Public License as published by
|
|
7 |
* the Free Software Foundation; version 2 of the License
|
|
8 |
*
|
|
9 |
* This program is distributed in the hope that it will be useful,
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 |
* GNU General Public License for more details.
|
|
13 |
*
|
|
14 |
* You should have received a copy of the GNU General Public License
|
|
15 |
* along with this program; if not, write to the Free Software
|
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
17 |
*/
|
|
18 |
|
|
19 |
#include <QVBoxLayout>
|
|
20 |
#include <QGridLayout>
|
|
21 |
#include "ui_hwform.h"
|
|
22 |
#include "pages.h"
|
|
23 |
|
|
24 |
void Ui_HWForm::setupUi(QMainWindow *HWForm)
|
|
25 |
{
|
|
26 |
SetupFonts();
|
|
27 |
|
|
28 |
HWForm->setObjectName(QString::fromUtf8("HWForm"));
|
|
29 |
HWForm->resize(QSize(620, 430).expandedTo(HWForm->minimumSizeHint()));
|
|
30 |
HWForm->setMinimumSize(QSize(620, 430));
|
187
|
31 |
HWForm->setWindowTitle(QMainWindow::tr("Hedgewars"));
|
184
|
32 |
centralWidget = new QWidget(HWForm);
|
|
33 |
centralWidget->setObjectName(QString::fromUtf8("centralWidget"));
|
|
34 |
|
|
35 |
SetupPages(centralWidget);
|
|
36 |
|
|
37 |
HWForm->setCentralWidget(centralWidget);
|
|
38 |
|
|
39 |
Pages->setCurrentIndex(0);
|
|
40 |
|
|
41 |
QMetaObject::connectSlotsByName(HWForm);
|
|
42 |
}
|
|
43 |
|
|
44 |
void Ui_HWForm::SetupFonts()
|
|
45 |
{
|
|
46 |
font14 = new QFont("MS Shell Dlg", 14);
|
|
47 |
}
|
|
48 |
|
|
49 |
void Ui_HWForm::SetupPages(QWidget *Parent)
|
|
50 |
{
|
|
51 |
Pages = new QStackedLayout(Parent);
|
|
52 |
|
|
53 |
pageLocalGame = new PageLocalGame();
|
|
54 |
Pages->addWidget(pageLocalGame);
|
|
55 |
|
|
56 |
pageEditTeam = new PageEditTeam();
|
|
57 |
Pages->addWidget(pageEditTeam);
|
|
58 |
|
|
59 |
pageOptions = new PageOptions();
|
|
60 |
Pages->addWidget(pageOptions);
|
|
61 |
|
|
62 |
pageMultiplayer = new PageMultiplayer();
|
|
63 |
Pages->addWidget(pageMultiplayer);
|
|
64 |
|
|
65 |
pagePlayDemo = new PagePlayDemo();
|
|
66 |
Pages->addWidget(pagePlayDemo);
|
|
67 |
|
|
68 |
pageNet = new PageNet();
|
|
69 |
Pages->addWidget(pageNet);
|
|
70 |
|
|
71 |
pageNetChat = new PageNetChat();
|
|
72 |
Pages->addWidget(pageNetChat);
|
|
73 |
|
|
74 |
pageNetGame = new PageNetGame();
|
|
75 |
Pages->addWidget(pageNetGame);
|
|
76 |
|
187
|
77 |
pageInfo = new PageInfo();
|
|
78 |
Pages->addWidget(pageInfo);
|
|
79 |
|
184
|
80 |
pageMain = new PageMain();
|
|
81 |
Pages->addWidget(pageMain);
|
|
82 |
}
|