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 |
#ifndef PAGES_H
|
|
20 |
#define PAGES_H
|
|
21 |
|
|
22 |
#include <QWidget>
|
|
23 |
|
|
24 |
#include "binds.h"
|
322
|
25 |
#include "mapContainer.h"
|
184
|
26 |
|
|
27 |
class GameCFGWidget;
|
|
28 |
class QPushButton;
|
|
29 |
class QGroupBox;
|
|
30 |
class QComboBox;
|
|
31 |
class QLabel;
|
|
32 |
class QToolBox;
|
|
33 |
class QLineEdit;
|
|
34 |
class TeamSelWidget;
|
|
35 |
class DemosList;
|
|
36 |
class QListWidget;
|
|
37 |
class QCheckBox;
|
|
38 |
class SquareLabel;
|
187
|
39 |
class About;
|
231
|
40 |
class QSpinBox;
|
297
|
41 |
class FPSEdit;
|
416
|
42 |
class HWNetUdpWidget;
|
184
|
43 |
|
|
44 |
class PageMain : public QWidget
|
|
45 |
{
|
|
46 |
Q_OBJECT
|
|
47 |
|
|
48 |
public:
|
|
49 |
PageMain(QWidget* parent = 0);
|
|
50 |
|
|
51 |
QPushButton *BtnSinglePlayer;
|
|
52 |
QPushButton *BtnMultiplayer;
|
|
53 |
QPushButton *BtnNet;
|
|
54 |
QPushButton *BtnSetup;
|
|
55 |
QPushButton *BtnDemos;
|
187
|
56 |
QPushButton *BtnInfo;
|
184
|
57 |
QPushButton *BtnExit;
|
|
58 |
};
|
|
59 |
|
|
60 |
class PageLocalGame : public QWidget
|
|
61 |
{
|
|
62 |
Q_OBJECT
|
|
63 |
|
|
64 |
public:
|
|
65 |
PageLocalGame(QWidget* parent = 0);
|
|
66 |
|
|
67 |
QPushButton *BtnSimpleGame;
|
|
68 |
QPushButton *BtnBack;
|
|
69 |
GameCFGWidget *gameCFG;
|
|
70 |
};
|
|
71 |
|
|
72 |
class PageEditTeam : public QWidget
|
|
73 |
{
|
|
74 |
Q_OBJECT
|
|
75 |
|
|
76 |
public:
|
|
77 |
PageEditTeam(QWidget* parent = 0);
|
|
78 |
QGroupBox *GBoxHedgehogs;
|
|
79 |
QGroupBox *GBoxTeam;
|
|
80 |
QGroupBox *GBoxFort;
|
|
81 |
QComboBox *CBFort;
|
|
82 |
SquareLabel *FortPreview;
|
|
83 |
QGroupBox *GBoxGrave;
|
|
84 |
QComboBox *CBGrave;
|
|
85 |
QLabel *GravePreview;
|
336
|
86 |
QGroupBox *GBoxTeamLvl;
|
|
87 |
QComboBox *CBTeamLvl;
|
|
88 |
QLabel *LevelPict;
|
184
|
89 |
QGroupBox *GBoxBinds;
|
|
90 |
QToolBox *BindsBox;
|
|
91 |
QWidget *page_A;
|
|
92 |
QWidget *page_W;
|
|
93 |
QWidget *page_WP;
|
|
94 |
QWidget *page_O;
|
|
95 |
QPushButton *BtnTeamDiscard;
|
|
96 |
QPushButton *BtnTeamSave;
|
|
97 |
QLineEdit * TeamNameEdit;
|
|
98 |
QLineEdit * HHNameEdit[8];
|
|
99 |
QComboBox * CBBind[BINDS_NUMBER];
|
|
100 |
|
|
101 |
public slots:
|
|
102 |
void CBGrave_activated(const QString & gravename);
|
|
103 |
void CBFort_activated(const QString & gravename);
|
336
|
104 |
void CBTeamLvl_activated(int id);
|
184
|
105 |
|
|
106 |
private:
|
|
107 |
QLabel * LBind[BINDS_NUMBER];
|
|
108 |
};
|
|
109 |
|
|
110 |
class PageMultiplayer : public QWidget
|
|
111 |
{
|
|
112 |
Q_OBJECT
|
|
113 |
|
|
114 |
public:
|
|
115 |
PageMultiplayer(QWidget* parent = 0);
|
|
116 |
|
|
117 |
QPushButton *BtnBack;
|
|
118 |
GameCFGWidget *gameCFG;
|
|
119 |
TeamSelWidget *teamsSelect;
|
|
120 |
QPushButton *BtnStartMPGame;
|
|
121 |
};
|
|
122 |
|
|
123 |
class PagePlayDemo : public QWidget
|
|
124 |
{
|
|
125 |
Q_OBJECT
|
|
126 |
|
|
127 |
public:
|
|
128 |
PagePlayDemo(QWidget* parent = 0);
|
|
129 |
|
|
130 |
QPushButton *BtnBack;
|
|
131 |
QPushButton *BtnPlayDemo;
|
|
132 |
QListWidget *DemosList;
|
|
133 |
};
|
|
134 |
|
|
135 |
class PageOptions : public QWidget
|
|
136 |
{
|
|
137 |
Q_OBJECT
|
|
138 |
|
|
139 |
public:
|
|
140 |
PageOptions(QWidget* parent = 0);
|
|
141 |
|
|
142 |
QPushButton *BtnBack;
|
|
143 |
QGroupBox *groupBox;
|
|
144 |
QPushButton *BtnNewTeam;
|
|
145 |
QPushButton *BtnEditTeam;
|
|
146 |
QComboBox *CBTeamName;
|
|
147 |
QGroupBox *AGGroupBox;
|
|
148 |
QComboBox *CBResolution;
|
|
149 |
QCheckBox *CBEnableSound;
|
|
150 |
QCheckBox *CBFullscreen;
|
297
|
151 |
QCheckBox *CBShowFPS;
|
|
152 |
FPSEdit *fpsedit;
|
184
|
153 |
QPushButton *BtnSaveOptions;
|
|
154 |
};
|
|
155 |
|
|
156 |
class PageNet : public QWidget
|
|
157 |
{
|
|
158 |
Q_OBJECT
|
|
159 |
|
|
160 |
public:
|
|
161 |
PageNet(QWidget* parent = 0);
|
|
162 |
|
416
|
163 |
QPushButton* pUpdateUdpButt;
|
|
164 |
HWNetUdpWidget* pUdpClient;
|
184
|
165 |
QPushButton *BtnBack;
|
|
166 |
QPushButton *BtnNetConnect;
|
314
|
167 |
QPushButton* BtnNetSvrStart;
|
184
|
168 |
QGroupBox *NNGroupBox;
|
|
169 |
QLabel *labelNN;
|
|
170 |
QLineEdit *editNetNick;
|
|
171 |
QLabel *labelIP;
|
|
172 |
QLineEdit * editIP;
|
|
173 |
};
|
|
174 |
|
|
175 |
class PageNetChat : public QWidget
|
|
176 |
{
|
|
177 |
Q_OBJECT
|
|
178 |
|
|
179 |
public:
|
|
180 |
PageNetChat(QWidget* parent = 0);
|
|
181 |
|
|
182 |
QPushButton *BtnDisconnect;
|
|
183 |
QListWidget *ChannelsList;
|
|
184 |
QPushButton *BtnJoin;
|
|
185 |
QPushButton *BtnCreate;
|
|
186 |
};
|
|
187 |
|
|
188 |
class PageNetGame : public QWidget
|
|
189 |
{
|
|
190 |
Q_OBJECT
|
|
191 |
|
|
192 |
public:
|
|
193 |
PageNetGame(QWidget* parent = 0);
|
|
194 |
|
|
195 |
QPushButton *BtnBack;
|
|
196 |
QPushButton *BtnGo;
|
322
|
197 |
|
|
198 |
TeamSelWidget* pNetTeamsWidget;
|
|
199 |
GameCFGWidget* pGameCFG;
|
184
|
200 |
};
|
|
201 |
|
187
|
202 |
class PageInfo : public QWidget
|
|
203 |
{
|
|
204 |
Q_OBJECT
|
|
205 |
|
|
206 |
public:
|
|
207 |
PageInfo(QWidget* parent = 0);
|
|
208 |
|
|
209 |
QPushButton *BtnBack;
|
|
210 |
About *about;
|
|
211 |
};
|
|
212 |
|
306
|
213 |
class PageGameStats : public QWidget
|
|
214 |
{
|
|
215 |
Q_OBJECT
|
|
216 |
|
|
217 |
public:
|
|
218 |
PageGameStats(QWidget* parent = 0);
|
|
219 |
|
|
220 |
QPushButton *BtnBack;
|
307
|
221 |
QLabel *labelGameStats;
|
306
|
222 |
};
|
|
223 |
|
|
224 |
|
184
|
225 |
#endif // PAGES_H
|