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

#ifndef mainWindowH
#define mainWindowH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <ToolWin.hpp>
#include <Buttons.hpp>
#include <Dialogs.hpp>
#include "CPort.hpp"
#include "CPortCtl.hpp"
#include <Graphics.hpp>
#include <Mask.hpp>

//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TPanel *Panel1;
        TStatusBar *StatusBar1;
        TMainMenu *mmMain;
        TMenuItem *File1;
        TMenuItem *Help1;
        TMenuItem *ReddyPostHelp1;
        TMenuItem *N1;
        TMenuItem *AboutRedCat1;
        TMenuItem *ConfigureTools1;
        TMenuItem *Connect1;
        TMenuItem *Disconnect1;
        TMenuItem *N2;
        TMenuItem *Exit1;
        TMenuItem *N3;
        TMenuItem *ConfigureImages1;
        TMenuItem *Options1;
        TMenuItem *ConfigureConnection1;
        TOpenDialog *odImage;
        TPanel *Panel3;
        TComPort *ComPort;
        TMenuItem *PortSettings1;
        TPanel *Panel6;
        TRichEdit *RichEdit;
        TPanel *Panel2;
        TPanel *Panel5;
        TLabel *Label8;
        TBitBtn *BitBtn2;
        TBitBtn *BitBtn3;
        TPanel *Panel4;
        TLabel *Label1;
        TLabel *Label6;
        TLabel *Label7;
        TGroupBox *GroupBox1;
        TComLed *ComLed3;
        TComLed *ComLed6;
        TComLed *ComLed9;
        TMaskEdit *mePassword;
        TPanel *Panel7;
        TGroupBox *GroupBox2;
        TBitBtn *BitBtn4;
        TEdit *edData;
        TCheckBox *cbenter;
        TButton *Button2;
        TBitBtn *BitBtn6;
        TBitBtn *BitBtn7;
        TPanel *Panel8;
        TComboBox *ComboBox1;
        TRadioGroup *rgimage;
        TButton *Button1;
        TButton *Button3;
        TLabel *Label5;
        TBitBtn *BitBtn5;
        TBitBtn *BitBtn8;
        TPanel *Panel9;
        TImage *Image1;
        TBitBtn *BitBtn1;
        TEdit *EdFn;
        TTimer *Timer2;
        TGroupBox *grSerial;
        void __fastcall Button1Click(TObject *Sender);
        void __fastcall BitBtn1Click(TObject *Sender);
        void __fastcall BitBtn2Click(TObject *Sender);
        void __fastcall BitBtn3Click(TObject *Sender);
        void __fastcall BitBtn4Click(TObject *Sender);
        void __fastcall Button2Click(TObject *Sender);
        void __fastcall BitBtn6Click(TObject *Sender);
        void __fastcall ComPortRxChar(TObject *Sender, int Count);
        void __fastcall BitBtn7Click(TObject *Sender);
        void __fastcall BitBtn8Click(TObject *Sender);
        void __fastcall BitBtn5Click(TObject *Sender);
        void __fastcall ComboBox1Change(TObject *Sender);
        void __fastcall Button4Click(TObject *Sender);
        void __fastcall mePasswordChange(TObject *Sender);
        void __fastcall Timer2Timer(TObject *Sender);
private:	// User declarations
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
        void ShowImage(AnsiString FN);

};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
