45 |
45 |
46 public slots: |
46 public slots: |
47 void setSeed(const QString & seed); |
47 void setSeed(const QString & seed); |
48 void setMap(const QString & map); |
48 void setMap(const QString & map); |
49 void setTheme(const QString & theme); |
49 void setTheme(const QString & theme); |
50 void setInitHealth(const quint32 health); |
50 void setInitHealth(quint32 health); |
51 void setTurnTime(const quint32 time); |
51 void setTurnTime(quint32 time); |
52 void setFortsMode(const bool value); |
52 void setFortsMode(bool value); |
|
53 |
|
54 signals: |
|
55 void seedChanged(const QString & seed); |
|
56 void mapChanged(const QString & map); |
|
57 void themeChanged(const QString & theme); |
|
58 void initHealthChanged(quint32 health); |
|
59 void turnTimeChanged(quint32 time); |
|
60 void fortsModeChanged(bool value); |
53 |
61 |
54 private: |
62 private: |
55 QCheckBox * CB_mode_Forts; |
63 QCheckBox * CB_mode_Forts; |
56 QVBoxLayout mainLayout; |
64 QVBoxLayout mainLayout; |
57 HWMapContainer* pMapContainer; |
65 HWMapContainer* pMapContainer; |
58 QSpinBox * SB_TurnTime; |
66 QSpinBox * SB_TurnTime; |
59 QSpinBox * SB_InitHealth; |
67 QSpinBox * SB_InitHealth; |
60 QLabel * L_TurnTime; |
68 QLabel * L_TurnTime; |
61 QLabel * L_InitHealth; |
69 QLabel * L_InitHealth; |
|
70 |
|
71 private slots: |
|
72 void onSeedChanged(const QString & seed); |
|
73 void onMapChanged(const QString & map); |
|
74 void onThemeChanged(const QString & theme); |
|
75 void onInitHealthChanged(int health); |
|
76 void onTurnTimeChanged(int time); |
|
77 void onFortsModeChanged(bool value); |
|
78 |
62 }; |
79 }; |
63 |
80 |
64 #endif // GAMECONFIGWIDGET_H |
81 #endif // GAMECONFIGWIDGET_H |