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

#ifndef Graph_Check_FormH
#define Graph_Check_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Chart.hpp>
#include <ExtCtrls.hpp>
#include <Series.hpp>
#include <TeEngine.hpp>
#include <TeeProcs.hpp>

#include "common.h"
#include "Command.h"
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------


class information
{
private:
public:

	String Speed;
    String count;
    String Ratio;
};

class TGraph_CheckForm : public TTntForm
{
__published:	// IDE-managed Components
	TChart *Sensor_Chart;
	TFastLineSeries *Series2;
	TTimer *Timer1;
	TTntButton *Button1;
	TTntLabel *Label1;
	TTntLabel *NowSpeed_Label;
	TTntLabel *Label2;
	TTntLabel *Sensor1ON_Label;
	TLineSeries *Series1;
	TTntLabel *SetRatio1_Label;
	TTntEdit *Sensor1Edit;
	TTntButton *Sensor1RatioButton;
	TTntLabel *Label3;
	TTntGroupBox *GroupBox1;
	TTntGroupBox *GroupBox2;
	TTntButton *Button2;
	TTntLabel *Sensor2ON_Label;
	TTntLabel *Label4;
	TTntLabel *AverageSpeed_Label;
	TTntLabel *SetRatio2_Label;
	TTntLabel *Label5;
	TTntLabel *Label6;
	TTntGroupBox *GroupBox3;
	TTntEdit *Sensor2Edit;
	TTntButton *Sensor2RatioButton;
	TLineSeries *Series3;
	TTntGroupBox *GroupBox4;
	TTntLabel *Test_Label1;
	TTntLabel *Label7;
	TTntLabel *Label8;
	TTntLabel *Label9;
	TTntLabel *Label10;
	TTntLabel *Test_Label2;
	TTntButton *CloseButton;
	TTntLabel *Test_Label3;
	TTntLabel *Test_Label4;
	TTntPanel *Panel1;
	TTntPanel *Panel2;
	TTntPanel *Panel3;
	TTntLabel *StateLabel;
	TTntPanel *Panel4;
	TTntPanel *Panel5;
	TTntPanel *Panel6;
	void __fastcall Timer1Timer(TObject *Sender);

	void __fastcall Sensor1EditClick(TObject *Sender);
    void __fastcall Sensor2EditClick(TObject *Sender);

	void __fastcall Button1Click(TObject *Sender);
	void __fastcall Sensor1RatioButtonClick(TObject *Sender);
    void __fastcall Sensor2RatioButtonClick(TObject *Sender);
	void __fastcall Button2Click(TObject *Sender);
	void __fastcall CloseButtonClick(TObject *Sender);
	void __fastcall FormActivate(TObject *Sender);
	void __fastcall FormDeactivate(TObject *Sender);



private:	// User declarations
    void __fastcall Graph_Display(void);
    int TimerCount;
    int Sensor1Ratio, Sensor2Ratio;

    TVibratorInfo VibratorInfo;
   TChul_VFData Chul_VFData;
//    TMachineControlData_Sensor1Ratio MachineControlData_Sensor1Ratio;
//    TMachineControlData_Sensor2Ratio MachineControlData_Sensor2Ratio;
     information info;
      //	TMachineControlData_PCRatio MachineControlData_PCRatio;
   // void __fastcall ChangeRatio(int Ratio);
   void __fastcall GetDefaultString();
public:		// User declarations
	__fastcall TGraph_CheckForm(TComponent* Owner);
    TVibratorInfo RealTime_VFInfo;
    //int BeforeSpeed;

};
//---------------------------------------------------------------------------
extern PACKAGE TGraph_CheckForm *Graph_CheckForm;
extern BeforeSpeed;
//---------------------------------------------------------------------------
#endif
