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