//---------------------------------------------------------------------------

#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published:	// IDE-managed Components
	TRadioGroup *rgrpMap;
	TGroupBox *grpMonsters;
	TCheckBox *chkSpectre;
	TCheckBox *chkArachnotron;
	TCheckBox *chkMancubus;
	TLabeledEdit *edtTitle;
	TLabeledEdit *edtDescription;
	TEdit *edtNumSpectre;
	TEdit *edtNumArachnotron;
	TEdit *edtNumMancubus;
	TUpDown *spnNumSpectre;
	TUpDown *spnNumArachnotron;
	TUpDown *spnNumMancubus;
	TButton *btnSave;
	TButton *btnLoad;
	void __fastcall btnLoadClick(TObject *Sender);
	void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
	void __fastcall btnSaveClick(TObject *Sender);
	void __fastcall FormCreate(TObject *Sender);
private:	// User declarations
	AnsiString ConfigFilename_;
	void LoadConfig(const AnsiString &Filename);
	void SaveConfig(const AnsiString &Filename);
public:		// User declarations
	__fastcall TfrmMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
