author | unc0rr |
Sun, 07 Nov 2010 16:41:03 +0300 | |
changeset 4159 | 64e677349124 |
parent 3236 | 4ab3917d7d44 |
child 4237 | ef9b201c97fe |
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:
3133
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 GAMECONFIGWIDGET_H |
|
20 |
#define GAMECONFIGWIDGET_H |
|
21 |
||
22 |
#include <QWidget> |
|
318 | 23 |
#include <QStringList> |
1217 | 24 |
#include <QGroupBox> |
1783 | 25 |
#include <QSpinBox> |
184 | 26 |
|
27 |
#include "mapContainer.h" |
|
28 |
||
311 | 29 |
class QCheckBox; |
30 |
class QVBoxLayout; |
|
31 |
class QLabel; |
|
1887 | 32 |
class QTableView; |
311 | 33 |
|
1217 | 34 |
class GameCFGWidget : public QGroupBox |
184 | 35 |
{ |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
36 |
Q_OBJECT |
184 | 37 |
|
38 |
public: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
39 |
GameCFGWidget(QWidget* parent, bool externalControl=false); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
40 |
quint32 getGameFlags() const; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
41 |
quint32 getInitHealth() const; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
42 |
QStringList getFullConfig() const; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
43 |
QComboBox * GameSchemes; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
44 |
QComboBox * WeaponsName; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
45 |
HWMapContainer* pMapContainer; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
46 |
QTableView * tv; |
696 | 47 |
|
320 | 48 |
public slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
49 |
void setParam(const QString & param, const QStringList & value); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
50 |
void fullNetConfig(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
51 |
void resendSchemeData(); |
325 | 52 |
|
53 |
signals: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
54 |
void paramChanged(const QString & param, const QStringList & value); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
55 |
void goToSchemes(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
56 |
void goToWeapons(const QString & name); |
1531 | 57 |
|
58 |
private slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
59 |
void ammoChanged(int index); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
60 |
void mapChanged(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
61 |
void templateFilterChanged(int); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
62 |
void seedChanged(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
63 |
void themeChanged(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
64 |
void schemeChanged(int); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
65 |
void jumpToWeapons(); |
3133 | 66 |
void mapgenChanged(MapGenerator m); |
67 |
void maze_sizeChanged(int s); |
|
184 | 68 |
|
69 |
private: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
70 |
QGridLayout mainLayout; |
325 | 71 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
72 |
QString curNetAmmoName; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
73 |
QString curNetAmmo; |
1873
815a3ff1fe4b
Start refactoring some things. Frontend becomes temporarily unusable for network game
unc0rr
parents:
1802
diff
changeset
|
74 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
75 |
void setNetAmmo(const QString& name, const QString& ammo); |
1890 | 76 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
77 |
QVariant schemeData(int column) const; |
184 | 78 |
}; |
79 |
||
80 |
#endif // GAMECONFIGWIDGET_H |