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

#ifndef GFormH
#define GFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>


extern AnsiString genpath;


//---------------------------------------------------------------------------
class TGenForm : public TForm
{
__published:	// IDE-managed Components
	TGroupBox *GroupBox1;
	TCheckBox *CbGenFont;
	TCheckBox *CbGenScr;
	TButton *BtnOk;
	TButton *BtnCancel;
	TCheckBox *CbGenMODBUS;
	TCheckBox *CbGenGUI;
	TCheckBox *CbGenTxtGrph;
	TCheckBox *CbGenLCD;
	TCheckBox *CbAsk;
	TBevel *Bevel1;
	TCheckBox *CbGenScrShittyKeil;
	void __fastcall BtnOkClick(TObject *Sender);
	void __fastcall CbGenScrShittyKeilClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TGenForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TGenForm *GenForm;
//---------------------------------------------------------------------------

int GenerateFonts(void);
int GenerateScreens(void);
int GenerateLCD(void);
int GenerateTxtGrph(void);
int GenerateGUI(void);
int GenerateMODBUS(void);

int CopyFileEh(AnsiString fname, AnsiString msghead);

#define GenStr2File4shittyKail(str,fw) while(*str!='\0') {if(ShittyKeil==true && *str=='ý'){fprintf(fw,"\\375");str++;}else fputc(*str++,fw);}

#endif
