author | unc0rr |
Mon, 03 Nov 2008 09:49:25 +0000 | |
changeset 1464 | 693db7cd6f25 |
parent 1311 | 49beb1221c0b |
child 1542 | b755ddb0bae8 |
permissions | -rw-r--r-- |
184 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
883 | 3 |
* Copyright (c) 2006-2008 Andrey Korotaev <unC0Rr@gmail.com> |
184 | 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" |
|
579 | 26 |
#include "playrecordpage.h" |
184 | 27 |
|
28 |
void Ui_HWForm::setupUi(QMainWindow *HWForm) |
|
29 |
{ |
|
30 |
SetupFonts(); |
|
31 |
||
32 |
HWForm->setObjectName(QString::fromUtf8("HWForm")); |
|
485
defe001d490c
form size increased (network chat is now fit into window initially)
displacer
parents:
471
diff
changeset
|
33 |
HWForm->resize(QSize(640, 480).expandedTo(HWForm->minimumSizeHint())); |
1158 | 34 |
HWForm->setMinimumSize(QSize(720, 430)); |
187 | 35 |
HWForm->setWindowTitle(QMainWindow::tr("Hedgewars")); |
184 | 36 |
centralWidget = new QWidget(HWForm); |
37 |
centralWidget->setObjectName(QString::fromUtf8("centralWidget")); |
|
38 |
||
39 |
SetupPages(centralWidget); |
|
40 |
||
41 |
HWForm->setCentralWidget(centralWidget); |
|
42 |
||
43 |
Pages->setCurrentIndex(0); |
|
44 |
||
45 |
QMetaObject::connectSlotsByName(HWForm); |
|
46 |
} |
|
47 |
||
48 |
void Ui_HWForm::SetupFonts() |
|
49 |
{ |
|
50 |
font14 = new QFont("MS Shell Dlg", 14); |
|
51 |
} |
|
52 |
||
53 |
void Ui_HWForm::SetupPages(QWidget *Parent) |
|
54 |
{ |
|
586 | 55 |
Pages = new QStackedLayout(Parent); |
184 | 56 |
|
57 |
pageEditTeam = new PageEditTeam(); |
|
58 |
Pages->addWidget(pageEditTeam); |
|
59 |
||
60 |
pageOptions = new PageOptions(); |
|
61 |
Pages->addWidget(pageOptions); |
|
62 |
||
63 |
pageMultiplayer = new PageMultiplayer(); |
|
64 |
Pages->addWidget(pageMultiplayer); |
|
65 |
||
586 | 66 |
pagePlayDemo = new PagePlayDemo(); |
184 | 67 |
Pages->addWidget(pagePlayDemo); |
68 |
||
69 |
pageNet = new PageNet(); |
|
70 |
Pages->addWidget(pageNet); |
|
71 |
||
586 | 72 |
pageNetGame = new PageNetGame(); |
184 | 73 |
Pages->addWidget(pageNetGame); |
74 |
||
187 | 75 |
pageInfo = new PageInfo(); |
76 |
Pages->addWidget(pageInfo); |
|
77 |
||
184 | 78 |
pageMain = new PageMain(); |
79 |
Pages->addWidget(pageMain); |
|
306 | 80 |
|
81 |
pageGameStats = new PageGameStats(); |
|
82 |
Pages->addWidget(pageGameStats); |
|
586 | 83 |
|
84 |
pageSinglePlayer = new PageSinglePlayer(); |
|
85 |
Pages->addWidget(pageSinglePlayer); |
|
587 | 86 |
|
87 |
pageTraining = new PageTraining(); |
|
88 |
Pages->addWidget(pageTraining); |
|
600 | 89 |
|
90 |
pageSelectWeapon = new PageSelectWeapon(); |
|
91 |
Pages->addWidget(pageSelectWeapon); |
|
646 | 92 |
|
93 |
pageNetServer = new PageNetServer(); |
|
94 |
Pages->addWidget(pageNetServer); |
|
686 | 95 |
|
96 |
pageInGame = new PageInGame(); |
|
97 |
Pages->addWidget(pageInGame); |
|
1311 | 98 |
|
99 |
pageRoomsList = new PageRoomsList(); |
|
100 |
Pages->addWidget(pageRoomsList); |
|
184 | 101 |
} |