31 class QLabel; |
31 class QLabel; |
32 class QTableView; |
32 class QTableView; |
33 |
33 |
34 class GameCFGWidget : public QGroupBox |
34 class GameCFGWidget : public QGroupBox |
35 { |
35 { |
36 Q_OBJECT |
36 Q_OBJECT |
37 |
37 |
38 public: |
38 public: |
39 GameCFGWidget(QWidget* parent, bool externalControl=false); |
39 GameCFGWidget(QWidget* parent, bool externalControl=false); |
40 quint32 getGameFlags() const; |
40 quint32 getGameFlags() const; |
41 quint32 getInitHealth() const; |
41 quint32 getInitHealth() const; |
42 QStringList getFullConfig() const; |
42 QStringList getFullConfig() const; |
43 QComboBox * GameSchemes; |
43 QComboBox * GameSchemes; |
44 QComboBox * WeaponsName; |
44 QComboBox * WeaponsName; |
45 HWMapContainer* pMapContainer; |
45 HWMapContainer* pMapContainer; |
46 QTableView * tv; |
46 QTableView * tv; |
47 |
47 |
48 public slots: |
48 public slots: |
49 void setParam(const QString & param, const QStringList & value); |
49 void setParam(const QString & param, const QStringList & value); |
50 void fullNetConfig(); |
50 void fullNetConfig(); |
51 void resendSchemeData(); |
51 void resendSchemeData(); |
52 |
52 |
53 signals: |
53 signals: |
54 void paramChanged(const QString & param, const QStringList & value); |
54 void paramChanged(const QString & param, const QStringList & value); |
55 void goToSchemes(); |
55 void goToSchemes(); |
56 void goToWeapons(const QString & name); |
56 void goToWeapons(const QString & name); |
57 |
57 |
58 private slots: |
58 private slots: |
59 void ammoChanged(int index); |
59 void ammoChanged(int index); |
60 void mapChanged(const QString &); |
60 void mapChanged(const QString &); |
61 void templateFilterChanged(int); |
61 void templateFilterChanged(int); |
62 void seedChanged(const QString &); |
62 void seedChanged(const QString &); |
63 void themeChanged(const QString &); |
63 void themeChanged(const QString &); |
64 void schemeChanged(int); |
64 void schemeChanged(int); |
65 void jumpToWeapons(); |
65 void jumpToWeapons(); |
66 |
66 |
67 private: |
67 private: |
68 QGridLayout mainLayout; |
68 QGridLayout mainLayout; |
69 |
69 |
70 QString curNetAmmoName; |
70 QString curNetAmmoName; |
71 QString curNetAmmo; |
71 QString curNetAmmo; |
72 |
72 |
73 void setNetAmmo(const QString& name, const QString& ammo); |
73 void setNetAmmo(const QString& name, const QString& ammo); |
74 |
74 |
75 QVariant schemeData(int column) const; |
75 QVariant schemeData(int column) const; |
76 }; |
76 }; |
77 |
77 |
78 #endif // GAMECONFIGWIDGET_H |
78 #endif // GAMECONFIGWIDGET_H |