author | unc0rr |
Thu, 05 Oct 2006 16:33:18 +0000 | |
changeset 183 | 57c2ef19f719 |
parent 128 | 223522298250 |
child 184 | f97a7a3dc8f6 |
permissions | -rw-r--r-- |
128 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
3 |
* Copyright (c) 2006 Andrey Korotaev <unC0Rr@gmail.com> |
|
4 |
* |
|
183 | 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 |
|
128 | 8 |
* |
183 | 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. |
|
128 | 13 |
* |
183 | 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 |
|
128 | 17 |
*/ |
18 |
||
84 | 19 |
#include <QVBoxLayout> |
20 |
#include <QGridLayout> |
|
87 | 21 |
#include "ui_hwform.h" |
22 |
#include "pages.h" |
|
84 | 23 |
|
24 |
void Ui_HWForm::setupUi(QMainWindow *HWForm) |
|
25 |
{ |
|
26 |
SetupFonts(); |
|
27 |
||
28 |
HWForm->setObjectName(QString::fromUtf8("HWForm")); |
|
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
29 |
HWForm->resize(QSize(620, 430).expandedTo(HWForm->minimumSizeHint())); |
84 | 30 |
HWForm->setMinimumSize(QSize(620, 430)); |
87 | 31 |
HWForm->setWindowTitle(QMainWindow::tr("-= by unC0Rr =-")); |
32 |
centralWidget = new QWidget(HWForm); |
|
33 |
centralWidget->setObjectName(QString::fromUtf8("centralWidget")); |
|
84 | 34 |
|
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 |
{ |
|
87 | 49 |
font14 = new QFont("MS Shell Dlg", 14); |
84 | 50 |
} |
51 |
||
52 |
void Ui_HWForm::SetupPages(QWidget *Parent) |
|
53 |
{ |
|
54 |
Pages = new QStackedLayout(Parent); |
|
55 |
||
87 | 56 |
pageLocalGame = new PageLocalGame(); |
57 |
Pages->addWidget(pageLocalGame); |
|
84 | 58 |
|
87 | 59 |
pageEditTeam = new PageEditTeam(); |
60 |
Pages->addWidget(pageEditTeam); |
|
84 | 61 |
|
87 | 62 |
pageOptions = new PageOptions(); |
63 |
Pages->addWidget(pageOptions); |
|
84 | 64 |
|
87 | 65 |
pageMultiplayer = new PageMultiplayer(); |
66 |
Pages->addWidget(pageMultiplayer); |
|
84 | 67 |
|
87 | 68 |
pagePlayDemo = new PagePlayDemo(); |
69 |
Pages->addWidget(pagePlayDemo); |
|
84 | 70 |
|
87 | 71 |
pageNet = new PageNet(); |
84 | 72 |
Pages->addWidget(pageNet); |
73 |
||
87 | 74 |
pageNetChat = new PageNetChat(); |
84 | 75 |
Pages->addWidget(pageNetChat); |
76 |
||
87 | 77 |
pageNetGame = new PageNetGame(); |
84 | 78 |
Pages->addWidget(pageNetGame); |
79 |
||
87 | 80 |
pageMain = new PageMain(); |
84 | 81 |
Pages->addWidget(pageMain); |
82 |
} |