equal
deleted
inserted
replaced
34 |
34 |
35 class GameCFGWidget : public QGroupBox |
35 class GameCFGWidget : public QGroupBox |
36 { |
36 { |
37 Q_OBJECT |
37 Q_OBJECT |
38 |
38 |
|
39 Q_PROPERTY(bool master READ isMaster WRITE setMaster) |
|
40 |
39 public: |
41 public: |
40 GameCFGWidget(QWidget* parent); |
42 GameCFGWidget(QWidget* parent); |
41 quint32 getGameFlags() const; |
43 quint32 getGameFlags() const; |
42 quint32 getInitHealth() const; |
44 quint32 getInitHealth() const; |
43 QByteArray getFullConfig() const; |
45 QByteArray getFullConfig() const; |
45 QComboBox * GameSchemes; |
47 QComboBox * GameSchemes; |
46 QComboBox * WeaponsName; |
48 QComboBox * WeaponsName; |
47 HWMapContainer* pMapContainer; |
49 HWMapContainer* pMapContainer; |
48 QTableView * tv; |
50 QTableView * tv; |
49 QVariant schemeData(int column) const; |
51 QVariant schemeData(int column) const; |
|
52 bool isMaster(); |
50 |
53 |
51 public slots: |
54 public slots: |
52 void setParam(const QString & param, const QStringList & value); |
55 void setParam(const QString & param, const QStringList & value); |
53 void fullNetConfig(); |
56 void fullNetConfig(); |
54 void resendSchemeData(); |
57 void resendSchemeData(); |
|
58 void setMaster(bool master); |
55 |
59 |
56 signals: |
60 signals: |
57 void paramChanged(const QString & param, const QStringList & value); |
61 void paramChanged(const QString & param, const QStringList & value); |
58 void goToSchemes(int); |
62 void goToSchemes(int); |
59 void goToWeapons(int); |
63 void goToWeapons(int); |
79 QCheckBox * bindEntries; |
83 QCheckBox * bindEntries; |
80 QString curNetAmmoName; |
84 QString curNetAmmoName; |
81 QString curNetAmmo; |
85 QString curNetAmmo; |
82 QRegExp seedRegexp; |
86 QRegExp seedRegexp; |
83 QString m_curScript; |
87 QString m_curScript; |
|
88 bool m_master; |
|
89 QList<QWidget *> m_childWidgets; |
84 |
90 |
85 void setNetAmmo(const QString& name, const QString& ammo); |
91 void setNetAmmo(const QString& name, const QString& ammo); |
86 |
92 |
87 }; |
93 }; |
88 |
94 |