author | unc0rr |
Thu, 13 Dec 2007 13:49:20 +0000 | |
changeset 647 | 798c7dbf8bb8 |
parent 646 | ed610c2cd0a4 |
child 653 | 4f44fc06ca45 |
permissions | -rw-r--r-- |
184 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
486 | 3 |
* Copyright (c) 2006, 2007 Andrey Korotaev <unC0Rr@gmail.com> |
184 | 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; |
461 | 44 |
class HWChatWidget; |
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
600
diff
changeset
|
45 |
class SelWeaponWidget; |
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
46 |
class HWNetServersWidget; |
636 | 47 |
class QRadioButton; |
184 | 48 |
|
49 |
class PageMain : public QWidget |
|
50 |
{ |
|
51 |
Q_OBJECT |
|
52 |
||
53 |
public: |
|
54 |
PageMain(QWidget* parent = 0); |
|
55 |
||
56 |
QPushButton *BtnSinglePlayer; |
|
57 |
QPushButton *BtnMultiplayer; |
|
58 |
QPushButton *BtnNet; |
|
59 |
QPushButton *BtnSetup; |
|
579 | 60 |
QPushButton *BtnLoad; |
184 | 61 |
QPushButton *BtnDemos; |
187 | 62 |
QPushButton *BtnInfo; |
184 | 63 |
QPushButton *BtnExit; |
64 |
}; |
|
65 |
||
585
7531ae5b146e
Rename PageLocalGame -> PageSimpleGame due to future changes
unc0rr
parents:
579
diff
changeset
|
66 |
class PageSimpleGame : public QWidget |
184 | 67 |
{ |
68 |
Q_OBJECT |
|
69 |
||
70 |
public: |
|
585
7531ae5b146e
Rename PageLocalGame -> PageSimpleGame due to future changes
unc0rr
parents:
579
diff
changeset
|
71 |
PageSimpleGame(QWidget* parent = 0); |
184 | 72 |
|
73 |
QPushButton *BtnSimpleGame; |
|
74 |
QPushButton *BtnBack; |
|
75 |
GameCFGWidget *gameCFG; |
|
76 |
}; |
|
77 |
||
78 |
class PageEditTeam : public QWidget |
|
79 |
{ |
|
80 |
Q_OBJECT |
|
81 |
||
82 |
public: |
|
83 |
PageEditTeam(QWidget* parent = 0); |
|
84 |
QGroupBox *GBoxHedgehogs; |
|
85 |
QGroupBox *GBoxTeam; |
|
86 |
QGroupBox *GBoxFort; |
|
87 |
QComboBox *CBFort; |
|
88 |
SquareLabel *FortPreview; |
|
89 |
QGroupBox *GBoxGrave; |
|
90 |
QComboBox *CBGrave; |
|
91 |
QLabel *GravePreview; |
|
336 | 92 |
QGroupBox *GBoxTeamLvl; |
93 |
QComboBox *CBTeamLvl; |
|
94 |
QLabel *LevelPict; |
|
184 | 95 |
QGroupBox *GBoxBinds; |
96 |
QToolBox *BindsBox; |
|
97 |
QWidget *page_A; |
|
98 |
QWidget *page_W; |
|
99 |
QWidget *page_WP; |
|
100 |
QWidget *page_O; |
|
101 |
QPushButton *BtnTeamDiscard; |
|
102 |
QPushButton *BtnTeamSave; |
|
103 |
QLineEdit * TeamNameEdit; |
|
104 |
QLineEdit * HHNameEdit[8]; |
|
105 |
QComboBox * CBBind[BINDS_NUMBER]; |
|
106 |
||
107 |
public slots: |
|
108 |
void CBGrave_activated(const QString & gravename); |
|
109 |
void CBFort_activated(const QString & gravename); |
|
336 | 110 |
void CBTeamLvl_activated(int id); |
184 | 111 |
|
112 |
private: |
|
113 |
QLabel * LBind[BINDS_NUMBER]; |
|
114 |
}; |
|
115 |
||
116 |
class PageMultiplayer : public QWidget |
|
117 |
{ |
|
118 |
Q_OBJECT |
|
119 |
||
120 |
public: |
|
121 |
PageMultiplayer(QWidget* parent = 0); |
|
122 |
||
123 |
QPushButton *BtnBack; |
|
124 |
GameCFGWidget *gameCFG; |
|
125 |
TeamSelWidget *teamsSelect; |
|
126 |
QPushButton *BtnStartMPGame; |
|
127 |
}; |
|
128 |
||
129 |
class PageOptions : public QWidget |
|
130 |
{ |
|
131 |
Q_OBJECT |
|
132 |
||
133 |
public: |
|
134 |
PageOptions(QWidget* parent = 0); |
|
135 |
||
597
ec5f057ab268
kdevelop project add, initial weapons scheme button
displacer
parents:
587
diff
changeset
|
136 |
QPushButton* WeaponsButt; |
184 | 137 |
QPushButton *BtnBack; |
138 |
QGroupBox *groupBox; |
|
139 |
QPushButton *BtnNewTeam; |
|
140 |
QPushButton *BtnEditTeam; |
|
141 |
QComboBox *CBTeamName; |
|
142 |
QGroupBox *AGGroupBox; |
|
143 |
QComboBox *CBResolution; |
|
144 |
QCheckBox *CBEnableSound; |
|
145 |
QCheckBox *CBFullscreen; |
|
297 | 146 |
QCheckBox *CBShowFPS; |
529 | 147 |
QCheckBox *CBAltDamage; |
297 | 148 |
FPSEdit *fpsedit; |
184 | 149 |
QPushButton *BtnSaveOptions; |
647 | 150 |
QGroupBox *NNGroupBox; |
151 |
QLabel *labelNN; |
|
152 |
QLineEdit *editNetNick; |
|
184 | 153 |
}; |
154 |
||
155 |
class PageNet : public QWidget |
|
156 |
{ |
|
157 |
Q_OBJECT |
|
158 |
||
159 |
public: |
|
160 |
PageNet(QWidget* parent = 0); |
|
161 |
||
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
162 |
QPushButton* BtnUpdateSList; |
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
163 |
HWNetServersWidget* netServersWidget; |
184 | 164 |
QPushButton *BtnBack; |
165 |
QPushButton *BtnNetConnect; |
|
314 | 166 |
QPushButton* BtnNetSvrStart; |
636 | 167 |
QRadioButton * rbLocalGame; |
168 |
QRadioButton * rbInternetGame; |
|
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
169 |
|
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
170 |
private: |
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
171 |
QGroupBox * ConnGroupBox; |
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
172 |
QGridLayout * GBClayout; |
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
173 |
|
646 | 174 |
private slots: |
175 |
void slotConnect(); |
|
176 |
||
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
177 |
public slots: |
646 | 178 |
void updateServersList(); |
179 |
||
180 |
signals: |
|
181 |
void connectClicked(); |
|
182 |
}; |
|
183 |
||
184 |
class PageNetServer : public QWidget |
|
185 |
{ |
|
186 |
Q_OBJECT |
|
187 |
||
188 |
public: |
|
189 |
PageNetServer(QWidget* parent = 0); |
|
190 |
||
191 |
QPushButton *BtnBack; |
|
192 |
QPushButton *BtnStart; |
|
184 | 193 |
}; |
194 |
||
195 |
class PageNetGame : public QWidget |
|
196 |
{ |
|
197 |
Q_OBJECT |
|
198 |
||
199 |
public: |
|
200 |
PageNetGame(QWidget* parent = 0); |
|
201 |
||
202 |
QPushButton *BtnBack; |
|
203 |
QPushButton *BtnGo; |
|
461 | 204 |
|
205 |
HWChatWidget* pChatWidget; |
|
322 | 206 |
|
207 |
TeamSelWidget* pNetTeamsWidget; |
|
208 |
GameCFGWidget* pGameCFG; |
|
184 | 209 |
}; |
210 |
||
187 | 211 |
class PageInfo : public QWidget |
212 |
{ |
|
213 |
Q_OBJECT |
|
214 |
||
215 |
public: |
|
216 |
PageInfo(QWidget* parent = 0); |
|
217 |
||
218 |
QPushButton *BtnBack; |
|
219 |
About *about; |
|
220 |
}; |
|
221 |
||
306 | 222 |
class PageGameStats : public QWidget |
223 |
{ |
|
224 |
Q_OBJECT |
|
225 |
||
226 |
public: |
|
227 |
PageGameStats(QWidget* parent = 0); |
|
228 |
||
229 |
QPushButton *BtnBack; |
|
307 | 230 |
QLabel *labelGameStats; |
306 | 231 |
}; |
232 |
||
586 | 233 |
class PageSinglePlayer : public QWidget |
234 |
{ |
|
235 |
Q_OBJECT |
|
236 |
||
237 |
public: |
|
238 |
PageSinglePlayer(QWidget* parent = 0); |
|
239 |
||
240 |
QPushButton *BtnSimpleGamePage; |
|
241 |
QPushButton *BtnTrainPage; |
|
242 |
QPushButton *BtnBack; |
|
243 |
GameCFGWidget *gameCFG; |
|
244 |
}; |
|
245 |
||
587 | 246 |
class PageTraining : public QWidget |
247 |
{ |
|
248 |
Q_OBJECT |
|
249 |
||
250 |
public: |
|
251 |
PageTraining(QWidget* parent = 0); |
|
252 |
||
253 |
QPushButton *BtnStartTrain; |
|
254 |
QPushButton *BtnBack; |
|
255 |
}; |
|
256 |
||
600 | 257 |
class PageSelectWeapon : public QWidget |
258 |
{ |
|
259 |
Q_OBJECT |
|
260 |
||
261 |
public: |
|
262 |
PageSelectWeapon(QWidget* parent = 0); |
|
263 |
||
264 |
QPushButton *BtnBack; |
|
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
600
diff
changeset
|
265 |
SelWeaponWidget* pWeapons; |
600 | 266 |
}; |
306 | 267 |
|
184 | 268 |
#endif // PAGES_H |