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

#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Chart.hpp>
#include <Series.hpp>
#include <TeEngine.hpp>
#include <TeeProcs.hpp>
#include <Menus.hpp>
#include <Graphics.hpp>
#include <Buttons.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TPageControl *PC_Main;
        TTabSheet *TabSheet1;
        TPanel *Panel_F1;
        TTabSheet *TabSheet2;
        TPanel *Panel_F2;
        TEdit *F1_Edit_LV;
        TLabel *Label1;
        TLabel *Label2;
        TEdit *F1_Edit_HV;
        TLabel *Label3;
        TLabel *Label4;
        TLabel *Label5;
        TLabel *Label6;
        TShape *Shape5;
        TLabel *Label7;
        TEdit *F1_Edit_TC1;
        TLabel *Label8;
        TEdit *F1_Edit_TC2;
        TLabel *Label9;
        TEdit *F1_Edit_TC3;
        TLabel *Label10;
        TEdit *F1_Edit_TC4;
        TLabel *Label11;
        TTabSheet *TabSheet3;
        TTabSheet *TabSheet4;
        TPanel *Panel_F3;
        TPanel *Panel_F4;
        TLabel *Label12;
        TLabel *Label13;
        TLabel *Label14;
        TLabel *Label15;
        TStatusBar *StatusBar1;
        TEdit *F1_Edit_Z1l;
        TEdit *F1_Edit_Z1r;
        TEdit *F1_Edit_Z2l;
        TEdit *F1_Edit_Z2r;
        TEdit *F1_Edit_Z3l;
        TEdit *F1_Edit_Z3r;
        TImage *Image1;
        TImage *Image2;
        TImage *Image3;
        TImage *Image4;
        TLabel *Label16;
        TEdit *F1_Edit_TPS;
        TLabel *Label17;
        TLabel *Label18;
        TEdit *F1_Edit_GF;
        TLabel *Label19;
        TStaticText *StaticText1;
        TEdit *F1_Edit_TCC;
        TComboBox *F1_CB;
        TLabel *Label61;
        TSpeedButton *F1_Reset_SB;
        TStaticText *F1_HH_ST;
        TLabel *Label42;
        TStaticText *F1_MM_ST;
        TLabel *Label43;
        TStaticText *F1_SS_ST;
        TLabel *Label44;
        TSpeedButton *F1_Timer_SB;
        TSpeedButton *F1_AutoRun_SB;
        TBevel *Bevel2;
        TImage *Image5;
        TImage *Image6;
        TImage *Image7;
        TImage *Image8;
        TLabel *Label22;
        TLabel *Label23;
        TLabel *Label24;
        TLabel *Label25;
        TLabel *Label26;
        TLabel *Label27;
        TLabel *Label28;
        TLabel *Label29;
        TLabel *Label30;
        TLabel *Label31;
        TLabel *Label32;
        TLabel *Label33;
        TLabel *Label34;
        TLabel *Label35;
        TLabel *Label36;
        TShape *Shape1;
        TLabel *Label37;
        TLabel *Label38;
        TLabel *Label39;
        TLabel *Label40;
        TLabel *Label41;
        TSpeedButton *F2_Reset_SB;
        TLabel *Label45;
        TLabel *Label46;
        TLabel *Label47;
        TSpeedButton *F2_Timer_SB;
        TSpeedButton *F2_AutoRun_SB;
        TEdit *F2_Edit_LV;
        TEdit *F2_Edit_HV;
        TEdit *F2_Edit_TC1;
        TEdit *F2_Edit_TC2;
        TEdit *F2_Edit_TC3;
        TEdit *F2_Edit_TC4;
        TEdit *F2_Edit_Z1l;
        TEdit *F2_Edit_Z1r;
        TEdit *F2_Edit_Z2l;
        TEdit *F2_Edit_Z2r;
        TEdit *F2_Edit_Z3l;
        TEdit *F2_Edit_Z3r;
        TEdit *F2_Edit_TPS;
        TEdit *F2_Edit_GF;
        TStaticText *StaticText2;
        TEdit *F2_Edit_TCC;
        TPageControl *PC_F2;
        TTabSheet *TabSheet7;
        TChart *F2_Chart;
        TLabel *Label48;
        TLabel *Label49;
        TLineSeries *LineSeries1;
        TLineSeries *LineSeries2;
        TLineSeries *LineSeries3;
        TLineSeries *LineSeries4;
        TLineSeries *LineSeries5;
        TLineSeries *LineSeries6;
        TLineSeries *LineSeries7;
        TLineSeries *LineSeries8;
        TBarSeries *BarSeries1;
        TTabSheet *TabSheet8;
        TListView *F2_ListView;
        TPanel *Panel1;
        TSpeedButton *SpeedButton9;
        TSpeedButton *F2_Save2Excel;
        TSpeedButton *F2_Clear;
        TProgressBar *F2_PB;
        TCheckBox *F2_Autosave_CB;
        TEdit *F2_Autosavenum_E;
        TUpDown *F2_UpDown;
        TComboBox *F2_CB;
        TStaticText *F2_HH_ST;
        TStaticText *F2_MM_ST;
        TStaticText *F2_SS_ST;
        TBevel *Bevel3;
        TImage *Image9;
        TImage *Image10;
        TImage *Image11;
        TImage *Image12;
        TLabel *Label50;
        TLabel *Label51;
        TLabel *Label52;
        TLabel *Label53;
        TLabel *Label54;
        TLabel *Label55;
        TLabel *Label56;
        TLabel *Label57;
        TLabel *Label58;
        TLabel *Label59;
        TLabel *Label60;
        TLabel *Label62;
        TLabel *Label63;
        TLabel *Label64;
        TLabel *Label65;
        TShape *Shape2;
        TLabel *Label66;
        TLabel *Label67;
        TLabel *Label68;
        TLabel *Label69;
        TLabel *Label70;
        TSpeedButton *F3_Reset_SB;
        TLabel *Label71;
        TLabel *Label72;
        TLabel *Label73;
        TSpeedButton *F3_Timer_SB;
        TSpeedButton *F3_AutoRun_SB;
        TEdit *F3_Edit_LV;
        TEdit *F3_Edit_HV;
        TEdit *F3_Edit_TC1;
        TEdit *F3_Edit_TC2;
        TEdit *F3_Edit_TC3;
        TEdit *F3_Edit_TC4;
        TEdit *F3_Edit_Z1l;
        TEdit *F3_Edit_Z1r;
        TEdit *F3_Edit_Z2l;
        TEdit *F3_Edit_Z2r;
        TEdit *F3_Edit_Z3l;
        TEdit *F3_Edit_Z3r;
        TEdit *F3_Edit_TPS;
        TEdit *F3_Edit_GF;
        TStaticText *StaticText9;
        TEdit *F3_Edit_TCC;
        TPageControl *PC_F3;
        TTabSheet *TabSheet9;
        TChart *F3_Chart;
        TLabel *Label74;
        TLabel *Label75;
        TLineSeries *LineSeries9;
        TLineSeries *LineSeries10;
        TLineSeries *LineSeries11;
        TLineSeries *LineSeries12;
        TLineSeries *LineSeries13;
        TLineSeries *LineSeries14;
        TLineSeries *LineSeries15;
        TLineSeries *LineSeries16;
        TBarSeries *BarSeries2;
        TTabSheet *TabSheet10;
        TListView *F3_ListView;
        TPanel *Panel6;
        TSpeedButton *SpeedButton15;
        TSpeedButton *F3_Save2Excel;
        TSpeedButton *F3_Clear;
        TProgressBar *F3_PB;
        TCheckBox *F3_Autosave_CB;
        TEdit *F3_Autosavenum_E;
        TUpDown *F3_UpDown;
        TComboBox *F3_CB;
        TStaticText *F3_HH_ST;
        TStaticText *F3_MM_ST;
        TStaticText *F3_SS_ST;
        TBevel *Bevel4;
        TImage *Image13;
        TImage *Image14;
        TImage *Image15;
        TImage *Image16;
        TLabel *Label76;
        TLabel *Label77;
        TLabel *Label78;
        TLabel *Label79;
        TLabel *Label80;
        TLabel *Label81;
        TLabel *Label82;
        TLabel *Label83;
        TLabel *Label84;
        TLabel *Label85;
        TLabel *Label86;
        TLabel *Label87;
        TLabel *Label88;
        TLabel *Label89;
        TLabel *Label90;
        TShape *Shape3;
        TLabel *Label91;
        TLabel *Label92;
        TLabel *Label93;
        TLabel *Label94;
        TLabel *Label95;
        TSpeedButton *F4_Reset_SB;
        TLabel *Label96;
        TLabel *Label97;
        TLabel *Label98;
        TSpeedButton *F4_Timer_SB;
        TSpeedButton *F4_AutoRun_SB;
        TEdit *F4_Edit_LV;
        TEdit *F4_Edit_HV;
        TEdit *F4_Edit_TC1;
        TEdit *F4_Edit_TC2;
        TEdit *F4_Edit_TC3;
        TEdit *F4_Edit_TC4;
        TEdit *F4_Edit_Z1l;
        TEdit *F4_Edit_Z1r;
        TEdit *F4_Edit_Z2l;
        TEdit *F4_Edit_Z2r;
        TEdit *F4_Edit_Z3l;
        TEdit *F4_Edit_Z3r;
        TEdit *F4_Edit_TPS;
        TEdit *F4_Edit_GF;
        TStaticText *StaticText13;
        TEdit *F4_Edit_TCC;
        TPageControl *PC_F4;
        TTabSheet *TabSheet11;
        TChart *F4_Chart;
        TLabel *Label99;
        TLabel *Label100;
        TLineSeries *LineSeries17;
        TLineSeries *LineSeries18;
        TLineSeries *LineSeries19;
        TLineSeries *LineSeries20;
        TLineSeries *LineSeries21;
        TLineSeries *LineSeries22;
        TLineSeries *LineSeries23;
        TLineSeries *LineSeries24;
        TBarSeries *BarSeries3;
        TTabSheet *TabSheet12;
        TListView *F4_ListView;
        TPanel *Panel7;
        TSpeedButton *SpeedButton22;
        TSpeedButton *F4_Save2Excel;
        TSpeedButton *F4_Clear;
        TProgressBar *F4_PB;
        TCheckBox *F4_Autosave_CB;
        TEdit *F4_Autosavenum_E;
        TUpDown *F4_UpDown;
        TComboBox *F4_CB;
        TStaticText *F4_HH_ST;
        TStaticText *F4_MM_ST;
        TStaticText *F4_SS_ST;
        TBevel *Bevel1;
        TPageControl *PC_F1;
        TTabSheet *TabSheet5;
        TChart *F1_Chart;
        TSpeedButton *SpeedButton1;
        TLineSeries *Series1;
        TLineSeries *Series2;
        TLineSeries *Series8;
        TLineSeries *Series3;
        TLineSeries *Series4;
        TLineSeries *Series5;
        TLineSeries *Series6;
        TLineSeries *Series7;
        TBarSeries *Series9;
        TTabSheet *TabSheet6;
        TListView *F1_ListView;
        TPanel *Panel5;
        TSpeedButton *SpeedButton2;
        TSpeedButton *F1_Save2Excel;
        TSpeedButton *F1_Clear;
        TProgressBar *F1_PB;
        TCheckBox *F1_Autosave_CB;
        TEdit *F1_Autosavenum_E;
        TUpDown *F1_UpDown;
        void __fastcall PC_MainDrawTab(TCustomTabControl *Control,
          int TabIndex, const TRect &Rect, bool Active);
        void __fastcall F1_ClearClick(TObject *Sender);
        void __fastcall F1_ListViewChange(TObject *Sender, TListItem *Item,
          TItemChange Change);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall F1_Save2ExcelClick(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall F1_CBChange(TObject *Sender);
        void __fastcall F1_Reset_SBClick(TObject *Sender);
        void __fastcall F1_Timer_SBClick(TObject *Sender);
        void __fastcall F2_Timer_SBClick(TObject *Sender);
        void __fastcall F3_Timer_SBClick(TObject *Sender);
        void __fastcall F4_Timer_SBClick(TObject *Sender);
        void __fastcall F2_ClearClick(TObject *Sender);
        void __fastcall F3_ClearClick(TObject *Sender);
        void __fastcall F4_ClearClick(TObject *Sender);
        void __fastcall SpeedButton1Click(TObject *Sender);
private:	// User declarations
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
        AnsiString App_Dir;
        AnsiString App_Caption;

        AnsiString F1_SaveFileName;
        AnsiString F2_SaveFileName;
        AnsiString F3_SaveFileName;
        AnsiString F4_SaveFileName;

        TThread *PThread;
        TThread *F1_ExcelSaveThread;
        TThread *F2_ExcelSaveThread;
        TThread *F3_ExcelSaveThread;
        TThread *F4_ExcelSaveThread;

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