author | unc0rr |
Fri, 12 Nov 2010 19:48:51 +0300 | |
branch | mbait-mangen |
changeset 2566 | 4fb45d86d5e8 |
parent 2516 | effafd586a4e |
child 2703 | fbde0d971ba6 |
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; |
|
336 | 159 |
QComboBox *CBTeamLvl; |
1659 | 160 |
QComboBox *CBVoicepack; |
184 | 161 |
QGroupBox *GBoxBinds; |
162 |
QToolBox *BindsBox; |
|
163 |
QPushButton *BtnTeamDiscard; |
|
164 |
QPushButton *BtnTeamSave; |
|
1684 | 165 |
QPushButton * BtnTestSound; |
184 | 166 |
QLineEdit * TeamNameEdit; |
167 |
QLineEdit * HHNameEdit[8]; |
|
1236 | 168 |
QComboBox * HHHats[8]; |
1840 | 169 |
QPushButton * randButton[8]; |
184 | 170 |
QComboBox * CBBind[BINDS_NUMBER]; |
1840 | 171 |
QPushButton * randTeamButton; |
184 | 172 |
|
2516 | 173 |
private: |
174 |
SDLInteraction * mySdli; |
|
175 |
||
184 | 176 |
public slots: |
177 |
void CBFort_activated(const QString & gravename); |
|
178 |
||
1684 | 179 |
private slots: |
2516 | 180 |
void testSound(); |
184 | 181 |
}; |
182 |
||
692 | 183 |
class PageMultiplayer : public AbstractPage |
184 | 184 |
{ |
185 |
Q_OBJECT |
|
186 |
||
187 |
public: |
|
188 |
PageMultiplayer(QWidget* parent = 0); |
|
189 |
||
190 |
QPushButton *BtnBack; |
|
191 |
GameCFGWidget *gameCFG; |
|
192 |
TeamSelWidget *teamsSelect; |
|
193 |
QPushButton *BtnStartMPGame; |
|
194 |
}; |
|
195 |
||
692 | 196 |
class PageOptions : public AbstractPage |
184 | 197 |
{ |
198 |
Q_OBJECT |
|
199 |
||
200 |
public: |
|
201 |
PageOptions(QWidget* parent = 0); |
|
202 |
||
597
ec5f057ab268
kdevelop project add, initial weapons scheme button
displacer
parents:
587
diff
changeset
|
203 |
QPushButton* WeaponsButt; |
693 | 204 |
QPushButton* WeaponEdit; |
205 |
QComboBox* WeaponsName; |
|
206 |
||
184 | 207 |
QPushButton *BtnBack; |
1194 | 208 |
IconedGroupBox *teamsBox; |
184 | 209 |
QPushButton *BtnNewTeam; |
210 |
QPushButton *BtnEditTeam; |
|
211 |
QComboBox *CBTeamName; |
|
1193 | 212 |
IconedGroupBox *AGGroupBox; |
184 | 213 |
QComboBox *CBResolution; |
214 |
QCheckBox *CBEnableSound; |
|
2443
fececcbc2189
Smaxx patch for fixing all sound related issues on any system
koda
parents:
2428
diff
changeset
|
215 |
#ifdef _WIN32 |
2392
a55dbef5cf31
Smaxx's patch fixing openal sound issues with poor card drivers
koda
parents:
2377
diff
changeset
|
216 |
QCheckBox *CBHardwareSound; |
2443
fececcbc2189
Smaxx patch for fixing all sound related issues on any system
koda
parents:
2428
diff
changeset
|
217 |
#endif |
1129 | 218 |
QCheckBox *CBEnableMusic; |
184 | 219 |
QCheckBox *CBFullscreen; |
1162 | 220 |
QCheckBox *CBFrontendFullscreen; |
297 | 221 |
QCheckBox *CBShowFPS; |
529 | 222 |
QCheckBox *CBAltDamage; |
1487
b4cc59a6d50a
Add an option to name records with current date and time
unc0rr
parents:
1443
diff
changeset
|
223 |
QCheckBox *CBNameWithDate; |
2261 | 224 |
#ifdef __APPLE__ |
225 |
QCheckBox *CBAutoUpdate; |
|
226 |
#endif |
|
2377 | 227 |
|
297 | 228 |
FPSEdit *fpsedit; |
184 | 229 |
QPushButton *BtnSaveOptions; |
647 | 230 |
QLabel *labelNN; |
1777 | 231 |
QSpinBox * volumeBox; |
647 | 232 |
QLineEdit *editNetNick; |
1812 | 233 |
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
|
234 |
QCheckBox *CBFrontendEffects; |
184 | 235 |
}; |
236 |
||
1153 | 237 |
class PageNet : public AbstractPage |
184 | 238 |
{ |
239 |
Q_OBJECT |
|
240 |
||
241 |
public: |
|
242 |
PageNet(QWidget* parent = 0); |
|
243 |
||
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
244 |
QPushButton* BtnUpdateSList; |
665 | 245 |
QTableView * tvServersList; |
653
4f44fc06ca45
Class to ask host/port to connect to ('Specify' button on PageNet)
unc0rr
parents:
647
diff
changeset
|
246 |
QPushButton * BtnBack; |
4f44fc06ca45
Class to ask host/port to connect to ('Specify' button on PageNet)
unc0rr
parents:
647
diff
changeset
|
247 |
QPushButton * BtnNetConnect; |
4f44fc06ca45
Class to ask host/port to connect to ('Specify' button on PageNet)
unc0rr
parents:
647
diff
changeset
|
248 |
QPushButton * BtnNetSvrStart; |
4f44fc06ca45
Class to ask host/port to connect to ('Specify' button on PageNet)
unc0rr
parents:
647
diff
changeset
|
249 |
QPushButton * BtnSpecifyServer; |
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
250 |
|
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
251 |
private: |
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
252 |
QGroupBox * ConnGroupBox; |
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
253 |
QGridLayout * GBClayout; |
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
254 |
|
646 | 255 |
private slots: |
256 |
void slotConnect(); |
|
257 |
||
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
258 |
public slots: |
646 | 259 |
void updateServersList(); |
260 |
||
261 |
signals: |
|
665 | 262 |
void connectClicked(const QString & host, quint16 port); |
646 | 263 |
}; |
264 |
||
1153 | 265 |
class PageNetServer : public AbstractPage |
646 | 266 |
{ |
267 |
Q_OBJECT |
|
268 |
||
269 |
public: |
|
270 |
PageNetServer(QWidget* parent = 0); |
|
271 |
||
272 |
QPushButton *BtnBack; |
|
273 |
QPushButton *BtnStart; |
|
657
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
274 |
QPushButton *BtnDefault; |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
275 |
QLabel *labelSD; |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
276 |
QLineEdit *leServerDescr; |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
277 |
QLabel *labelPort; |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
278 |
QSpinBox *sbPort; |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
279 |
|
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
280 |
private slots: |
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
281 |
void setDefaultPort(); |
184 | 282 |
}; |
283 |
||
1153 | 284 |
class PageNetGame : public AbstractPage |
184 | 285 |
{ |
286 |
Q_OBJECT |
|
287 |
||
288 |
public: |
|
289 |
PageNetGame(QWidget* parent = 0); |
|
290 |
||
291 |
QPushButton *BtnBack; |
|
292 |
QPushButton *BtnGo; |
|
1409
d1cbe4a57ebf
Add button for controlling room options (no usefull yet)
unc0rr
parents:
1399
diff
changeset
|
293 |
QPushButton *BtnMaster; |
1951 | 294 |
QPushButton *BtnStart; |
2377 | 295 |
|
1409
d1cbe4a57ebf
Add button for controlling room options (no usefull yet)
unc0rr
parents:
1399
diff
changeset
|
296 |
QAction * restrictJoins; |
d1cbe4a57ebf
Add button for controlling room options (no usefull yet)
unc0rr
parents:
1399
diff
changeset
|
297 |
QAction * restrictTeamAdds; |
461 | 298 |
|
299 |
HWChatWidget* pChatWidget; |
|
322 | 300 |
|
301 |
TeamSelWidget* pNetTeamsWidget; |
|
302 |
GameCFGWidget* pGameCFG; |
|
1648 | 303 |
|
304 |
public slots: |
|
305 |
void setReadyStatus(bool isReady); |
|
1649 | 306 |
void setMasterMode(bool isMaster); |
184 | 307 |
}; |
308 |
||
1153 | 309 |
class PageInfo : public AbstractPage |
187 | 310 |
{ |
311 |
Q_OBJECT |
|
312 |
||
313 |
public: |
|
314 |
PageInfo(QWidget* parent = 0); |
|
315 |
||
316 |
QPushButton *BtnBack; |
|
317 |
About *about; |
|
318 |
}; |
|
319 |
||
1150 | 320 |
class PageSinglePlayer : public AbstractPage |
586 | 321 |
{ |
322 |
Q_OBJECT |
|
323 |
||
324 |
public: |
|
325 |
PageSinglePlayer(QWidget* parent = 0); |
|
326 |
||
327 |
QPushButton *BtnSimpleGamePage; |
|
328 |
QPushButton *BtnTrainPage; |
|
1150 | 329 |
QPushButton *BtnMultiplayer; |
330 |
QPushButton *BtnLoad; |
|
331 |
QPushButton *BtnDemos; |
|
586 | 332 |
QPushButton *BtnBack; |
333 |
GameCFGWidget *gameCFG; |
|
334 |
}; |
|
335 |
||
1153 | 336 |
class PageTraining : public AbstractPage |
587 | 337 |
{ |
338 |
Q_OBJECT |
|
339 |
||
340 |
public: |
|
341 |
PageTraining(QWidget* parent = 0); |
|
342 |
||
343 |
QPushButton *BtnStartTrain; |
|
344 |
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
|
345 |
QComboBox *CBSelect; |
587 | 346 |
}; |
347 |
||
684 | 348 |
class PageSelectWeapon : public AbstractPage |
600 | 349 |
{ |
350 |
Q_OBJECT |
|
351 |
||
352 |
public: |
|
353 |
PageSelectWeapon(QWidget* parent = 0); |
|
354 |
||
683 | 355 |
QPushButton *BtnSave; |
356 |
QPushButton *BtnDefault; |
|
718 | 357 |
QPushButton *BtnDelete; |
600 | 358 |
QPushButton *BtnBack; |
1312 | 359 |
SelWeaponWidget* pWeapons; |
600 | 360 |
}; |
306 | 361 |
|
686 | 362 |
class PageInGame : public AbstractPage |
363 |
{ |
|
364 |
Q_OBJECT |
|
365 |
||
366 |
public: |
|
367 |
PageInGame(QWidget* parent = 0); |
|
368 |
}; |
|
369 |
||
1311 | 370 |
class PageRoomsList : public AbstractPage |
371 |
{ |
|
372 |
Q_OBJECT |
|
373 |
||
374 |
public: |
|
375 |
PageRoomsList(QWidget* parent = 0); |
|
1312 | 376 |
|
1314 | 377 |
QLineEdit * roomName; |
1399 | 378 |
QTableWidget * roomsList; |
1312 | 379 |
QPushButton * BtnBack; |
380 |
QPushButton * BtnCreate; |
|
381 |
QPushButton * BtnJoin; |
|
382 |
QPushButton * BtnRefresh; |
|
1856
e71dbf958c87
Enable admin button when have privilege. Button does nothing yet.
unc0rr
parents:
1840
diff
changeset
|
383 |
QPushButton * BtnAdmin; |
1522 | 384 |
HWChatWidget * chatWidget; |
2377 | 385 |
|
1313
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
386 |
public slots: |
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
387 |
void setRoomsList(const QStringList & list); |
1856
e71dbf958c87
Enable admin button when have privilege. Button does nothing yet.
unc0rr
parents:
1840
diff
changeset
|
388 |
void setAdmin(bool); |
1314 | 389 |
|
390 |
private slots: |
|
391 |
void onCreateClick(); |
|
392 |
void onJoinClick(); |
|
1315 | 393 |
void onRefreshClick(); |
2377 | 394 |
|
1313
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
395 |
signals: |
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
396 |
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
|
397 |
void askForJoinRoom(const QString &); |
1315 | 398 |
void askForRoomList(); |
1311 | 399 |
}; |
400 |
||
1800 | 401 |
class PageConnecting : public AbstractPage |
402 |
{ |
|
403 |
Q_OBJECT |
|
404 |
||
405 |
public: |
|
406 |
PageConnecting(QWidget* parent = 0); |
|
407 |
}; |
|
408 |
||
1884 | 409 |
class PageScheme : public AbstractPage |
410 |
{ |
|
411 |
Q_OBJECT |
|
412 |
||
413 |
public: |
|
414 |
PageScheme(QWidget* parent = 0); |
|
1885 | 415 |
|
1887 | 416 |
QPushButton * BtnBack; |
1889 | 417 |
QPushButton * BtnNew; |
1902
aeadb10c2d77
Add delete button and scheme selection combobox to scheme edit page
unc0rr
parents:
1895
diff
changeset
|
418 |
QPushButton * BtnDelete; |
1887 | 419 |
QPushButton * BtnSave; |
420 |
||
421 |
void setModel(QAbstractItemModel * model); |
|
1885 | 422 |
|
423 |
private: |
|
1887 | 424 |
QDataWidgetMapper * mapper; |
1932 | 425 |
ToggleButtonWidget * TBW_mode_Forts; |
426 |
ToggleButtonWidget * TBW_teamsDivide; |
|
427 |
ToggleButtonWidget * TBW_solid; |
|
428 |
ToggleButtonWidget * TBW_border; |
|
429 |
ToggleButtonWidget * TBW_lowGravity; |
|
430 |
ToggleButtonWidget * TBW_laserSight; |
|
431 |
ToggleButtonWidget * TBW_invulnerable; |
|
432 |
ToggleButtonWidget * TBW_mines; |
|
2017 | 433 |
ToggleButtonWidget * TBW_vampiric; |
434 |
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
|
435 |
ToggleButtonWidget * TBW_artillery; |
1895 | 436 |
|
437 |
QSpinBox * SB_DamageModifier; |
|
1885 | 438 |
QSpinBox * SB_TurnTime; |
439 |
QSpinBox * SB_InitHealth; |
|
440 |
QSpinBox * SB_SuddenDeath; |
|
441 |
FreqSpinBox * SB_CaseProb; |
|
2031
b6f3e56fb100
david_ac's game scheme options for mine delay/quantity, tweaks to sniper rifle
nemo
parents:
2023
diff
changeset
|
442 |
QSpinBox * SB_MinesTime; |
b6f3e56fb100
david_ac's game scheme options for mine delay/quantity, tweaks to sniper rifle
nemo
parents:
2023
diff
changeset
|
443 |
QSpinBox * SB_Mines; |
1885 | 444 |
QLineEdit * LE_name; |
1902
aeadb10c2d77
Add delete button and scheme selection combobox to scheme edit page
unc0rr
parents:
1895
diff
changeset
|
445 |
QComboBox * selectScheme; |
1889 | 446 |
|
1984 | 447 |
QGroupBox * gbGameModes; |
448 |
QGroupBox * gbBasicSettings; |
|
449 |
||
1889 | 450 |
private slots: |
451 |
void newRow(); |
|
1902
aeadb10c2d77
Add delete button and scheme selection combobox to scheme edit page
unc0rr
parents:
1895
diff
changeset
|
452 |
void deleteRow(); |
1984 | 453 |
void schemeSelected(int); |
1884 | 454 |
}; |
455 |
||
1905 | 456 |
class PageAdmin : public AbstractPage |
457 |
{ |
|
458 |
Q_OBJECT |
|
459 |
||
460 |
public: |
|
461 |
PageAdmin(QWidget* parent = 0); |
|
462 |
||
463 |
QPushButton * BtnBack; |
|
2155
d897222d3339
Implement ability for server admin to clear accounts cache
unc0rr
parents:
2098
diff
changeset
|
464 |
QPushButton * pbClearAccountsCache; |
1924 | 465 |
|
466 |
private: |
|
467 |
QLineEdit * leServerMessage; |
|
468 |
QPushButton * pbSetSM; |
|
469 |
||
470 |
private slots: |
|
471 |
void smChanged(); |
|
472 |
||
473 |
public slots: |
|
474 |
void serverMessage(const QString & str); |
|
475 |
||
476 |
signals: |
|
477 |
void setServerMessage(const QString & str); |
|
1905 | 478 |
}; |
479 |
||
1950 | 480 |
|
481 |
class PageNetType : public AbstractPage |
|
482 |
{ |
|
483 |
Q_OBJECT |
|
484 |
||
485 |
public: |
|
486 |
PageNetType(QWidget* parent = 0); |
|
487 |
||
488 |
QPushButton * BtnBack; |
|
489 |
QPushButton * BtnLAN; |
|
490 |
QPushButton * BtnOfficialServer; |
|
491 |
}; |
|
492 |
||
184 | 493 |
#endif // PAGES_H |