author | unc0rr |
Tue, 18 Sep 2007 18:24:02 +0000 | |
changeset 596 | 38bdde6a54c1 |
parent 587 | 74db4115064a |
child 597 | ec5f057ab268 |
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 |
||
133 |
QPushButton *BtnBack; |
|
134 |
QGroupBox *groupBox; |
|
135 |
QPushButton *BtnNewTeam; |
|
136 |
QPushButton *BtnEditTeam; |
|
137 |
QComboBox *CBTeamName; |
|
138 |
QGroupBox *AGGroupBox; |
|
139 |
QComboBox *CBResolution; |
|
140 |
QCheckBox *CBEnableSound; |
|
141 |
QCheckBox *CBFullscreen; |
|
297 | 142 |
QCheckBox *CBShowFPS; |
529 | 143 |
QCheckBox *CBAltDamage; |
297 | 144 |
FPSEdit *fpsedit; |
184 | 145 |
QPushButton *BtnSaveOptions; |
146 |
}; |
|
147 |
||
148 |
class PageNet : public QWidget |
|
149 |
{ |
|
150 |
Q_OBJECT |
|
151 |
||
152 |
public: |
|
153 |
PageNet(QWidget* parent = 0); |
|
154 |
||
416 | 155 |
QPushButton* pUpdateUdpButt; |
156 |
HWNetUdpWidget* pUdpClient; |
|
184 | 157 |
QPushButton *BtnBack; |
158 |
QPushButton *BtnNetConnect; |
|
314 | 159 |
QPushButton* BtnNetSvrStart; |
184 | 160 |
QGroupBox *NNGroupBox; |
161 |
QLabel *labelNN; |
|
162 |
QLineEdit *editNetNick; |
|
163 |
QLabel *labelIP; |
|
164 |
QLineEdit * editIP; |
|
165 |
}; |
|
166 |
||
167 |
class PageNetGame : public QWidget |
|
168 |
{ |
|
169 |
Q_OBJECT |
|
170 |
||
171 |
public: |
|
172 |
PageNetGame(QWidget* parent = 0); |
|
173 |
||
174 |
QPushButton *BtnBack; |
|
175 |
QPushButton *BtnGo; |
|
461 | 176 |
|
177 |
HWChatWidget* pChatWidget; |
|
322 | 178 |
|
179 |
TeamSelWidget* pNetTeamsWidget; |
|
180 |
GameCFGWidget* pGameCFG; |
|
184 | 181 |
}; |
182 |
||
187 | 183 |
class PageInfo : public QWidget |
184 |
{ |
|
185 |
Q_OBJECT |
|
186 |
||
187 |
public: |
|
188 |
PageInfo(QWidget* parent = 0); |
|
189 |
||
190 |
QPushButton *BtnBack; |
|
191 |
About *about; |
|
192 |
}; |
|
193 |
||
306 | 194 |
class PageGameStats : public QWidget |
195 |
{ |
|
196 |
Q_OBJECT |
|
197 |
||
198 |
public: |
|
199 |
PageGameStats(QWidget* parent = 0); |
|
200 |
||
201 |
QPushButton *BtnBack; |
|
307 | 202 |
QLabel *labelGameStats; |
306 | 203 |
}; |
204 |
||
586 | 205 |
class PageSinglePlayer : public QWidget |
206 |
{ |
|
207 |
Q_OBJECT |
|
208 |
||
209 |
public: |
|
210 |
PageSinglePlayer(QWidget* parent = 0); |
|
211 |
||
212 |
QPushButton *BtnSimpleGamePage; |
|
213 |
QPushButton *BtnTrainPage; |
|
214 |
QPushButton *BtnBack; |
|
215 |
GameCFGWidget *gameCFG; |
|
216 |
}; |
|
217 |
||
587 | 218 |
class PageTraining : public QWidget |
219 |
{ |
|
220 |
Q_OBJECT |
|
221 |
||
222 |
public: |
|
223 |
PageTraining(QWidget* parent = 0); |
|
224 |
||
225 |
QPushButton *BtnStartTrain; |
|
226 |
QPushButton *BtnBack; |
|
227 |
}; |
|
228 |
||
306 | 229 |
|
184 | 230 |
#endif // PAGES_H |