41 QString getCurrentTheme() const; |
41 QString getCurrentTheme() const; |
42 quint32 getInitHealth() const; |
42 quint32 getInitHealth() const; |
43 quint32 getTurnTime() const; |
43 quint32 getTurnTime() const; |
44 QStringList getFullConfig() const; |
44 QStringList getFullConfig() const; |
45 |
45 |
|
46 QString getNetAmmo() const; // FIXME: hack - this class should contain all ammo states itself |
|
47 |
46 QComboBox* WeaponsName; |
48 QComboBox* WeaponsName; |
47 |
49 |
48 public slots: |
50 public slots: |
49 void setSeed(const QString & seed); |
51 void setSeed(const QString & seed); |
50 void setMap(const QString & map); |
52 void setMap(const QString & map); |
51 void setTheme(const QString & theme); |
53 void setTheme(const QString & theme); |
52 void setInitHealth(quint32 health); |
54 void setInitHealth(quint32 health); |
53 void setTurnTime(quint32 time); |
55 void setTurnTime(quint32 time); |
54 void setFortsMode(bool value); |
56 void setFortsMode(bool value); |
|
57 void setNetAmmo(const QString&); |
55 |
58 |
56 signals: |
59 signals: |
57 void seedChanged(const QString & seed); |
60 void seedChanged(const QString & seed); |
58 void mapChanged(const QString & map); |
61 void mapChanged(const QString & map); |
59 void themeChanged(const QString & theme); |
62 void themeChanged(const QString & theme); |
60 void initHealthChanged(quint32 health); |
63 void initHealthChanged(quint32 health); |
61 void turnTimeChanged(quint32 time); |
64 void turnTimeChanged(quint32 time); |
62 void fortsModeChanged(bool value); |
65 void fortsModeChanged(bool value); |
|
66 void newWeaponsName(const QString& weapon); |
63 |
67 |
64 private: |
68 private: |
65 QCheckBox * CB_mode_Forts; |
69 QCheckBox * CB_mode_Forts; |
66 QVBoxLayout mainLayout; |
70 QVBoxLayout mainLayout; |
67 HWMapContainer* pMapContainer; |
71 HWMapContainer* pMapContainer; |
68 QSpinBox * SB_TurnTime; |
72 QSpinBox * SB_TurnTime; |
69 QSpinBox * SB_InitHealth; |
73 QSpinBox * SB_InitHealth; |
70 QLabel * L_TurnTime; |
74 QLabel * L_TurnTime; |
71 QLabel * L_InitHealth; |
75 QLabel * L_InitHealth; |
|
76 |
|
77 QString curNetAmmo; |
72 |
78 |
73 private slots: |
79 private slots: |
74 void onSeedChanged(const QString & seed); |
80 void onSeedChanged(const QString & seed); |
75 void onMapChanged(const QString & map); |
81 void onMapChanged(const QString & map); |
76 void onThemeChanged(const QString & theme); |
82 void onThemeChanged(const QString & theme); |