author | koda |
Wed, 27 Oct 2010 14:02:20 +0200 | |
branch | experimental3D |
changeset 4004 | b1c2c2f6fc5e |
parent 3698 | 793386610068 |
parent 3943 | 9835060e5c01 |
child 4006 | 45b63c2a694f |
permissions | -rw-r--r-- |
184 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
3236
4ab3917d7d44
Update (c) lines to 2010 as unc0rr requested - they all had varying values so I just took the first year mentioned, then tacked on -2010
nemo
parents:
3044
diff
changeset
|
3 |
* Copyright (c) 2006-2010 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; |
2773
e94f240a8a41
Have game beep when someone joins lobby/room. Controlled by Sound option
nemo
parents:
2762
diff
changeset
|
50 |
class QSettings; |
3708
64e059b6f9c5
applied from experimental3D, use a slider to set up quality
koda
parents:
3695
diff
changeset
|
51 |
class QSlider; |
665 | 52 |
|
53 |
class GameCFGWidget; |
|
184 | 54 |
class TeamSelWidget; |
55 |
class DemosList; |
|
56 |
class SquareLabel; |
|
187 | 57 |
class About; |
297 | 58 |
class FPSEdit; |
461 | 59 |
class HWChatWidget; |
612
333d095319de
abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents:
600
diff
changeset
|
60 |
class SelWeaponWidget; |
1192 | 61 |
class IconedGroupBox; |
1885 | 62 |
class FreqSpinBox; |
184 | 63 |
|
684 | 64 |
class AbstractPage : public QWidget |
65 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
66 |
Q_OBJECT |
1885 | 67 |
|
684 | 68 |
public: |
69 |
||
70 |
protected: |
|
71 |
AbstractPage(QWidget* parent = 0) { |
|
72 |
font14 = new QFont("MS Shell Dlg", 14); |
|
3937 | 73 |
setFocusPolicy(Qt::StrongFocus); |
684 | 74 |
} |
75 |
virtual ~AbstractPage() {}; |
|
76 |
||
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
77 |
QPushButton* addButton(QString btname, QGridLayout* grid, int wy, int wx, bool iconed = false) { |
684 | 78 |
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
|
79 |
if (!iconed) { |
1148 | 80 |
butt->setFont(*font14); |
81 |
butt->setText(btname); |
|
1409
d1cbe4a57ebf
Add button for controlling room options (no usefull yet)
unc0rr
parents:
1399
diff
changeset
|
82 |
//butt->setStyleSheet("background-color: #0d0544"); |
1148 | 83 |
} else { |
84 |
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
|
85 |
QSize sz = lp.actualSize(QSize(65535, 65535)); |
1148 | 86 |
butt->setIcon(lp); |
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
87 |
butt->setFixedSize(sz); |
1148 | 88 |
butt->setIconSize(sz); |
89 |
butt->setFlat(true); |
|
1149 | 90 |
butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
1148 | 91 |
} |
684 | 92 |
grid->addWidget(butt, wy, wx); |
93 |
return butt; |
|
94 |
}; |
|
95 |
||
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
96 |
QPushButton* addButton(QString btname, QGridLayout* grid, int wy, int wx, int rowSpan, int columnSpan, bool iconed = false) { |
692 | 97 |
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
|
98 |
if (!iconed) { |
1148 | 99 |
butt->setFont(*font14); |
100 |
butt->setText(btname); |
|
101 |
} else { |
|
102 |
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
|
103 |
QSize sz = lp.actualSize(QSize(65535, 65535)); |
1148 | 104 |
butt->setIcon(lp); |
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
105 |
butt->setFixedSize(sz); |
1148 | 106 |
butt->setIconSize(sz); |
107 |
butt->setFlat(true); |
|
1149 | 108 |
butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
1148 | 109 |
} |
692 | 110 |
grid->addWidget(butt, wy, wx, rowSpan, columnSpan); |
111 |
return butt; |
|
112 |
}; |
|
113 |
||
1443 | 114 |
QPushButton* addButton(QString btname, QBoxLayout* box, int where, bool iconed = false) { |
684 | 115 |
QPushButton* butt = new QPushButton(this); |
1443 | 116 |
if (!iconed) { |
117 |
butt->setFont(*font14); |
|
118 |
butt->setText(btname); |
|
119 |
} else { |
|
120 |
const QIcon& lp=QIcon(btname); |
|
121 |
QSize sz = lp.actualSize(QSize(65535, 65535)); |
|
122 |
butt->setIcon(lp); |
|
123 |
butt->setFixedSize(sz); |
|
124 |
butt->setIconSize(sz); |
|
125 |
butt->setFlat(true); |
|
126 |
butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
|
127 |
} |
|
684 | 128 |
box->addWidget(butt, where); |
129 |
return butt; |
|
130 |
}; |
|
131 |
||
132 |
QFont * font14; |
|
133 |
}; |
|
134 |
||
135 |
class PageMain : public AbstractPage |
|
184 | 136 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
137 |
Q_OBJECT |
184 | 138 |
|
139 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
140 |
PageMain(QWidget* parent = 0); |
184 | 141 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
142 |
QPushButton *BtnSinglePlayer; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
143 |
QPushButton *BtnNet; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
144 |
QPushButton *BtnSetup; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
145 |
QPushButton *BtnInfo; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
146 |
QPushButton *BtnExit; |
3421 | 147 |
QLabel *mainNote; |
184 | 148 |
}; |
149 |
||
692 | 150 |
class PageEditTeam : public AbstractPage |
184 | 151 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
152 |
Q_OBJECT |
184 | 153 |
|
154 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
155 |
PageEditTeam(QWidget* parent, SDLInteraction * sdli); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
156 |
QSignalMapper* signalMapper; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
157 |
QGroupBox *GBoxHedgehogs; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
158 |
QGroupBox *GBoxTeam; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
159 |
QGroupBox *GBoxFort; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
160 |
QComboBox *CBFort; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
161 |
SquareLabel *FortPreview; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
162 |
QComboBox *CBGrave; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
163 |
QComboBox *CBFlag; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
164 |
QComboBox *CBTeamLvl; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
165 |
QComboBox *CBVoicepack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
166 |
QGroupBox *GBoxBinds; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
167 |
QToolBox *BindsBox; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
168 |
QPushButton *BtnTeamDiscard; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
169 |
QPushButton *BtnTeamSave; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
170 |
QPushButton * BtnTestSound; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
171 |
QLineEdit * TeamNameEdit; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
172 |
QLineEdit * HHNameEdit[8]; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
173 |
QComboBox * HHHats[8]; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
174 |
QPushButton * randButton[8]; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
175 |
QComboBox * CBBind[BINDS_NUMBER]; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
176 |
QPushButton * randTeamButton; |
184 | 177 |
|
2516 | 178 |
private: |
179 |
SDLInteraction * mySdli; |
|
180 |
||
184 | 181 |
public slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
182 |
void CBFort_activated(const QString & gravename); |
184 | 183 |
|
1684 | 184 |
private slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
185 |
void testSound(); |
184 | 186 |
}; |
187 |
||
692 | 188 |
class PageMultiplayer : public AbstractPage |
184 | 189 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
190 |
Q_OBJECT |
184 | 191 |
|
192 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
193 |
PageMultiplayer(QWidget* parent = 0); |
184 | 194 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
195 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
196 |
GameCFGWidget *gameCFG; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
197 |
TeamSelWidget *teamsSelect; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
198 |
QPushButton *BtnStartMPGame; |
184 | 199 |
}; |
200 |
||
692 | 201 |
class PageOptions : public AbstractPage |
184 | 202 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
203 |
Q_OBJECT |
184 | 204 |
|
205 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
206 |
PageOptions(QWidget* parent = 0); |
184 | 207 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
208 |
QPushButton *WeaponsButt; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
209 |
QPushButton *WeaponEdit; |
3044 | 210 |
QPushButton *WeaponDelete; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
211 |
QComboBox *WeaponsName; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
212 |
QCheckBox *WeaponTooltip; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
213 |
QComboBox *CBLanguage; |
693 | 214 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
215 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
216 |
IconedGroupBox *teamsBox; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
217 |
QPushButton *BtnNewTeam; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
218 |
QPushButton *BtnEditTeam; |
3044 | 219 |
QPushButton *BtnDeleteTeam; |
3932 | 220 |
QPushButton *BtnAssociateFiles; |
3324 | 221 |
QLabel *LblNoEditTeam; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
222 |
QComboBox *CBTeamName; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
223 |
IconedGroupBox *AGGroupBox; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
224 |
QComboBox *CBResolution; |
3696 | 225 |
QComboBox *CBStereoMode; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
226 |
QCheckBox *CBEnableSound; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
227 |
QCheckBox *CBEnableFrontendSound; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
228 |
QCheckBox *CBEnableMusic; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
229 |
QCheckBox *CBEnableFrontendMusic; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
230 |
QCheckBox *CBFullscreen; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
231 |
QCheckBox *CBFrontendFullscreen; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
232 |
QCheckBox *CBShowFPS; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
233 |
QCheckBox *CBAltDamage; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
234 |
QCheckBox *CBNameWithDate; |
2261 | 235 |
#ifdef __APPLE__ |
236 |
QCheckBox *CBAutoUpdate; |
|
237 |
#endif |
|
2377 | 238 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
239 |
FPSEdit *fpsedit; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
240 |
QPushButton *BtnSaveOptions; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
241 |
QLabel *labelNN; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
242 |
QSpinBox * volumeBox; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
243 |
QLineEdit *editNetNick; |
3708
64e059b6f9c5
applied from experimental3D, use a slider to set up quality
koda
parents:
3695
diff
changeset
|
244 |
QSlider *SLQuality; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
245 |
QCheckBox *CBFrontendEffects; |
3698
793386610068
rename two rendering methods and performe some interface tricks about fullscreen
koda
parents:
3696
diff
changeset
|
246 |
bool previousFullscreenValue; |
793386610068
rename two rendering methods and performe some interface tricks about fullscreen
koda
parents:
3696
diff
changeset
|
247 |
|
793386610068
rename two rendering methods and performe some interface tricks about fullscreen
koda
parents:
3696
diff
changeset
|
248 |
private slots: |
793386610068
rename two rendering methods and performe some interface tricks about fullscreen
koda
parents:
3696
diff
changeset
|
249 |
void forceFullscreen(int index); |
793386610068
rename two rendering methods and performe some interface tricks about fullscreen
koda
parents:
3696
diff
changeset
|
250 |
void setFullscreen(void); |
184 | 251 |
}; |
252 |
||
1153 | 253 |
class PageNet : public AbstractPage |
184 | 254 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
255 |
Q_OBJECT |
184 | 256 |
|
257 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
258 |
PageNet(QWidget* parent = 0); |
184 | 259 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
260 |
QPushButton* BtnUpdateSList; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
261 |
QTableView * tvServersList; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
262 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
263 |
QPushButton * BtnNetConnect; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
264 |
QPushButton * BtnNetSvrStart; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
265 |
QPushButton * BtnSpecifyServer; |
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
266 |
|
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
267 |
private: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
268 |
QGroupBox * ConnGroupBox; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
269 |
QGridLayout * GBClayout; |
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
270 |
|
646 | 271 |
private slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
272 |
void slotConnect(); |
646 | 273 |
|
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
274 |
public slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
275 |
void updateServersList(); |
646 | 276 |
|
277 |
signals: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
278 |
void connectClicked(const QString & host, quint16 port); |
646 | 279 |
}; |
280 |
||
1153 | 281 |
class PageNetServer : public AbstractPage |
646 | 282 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
283 |
Q_OBJECT |
646 | 284 |
|
285 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
286 |
PageNetServer(QWidget* parent = 0); |
646 | 287 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
288 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
289 |
QPushButton *BtnStart; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
290 |
QPushButton *BtnDefault; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
291 |
QLabel *labelSD; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
292 |
QLineEdit *leServerDescr; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
293 |
QLabel *labelPort; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
294 |
QSpinBox *sbPort; |
657
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
295 |
|
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
296 |
private slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
297 |
void setDefaultPort(); |
184 | 298 |
}; |
299 |
||
1153 | 300 |
class PageNetGame : public AbstractPage |
184 | 301 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
302 |
Q_OBJECT |
184 | 303 |
|
304 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
305 |
PageNetGame(QWidget* parent, QSettings * config, SDLInteraction * sdli); |
184 | 306 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
307 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
308 |
QPushButton *BtnGo; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
309 |
QPushButton *BtnMaster; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
310 |
QPushButton *BtnStart; |
2377 | 311 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
312 |
QAction * restrictJoins; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
313 |
QAction * restrictTeamAdds; |
461 | 314 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
315 |
HWChatWidget* pChatWidget; |
322 | 316 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
317 |
TeamSelWidget* pNetTeamsWidget; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
318 |
GameCFGWidget* pGameCFG; |
1648 | 319 |
|
320 |
public slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
321 |
void setReadyStatus(bool isReady); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
322 |
void setMasterMode(bool isMaster); |
184 | 323 |
}; |
324 |
||
1153 | 325 |
class PageInfo : public AbstractPage |
187 | 326 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
327 |
Q_OBJECT |
187 | 328 |
|
329 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
330 |
PageInfo(QWidget* parent = 0); |
187 | 331 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
332 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
333 |
About *about; |
187 | 334 |
}; |
335 |
||
1150 | 336 |
class PageSinglePlayer : public AbstractPage |
586 | 337 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
338 |
Q_OBJECT |
586 | 339 |
|
340 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
341 |
PageSinglePlayer(QWidget* parent = 0); |
586 | 342 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
343 |
QPushButton *BtnSimpleGamePage; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
344 |
QPushButton *BtnTrainPage; |
3760 | 345 |
QPushButton *BtnCampaignPage; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
346 |
QPushButton *BtnMultiplayer; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
347 |
QPushButton *BtnLoad; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
348 |
QPushButton *BtnDemos; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
349 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
350 |
GameCFGWidget *gameCFG; |
586 | 351 |
}; |
352 |
||
1153 | 353 |
class PageTraining : public AbstractPage |
587 | 354 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
355 |
Q_OBJECT |
587 | 356 |
|
357 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
358 |
PageTraining(QWidget* parent = 0); |
587 | 359 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
360 |
QPushButton *BtnStartTrain; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
361 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
362 |
QComboBox *CBSelect; |
587 | 363 |
}; |
364 |
||
3760 | 365 |
class PageCampaign : public AbstractPage |
366 |
{ |
|
367 |
Q_OBJECT |
|
368 |
||
369 |
public: |
|
370 |
PageCampaign(QWidget* parent = 0); |
|
371 |
||
372 |
QPushButton *BtnStartCampaign; |
|
373 |
QPushButton *BtnBack; |
|
374 |
QComboBox *CBSelect; |
|
375 |
QComboBox *CBTeam; |
|
376 |
}; |
|
377 |
||
684 | 378 |
class PageSelectWeapon : public AbstractPage |
600 | 379 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
380 |
Q_OBJECT |
600 | 381 |
|
382 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
383 |
PageSelectWeapon(QWidget* parent = 0); |
600 | 384 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
385 |
QPushButton *BtnSave; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
386 |
QPushButton *BtnDefault; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
387 |
QPushButton *BtnDelete; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
388 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
389 |
SelWeaponWidget* pWeapons; |
600 | 390 |
}; |
306 | 391 |
|
686 | 392 |
class PageInGame : public AbstractPage |
393 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
394 |
Q_OBJECT |
686 | 395 |
|
396 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
397 |
PageInGame(QWidget* parent = 0); |
686 | 398 |
}; |
399 |
||
1311 | 400 |
class PageRoomsList : public AbstractPage |
401 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
402 |
Q_OBJECT |
1311 | 403 |
|
404 |
public: |
|
2773
e94f240a8a41
Have game beep when someone joins lobby/room. Controlled by Sound option
nemo
parents:
2762
diff
changeset
|
405 |
PageRoomsList(QWidget* parent, QSettings * config, SDLInteraction * sdli); |
1312 | 406 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
407 |
QLineEdit * roomName; |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
408 |
QLineEdit * searchText; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
409 |
QTableWidget * roomsList; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
410 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
411 |
QPushButton * BtnCreate; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
412 |
QPushButton * BtnJoin; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
413 |
QPushButton * BtnRefresh; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
414 |
QPushButton * BtnAdmin; |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
415 |
QPushButton * BtnClear; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
416 |
QComboBox * CBState; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
417 |
QComboBox * CBRules; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
418 |
QComboBox * CBWeapons; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
419 |
HWChatWidget * chatWidget; |
2377 | 420 |
|
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
421 |
private: |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
422 |
bool gameInLobby; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
423 |
QString gameInLobbyName; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
424 |
QStringList listFromServer; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
425 |
|
1313
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
426 |
public slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
427 |
void setRoomsList(const QStringList & list); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
428 |
void setAdmin(bool); |
1314 | 429 |
|
430 |
private slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
431 |
void onCreateClick(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
432 |
void onJoinClick(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
433 |
void onRefreshClick(); |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
434 |
void onClearClick(); |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
435 |
void onJoinConfirmation(const QString &); |
2377 | 436 |
|
1313
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
437 |
signals: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
438 |
void askForCreateRoom(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
439 |
void askForJoinRoom(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
440 |
void askForRoomList(); |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
441 |
void askJoinConfirmation(const QString &); |
1311 | 442 |
}; |
443 |
||
1800 | 444 |
class PageConnecting : public AbstractPage |
445 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
446 |
Q_OBJECT |
1800 | 447 |
|
448 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
449 |
PageConnecting(QWidget* parent = 0); |
1800 | 450 |
}; |
451 |
||
1884 | 452 |
class PageScheme : public AbstractPage |
453 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
454 |
Q_OBJECT |
1884 | 455 |
|
456 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
457 |
PageScheme(QWidget* parent = 0); |
1885 | 458 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
459 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
460 |
QPushButton * BtnNew; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
461 |
QPushButton * BtnDelete; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
462 |
QPushButton * BtnSave; |
1887 | 463 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
464 |
void setModel(QAbstractItemModel * model); |
1885 | 465 |
|
466 |
private: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
467 |
QDataWidgetMapper * mapper; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
468 |
ToggleButtonWidget * TBW_mode_Forts; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
469 |
ToggleButtonWidget * TBW_teamsDivide; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
470 |
ToggleButtonWidget * TBW_solid; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
471 |
ToggleButtonWidget * TBW_border; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
472 |
ToggleButtonWidget * TBW_lowGravity; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
473 |
ToggleButtonWidget * TBW_laserSight; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
474 |
ToggleButtonWidget * TBW_invulnerable; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
475 |
ToggleButtonWidget * TBW_mines; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
476 |
ToggleButtonWidget * TBW_vampiric; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
477 |
ToggleButtonWidget * TBW_karma; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
478 |
ToggleButtonWidget * TBW_artillery; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
479 |
ToggleButtonWidget * TBW_randomorder; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
480 |
ToggleButtonWidget * TBW_king; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
481 |
ToggleButtonWidget * TBW_placehog; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
482 |
ToggleButtonWidget * TBW_sharedammo; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
483 |
ToggleButtonWidget * TBW_disablegirders; |
3287 | 484 |
ToggleButtonWidget * TBW_disablelandobjects; |
3743 | 485 |
ToggleButtonWidget * TBW_aisurvival; |
3943
9835060e5c01
Add per-hog ammo option, initial stubs for infinite attack and weapon reset, fix a bug in ammo switching
nemo
parents:
3937
diff
changeset
|
486 |
ToggleButtonWidget * TBW_infattack; |
9835060e5c01
Add per-hog ammo option, initial stubs for infinite attack and weapon reset, fix a bug in ammo switching
nemo
parents:
3937
diff
changeset
|
487 |
ToggleButtonWidget * TBW_resetweps; |
9835060e5c01
Add per-hog ammo option, initial stubs for infinite attack and weapon reset, fix a bug in ammo switching
nemo
parents:
3937
diff
changeset
|
488 |
ToggleButtonWidget * TBW_perhogammo; |
1895 | 489 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
490 |
QSpinBox * SB_DamageModifier; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
491 |
QSpinBox * SB_TurnTime; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
492 |
QSpinBox * SB_InitHealth; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
493 |
QSpinBox * SB_SuddenDeath; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
494 |
FreqSpinBox * SB_CaseProb; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
495 |
QSpinBox * SB_MinesTime; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
496 |
QSpinBox * SB_Mines; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
497 |
QSpinBox * SB_MineDuds; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
498 |
QSpinBox * SB_Explosives; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
499 |
QLineEdit * LE_name; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
500 |
QComboBox * selectScheme; |
1889 | 501 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
502 |
QGroupBox * gbGameModes; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
503 |
QGroupBox * gbBasicSettings; |
1984 | 504 |
|
1889 | 505 |
private slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
506 |
void newRow(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
507 |
void deleteRow(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
508 |
void schemeSelected(int); |
1884 | 509 |
}; |
510 |
||
1905 | 511 |
class PageAdmin : public AbstractPage |
512 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
513 |
Q_OBJECT |
1905 | 514 |
|
515 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
516 |
PageAdmin(QWidget* parent = 0); |
1905 | 517 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
518 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
519 |
QPushButton * pbClearAccountsCache; |
1924 | 520 |
|
521 |
private: |
|
3283 | 522 |
QLineEdit * leServerMessageNew; |
523 |
QLineEdit * leServerMessageOld; |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
524 |
QPushButton * pbSetSM; |
3283 | 525 |
QPushButton * pbAsk; |
526 |
QSpinBox * sbProtocol; |
|
527 |
QTextBrowser * tb; |
|
1924 | 528 |
|
529 |
private slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
530 |
void smChanged(); |
1924 | 531 |
|
532 |
public slots: |
|
3283 | 533 |
void serverMessageNew(const QString & str); |
534 |
void serverMessageOld(const QString & str); |
|
535 |
void protocol(int proto); |
|
1924 | 536 |
|
537 |
signals: |
|
3283 | 538 |
void setServerMessageNew(const QString & str); |
539 |
void setServerMessageOld(const QString & str); |
|
540 |
void setProtocol(int proto); |
|
541 |
void askServerVars(); |
|
1905 | 542 |
}; |
543 |
||
1950 | 544 |
|
545 |
class PageNetType : public AbstractPage |
|
546 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
547 |
Q_OBJECT |
1950 | 548 |
|
549 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
550 |
PageNetType(QWidget* parent = 0); |
1950 | 551 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
552 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
553 |
QPushButton * BtnLAN; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
554 |
QPushButton * BtnOfficialServer; |
1950 | 555 |
}; |
556 |
||
184 | 557 |
#endif // PAGES_H |