author | displacer |
Fri, 23 Feb 2007 13:31:11 +0000 | |
changeset 485 | defe001d490c |
parent 471 | e1eb64ba5e9c |
child 486 | 7ea71cd3acd5 |
permissions | -rw-r--r-- |
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> |
|
471 | 21 |
#include <QMainWindow> |
22 |
#include <QStackedLayout> |
|
23 |
||
184 | 24 |
#include "ui_hwform.h" |
25 |
#include "pages.h" |
|
26 |
||
27 |
void Ui_HWForm::setupUi(QMainWindow *HWForm) |
|
28 |
{ |
|
29 |
SetupFonts(); |
|
30 |
||
31 |
HWForm->setObjectName(QString::fromUtf8("HWForm")); |
|
485
defe001d490c
form size increased (network chat is now fit into window initially)
displacer
parents:
471
diff
changeset
|
32 |
HWForm->resize(QSize(640, 480).expandedTo(HWForm->minimumSizeHint())); |
184 | 33 |
HWForm->setMinimumSize(QSize(620, 430)); |
187 | 34 |
HWForm->setWindowTitle(QMainWindow::tr("Hedgewars")); |
184 | 35 |
centralWidget = new QWidget(HWForm); |
36 |
centralWidget->setObjectName(QString::fromUtf8("centralWidget")); |
|
37 |
||
38 |
SetupPages(centralWidget); |
|
39 |
||
40 |
HWForm->setCentralWidget(centralWidget); |
|
41 |
||
42 |
Pages->setCurrentIndex(0); |
|
43 |
||
44 |
QMetaObject::connectSlotsByName(HWForm); |
|
45 |
} |
|
46 |
||
47 |
void Ui_HWForm::SetupFonts() |
|
48 |
{ |
|
49 |
font14 = new QFont("MS Shell Dlg", 14); |
|
50 |
} |
|
51 |
||
52 |
void Ui_HWForm::SetupPages(QWidget *Parent) |
|
53 |
{ |
|
54 |
Pages = new QStackedLayout(Parent); |
|
55 |
||
56 |
pageLocalGame = new PageLocalGame(); |
|
57 |
Pages->addWidget(pageLocalGame); |
|
58 |
||
59 |
pageEditTeam = new PageEditTeam(); |
|
60 |
Pages->addWidget(pageEditTeam); |
|
61 |
||
62 |
pageOptions = new PageOptions(); |
|
63 |
Pages->addWidget(pageOptions); |
|
64 |
||
65 |
pageMultiplayer = new PageMultiplayer(); |
|
66 |
Pages->addWidget(pageMultiplayer); |
|
67 |
||
68 |
pagePlayDemo = new PagePlayDemo(); |
|
69 |
Pages->addWidget(pagePlayDemo); |
|
70 |
||
71 |
pageNet = new PageNet(); |
|
72 |
Pages->addWidget(pageNet); |
|
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); |
|
306 | 82 |
|
83 |
pageGameStats = new PageGameStats(); |
|
84 |
Pages->addWidget(pageGameStats); |
|
184 | 85 |
} |