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