28 #include "playrecordpage.h" |
28 #include "playrecordpage.h" |
29 #include "hwconsts.h" |
29 #include "hwconsts.h" |
30 |
30 |
31 void Ui_HWForm::setupUi(HWForm *HWForm) |
31 void Ui_HWForm::setupUi(HWForm *HWForm) |
32 { |
32 { |
33 SetupFonts(); |
33 SetupFonts(); |
34 |
34 |
35 HWForm->setObjectName(QString::fromUtf8("HWForm")); |
35 HWForm->setObjectName(QString::fromUtf8("HWForm")); |
36 HWForm->resize(QSize(640, 480).expandedTo(HWForm->minimumSizeHint())); |
36 HWForm->resize(QSize(640, 480).expandedTo(HWForm->minimumSizeHint())); |
37 HWForm->setMinimumSize(QSize(720, 450)); |
37 HWForm->setMinimumSize(QSize(720, 450)); |
38 HWForm->setWindowTitle(QMainWindow::tr("Hedgewars %1").arg(*cVersionString)); |
38 HWForm->setWindowTitle(QMainWindow::tr("Hedgewars %1").arg(*cVersionString)); |
39 centralWidget = new QWidget(HWForm); |
39 centralWidget = new QWidget(HWForm); |
40 centralWidget->setObjectName(QString::fromUtf8("centralWidget")); |
40 centralWidget->setObjectName(QString::fromUtf8("centralWidget")); |
41 |
41 |
42 SetupPages(centralWidget, HWForm); |
42 SetupPages(centralWidget, HWForm); |
43 |
43 |
44 HWForm->setCentralWidget(centralWidget); |
44 HWForm->setCentralWidget(centralWidget); |
45 |
45 |
46 Pages->setCurrentIndex(0); |
46 Pages->setCurrentIndex(0); |
47 |
47 |
48 QMetaObject::connectSlotsByName(HWForm); |
48 QMetaObject::connectSlotsByName(HWForm); |
49 } |
49 } |
50 |
50 |
51 void Ui_HWForm::SetupFonts() |
51 void Ui_HWForm::SetupFonts() |
52 { |
52 { |
53 font14 = new QFont("MS Shell Dlg", 14); |
53 font14 = new QFont("MS Shell Dlg", 14); |
54 } |
54 } |
55 |
55 |
56 void Ui_HWForm::SetupPages(QWidget *Parent, HWForm *HWForm) |
56 void Ui_HWForm::SetupPages(QWidget *Parent, HWForm *HWForm) |
57 { |
57 { |
58 Pages = new QStackedLayout(Parent); |
58 Pages = new QStackedLayout(Parent); |
59 |
59 |
60 pageEditTeam = new PageEditTeam(Parent, &HWForm->sdli); |
60 pageEditTeam = new PageEditTeam(Parent, &HWForm->sdli); |
61 Pages->addWidget(pageEditTeam); |
61 Pages->addWidget(pageEditTeam); |
62 |
62 |
63 pageOptions = new PageOptions(); |
63 pageOptions = new PageOptions(); |
64 Pages->addWidget(pageOptions); |
64 Pages->addWidget(pageOptions); |
65 |
65 |
66 pageMultiplayer = new PageMultiplayer(); |
66 pageMultiplayer = new PageMultiplayer(); |
67 Pages->addWidget(pageMultiplayer); |
67 Pages->addWidget(pageMultiplayer); |
68 |
68 |
69 pagePlayDemo = new PagePlayDemo(); |
69 pagePlayDemo = new PagePlayDemo(); |
70 Pages->addWidget(pagePlayDemo); |
70 Pages->addWidget(pagePlayDemo); |
71 |
71 |
72 pageNet = new PageNet(); |
72 pageNet = new PageNet(); |
73 Pages->addWidget(pageNet); |
73 Pages->addWidget(pageNet); |
74 |
74 |
75 pageNetGame = new PageNetGame(Parent, HWForm->gameSettings, &HWForm->sdli); |
75 pageNetGame = new PageNetGame(Parent, HWForm->gameSettings, &HWForm->sdli); |
76 Pages->addWidget(pageNetGame); |
76 Pages->addWidget(pageNetGame); |
77 |
77 |
78 pageInfo = new PageInfo(); |
78 pageInfo = new PageInfo(); |
79 Pages->addWidget(pageInfo); |
79 Pages->addWidget(pageInfo); |
80 |
80 |
81 pageMain = new PageMain(); |
81 pageMain = new PageMain(); |
82 Pages->addWidget(pageMain); |
82 Pages->addWidget(pageMain); |
83 |
83 |
84 pageGameStats = new PageGameStats(); |
84 pageGameStats = new PageGameStats(); |
85 Pages->addWidget(pageGameStats); |
85 Pages->addWidget(pageGameStats); |
86 |
86 |
87 pageSinglePlayer = new PageSinglePlayer(); |
87 pageSinglePlayer = new PageSinglePlayer(); |
88 Pages->addWidget(pageSinglePlayer); |
88 Pages->addWidget(pageSinglePlayer); |
89 |
89 |
90 pageTraining = new PageTraining(); |
90 pageTraining = new PageTraining(); |
91 Pages->addWidget(pageTraining); |
91 Pages->addWidget(pageTraining); |
92 |
92 |
93 pageSelectWeapon = new PageSelectWeapon(); |
93 pageSelectWeapon = new PageSelectWeapon(); |
94 Pages->addWidget(pageSelectWeapon); |
94 Pages->addWidget(pageSelectWeapon); |
95 |
95 |
96 pageNetServer = new PageNetServer(); |
96 pageNetServer = new PageNetServer(); |
97 Pages->addWidget(pageNetServer); |
97 Pages->addWidget(pageNetServer); |
98 |
98 |
99 pageInGame = new PageInGame(); |
99 pageInGame = new PageInGame(); |
100 Pages->addWidget(pageInGame); |
100 Pages->addWidget(pageInGame); |
101 |
101 |
102 pageRoomsList = new PageRoomsList(Parent, HWForm->gameSettings, &HWForm->sdli); |
102 pageRoomsList = new PageRoomsList(Parent, HWForm->gameSettings, &HWForm->sdli); |
103 Pages->addWidget(pageRoomsList); |
103 Pages->addWidget(pageRoomsList); |
104 |
104 |
105 pageConnecting = new PageConnecting(); |
105 pageConnecting = new PageConnecting(); |
106 Pages->addWidget(pageConnecting); |
106 Pages->addWidget(pageConnecting); |
107 |
107 |
108 pageScheme = new PageScheme(); |
108 pageScheme = new PageScheme(); |
109 Pages->addWidget(pageScheme); |
109 Pages->addWidget(pageScheme); |
110 |
110 |
111 pageAdmin = new PageAdmin(); |
111 pageAdmin = new PageAdmin(); |
112 Pages->addWidget(pageAdmin); |
112 Pages->addWidget(pageAdmin); |
113 |
113 |
114 pageNetType = new PageNetType(); |
114 pageNetType = new PageNetType(); |
115 Pages->addWidget(pageNetType); |
115 Pages->addWidget(pageNetType); |
116 } |
116 } |