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