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

#ifndef MachineSetup_FormH
#define MachineSetup_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <Grids.hpp>
#include <ExtCtrls.hpp>

#include "common.h"
#include "Common_PC.h"
#include "TntButtons.hpp"
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------
class TMachineSetupForm : public TTntForm
{
__published:	// IDE-managed Components
	TTntPanel *BottomPanel;
	TTntPanel *ChangePartSetupPanel;
    TTntGroupBox *GroupBox3;
    TTntLabel *Label1;
    TTntLabel *Label2;
	TTntButton *RotGuideInChangeButton;
	TTntLabel *RotGuideInLabel;
	TTntLabel *VGate2Label;
	TTntButton *VGate2ChangeButton;
	TTntButton *LoadDefaultBitBtn;
	TTntPanel *Panel4;
	TTntPanel *AdvancedSettingPanel;
	TTntPanel *Panel6;
	TTntGroupBox *GroupBox4;
	TTntPanel *Panel7;
	TTntBitBtn *OkBitBtn;
	TTntBitBtn *CancelBitBtn;
	TTntLabel *Label7;
	TTntLabel *Label8;
	TTntEdit *StudiedSensor1LengthEdit;
	TTntEdit *StudiedSensor2LengthEdit;
	TTntButton *SpeedControlButton;
	TTntLabel *Label3;
	TTntLabel *PEGuideLabel;
	TTntButton *PEGuideChangeButton;
	TTntPanel *MachineSetupPanel;
	TTntGroupBox *GroupBox5;
	TTntLabel *Label4;
	TTntLabel *Label5;
	TTntLabel *Label27;
	TTntLabel *Label28;
	TTntLabel *Label9;
	TTntPanel *Panel9;
	TTntRadioButton *AirKnifeSpeedRadioButton0;
	TTntRadioButton *AirKnifeSpeedRadioButton1;
	TTntRadioButton *AirKnifeSpeedRadioButton2;
	TTntRadioButton *AirKnifeSpeedRadioButton3;
	TTntEdit *EmptySensorActiveEdit;
	TTntEdit *FullSensorActiveEdit;
	TTntComboBox *EmptySensorIndexComboBox;
	TTntComboBox *FullSensorIndexComboBox;
	TTntEdit *SuctionDisk1InverterSpeedEdit;
	TTntEdit *SuctionDisk2InverterSpeedEdit;
	TTntPanel *Panel2;
	TTntGroupBox *GroupBox2;
	TTntLabel *Label12;
	TTntLabel *Label13;
	TTntLabel *Label14;
	TTntLabel *Label15;
	TTntLabel *Label16;
	TTntLabel *Label17;
	TTntLabel *Label18;
	TTntLabel *Label19;
	TTntLabel *Label20;
	TTntLabel *Label21;
	TTntEdit *NCMotorPosEdit1;
	TTntEdit *NCMotorPosEdit2;
	TTntEdit *NCMotorPosEdit3;
	TTntEdit *NCMotorPosEdit4;
	TTntEdit *NCMotorPosEdit5;
	TTntButton *CurrentPositionButton;
	TTntLabel *Label6;
	TTntLabel *Label22;
	TTntEdit *StudiedSensorIntervalAEdit;
	TTntEdit *StudiedSensorIntervalBEdit;
	TTntGroupBox *GroupBox1;
	TTntComboBox *LampKindComboBox;
  TTntLabel *TntLabel1;
  TTntLabel *TntLabel2;
  TTntEdit *DefectEjectorDelayEdit;
  TTntEdit *UnInsEjectorDelayEdit;
        TTntEdit *EjectorWindStrengthEdit;
  TTntLabel *TntLabel3;
  TTntLabel *TntLabel4;
        TTntLabel *TntLabel5;
  TCheckBox *ApplyEjectorDelayCheckBox;
        TTntButton *StudiedSpeedButton;
  TRadioButton *SensorRadioBtn1;
  TRadioButton *SensorRadioBtn2;
  TTntGroupBox *GroupBox7;
  TRadioButton *SensorRadioBtn3;
	TTntLabel *TntLabel6;
	TTntLabel *RotGuideOutLabel;
	TTntButton *RotGuideOutChangeButton;
	void __fastcall FormCreate(TObject *Sender);
	void __fastcall OkBitBtnClick(TObject *Sender);
    void __fastcall RotGuideInChangeButtonClick(TObject *Sender);
    void __fastcall VGate2ChangeButtonClick(TObject *Sender);
	void __fastcall LoadDefaultBitBtnClick(TObject *Sender);
	void __fastcall SpeedControlButtonClick(TObject *Sender);
	void __fastcall NumEditClick(TObject *Sender);
	void __fastcall CurrentPositionButtonClick(TObject *Sender);
	void __fastcall PEGuideChangeButtonClick(TObject *Sender);
	void __fastcall AirKnifeSpeedRadioButtonClick(TObject *Sender);
  void __fastcall StudiedSpeedButtonClick(TObject *Sender);
  void __fastcall SensorRadioBtn1Click(TObject *Sender);
	void __fastcall RotGuideOutChangeButtonClick(TObject *Sender);
private:	// User declarations
//	int OldRotatingGuideKind, OldFixedGuideKind;
//	int OldVGate2Kind;
//	double OldNCMotorPos[MAX_STEP_MOTOR_COUNT];
//	int OldSuctionDisk1InverterSpeed;
//	int OldSuctionDisk2InverterSpeed;
  void __fastcall GetDefaultString();
  
	TProductData TempProductData;
public:		// User declarations
	__fastcall TMachineSetupForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMachineSetupForm *MachineSetupForm;
//---------------------------------------------------------------------------
#endif
