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