author | nemo |
Fri, 16 Oct 2009 12:01:19 +0000 | |
changeset 2480 | e19419846196 |
parent 2468 | 0b62498c201a |
child 2515 | 51d3f4b6293a |
permissions | -rw-r--r-- |
184 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
1395 | 3 |
* Copyright (c) 2006-2008 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> |
|
684 | 23 |
#include <QPushButton> |
24 |
#include <QFont> |
|
25 |
#include <QGridLayout> |
|
1840 | 26 |
#include <QSignalMapper> |
184 | 27 |
|
28 |
#include "binds.h" |
|
322 | 29 |
#include "mapContainer.h" |
1932 | 30 |
#include "togglebutton.h" |
184 | 31 |
|
32 |
class QPushButton; |
|
33 |
class QGroupBox; |
|
34 |
class QComboBox; |
|
35 |
class QLabel; |
|
36 |
class QToolBox; |
|
37 |
class QLineEdit; |
|
665 | 38 |
class QListWidget; |
39 |
class QCheckBox; |
|
40 |
class QSpinBox; |
|
41 |
class QTextEdit; |
|
42 |
class QRadioButton; |
|
43 |
class QTableView; |
|
1377 | 44 |
class QTextBrowser; |
1399 | 45 |
class QTableWidget; |
1409
d1cbe4a57ebf
Add button for controlling room options (no usefull yet)
unc0rr
parents:
1399
diff
changeset
|
46 |
class QAction; |
1885 | 47 |
class QDataWidgetMapper; |
1887 | 48 |
class QAbstractItemModel; |
665 | 49 |
|
50 |
class GameCFGWidget; |
|
184 | 51 |
class TeamSelWidget; |
52 |
class DemosList; |
|
53 |
class SquareLabel; |
|
187 | 54 |
class About; |
297 | 55 |
class FPSEdit; |
461 | 56 |
class HWChatWidget; |
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
600
diff
changeset
|
57 |
class SelWeaponWidget; |
1192 | 58 |
class IconedGroupBox; |
1885 | 59 |
class FreqSpinBox; |
184 | 60 |
|
684 | 61 |
class AbstractPage : public QWidget |
62 |
{ |
|
1885 | 63 |
Q_OBJECT |
64 |
||
684 | 65 |
public: |
66 |
||
67 |
protected: |
|
68 |
AbstractPage(QWidget* parent = 0) { |
|
69 |
font14 = new QFont("MS Shell Dlg", 14); |
|
70 |
} |
|
71 |
virtual ~AbstractPage() {}; |
|
72 |
||
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
73 |
QPushButton* addButton(QString btname, QGridLayout* grid, int wy, int wx, bool iconed = false) { |
684 | 74 |
QPushButton* butt = new QPushButton(this); |
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
75 |
if (!iconed) { |
1148 | 76 |
butt->setFont(*font14); |
77 |
butt->setText(btname); |
|
1409
d1cbe4a57ebf
Add button for controlling room options (no usefull yet)
unc0rr
parents:
1399
diff
changeset
|
78 |
//butt->setStyleSheet("background-color: #0d0544"); |
1148 | 79 |
} else { |
80 |
const QIcon& lp=QIcon(btname); |
|
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
81 |
QSize sz = lp.actualSize(QSize(65535, 65535)); |
1148 | 82 |
butt->setIcon(lp); |
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
83 |
butt->setFixedSize(sz); |
1148 | 84 |
butt->setIconSize(sz); |
85 |
butt->setFlat(true); |
|
1149 | 86 |
butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
1148 | 87 |
} |
684 | 88 |
grid->addWidget(butt, wy, wx); |
89 |
return butt; |
|
90 |
}; |
|
91 |
||
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
92 |
QPushButton* addButton(QString btname, QGridLayout* grid, int wy, int wx, int rowSpan, int columnSpan, bool iconed = false) { |
692 | 93 |
QPushButton* butt = new QPushButton(this); |
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
94 |
if (!iconed) { |
1148 | 95 |
butt->setFont(*font14); |
96 |
butt->setText(btname); |
|
97 |
} else { |
|
98 |
const QIcon& lp=QIcon(btname); |
|
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
99 |
QSize sz = lp.actualSize(QSize(65535, 65535)); |
1148 | 100 |
butt->setIcon(lp); |
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
101 |
butt->setFixedSize(sz); |
1148 | 102 |
butt->setIconSize(sz); |
103 |
butt->setFlat(true); |
|
1149 | 104 |
butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
1148 | 105 |
} |
692 | 106 |
grid->addWidget(butt, wy, wx, rowSpan, columnSpan); |
107 |
return butt; |
|
108 |
}; |
|
109 |
||
1443 | 110 |
QPushButton* addButton(QString btname, QBoxLayout* box, int where, bool iconed = false) { |
684 | 111 |
QPushButton* butt = new QPushButton(this); |
1443 | 112 |
if (!iconed) { |
113 |
butt->setFont(*font14); |
|
114 |
butt->setText(btname); |
|
115 |
} else { |
|
116 |
const QIcon& lp=QIcon(btname); |
|
117 |
QSize sz = lp.actualSize(QSize(65535, 65535)); |
|
118 |
butt->setIcon(lp); |
|
119 |
butt->setFixedSize(sz); |
|
120 |
butt->setIconSize(sz); |
|
121 |
butt->setFlat(true); |
|
122 |
butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
|
123 |
} |
|
684 | 124 |
box->addWidget(butt, where); |
125 |
return butt; |
|
126 |
}; |
|
127 |
||
128 |
QFont * font14; |
|
129 |
}; |
|
130 |
||
131 |
class PageMain : public AbstractPage |
|
184 | 132 |
{ |
133 |
Q_OBJECT |
|
134 |
||
135 |
public: |
|
136 |
PageMain(QWidget* parent = 0); |
|
137 |
||
138 |
QPushButton *BtnSinglePlayer; |
|
139 |
QPushButton *BtnNet; |
|
140 |
QPushButton *BtnSetup; |
|
187 | 141 |
QPushButton *BtnInfo; |
184 | 142 |
QPushButton *BtnExit; |
143 |
}; |
|
144 |
||
692 | 145 |
class PageEditTeam : public AbstractPage |
184 | 146 |
{ |
147 |
Q_OBJECT |
|
148 |
||
149 |
public: |
|
150 |
PageEditTeam(QWidget* parent = 0); |
|
1840 | 151 |
QSignalMapper* signalMapper; |
184 | 152 |
QGroupBox *GBoxHedgehogs; |
153 |
QGroupBox *GBoxTeam; |
|
154 |
QGroupBox *GBoxFort; |
|
155 |
QComboBox *CBFort; |
|
156 |
SquareLabel *FortPreview; |
|
157 |
QComboBox *CBGrave; |
|
336 | 158 |
QComboBox *CBTeamLvl; |
1659 | 159 |
QComboBox *CBVoicepack; |
184 | 160 |
QGroupBox *GBoxBinds; |
161 |
QToolBox *BindsBox; |
|
162 |
QPushButton *BtnTeamDiscard; |
|
163 |
QPushButton *BtnTeamSave; |
|
1684 | 164 |
QPushButton * BtnTestSound; |
184 | 165 |
QLineEdit * TeamNameEdit; |
166 |
QLineEdit * HHNameEdit[8]; |
|
1236 | 167 |
QComboBox * HHHats[8]; |
1840 | 168 |
QPushButton * randButton[8]; |
184 | 169 |
QComboBox * CBBind[BINDS_NUMBER]; |
1840 | 170 |
QPushButton * randTeamButton; |
184 | 171 |
|
172 |
public slots: |
|
173 |
void CBFort_activated(const QString & gravename); |
|
174 |
||
1684 | 175 |
private slots: |
176 |
void testSound(); |
|
184 | 177 |
}; |
178 |
||
692 | 179 |
class PageMultiplayer : public AbstractPage |
184 | 180 |
{ |
181 |
Q_OBJECT |
|
182 |
||
183 |
public: |
|
184 |
PageMultiplayer(QWidget* parent = 0); |
|
185 |
||
186 |
QPushButton *BtnBack; |
|
187 |
GameCFGWidget *gameCFG; |
|
188 |
TeamSelWidget *teamsSelect; |
|
189 |
QPushButton *BtnStartMPGame; |
|
190 |
}; |
|
191 |
||
692 | 192 |
class PageOptions : public AbstractPage |
184 | 193 |
{ |
194 |
Q_OBJECT |
|
195 |
||
196 |
public: |
|
197 |
PageOptions(QWidget* parent = 0); |
|
198 |
||
597
ec5f057ab268
kdevelop project add, initial weapons scheme button
displacer
parents:
587
diff
changeset
|
199 |
QPushButton* WeaponsButt; |
693 | 200 |
QPushButton* WeaponEdit; |
201 |
QComboBox* WeaponsName; |
|
202 |
||
184 | 203 |
QPushButton *BtnBack; |
1194 | 204 |
IconedGroupBox *teamsBox; |
184 | 205 |
QPushButton *BtnNewTeam; |
206 |
QPushButton *BtnEditTeam; |
|
207 |
QComboBox *CBTeamName; |
|
1193 | 208 |
IconedGroupBox *AGGroupBox; |
184 | 209 |
QComboBox *CBResolution; |
210 |
QCheckBox *CBEnableSound; |
|
2443
fececcbc2189
Smaxx patch for fixing all sound related issues on any system
koda
parents:
2428
diff
changeset
|
211 |
#ifdef _WIN32 |
2392
a55dbef5cf31
Smaxx's patch fixing openal sound issues with poor card drivers
koda
parents:
2377
diff
changeset
|
212 |
QCheckBox *CBHardwareSound; |
2443
fececcbc2189
Smaxx patch for fixing all sound related issues on any system
koda
parents:
2428
diff
changeset
|
213 |
#endif |
1129 | 214 |
QCheckBox *CBEnableMusic; |
184 | 215 |
QCheckBox *CBFullscreen; |
1162 | 216 |
QCheckBox *CBFrontendFullscreen; |
297 | 217 |
QCheckBox *CBShowFPS; |
529 | 218 |
QCheckBox *CBAltDamage; |
1487
b4cc59a6d50a
Add an option to name records with current date and time
unc0rr
parents:
1443
diff
changeset
|
219 |
QCheckBox *CBNameWithDate; |
2261 | 220 |
#ifdef __APPLE__ |
221 |
QCheckBox *CBAutoUpdate; |
|
222 |
#endif |
|
2377 | 223 |
|
297 | 224 |
FPSEdit *fpsedit; |
184 | 225 |
QPushButton *BtnSaveOptions; |
647 | 226 |
QLabel *labelNN; |
1777 | 227 |
QSpinBox * volumeBox; |
647 | 228 |
QLineEdit *editNetNick; |
1812 | 229 |
QCheckBox *CBReduceQuality; |
2098
c977d7f2aa09
Toggle for stars ("frontend effects") - also turns off optimisations for stars that were causing problems onone machine
nemo
parents:
2031
diff
changeset
|
230 |
QCheckBox *CBFrontendEffects; |
184 | 231 |
}; |
232 |
||
1153 | 233 |
class PageNet : public AbstractPage |
184 | 234 |
{ |
235 |
Q_OBJECT |
|
236 |
||
237 |
public: |
|
238 |
PageNet(QWidget* parent = 0); |
|
239 |
||
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
240 |
QPushButton* BtnUpdateSList; |
665 | 241 |
QTableView * tvServersList; |
653
4f44fc06ca45
Class to ask host/port to connect to ('Specify' button on PageNet)
unc0rr
parents:
647
diff
changeset
|
242 |
QPushButton * BtnBack; |
4f44fc06ca45
Class to ask host/port to connect to ('Specify' button on PageNet)
unc0rr
parents:
647
diff
changeset
|
243 |
QPushButton * BtnNetConnect; |
4f44fc06ca45
Class to ask host/port to connect to ('Specify' button on PageNet)
unc0rr
parents:
647
diff
changeset
|
244 |
QPushButton * BtnNetSvrStart; |
4f44fc06ca45
Class to ask host/port to connect to ('Specify' button on PageNet)
unc0rr
parents:
647
diff
changeset
|
245 |
QPushButton * BtnSpecifyServer; |
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
246 |
|
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
247 |
private: |
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
248 |
QGroupBox * ConnGroupBox; |
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
249 |
QGridLayout * GBClayout; |
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
250 |
|
646 | 251 |
private slots: |
252 |
void slotConnect(); |
|
253 |
||
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
254 |
public slots: |
646 | 255 |
void updateServersList(); |
256 |
||
257 |
signals: |
|
665 | 258 |
void connectClicked(const QString & host, quint16 port); |
646 | 259 |
}; |
260 |
||
1153 | 261 |
class PageNetServer : public AbstractPage |
646 | 262 |
{ |
263 |
Q_OBJECT |
|
264 |
||
265 |
public: |
|
266 |
PageNetServer(QWidget* parent = 0); |
|
267 |
||
268 |
QPushButton *BtnBack; |
|
269 |
QPushButton *BtnStart; |
|
657
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
270 |
QPushButton *BtnDefault; |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
271 |
QLabel *labelSD; |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
272 |
QLineEdit *leServerDescr; |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
273 |
QLabel *labelPort; |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
274 |
QSpinBox *sbPort; |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
275 |
|
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
276 |
private slots: |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
277 |
void setDefaultPort(); |
184 | 278 |
}; |
279 |
||
1153 | 280 |
class PageNetGame : public AbstractPage |
184 | 281 |
{ |
282 |
Q_OBJECT |
|
283 |
||
284 |
public: |
|
285 |
PageNetGame(QWidget* parent = 0); |
|
286 |
||
287 |
QPushButton *BtnBack; |
|
288 |
QPushButton *BtnGo; |
|
1409
d1cbe4a57ebf
Add button for controlling room options (no usefull yet)
unc0rr
parents:
1399
diff
changeset
|
289 |
QPushButton *BtnMaster; |
1951 | 290 |
QPushButton *BtnStart; |
2377 | 291 |
|
1409
d1cbe4a57ebf
Add button for controlling room options (no usefull yet)
unc0rr
parents:
1399
diff
changeset
|
292 |
QAction * restrictJoins; |
d1cbe4a57ebf
Add button for controlling room options (no usefull yet)
unc0rr
parents:
1399
diff
changeset
|
293 |
QAction * restrictTeamAdds; |
461 | 294 |
|
295 |
HWChatWidget* pChatWidget; |
|
322 | 296 |
|
297 |
TeamSelWidget* pNetTeamsWidget; |
|
298 |
GameCFGWidget* pGameCFG; |
|
1648 | 299 |
|
300 |
public slots: |
|
301 |
void setReadyStatus(bool isReady); |
|
1649 | 302 |
void setMasterMode(bool isMaster); |
184 | 303 |
}; |
304 |
||
1153 | 305 |
class PageInfo : public AbstractPage |
187 | 306 |
{ |
307 |
Q_OBJECT |
|
308 |
||
309 |
public: |
|
310 |
PageInfo(QWidget* parent = 0); |
|
311 |
||
312 |
QPushButton *BtnBack; |
|
313 |
About *about; |
|
314 |
}; |
|
315 |
||
1150 | 316 |
class PageSinglePlayer : public AbstractPage |
586 | 317 |
{ |
318 |
Q_OBJECT |
|
319 |
||
320 |
public: |
|
321 |
PageSinglePlayer(QWidget* parent = 0); |
|
322 |
||
323 |
QPushButton *BtnSimpleGamePage; |
|
324 |
QPushButton *BtnTrainPage; |
|
1150 | 325 |
QPushButton *BtnMultiplayer; |
326 |
QPushButton *BtnLoad; |
|
327 |
QPushButton *BtnDemos; |
|
586 | 328 |
QPushButton *BtnBack; |
329 |
GameCFGWidget *gameCFG; |
|
330 |
}; |
|
331 |
||
1153 | 332 |
class PageTraining : public AbstractPage |
587 | 333 |
{ |
334 |
Q_OBJECT |
|
335 |
||
336 |
public: |
|
337 |
PageTraining(QWidget* parent = 0); |
|
338 |
||
339 |
QPushButton *BtnStartTrain; |
|
340 |
QPushButton *BtnBack; |
|
2468
0b62498c201a
openal fix, training map selection and rcplane adjustments from Smaxx (untested, but look reasonable). Bunch of new graphics from Tiy, new translation for pt-pt from inu_
nemo
parents:
2443
diff
changeset
|
341 |
QComboBox *CBSelect; |
587 | 342 |
}; |
343 |
||
684 | 344 |
class PageSelectWeapon : public AbstractPage |
600 | 345 |
{ |
346 |
Q_OBJECT |
|
347 |
||
348 |
public: |
|
349 |
PageSelectWeapon(QWidget* parent = 0); |
|
350 |
||
683 | 351 |
QPushButton *BtnSave; |
352 |
QPushButton *BtnDefault; |
|
718 | 353 |
QPushButton *BtnDelete; |
600 | 354 |
QPushButton *BtnBack; |
1312 | 355 |
SelWeaponWidget* pWeapons; |
600 | 356 |
}; |
306 | 357 |
|
686 | 358 |
class PageInGame : public AbstractPage |
359 |
{ |
|
360 |
Q_OBJECT |
|
361 |
||
362 |
public: |
|
363 |
PageInGame(QWidget* parent = 0); |
|
364 |
}; |
|
365 |
||
1311 | 366 |
class PageRoomsList : public AbstractPage |
367 |
{ |
|
368 |
Q_OBJECT |
|
369 |
||
370 |
public: |
|
371 |
PageRoomsList(QWidget* parent = 0); |
|
1312 | 372 |
|
1314 | 373 |
QLineEdit * roomName; |
1399 | 374 |
QTableWidget * roomsList; |
1312 | 375 |
QPushButton * BtnBack; |
376 |
QPushButton * BtnCreate; |
|
377 |
QPushButton * BtnJoin; |
|
378 |
QPushButton * BtnRefresh; |
|
1856
e71dbf958c87
Enable admin button when have privilege. Button does nothing yet.
unc0rr
parents:
1840
diff
changeset
|
379 |
QPushButton * BtnAdmin; |
1522 | 380 |
HWChatWidget * chatWidget; |
2377 | 381 |
|
1313
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
382 |
public slots: |
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
383 |
void setRoomsList(const QStringList & list); |
1856
e71dbf958c87
Enable admin button when have privilege. Button does nothing yet.
unc0rr
parents:
1840
diff
changeset
|
384 |
void setAdmin(bool); |
1314 | 385 |
|
386 |
private slots: |
|
387 |
void onCreateClick(); |
|
388 |
void onJoinClick(); |
|
1315 | 389 |
void onRefreshClick(); |
2377 | 390 |
|
1313
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
391 |
signals: |
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
392 |
void askForCreateRoom(const QString &); |
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
393 |
void askForJoinRoom(const QString &); |
1315 | 394 |
void askForRoomList(); |
1311 | 395 |
}; |
396 |
||
1800 | 397 |
class PageConnecting : public AbstractPage |
398 |
{ |
|
399 |
Q_OBJECT |
|
400 |
||
401 |
public: |
|
402 |
PageConnecting(QWidget* parent = 0); |
|
403 |
}; |
|
404 |
||
1884 | 405 |
class PageScheme : public AbstractPage |
406 |
{ |
|
407 |
Q_OBJECT |
|
408 |
||
409 |
public: |
|
410 |
PageScheme(QWidget* parent = 0); |
|
1885 | 411 |
|
1887 | 412 |
QPushButton * BtnBack; |
1889 | 413 |
QPushButton * BtnNew; |
1902
aeadb10c2d77
Add delete button and scheme selection combobox to scheme edit page
unc0rr
parents:
1895
diff
changeset
|
414 |
QPushButton * BtnDelete; |
1887 | 415 |
QPushButton * BtnSave; |
416 |
||
417 |
void setModel(QAbstractItemModel * model); |
|
1885 | 418 |
|
419 |
private: |
|
1887 | 420 |
QDataWidgetMapper * mapper; |
1932 | 421 |
ToggleButtonWidget * TBW_mode_Forts; |
422 |
ToggleButtonWidget * TBW_teamsDivide; |
|
423 |
ToggleButtonWidget * TBW_solid; |
|
424 |
ToggleButtonWidget * TBW_border; |
|
425 |
ToggleButtonWidget * TBW_lowGravity; |
|
426 |
ToggleButtonWidget * TBW_laserSight; |
|
427 |
ToggleButtonWidget * TBW_invulnerable; |
|
428 |
ToggleButtonWidget * TBW_mines; |
|
2017 | 429 |
ToggleButtonWidget * TBW_vampiric; |
430 |
ToggleButtonWidget * TBW_karma; |
|
2023
41d3afaa20c7
Artillery mode, sniper rifle, speech bubble tweaks, fix of rope bug introduced by enabling hats in jump
nemo
parents:
2017
diff
changeset
|
431 |
ToggleButtonWidget * TBW_artillery; |
1895 | 432 |
|
433 |
QSpinBox * SB_DamageModifier; |
|
1885 | 434 |
QSpinBox * SB_TurnTime; |
435 |
QSpinBox * SB_InitHealth; |
|
436 |
QSpinBox * SB_SuddenDeath; |
|
437 |
FreqSpinBox * SB_CaseProb; |
|
2031
b6f3e56fb100
david_ac's game scheme options for mine delay/quantity, tweaks to sniper rifle
nemo
parents:
2023
diff
changeset
|
438 |
QSpinBox * SB_MinesTime; |
b6f3e56fb100
david_ac's game scheme options for mine delay/quantity, tweaks to sniper rifle
nemo
parents:
2023
diff
changeset
|
439 |
QSpinBox * SB_Mines; |
1885 | 440 |
QLineEdit * LE_name; |
1902
aeadb10c2d77
Add delete button and scheme selection combobox to scheme edit page
unc0rr
parents:
1895
diff
changeset
|
441 |
QComboBox * selectScheme; |
1889 | 442 |
|
1984 | 443 |
QGroupBox * gbGameModes; |
444 |
QGroupBox * gbBasicSettings; |
|
445 |
||
1889 | 446 |
private slots: |
447 |
void newRow(); |
|
1902
aeadb10c2d77
Add delete button and scheme selection combobox to scheme edit page
unc0rr
parents:
1895
diff
changeset
|
448 |
void deleteRow(); |
1984 | 449 |
void schemeSelected(int); |
1884 | 450 |
}; |
451 |
||
1905 | 452 |
class PageAdmin : public AbstractPage |
453 |
{ |
|
454 |
Q_OBJECT |
|
455 |
||
456 |
public: |
|
457 |
PageAdmin(QWidget* parent = 0); |
|
458 |
||
459 |
QPushButton * BtnBack; |
|
2155
d897222d3339
Implement ability for server admin to clear accounts cache
unc0rr
parents:
2098
diff
changeset
|
460 |
QPushButton * pbClearAccountsCache; |
1924 | 461 |
|
462 |
private: |
|
463 |
QLineEdit * leServerMessage; |
|
464 |
QPushButton * pbSetSM; |
|
465 |
||
466 |
private slots: |
|
467 |
void smChanged(); |
|
468 |
||
469 |
public slots: |
|
470 |
void serverMessage(const QString & str); |
|
471 |
||
472 |
signals: |
|
473 |
void setServerMessage(const QString & str); |
|
1905 | 474 |
}; |
475 |
||
1950 | 476 |
|
477 |
class PageNetType : public AbstractPage |
|
478 |
{ |
|
479 |
Q_OBJECT |
|
480 |
||
481 |
public: |
|
482 |
PageNetType(QWidget* parent = 0); |
|
483 |
||
484 |
QPushButton * BtnBack; |
|
485 |
QPushButton * BtnLAN; |
|
486 |
QPushButton * BtnOfficialServer; |
|
487 |
}; |
|
488 |
||
184 | 489 |
#endif // PAGES_H |