author | unc0rr |
Thu, 12 Mar 2009 13:54:32 +0000 | |
changeset 1885 | 75489216b5b0 |
parent 1878 | b3b277d2b891 |
child 1887 | d68939b3f7f0 |
permissions | -rw-r--r-- |
184 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
1878
b3b277d2b891
own md5 function, no qca2 dependancy (patch by nemo with Qt adaptation by me)
unc0rr
parents:
1876
diff
changeset
|
3 |
* Copyright (c) 2006, 2007, 2009 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; |
|
32 |
||
1217 | 33 |
class GameCFGWidget : public QGroupBox |
184 | 34 |
{ |
35 |
Q_OBJECT |
|
36 |
||
37 |
public: |
|
349 | 38 |
GameCFGWidget(QWidget* parent, bool externalControl=false); |
318 | 39 |
quint32 getGameFlags() const; |
312 | 40 |
quint32 getInitHealth() const; |
318 | 41 |
QStringList getFullConfig() const; |
1875 | 42 |
QComboBox * WeaponsName; |
1802 | 43 |
HWMapContainer* pMapContainer; |
696 | 44 |
|
320 | 45 |
public slots: |
1873
815a3ff1fe4b
Start refactoring some things. Frontend becomes temporarily unusable for network game
unc0rr
parents:
1802
diff
changeset
|
46 |
void setParam(const QString & param, const QStringList & value); |
1875 | 47 |
void fullNetConfig(); |
325 | 48 |
|
49 |
signals: |
|
1873
815a3ff1fe4b
Start refactoring some things. Frontend becomes temporarily unusable for network game
unc0rr
parents:
1802
diff
changeset
|
50 |
void paramChanged(const QString & param, const QStringList & value); |
1885 | 51 |
void goToSchemes(); |
1531 | 52 |
|
53 |
private slots: |
|
54 |
void ammoChanged(int index); |
|
1874 | 55 |
void mapChanged(const QString &); |
1876 | 56 |
void templateFilterChanged(int); |
1874 | 57 |
void seedChanged(const QString &); |
58 |
void themeChanged(const QString &); |
|
184 | 59 |
|
60 |
private: |
|
1217 | 61 |
QGridLayout mainLayout; |
325 | 62 |
|
703 | 63 |
QString curNetAmmoName; |
697 | 64 |
QString curNetAmmo; |
1873
815a3ff1fe4b
Start refactoring some things. Frontend becomes temporarily unusable for network game
unc0rr
parents:
1802
diff
changeset
|
65 |
|
815a3ff1fe4b
Start refactoring some things. Frontend becomes temporarily unusable for network game
unc0rr
parents:
1802
diff
changeset
|
66 |
void setNetAmmo(const QString& name, const QString& ammo); |
184 | 67 |
}; |
68 |
||
69 |
#endif // GAMECONFIGWIDGET_H |