QTfrontend/gamecfgwidget.h
changeset 1802 dd148e2506e2
parent 1797 fedd8649fdd9
child 1873 815a3ff1fe4b
equal deleted inserted replaced
1801:bc0c5c21376e 1802:dd148e2506e2
    64 	QString getCurrentTheme() const;
    64 	QString getCurrentTheme() const;
    65 	quint32 getInitHealth() const;
    65 	quint32 getInitHealth() const;
    66 	quint32 getTurnTime() const;
    66 	quint32 getTurnTime() const;
    67 	quint32 getSuddenDeathTurns() const;
    67 	quint32 getSuddenDeathTurns() const;
    68 	quint32 getCaseProbability() const;
    68 	quint32 getCaseProbability() const;
    69 	quint32 getTemplateFilter() const;
       
    70 	QStringList getFullConfig() const;
    69 	QStringList getFullConfig() const;
    71 
       
    72 	QComboBox* WeaponsName;
    70 	QComboBox* WeaponsName;
       
    71 	HWMapContainer* pMapContainer;
    73 
    72 
    74 public slots:
    73 public slots:
    75 	void setSeed(const QString & seed);
    74 	void setSeed(const QString & seed);
    76 	void setMap(const QString & map);
    75 	void setMap(const QString & map);
    77 	void setTheme(const QString & theme);
    76 	void setTheme(const QString & theme);
    82 	void setFortsMode(bool value);
    81 	void setFortsMode(bool value);
    83 	void setTeamsDivide(bool value);
    82 	void setTeamsDivide(bool value);
    84 	void setSolid(bool value);
    83 	void setSolid(bool value);
    85 	void setBorder(bool value);
    84 	void setBorder(bool value);
    86 	void setNetAmmo(const QString& name, const QString& ammo);
    85 	void setNetAmmo(const QString& name, const QString& ammo);
    87     void setTemplateFilter(int filter);
       
    88 
    86 
    89 signals:
    87 signals:
    90 	void seedChanged(const QString & seed);
    88 	void seedChanged(const QString & seed);
    91 	void mapChanged(const QString & map);
    89 	void mapChanged(const QString & map);
    92 	void themeChanged(const QString & theme);
    90 	void themeChanged(const QString & theme);
    97 	void fortsModeChanged(bool value);
    95 	void fortsModeChanged(bool value);
    98 	void teamsDivideChanged(bool value);
    96 	void teamsDivideChanged(bool value);
    99 	void solidChanged(bool value);
    97 	void solidChanged(bool value);
   100 	void borderChanged(bool value);
    98 	void borderChanged(bool value);
   101 	void newWeaponScheme(const QString & name, const QString & ammo);
    99 	void newWeaponScheme(const QString & name, const QString & ammo);
   102 	void newTemplateFilter(int filter);
       
   103 
   100 
   104 private slots:
   101 private slots:
   105 	void ammoChanged(int index);
   102 	void ammoChanged(int index);
   106 	void templateFilterChanged(int filter);
       
   107 
   103 
   108 private:
   104 private:
   109 	QCheckBox * CB_mode_Forts;
   105 	QCheckBox * CB_mode_Forts;
   110 	QCheckBox * CB_teamsDivide;
   106 	QCheckBox * CB_teamsDivide;
   111 	QCheckBox * CB_solid;
   107 	QCheckBox * CB_solid;
   112 	QCheckBox * CB_border;
   108 	QCheckBox * CB_border;
   113 	QGridLayout mainLayout;
   109 	QGridLayout mainLayout;
   114 	HWMapContainer* pMapContainer;
       
   115 	QSpinBox * SB_TurnTime;
   110 	QSpinBox * SB_TurnTime;
   116 	QSpinBox * SB_InitHealth;
   111 	QSpinBox * SB_InitHealth;
   117 	QSpinBox * SB_SuddenDeath;
   112 	QSpinBox * SB_SuddenDeath;
   118 	QComboBox* CB_TemplateFilter;
       
   119 	FreqSpinBox * SB_CaseProb;
   113 	FreqSpinBox * SB_CaseProb;
   120 	QLabel * L_TurnTime;
   114 	QLabel * L_TurnTime;
   121 	QLabel * L_InitHealth;
   115 	QLabel * L_InitHealth;
   122 	QLabel * L_SuddenDeath;
   116 	QLabel * L_SuddenDeath;
   123 	QLabel * L_CaseProb;
   117 	QLabel * L_CaseProb;