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