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