32 class QLabel; |
32 class QLabel; |
33 class QTableView; |
33 class QTableView; |
34 |
34 |
35 class GameCFGWidget : public QGroupBox |
35 class GameCFGWidget : public QGroupBox |
36 { |
36 { |
37 Q_OBJECT |
37 Q_OBJECT |
38 |
38 |
39 public: |
39 public: |
40 GameCFGWidget(QWidget* parent); |
40 GameCFGWidget(QWidget* parent); |
41 quint32 getGameFlags() const; |
41 quint32 getGameFlags() const; |
42 quint32 getInitHealth() const; |
42 quint32 getInitHealth() const; |
43 QByteArray getFullConfig() const; |
43 QByteArray getFullConfig() const; |
44 QComboBox * Scripts; |
44 QComboBox * Scripts; |
45 QComboBox * GameSchemes; |
45 QComboBox * GameSchemes; |
46 QComboBox * WeaponsName; |
46 QComboBox * WeaponsName; |
47 HWMapContainer* pMapContainer; |
47 HWMapContainer* pMapContainer; |
48 QTableView * tv; |
48 QTableView * tv; |
49 QVariant schemeData(int column) const; |
49 QVariant schemeData(int column) const; |
50 |
50 |
51 public slots: |
51 public slots: |
52 void setParam(const QString & param, const QStringList & value); |
52 void setParam(const QString & param, const QStringList & value); |
53 void fullNetConfig(); |
53 void fullNetConfig(); |
54 void resendSchemeData(); |
54 void resendSchemeData(); |
55 |
55 |
56 signals: |
56 signals: |
57 void paramChanged(const QString & param, const QStringList & value); |
57 void paramChanged(const QString & param, const QStringList & value); |
58 void goToSchemes(int); |
58 void goToSchemes(int); |
59 void goToWeapons(int); |
59 void goToWeapons(int); |
60 void goToDrawMap(); |
60 void goToDrawMap(); |
61 |
61 |
62 private slots: |
62 private slots: |
63 void ammoChanged(int index); |
63 void ammoChanged(int index); |
64 void mapChanged(const QString &); |
64 void mapChanged(const QString &); |
65 void templateFilterChanged(int); |
65 void templateFilterChanged(int); |
66 void seedChanged(const QString &); |
66 void seedChanged(const QString &); |
67 void themeChanged(const QString &); |
67 void themeChanged(const QString &); |
68 void schemeChanged(int); |
68 void schemeChanged(int); |
69 void scriptChanged(int); |
69 void scriptChanged(int); |
70 void jumpToSchemes(); |
70 void jumpToSchemes(); |
71 void jumpToWeapons(); |
71 void jumpToWeapons(); |
72 void mapgenChanged(MapGenerator m); |
72 void mapgenChanged(MapGenerator m); |
73 void maze_sizeChanged(int s); |
73 void maze_sizeChanged(int s); |
74 void onDrawnMapChanged(const QByteArray & data); |
74 void onDrawnMapChanged(const QByteArray & data); |
75 |
75 |
76 private: |
76 private: |
77 QGridLayout mainLayout; |
77 QGridLayout mainLayout; |
78 QCheckBox * bindEntries; |
78 QCheckBox * bindEntries; |
79 QString curNetAmmoName; |
79 QString curNetAmmoName; |
80 QString curNetAmmo; |
80 QString curNetAmmo; |
81 QRegExp seedRegexp; |
81 QRegExp seedRegexp; |
82 |
82 |
83 void setNetAmmo(const QString& name, const QString& ammo); |
83 void setNetAmmo(const QString& name, const QString& ammo); |
84 |
84 |
85 }; |
85 }; |
86 |
86 |
87 #endif // GAMECONFIGWIDGET_H |
87 #endif // GAMECONFIGWIDGET_H |