author | koda |
Sat, 15 Jan 2011 21:32:44 +0100 | |
branch | 0.9.15 |
changeset 4751 | 849740a91d36 |
parent 4560 | 5d6c7f88db73 |
child 4936 | d65d438acd23 |
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: |
|
4560
5d6c7f88db73
- Some work on drawMap widget and scene to allow undo, clear, save and load operations
unc0rr
parents:
4525
diff
changeset
|
39 |
GameCFGWidget(QWidget* parent); |
2948
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; |
4494
9585435e20f7
Pass hardcoded drawn map from frontend into engine \o/
unc0rr
parents:
4416
diff
changeset
|
42 |
QByteArray getFullConfig() const; |
4513
1dd97c710f5a
added general scripts to multiplayer and added option for scripts to allow user set schemes or weapon sets.
Henek
parents:
4511
diff
changeset
|
43 |
QComboBox * Scripts; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
44 |
QComboBox * GameSchemes; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
45 |
QComboBox * WeaponsName; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
46 |
HWMapContainer* pMapContainer; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
47 |
QTableView * tv; |
4406
beb4de0af990
Increase teams to 8 to match the 8 colours, fix issue #108, reenable rope length modifier
nemo
parents:
4337
diff
changeset
|
48 |
QVariant schemeData(int column) const; |
696 | 49 |
|
320 | 50 |
public slots: |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
51 |
void setParam(const QString & param, const QStringList & value); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
52 |
void fullNetConfig(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
53 |
void resendSchemeData(); |
325 | 54 |
|
55 |
signals: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
56 |
void paramChanged(const QString & param, const QStringList & value); |
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:
4406
diff
changeset
|
57 |
void goToSchemes(int); |
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
|
58 |
void goToWeapons(int); |
4511 | 59 |
void goToDrawMap(); |
1531 | 60 |
|
61 |
private slots: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
62 |
void ammoChanged(int index); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
63 |
void mapChanged(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
64 |
void templateFilterChanged(int); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
65 |
void seedChanged(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
66 |
void themeChanged(const QString &); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
67 |
void schemeChanged(int); |
4513
1dd97c710f5a
added general scripts to multiplayer and added option for scripts to allow user set schemes or weapon sets.
Henek
parents:
4511
diff
changeset
|
68 |
void scriptChanged(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:
4406
diff
changeset
|
69 |
void jumpToSchemes(); |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
70 |
void jumpToWeapons(); |
3133 | 71 |
void mapgenChanged(MapGenerator m); |
72 |
void maze_sizeChanged(int s); |
|
4525 | 73 |
void onDrawnMapChanged(const QByteArray & data); |
184 | 74 |
|
75 |
private: |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
76 |
QGridLayout mainLayout; |
4337 | 77 |
QCheckBox * bindEntries; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
78 |
QString curNetAmmoName; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
79 |
QString curNetAmmo; |
1873
815a3ff1fe4b
Start refactoring some things. Frontend becomes temporarily unusable for network game
unc0rr
parents:
1802
diff
changeset
|
80 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2080
diff
changeset
|
81 |
void setNetAmmo(const QString& name, const QString& ammo); |
1890 | 82 |
|
184 | 83 |
}; |
84 |
||
85 |
#endif // GAMECONFIGWIDGET_H |