author | sheepluva |
Tue, 01 Feb 2011 06:06:38 +0100 | |
changeset 4897 | 11598e7aa7e6 |
parent 4870 | c02406028e02 |
child 4976 | 088d40d8aba2 |
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 |
|
4520
e7882bd1a894
Allow to draw maps in frontend and play them (only locally, some bugs to fix)
unc0rr
parents:
4500
diff
changeset
|
64 |
class DrawMapWidget; |
e7882bd1a894
Allow to draw maps in frontend and play them (only locally, some bugs to fix)
unc0rr
parents:
4500
diff
changeset
|
65 |
|
684 | 66 |
class AbstractPage : public QWidget |
67 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
68 |
Q_OBJECT |
1885 | 69 |
|
684 | 70 |
public: |
71 |
||
72 |
protected: |
|
73 |
AbstractPage(QWidget* parent = 0) { |
|
4560
5d6c7f88db73
- Some work on drawMap widget and scene to allow undo, clear, save and load operations
unc0rr
parents:
4520
diff
changeset
|
74 |
Q_UNUSED(parent); |
5d6c7f88db73
- Some work on drawMap widget and scene to allow undo, clear, save and load operations
unc0rr
parents:
4520
diff
changeset
|
75 |
|
684 | 76 |
font14 = new QFont("MS Shell Dlg", 14); |
4592
b1fe47b11b99
disable fix for issue 24 in order to fix issue 123, as suggested by koda
sheepluva
parents:
4586
diff
changeset
|
77 |
//setFocusPolicy(Qt::StrongFocus); |
684 | 78 |
} |
79 |
virtual ~AbstractPage() {}; |
|
80 |
||
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
81 |
QPushButton* addButton(QString btname, QGridLayout* grid, int wy, int wx, bool iconed = false) { |
684 | 82 |
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
|
83 |
if (!iconed) { |
1148 | 84 |
butt->setFont(*font14); |
85 |
butt->setText(btname); |
|
1409
d1cbe4a57ebf
Add button for controlling room options (no usefull yet)
unc0rr
parents:
1399
diff
changeset
|
86 |
//butt->setStyleSheet("background-color: #0d0544"); |
1148 | 87 |
} else { |
88 |
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
|
89 |
QSize sz = lp.actualSize(QSize(65535, 65535)); |
1148 | 90 |
butt->setIcon(lp); |
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
91 |
butt->setFixedSize(sz); |
1148 | 92 |
butt->setIconSize(sz); |
93 |
butt->setFlat(true); |
|
1149 | 94 |
butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
1148 | 95 |
} |
684 | 96 |
grid->addWidget(butt, wy, wx); |
97 |
return butt; |
|
98 |
}; |
|
99 |
||
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
100 |
QPushButton* addButton(QString btname, QGridLayout* grid, int wy, int wx, int rowSpan, int columnSpan, bool iconed = false) { |
692 | 101 |
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
|
102 |
if (!iconed) { |
1148 | 103 |
butt->setFont(*font14); |
104 |
butt->setText(btname); |
|
105 |
} else { |
|
106 |
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
|
107 |
QSize sz = lp.actualSize(QSize(65535, 65535)); |
1148 | 108 |
butt->setIcon(lp); |
1152
c72b939c00df
Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents:
1150
diff
changeset
|
109 |
butt->setFixedSize(sz); |
1148 | 110 |
butt->setIconSize(sz); |
111 |
butt->setFlat(true); |
|
1149 | 112 |
butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
1148 | 113 |
} |
692 | 114 |
grid->addWidget(butt, wy, wx, rowSpan, columnSpan); |
115 |
return butt; |
|
116 |
}; |
|
117 |
||
1443 | 118 |
QPushButton* addButton(QString btname, QBoxLayout* box, int where, bool iconed = false) { |
684 | 119 |
QPushButton* butt = new QPushButton(this); |
1443 | 120 |
if (!iconed) { |
121 |
butt->setFont(*font14); |
|
122 |
butt->setText(btname); |
|
123 |
} else { |
|
124 |
const QIcon& lp=QIcon(btname); |
|
125 |
QSize sz = lp.actualSize(QSize(65535, 65535)); |
|
126 |
butt->setIcon(lp); |
|
127 |
butt->setFixedSize(sz); |
|
128 |
butt->setIconSize(sz); |
|
129 |
butt->setFlat(true); |
|
130 |
butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
|
131 |
} |
|
684 | 132 |
box->addWidget(butt, where); |
133 |
return butt; |
|
134 |
}; |
|
135 |
||
136 |
QFont * font14; |
|
137 |
}; |
|
138 |
||
139 |
class PageMain : public AbstractPage |
|
184 | 140 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
141 |
Q_OBJECT |
184 | 142 |
|
143 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
144 |
PageMain(QWidget* parent = 0); |
184 | 145 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
146 |
QPushButton *BtnSinglePlayer; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
147 |
QPushButton *BtnNet; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
148 |
QPushButton *BtnSetup; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
149 |
QPushButton *BtnInfo; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
150 |
QPushButton *BtnExit; |
3421 | 151 |
QLabel *mainNote; |
184 | 152 |
}; |
153 |
||
692 | 154 |
class PageEditTeam : public AbstractPage |
184 | 155 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
156 |
Q_OBJECT |
184 | 157 |
|
158 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
159 |
PageEditTeam(QWidget* parent, SDLInteraction * sdli); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
160 |
QSignalMapper* signalMapper; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
161 |
QGroupBox *GBoxHedgehogs; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
162 |
QGroupBox *GBoxTeam; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
163 |
QGroupBox *GBoxFort; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
164 |
QComboBox *CBFort; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
165 |
SquareLabel *FortPreview; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
166 |
QComboBox *CBGrave; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
167 |
QComboBox *CBFlag; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
168 |
QComboBox *CBTeamLvl; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
169 |
QComboBox *CBVoicepack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
170 |
QGroupBox *GBoxBinds; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
171 |
QToolBox *BindsBox; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
172 |
QPushButton *BtnTeamDiscard; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
173 |
QPushButton *BtnTeamSave; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
174 |
QPushButton * BtnTestSound; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
175 |
QLineEdit * TeamNameEdit; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
176 |
QLineEdit * HHNameEdit[8]; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
177 |
QComboBox * HHHats[8]; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
178 |
QPushButton * randButton[8]; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
179 |
QComboBox * CBBind[BINDS_NUMBER]; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
180 |
QPushButton * randTeamButton; |
184 | 181 |
|
2516 | 182 |
private: |
183 |
SDLInteraction * mySdli; |
|
184 |
||
184 | 185 |
public slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
186 |
void CBFort_activated(const QString & gravename); |
184 | 187 |
|
1684 | 188 |
private slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
189 |
void testSound(); |
184 | 190 |
}; |
191 |
||
692 | 192 |
class PageMultiplayer : public AbstractPage |
184 | 193 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
194 |
Q_OBJECT |
184 | 195 |
|
196 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
197 |
PageMultiplayer(QWidget* parent = 0); |
184 | 198 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
199 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
200 |
GameCFGWidget *gameCFG; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
201 |
TeamSelWidget *teamsSelect; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
202 |
QPushButton *BtnStartMPGame; |
4410
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
203 |
|
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
204 |
signals: |
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
205 |
void SetupClicked(); |
184 | 206 |
}; |
207 |
||
692 | 208 |
class PageOptions : public AbstractPage |
184 | 209 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
210 |
Q_OBJECT |
184 | 211 |
|
212 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
213 |
PageOptions(QWidget* parent = 0); |
184 | 214 |
|
4410
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
215 |
QCheckBox *WeaponTooltip; |
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
216 |
QPushButton *WeaponNew; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
217 |
QPushButton *WeaponEdit; |
3044 | 218 |
QPushButton *WeaponDelete; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
219 |
QComboBox *WeaponsName; |
4410
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
220 |
QPushButton *SchemeNew; |
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
221 |
QPushButton *SchemeEdit; |
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
222 |
QPushButton *SchemeDelete; |
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
223 |
QComboBox *SchemesName; |
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
224 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
225 |
QComboBox *CBLanguage; |
693 | 226 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
227 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
228 |
IconedGroupBox *teamsBox; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
229 |
QPushButton *BtnNewTeam; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
230 |
QPushButton *BtnEditTeam; |
3044 | 231 |
QPushButton *BtnDeleteTeam; |
3932 | 232 |
QPushButton *BtnAssociateFiles; |
3324 | 233 |
QLabel *LblNoEditTeam; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
234 |
QComboBox *CBTeamName; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
235 |
IconedGroupBox *AGGroupBox; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
236 |
QComboBox *CBResolution; |
3696 | 237 |
QComboBox *CBStereoMode; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
238 |
QCheckBox *CBEnableSound; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
239 |
QCheckBox *CBEnableFrontendSound; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
240 |
QCheckBox *CBEnableMusic; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
241 |
QCheckBox *CBEnableFrontendMusic; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
242 |
QCheckBox *CBFullscreen; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
243 |
QCheckBox *CBFrontendFullscreen; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
244 |
QCheckBox *CBShowFPS; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
245 |
QCheckBox *CBAltDamage; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
246 |
QCheckBox *CBNameWithDate; |
2261 | 247 |
#ifdef __APPLE__ |
248 |
QCheckBox *CBAutoUpdate; |
|
249 |
#endif |
|
2377 | 250 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
251 |
FPSEdit *fpsedit; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
252 |
QPushButton *BtnSaveOptions; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
253 |
QLabel *labelNN; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
254 |
QSpinBox * volumeBox; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
255 |
QLineEdit *editNetNick; |
3708
64e059b6f9c5
applied from experimental3D, use a slider to set up quality
koda
parents:
3695
diff
changeset
|
256 |
QSlider *SLQuality; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
257 |
QCheckBox *CBFrontendEffects; |
4006
45b63c2a694f
one more interface trick, force max resolution possible when in fullscreen
koda
parents:
4004
diff
changeset
|
258 |
|
45b63c2a694f
one more interface trick, force max resolution possible when in fullscreen
koda
parents:
4004
diff
changeset
|
259 |
private: |
3698
793386610068
rename two rendering methods and performe some interface tricks about fullscreen
koda
parents:
3696
diff
changeset
|
260 |
bool previousFullscreenValue; |
4006
45b63c2a694f
one more interface trick, force max resolution possible when in fullscreen
koda
parents:
4004
diff
changeset
|
261 |
int previousResolutionIndex; |
4345
2c93d6a10869
use a gentler positive parallax for background effect
koda
parents:
4343
diff
changeset
|
262 |
int previousQuality; |
3698
793386610068
rename two rendering methods and performe some interface tricks about fullscreen
koda
parents:
3696
diff
changeset
|
263 |
|
793386610068
rename two rendering methods and performe some interface tricks about fullscreen
koda
parents:
3696
diff
changeset
|
264 |
private slots: |
793386610068
rename two rendering methods and performe some interface tricks about fullscreen
koda
parents:
3696
diff
changeset
|
265 |
void forceFullscreen(int index); |
793386610068
rename two rendering methods and performe some interface tricks about fullscreen
koda
parents:
3696
diff
changeset
|
266 |
void setFullscreen(void); |
4870 | 267 |
void trimNetNick(); |
184 | 268 |
}; |
269 |
||
1153 | 270 |
class PageNet : public AbstractPage |
184 | 271 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
272 |
Q_OBJECT |
184 | 273 |
|
274 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
275 |
PageNet(QWidget* parent = 0); |
184 | 276 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
277 |
QPushButton* BtnUpdateSList; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
278 |
QTableView * tvServersList; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
279 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
280 |
QPushButton * BtnNetConnect; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
281 |
QPushButton * BtnNetSvrStart; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
282 |
QPushButton * BtnSpecifyServer; |
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
283 |
|
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
284 |
private: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
285 |
QGroupBox * ConnGroupBox; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
286 |
QGridLayout * GBClayout; |
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
287 |
|
646 | 288 |
private slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
289 |
void slotConnect(); |
646 | 290 |
|
632
5e09ae25729f
Half implement possibility for different backends of servers list
unc0rr
parents:
612
diff
changeset
|
291 |
public slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
292 |
void updateServersList(); |
646 | 293 |
|
294 |
signals: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
295 |
void connectClicked(const QString & host, quint16 port); |
646 | 296 |
}; |
297 |
||
1153 | 298 |
class PageNetServer : public AbstractPage |
646 | 299 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
300 |
Q_OBJECT |
646 | 301 |
|
302 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
303 |
PageNetServer(QWidget* parent = 0); |
646 | 304 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
305 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
306 |
QPushButton *BtnStart; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
307 |
QPushButton *BtnDefault; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
308 |
QLabel *labelSD; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
309 |
QLineEdit *leServerDescr; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
310 |
QLabel *labelPort; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
311 |
QSpinBox *sbPort; |
657
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
312 |
|
b34fc518a48a
Basic concept for net server options page (subject to change)
unc0rr
parents:
653
diff
changeset
|
313 |
private slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
314 |
void setDefaultPort(); |
184 | 315 |
}; |
316 |
||
1153 | 317 |
class PageNetGame : public AbstractPage |
184 | 318 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
319 |
Q_OBJECT |
184 | 320 |
|
321 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
322 |
PageNetGame(QWidget* parent, QSettings * config, SDLInteraction * sdli); |
184 | 323 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
324 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
325 |
QPushButton *BtnGo; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
326 |
QPushButton *BtnMaster; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
327 |
QPushButton *BtnStart; |
2377 | 328 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
329 |
QAction * restrictJoins; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
330 |
QAction * restrictTeamAdds; |
461 | 331 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
332 |
HWChatWidget* pChatWidget; |
322 | 333 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
334 |
TeamSelWidget* pNetTeamsWidget; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
335 |
GameCFGWidget* pGameCFG; |
1648 | 336 |
|
337 |
public slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
338 |
void setReadyStatus(bool isReady); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
339 |
void setMasterMode(bool isMaster); |
4410
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
340 |
|
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
341 |
signals: |
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
342 |
void SetupClicked(); |
184 | 343 |
}; |
344 |
||
1153 | 345 |
class PageInfo : public AbstractPage |
187 | 346 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
347 |
Q_OBJECT |
187 | 348 |
|
349 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
350 |
PageInfo(QWidget* parent = 0); |
187 | 351 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
352 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
353 |
About *about; |
187 | 354 |
}; |
355 |
||
1150 | 356 |
class PageSinglePlayer : public AbstractPage |
586 | 357 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
358 |
Q_OBJECT |
586 | 359 |
|
360 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
361 |
PageSinglePlayer(QWidget* parent = 0); |
586 | 362 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
363 |
QPushButton *BtnSimpleGamePage; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
364 |
QPushButton *BtnTrainPage; |
3760 | 365 |
QPushButton *BtnCampaignPage; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
366 |
QPushButton *BtnMultiplayer; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
367 |
QPushButton *BtnLoad; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
368 |
QPushButton *BtnDemos; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
369 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
370 |
GameCFGWidget *gameCFG; |
586 | 371 |
}; |
372 |
||
1153 | 373 |
class PageTraining : public AbstractPage |
587 | 374 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
375 |
Q_OBJECT |
587 | 376 |
|
377 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
378 |
PageTraining(QWidget* parent = 0); |
587 | 379 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
380 |
QPushButton *BtnStartTrain; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
381 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
382 |
QComboBox *CBSelect; |
587 | 383 |
}; |
384 |
||
3760 | 385 |
class PageCampaign : public AbstractPage |
386 |
{ |
|
387 |
Q_OBJECT |
|
388 |
||
389 |
public: |
|
390 |
PageCampaign(QWidget* parent = 0); |
|
391 |
||
392 |
QPushButton *BtnStartCampaign; |
|
393 |
QPushButton *BtnBack; |
|
394 |
QComboBox *CBSelect; |
|
395 |
QComboBox *CBTeam; |
|
396 |
}; |
|
397 |
||
684 | 398 |
class PageSelectWeapon : public AbstractPage |
600 | 399 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
400 |
Q_OBJECT |
600 | 401 |
|
402 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
403 |
PageSelectWeapon(QWidget* parent = 0); |
600 | 404 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
405 |
QPushButton *BtnSave; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
406 |
QPushButton *BtnDefault; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
407 |
QPushButton *BtnDelete; |
4416
29d2d1548387
adding a combobox to weapon editor as scheme editor, added a few notices for deleting and some buttons in this area.
Henek
parents:
4410
diff
changeset
|
408 |
QPushButton *BtnNew; |
4598 | 409 |
QPushButton *BtnCopy; |
2948
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 |
SelWeaponWidget* pWeapons; |
4416
29d2d1548387
adding a combobox to weapon editor as scheme editor, added a few notices for deleting and some buttons in this area.
Henek
parents:
4410
diff
changeset
|
412 |
QComboBox* selectWeaponSet; |
600 | 413 |
}; |
306 | 414 |
|
686 | 415 |
class PageInGame : public AbstractPage |
416 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
417 |
Q_OBJECT |
686 | 418 |
|
419 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
420 |
PageInGame(QWidget* parent = 0); |
686 | 421 |
}; |
422 |
||
1311 | 423 |
class PageRoomsList : public AbstractPage |
424 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
425 |
Q_OBJECT |
1311 | 426 |
|
427 |
public: |
|
2773
e94f240a8a41
Have game beep when someone joins lobby/room. Controlled by Sound option
nemo
parents:
2762
diff
changeset
|
428 |
PageRoomsList(QWidget* parent, QSettings * config, SDLInteraction * sdli); |
1312 | 429 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
430 |
QLineEdit * roomName; |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
431 |
QLineEdit * searchText; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
432 |
QTableWidget * roomsList; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
433 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
434 |
QPushButton * BtnCreate; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
435 |
QPushButton * BtnJoin; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
436 |
QPushButton * BtnRefresh; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
437 |
QPushButton * BtnAdmin; |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
438 |
QPushButton * BtnClear; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
439 |
QComboBox * CBState; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
440 |
QComboBox * CBRules; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
441 |
QComboBox * CBWeapons; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
442 |
HWChatWidget * chatWidget; |
2377 | 443 |
|
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
444 |
private: |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
445 |
bool gameInLobby; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
446 |
QString gameInLobbyName; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
447 |
QStringList listFromServer; |
4232
3a7862405c36
tweak interface, there is no need to manually add new weapons and schemes to the filter list
koda
parents:
4153
diff
changeset
|
448 |
AmmoSchemeModel * ammoSchemeModel; |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
449 |
|
1313
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
450 |
public slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
451 |
void setRoomsList(const QStringList & list); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
452 |
void setAdmin(bool); |
1314 | 453 |
|
454 |
private slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
455 |
void onCreateClick(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
456 |
void onJoinClick(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
457 |
void onRefreshClick(); |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
458 |
void onClearClick(); |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
459 |
void onJoinConfirmation(const QString &); |
2377 | 460 |
|
1313
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
461 |
signals: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
462 |
void askForCreateRoom(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
463 |
void askForJoinRoom(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
464 |
void askForRoomList(); |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
465 |
void askJoinConfirmation(const QString &); |
1311 | 466 |
}; |
467 |
||
1800 | 468 |
class PageConnecting : public AbstractPage |
469 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
470 |
Q_OBJECT |
1800 | 471 |
|
472 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
473 |
PageConnecting(QWidget* parent = 0); |
1800 | 474 |
}; |
475 |
||
1884 | 476 |
class PageScheme : public AbstractPage |
477 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
478 |
Q_OBJECT |
1884 | 479 |
|
480 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
481 |
PageScheme(QWidget* parent = 0); |
1885 | 482 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
483 |
QPushButton * BtnBack; |
4600
5a3b1dbdd4c9
added copying also to schemes and updated some translations
Henek
parents:
4598
diff
changeset
|
484 |
QPushButton * BtnCopy; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
485 |
QPushButton * BtnNew; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
486 |
QPushButton * BtnDelete; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
487 |
QPushButton * BtnSave; |
4410
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
488 |
QComboBox * selectScheme; |
1887 | 489 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
490 |
void setModel(QAbstractItemModel * model); |
1885 | 491 |
|
4410
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
492 |
public slots: |
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
493 |
void newRow(); |
4600
5a3b1dbdd4c9
added copying also to schemes and updated some translations
Henek
parents:
4598
diff
changeset
|
494 |
void copyRow(); |
4410
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
495 |
void deleteRow(); |
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
496 |
|
1885 | 497 |
private: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
498 |
QDataWidgetMapper * mapper; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
499 |
ToggleButtonWidget * TBW_mode_Forts; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
500 |
ToggleButtonWidget * TBW_teamsDivide; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
501 |
ToggleButtonWidget * TBW_solid; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
502 |
ToggleButtonWidget * TBW_border; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
503 |
ToggleButtonWidget * TBW_lowGravity; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
504 |
ToggleButtonWidget * TBW_laserSight; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
505 |
ToggleButtonWidget * TBW_invulnerable; |
4099 | 506 |
ToggleButtonWidget * TBW_resethealth; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
507 |
ToggleButtonWidget * TBW_vampiric; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
508 |
ToggleButtonWidget * TBW_karma; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
509 |
ToggleButtonWidget * TBW_artillery; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
510 |
ToggleButtonWidget * TBW_randomorder; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
511 |
ToggleButtonWidget * TBW_king; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
512 |
ToggleButtonWidget * TBW_placehog; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
513 |
ToggleButtonWidget * TBW_sharedammo; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
514 |
ToggleButtonWidget * TBW_disablegirders; |
3287 | 515 |
ToggleButtonWidget * TBW_disablelandobjects; |
3743 | 516 |
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
|
517 |
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
|
518 |
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
|
519 |
ToggleButtonWidget * TBW_perhogammo; |
4250 | 520 |
ToggleButtonWidget * TBW_nowind; |
4303 | 521 |
ToggleButtonWidget * TBW_morewind; |
1895 | 522 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
523 |
QSpinBox * SB_DamageModifier; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
524 |
QSpinBox * SB_TurnTime; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
525 |
QSpinBox * SB_InitHealth; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
526 |
QSpinBox * SB_SuddenDeath; |
4153
6bd94e4c5d65
2 more variables to control water rise and health loss during sudden death.
henek
parents:
4143
diff
changeset
|
527 |
QSpinBox * SB_WaterRise; |
6bd94e4c5d65
2 more variables to control water rise and health loss during sudden death.
henek
parents:
4143
diff
changeset
|
528 |
QSpinBox * SB_HealthDecrease; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
529 |
FreqSpinBox * SB_CaseProb; |
4143
eb7981f34800
Remove the last vestiges of the shoppa hack by adding 2 spinners for percentage health and amount of health in crate, also update translations and increase SD spinner (some users have requested it)
henek
parents:
4099
diff
changeset
|
530 |
QSpinBox * SB_HealthCrates; |
eb7981f34800
Remove the last vestiges of the shoppa hack by adding 2 spinners for percentage health and amount of health in crate, also update translations and increase SD spinner (some users have requested it)
henek
parents:
4099
diff
changeset
|
531 |
QSpinBox * SB_CrateHealth; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
532 |
QSpinBox * SB_MinesTime; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
533 |
QSpinBox * SB_Mines; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
534 |
QSpinBox * SB_MineDuds; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
535 |
QSpinBox * SB_Explosives; |
4396
3cfd2e15464a
After repeated requests, variable length rope. Intended for the infinite rope folks, but values less than 100 make rope more interesting IMO.
nemo
parents:
4303
diff
changeset
|
536 |
QSpinBox * SB_RopeModifier; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
537 |
QLineEdit * LE_name; |
1889 | 538 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
539 |
QGroupBox * gbGameModes; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
540 |
QGroupBox * gbBasicSettings; |
1984 | 541 |
|
1889 | 542 |
private slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
543 |
void schemeSelected(int); |
4410
f9e38ce1e813
a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents:
4396
diff
changeset
|
544 |
|
1884 | 545 |
}; |
546 |
||
1905 | 547 |
class PageAdmin : public AbstractPage |
548 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
549 |
Q_OBJECT |
1905 | 550 |
|
551 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
552 |
PageAdmin(QWidget* parent = 0); |
1905 | 553 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
554 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
555 |
QPushButton * pbClearAccountsCache; |
1924 | 556 |
|
557 |
private: |
|
3283 | 558 |
QLineEdit * leServerMessageNew; |
559 |
QLineEdit * leServerMessageOld; |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
560 |
QPushButton * pbSetSM; |
3283 | 561 |
QPushButton * pbAsk; |
562 |
QSpinBox * sbProtocol; |
|
563 |
QTextBrowser * tb; |
|
1924 | 564 |
|
565 |
private slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
566 |
void smChanged(); |
1924 | 567 |
|
568 |
public slots: |
|
3283 | 569 |
void serverMessageNew(const QString & str); |
570 |
void serverMessageOld(const QString & str); |
|
571 |
void protocol(int proto); |
|
1924 | 572 |
|
573 |
signals: |
|
3283 | 574 |
void setServerMessageNew(const QString & str); |
575 |
void setServerMessageOld(const QString & str); |
|
576 |
void setProtocol(int proto); |
|
577 |
void askServerVars(); |
|
1905 | 578 |
}; |
579 |
||
1950 | 580 |
|
581 |
class PageNetType : public AbstractPage |
|
582 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
583 |
Q_OBJECT |
1950 | 584 |
|
585 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
586 |
PageNetType(QWidget* parent = 0); |
1950 | 587 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
588 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
589 |
QPushButton * BtnLAN; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
590 |
QPushButton * BtnOfficialServer; |
1950 | 591 |
}; |
592 |
||
4500 | 593 |
|
594 |
class PageDrawMap : public AbstractPage |
|
595 |
{ |
|
596 |
Q_OBJECT |
|
597 |
||
598 |
public: |
|
599 |
PageDrawMap(QWidget* parent = 0); |
|
600 |
||
601 |
QPushButton * BtnBack; |
|
602 |
||
4520
e7882bd1a894
Allow to draw maps in frontend and play them (only locally, some bugs to fix)
unc0rr
parents:
4500
diff
changeset
|
603 |
DrawMapWidget * drawMapWidget; |
4586
4ba4f021070f
- Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents:
4560
diff
changeset
|
604 |
|
4ba4f021070f
- Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents:
4560
diff
changeset
|
605 |
private slots: |
4ba4f021070f
- Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents:
4560
diff
changeset
|
606 |
void load(); |
4ba4f021070f
- Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents:
4560
diff
changeset
|
607 |
void save(); |
4500 | 608 |
}; |
609 |
||
184 | 610 |
#endif // PAGES_H |