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