author | claymore |
Fri, 08 Apr 2011 18:50:12 +0200 | |
changeset 5126 | 50803f3403a5 |
parent 5026 | e83d4552625f |
child 5147 | a2ae7702bb75 |
permissions | -rw-r--r-- |
184 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
4976 | 3 |
* Copyright (c) 2006-2011 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; |
5126 | 328 |
QPushButton *BtnUpdate; |
329 |
||
330 |
QLineEdit * leRoomName; |
|
2377 | 331 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
332 |
QAction * restrictJoins; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
333 |
QAction * restrictTeamAdds; |
461 | 334 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
335 |
HWChatWidget* pChatWidget; |
322 | 336 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
337 |
TeamSelWidget* pNetTeamsWidget; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
338 |
GameCFGWidget* pGameCFG; |
1648 | 339 |
|
340 |
public slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
341 |
void setReadyStatus(bool isReady); |
5126 | 342 |
void onUpdateClick(); |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
343 |
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
|
344 |
|
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
|
345 |
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
|
346 |
void SetupClicked(); |
5126 | 347 |
void askForUpdateRoomName(const QString &); |
184 | 348 |
}; |
349 |
||
1153 | 350 |
class PageInfo : public AbstractPage |
187 | 351 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
352 |
Q_OBJECT |
187 | 353 |
|
354 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
355 |
PageInfo(QWidget* parent = 0); |
187 | 356 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
357 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
358 |
About *about; |
187 | 359 |
}; |
360 |
||
1150 | 361 |
class PageSinglePlayer : public AbstractPage |
586 | 362 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
363 |
Q_OBJECT |
586 | 364 |
|
365 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
366 |
PageSinglePlayer(QWidget* parent = 0); |
586 | 367 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
368 |
QPushButton *BtnSimpleGamePage; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
369 |
QPushButton *BtnTrainPage; |
3760 | 370 |
QPushButton *BtnCampaignPage; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
371 |
QPushButton *BtnMultiplayer; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
372 |
QPushButton *BtnLoad; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
373 |
QPushButton *BtnDemos; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
374 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
375 |
GameCFGWidget *gameCFG; |
586 | 376 |
}; |
377 |
||
1153 | 378 |
class PageTraining : public AbstractPage |
587 | 379 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
380 |
Q_OBJECT |
587 | 381 |
|
382 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
383 |
PageTraining(QWidget* parent = 0); |
587 | 384 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
385 |
QPushButton *BtnStartTrain; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
386 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
387 |
QComboBox *CBSelect; |
587 | 388 |
}; |
389 |
||
3760 | 390 |
class PageCampaign : public AbstractPage |
391 |
{ |
|
392 |
Q_OBJECT |
|
393 |
||
394 |
public: |
|
395 |
PageCampaign(QWidget* parent = 0); |
|
396 |
||
397 |
QPushButton *BtnStartCampaign; |
|
398 |
QPushButton *BtnBack; |
|
399 |
QComboBox *CBSelect; |
|
400 |
QComboBox *CBTeam; |
|
401 |
}; |
|
402 |
||
684 | 403 |
class PageSelectWeapon : public AbstractPage |
600 | 404 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
405 |
Q_OBJECT |
600 | 406 |
|
407 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
408 |
PageSelectWeapon(QWidget* parent = 0); |
600 | 409 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
410 |
QPushButton *BtnSave; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
411 |
QPushButton *BtnDefault; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
412 |
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
|
413 |
QPushButton *BtnNew; |
4598 | 414 |
QPushButton *BtnCopy; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
415 |
QPushButton *BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
416 |
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
|
417 |
QComboBox* selectWeaponSet; |
600 | 418 |
}; |
306 | 419 |
|
686 | 420 |
class PageInGame : public AbstractPage |
421 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
422 |
Q_OBJECT |
686 | 423 |
|
424 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
425 |
PageInGame(QWidget* parent = 0); |
686 | 426 |
}; |
427 |
||
1311 | 428 |
class PageRoomsList : public AbstractPage |
429 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
430 |
Q_OBJECT |
1311 | 431 |
|
432 |
public: |
|
2773
e94f240a8a41
Have game beep when someone joins lobby/room. Controlled by Sound option
nemo
parents:
2762
diff
changeset
|
433 |
PageRoomsList(QWidget* parent, QSettings * config, SDLInteraction * sdli); |
1312 | 434 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
435 |
QLineEdit * roomName; |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
436 |
QLineEdit * searchText; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
437 |
QTableWidget * roomsList; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
438 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
439 |
QPushButton * BtnCreate; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
440 |
QPushButton * BtnJoin; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
441 |
QPushButton * BtnRefresh; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
442 |
QPushButton * BtnAdmin; |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
443 |
QPushButton * BtnClear; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
444 |
QComboBox * CBState; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
445 |
QComboBox * CBRules; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
446 |
QComboBox * CBWeapons; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
447 |
HWChatWidget * chatWidget; |
2377 | 448 |
|
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
449 |
private: |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
450 |
bool gameInLobby; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
451 |
QString gameInLobbyName; |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
452 |
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
|
453 |
AmmoSchemeModel * ammoSchemeModel; |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
454 |
|
1313
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
455 |
public slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
456 |
void setRoomsList(const QStringList & list); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
457 |
void setAdmin(bool); |
1314 | 458 |
|
459 |
private slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
460 |
void onCreateClick(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
461 |
void onJoinClick(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
462 |
void onRefreshClick(); |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
463 |
void onClearClick(); |
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
464 |
void onJoinConfirmation(const QString &); |
2377 | 465 |
|
1313
f4c54e9e1b8c
- Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents:
1312
diff
changeset
|
466 |
signals: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
467 |
void askForCreateRoom(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
468 |
void askForJoinRoom(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
469 |
void askForRoomList(); |
3786
0907b0fd5714
Improves room list with filter for state/rules/weapons and general search
legutus
parents:
3760
diff
changeset
|
470 |
void askJoinConfirmation(const QString &); |
1311 | 471 |
}; |
472 |
||
1800 | 473 |
class PageConnecting : public AbstractPage |
474 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
475 |
Q_OBJECT |
1800 | 476 |
|
477 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
478 |
PageConnecting(QWidget* parent = 0); |
1800 | 479 |
}; |
480 |
||
1884 | 481 |
class PageScheme : public AbstractPage |
482 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
483 |
Q_OBJECT |
1884 | 484 |
|
485 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
486 |
PageScheme(QWidget* parent = 0); |
1885 | 487 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
488 |
QPushButton * BtnBack; |
4600
5a3b1dbdd4c9
added copying also to schemes and updated some translations
Henek
parents:
4598
diff
changeset
|
489 |
QPushButton * BtnCopy; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
490 |
QPushButton * BtnNew; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
491 |
QPushButton * BtnDelete; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
492 |
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
|
493 |
QComboBox * selectScheme; |
1887 | 494 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
495 |
void setModel(QAbstractItemModel * model); |
1885 | 496 |
|
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
|
497 |
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
|
498 |
void newRow(); |
4600
5a3b1dbdd4c9
added copying also to schemes and updated some translations
Henek
parents:
4598
diff
changeset
|
499 |
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
|
500 |
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
|
501 |
|
1885 | 502 |
private: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
503 |
QDataWidgetMapper * mapper; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
504 |
ToggleButtonWidget * TBW_mode_Forts; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
505 |
ToggleButtonWidget * TBW_teamsDivide; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
506 |
ToggleButtonWidget * TBW_solid; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
507 |
ToggleButtonWidget * TBW_border; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
508 |
ToggleButtonWidget * TBW_lowGravity; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
509 |
ToggleButtonWidget * TBW_laserSight; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
510 |
ToggleButtonWidget * TBW_invulnerable; |
4099 | 511 |
ToggleButtonWidget * TBW_resethealth; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
512 |
ToggleButtonWidget * TBW_vampiric; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
513 |
ToggleButtonWidget * TBW_karma; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
514 |
ToggleButtonWidget * TBW_artillery; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
515 |
ToggleButtonWidget * TBW_randomorder; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
516 |
ToggleButtonWidget * TBW_king; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
517 |
ToggleButtonWidget * TBW_placehog; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
518 |
ToggleButtonWidget * TBW_sharedammo; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
519 |
ToggleButtonWidget * TBW_disablegirders; |
3287 | 520 |
ToggleButtonWidget * TBW_disablelandobjects; |
3743 | 521 |
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
|
522 |
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
|
523 |
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
|
524 |
ToggleButtonWidget * TBW_perhogammo; |
4250 | 525 |
ToggleButtonWidget * TBW_nowind; |
4303 | 526 |
ToggleButtonWidget * TBW_morewind; |
5016
9347d82a26cc
added game mode Tag Team, mostly untested, please test :)
Henek
parents:
4976
diff
changeset
|
527 |
ToggleButtonWidget * TBW_tagteam; |
1895 | 528 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
529 |
QSpinBox * SB_DamageModifier; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
530 |
QSpinBox * SB_TurnTime; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
531 |
QSpinBox * SB_InitHealth; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
532 |
QSpinBox * SB_SuddenDeath; |
4153
6bd94e4c5d65
2 more variables to control water rise and health loss during sudden death.
henek
parents:
4143
diff
changeset
|
533 |
QSpinBox * SB_WaterRise; |
6bd94e4c5d65
2 more variables to control water rise and health loss during sudden death.
henek
parents:
4143
diff
changeset
|
534 |
QSpinBox * SB_HealthDecrease; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
535 |
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
|
536 |
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
|
537 |
QSpinBox * SB_CrateHealth; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
538 |
QSpinBox * SB_MinesTime; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
539 |
QSpinBox * SB_Mines; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
540 |
QSpinBox * SB_MineDuds; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
541 |
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
|
542 |
QSpinBox * SB_RopeModifier; |
5026 | 543 |
QSpinBox * SB_GetAwayTime; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
544 |
QLineEdit * LE_name; |
1889 | 545 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
546 |
QGroupBox * gbGameModes; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
547 |
QGroupBox * gbBasicSettings; |
1984 | 548 |
|
1889 | 549 |
private slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
550 |
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
|
551 |
|
1884 | 552 |
}; |
553 |
||
1905 | 554 |
class PageAdmin : public AbstractPage |
555 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
556 |
Q_OBJECT |
1905 | 557 |
|
558 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
559 |
PageAdmin(QWidget* parent = 0); |
1905 | 560 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
561 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
562 |
QPushButton * pbClearAccountsCache; |
1924 | 563 |
|
564 |
private: |
|
3283 | 565 |
QLineEdit * leServerMessageNew; |
566 |
QLineEdit * leServerMessageOld; |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
567 |
QPushButton * pbSetSM; |
3283 | 568 |
QPushButton * pbAsk; |
569 |
QSpinBox * sbProtocol; |
|
570 |
QTextBrowser * tb; |
|
1924 | 571 |
|
572 |
private slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
573 |
void smChanged(); |
1924 | 574 |
|
575 |
public slots: |
|
3283 | 576 |
void serverMessageNew(const QString & str); |
577 |
void serverMessageOld(const QString & str); |
|
578 |
void protocol(int proto); |
|
1924 | 579 |
|
580 |
signals: |
|
3283 | 581 |
void setServerMessageNew(const QString & str); |
582 |
void setServerMessageOld(const QString & str); |
|
583 |
void setProtocol(int proto); |
|
584 |
void askServerVars(); |
|
1905 | 585 |
}; |
586 |
||
1950 | 587 |
|
588 |
class PageNetType : public AbstractPage |
|
589 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
590 |
Q_OBJECT |
1950 | 591 |
|
592 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
593 |
PageNetType(QWidget* parent = 0); |
1950 | 594 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
595 |
QPushButton * BtnBack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
596 |
QPushButton * BtnLAN; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2915
diff
changeset
|
597 |
QPushButton * BtnOfficialServer; |
1950 | 598 |
}; |
599 |
||
4500 | 600 |
|
601 |
class PageDrawMap : public AbstractPage |
|
602 |
{ |
|
603 |
Q_OBJECT |
|
604 |
||
605 |
public: |
|
606 |
PageDrawMap(QWidget* parent = 0); |
|
607 |
||
608 |
QPushButton * BtnBack; |
|
609 |
||
4520
e7882bd1a894
Allow to draw maps in frontend and play them (only locally, some bugs to fix)
unc0rr
parents:
4500
diff
changeset
|
610 |
DrawMapWidget * drawMapWidget; |
4586
4ba4f021070f
- Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents:
4560
diff
changeset
|
611 |
|
4ba4f021070f
- Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents:
4560
diff
changeset
|
612 |
private slots: |
4ba4f021070f
- Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents:
4560
diff
changeset
|
613 |
void load(); |
4ba4f021070f
- Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents:
4560
diff
changeset
|
614 |
void save(); |
4500 | 615 |
}; |
616 |
||
184 | 617 |
#endif // PAGES_H |