//--------------------------------------------------------------------------- #ifndef Unit1H #define Unit1H //--------------------------------------------------------------------------- #include #include #include #include #include #include "com.h" //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TGroupBox *KeyBox; TLabel *Label1; TPanel *Panel1; TLabel *Label2; TPanel *Panel2; TLabel *Label3; TLabel *Label4; TPanel *InputPanel7; TPanel *InputPanel6; TPanel *InputPanel5; TPanel *InputPanel4; TPanel *InputPanel3; TPanel *InputPanel2; TPanel *InputPanel1; TPanel *InputPanel0; TPanel *Outpanel7; TPanel *Outpanel6; TPanel *Outpanel5; TPanel *Outpanel4; TPanel *Outpanel3; TPanel *Outpanel2; TPanel *Outpanel1; TPanel *Outpanel0; TLabel *Label5; TGroupBox *ComGroup; TLabel *Label6; TLabel *Label7; TLabel *Label8; TEdit *PortEdit; TButton *ConnectBTN; TGroupBox *AutoGroup; TButton *detectBTN; TButton *StopBTN; TLabel *AutoLabel; TGroupBox *AddrGroup; TLabel *Label10; TEdit *AddrEdit; TButton *ChangeBTN; TMemo *Messages; TGroupBox *SendGroup; TEdit *SendEdit; TButton *SendBTN; TButton *HelloBTN; TButton *VersionBTN; TButton *ResendBTN; TButton *StartBTN; TTimer *Timer1; void __fastcall ConnectBTNClick(TObject *Sender); void __fastcall Outpanel0Click(TObject *Sender); void __fastcall Outpanel1Click(TObject *Sender); void __fastcall Outpanel2Click(TObject *Sender); void __fastcall Outpanel3Click(TObject *Sender); void __fastcall Outpanel4Click(TObject *Sender); void __fastcall Outpanel5Click(TObject *Sender); void __fastcall Outpanel6Click(TObject *Sender); void __fastcall Outpanel7Click(TObject *Sender); void __fastcall SendBTNClick(TObject *Sender); void __fastcall HelloBTNClick(TObject *Sender); void __fastcall VersionBTNClick(TObject *Sender); void __fastcall ResendBTNClick(TObject *Sender); void __fastcall ChangeBTNClick(TObject *Sender); void __fastcall detectBTNClick(TObject *Sender); void __fastcall StopBTNClick(TObject *Sender); void __fastcall StartBTNClick(TObject *Sender); void __fastcall Timer1Timer(TObject *Sender); private: // User declarations public: // User declarations __fastcall TForm1(TComponent* Owner); TCom *Commo; void __fastcall ReadCom(AnsiString Data); int mode; unsigned char toPOD, fromPOD; bool connected; void __fastcall outToPod(); void __fastcall inReceived(AnsiString Data); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif