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