author | unc0rr |
Sun, 27 Aug 2006 12:41:27 +0000 | |
changeset 126 | 93df479aa1b9 |
parent 87 | ff213e443336 |
child 128 | 223522298250 |
permissions | -rw-r--r-- |
84 | 1 |
#include <QVBoxLayout> |
2 |
#include <QGridLayout> |
|
87 | 3 |
#include "ui_hwform.h" |
4 |
#include "pages.h" |
|
84 | 5 |
|
6 |
void Ui_HWForm::setupUi(QMainWindow *HWForm) |
|
7 |
{ |
|
8 |
SetupFonts(); |
|
9 |
||
10 |
HWForm->setObjectName(QString::fromUtf8("HWForm")); |
|
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
11 |
HWForm->resize(QSize(620, 430).expandedTo(HWForm->minimumSizeHint())); |
84 | 12 |
HWForm->setMinimumSize(QSize(620, 430)); |
87 | 13 |
HWForm->setWindowTitle(QMainWindow::tr("-= by unC0Rr =-")); |
14 |
centralWidget = new QWidget(HWForm); |
|
15 |
centralWidget->setObjectName(QString::fromUtf8("centralWidget")); |
|
84 | 16 |
|
17 |
centralWidget = new QWidget(HWForm); |
|
18 |
centralWidget->setObjectName(QString::fromUtf8("centralWidget")); |
|
19 |
||
20 |
SetupPages(centralWidget); |
|
21 |
||
22 |
HWForm->setCentralWidget(centralWidget); |
|
23 |
||
24 |
Pages->setCurrentIndex(0); |
|
25 |
||
26 |
QMetaObject::connectSlotsByName(HWForm); |
|
27 |
} |
|
28 |
||
29 |
void Ui_HWForm::SetupFonts() |
|
30 |
{ |
|
87 | 31 |
font14 = new QFont("MS Shell Dlg", 14); |
84 | 32 |
} |
33 |
||
34 |
void Ui_HWForm::SetupPages(QWidget *Parent) |
|
35 |
{ |
|
36 |
Pages = new QStackedLayout(Parent); |
|
37 |
||
87 | 38 |
pageLocalGame = new PageLocalGame(); |
39 |
Pages->addWidget(pageLocalGame); |
|
84 | 40 |
|
87 | 41 |
pageEditTeam = new PageEditTeam(); |
42 |
Pages->addWidget(pageEditTeam); |
|
84 | 43 |
|
87 | 44 |
pageOptions = new PageOptions(); |
45 |
Pages->addWidget(pageOptions); |
|
84 | 46 |
|
87 | 47 |
pageMultiplayer = new PageMultiplayer(); |
48 |
Pages->addWidget(pageMultiplayer); |
|
84 | 49 |
|
87 | 50 |
pagePlayDemo = new PagePlayDemo(); |
51 |
Pages->addWidget(pagePlayDemo); |
|
84 | 52 |
|
87 | 53 |
pageNet = new PageNet(); |
84 | 54 |
Pages->addWidget(pageNet); |
55 |
||
87 | 56 |
pageNetChat = new PageNetChat(); |
84 | 57 |
Pages->addWidget(pageNetChat); |
58 |
||
87 | 59 |
pageNetGame = new PageNetGame(); |
84 | 60 |
Pages->addWidget(pageNetGame); |
61 |
||
87 | 62 |
pageMain = new PageMain(); |
84 | 63 |
Pages->addWidget(pageMain); |
64 |
} |