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