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

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

#include "common.h"
#include "TntButtons.hpp"
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------
class TVisionSettingForm : public TTntForm
{
__published:	// IDE-managed Components
	TTntGroupBox *GroupBox1;
	TTntRadioGroup *LEDModeRadioGroup;
  TTntEdit *IntervalEdit1;
	TTntLabel *Label1;
	TTntSpeedButton *LEDOnSpeedButton1;
	TTntSpeedButton *LEDOffSpeedButton1;
	TTntSpeedButton *LEDOnSpeedButton2;
	TTntSpeedButton *LEDOffSpeedButton2;
	TTntSpeedButton *LEDOnSpeedButton3;
	TTntSpeedButton *LEDOffSpeedButton3;
	TTntSpeedButton *LEDOnSpeedButton4;
	TTntSpeedButton *LEDOffSpeedButton4;
	TTntSpeedButton *LEDOnSpeedButton5;
	TTntSpeedButton *LEDOffSpeedButton5;
	TTntSpeedButton *LEDOnSpeedButton6;
	TTntSpeedButton *LEDOffSpeedButton6;
	TTntSpeedButton *LEDOnSpeedButton7;
	TTntSpeedButton *LEDOffSpeedButton7;
	TTntSpeedButton *LEDOnSpeedButton8;
	TTntSpeedButton *LEDOffSpeedButton8;
	TTntSpeedButton *LEDOnSpeedButton9;
	TTntSpeedButton *LEDOffSpeedButton9;
	TTntSpeedButton *LEDOnSpeedButton10;
	TTntSpeedButton *LEDOffSpeedButton10;
	TTntSpeedButton *LEDAllOnSpeedButton;
	TTntSpeedButton *LEDAllOffSpeedButton;
	TTntSpeedButton *LEDOnSpeedButton11;
	TTntSpeedButton *LEDOffSpeedButton11;
	TTntSpeedButton *LEDOnSpeedButton12;
	TTntSpeedButton *LEDOffSpeedButton12;
  TTntEdit *IntervalEdit2;
	TTntGroupBox *GroupBox2;
	TTntGroupBox *GroupBox6;
	TTntCheckBox *MCLEDCheckBox1;
	TTntCheckBox *MCLEDCheckBox2;
	TTntCheckBox *MCLEDCheckBox3;
	TTntCheckBox *MCLEDCheckBox4;
	TTntCheckBox *MCLEDCheckBox5;
	TTntCheckBox *MCLEDCheckBox6;
	TTntCheckBox *MCLEDCheckBox7;
	TTntCheckBox *MCLEDCheckBox8;
	TTntCheckBox *MCLEDCheckBox9;
	TTntCheckBox *MCLEDCheckBox10;
	TTntCheckBox *MCLEDCheckBox11;
	TTntCheckBox *MCLEDCheckBox12;
	TTntGroupBox *GroupBox7;
  TTntCheckBox *CamCheckBox1;
	TTntCheckBox *CamCheckBox2;
	TTntCheckBox *CamCheckBox3;
	TTntCheckBox *CamCheckBox4;
	TTntCheckBox *CamCheckBox5;
	TTntCheckBox *CamCheckBox6;
	TTntCheckBox *CamCheckBox7;
	TTntCheckBox *CamCheckBox8;
	TTntCheckBox *CamCheckBox9;
	TTntCheckBox *CamCheckBox10;
	TTntSpeedButton *CaptureSettingSpeedButton1;
	TTntSpeedButton *CaptureSettingSpeedButton2;
	TTntSpeedButton *CaptureSettingSpeedButton3;
	TTntSpeedButton *CaptureSettingSpeedButton6;
	TTntSpeedButton *CaptureSettingSpeedButton5;
	TTntSpeedButton *CaptureSettingSpeedButton4;
	TTntGroupBox *GroupBox3;
	TTntLabel *Label2;
  TTntEdit *IlluminatorDelayEdit1;
	TTntLabel *Label3;
	TTntEdit *IlluminatorOnTimeEdit1;
	TTntLabel *Label4;
	TTntLabel *Label5;
	TTntEdit *IlluminatorDelayEdit2;
	TTntLabel *Label6;
	TTntEdit *IlluminatorOnTimeEdit2;
	TTntLabel *Label7;
	TTntLabel *Label8;
	TTntEdit *IlluminatorDelayEdit3;
	TTntLabel *Label9;
	TTntEdit *IlluminatorOnTimeEdit3;
	TTntLabel *Label10;
	TTntLabel *Label11;
	TTntEdit *IlluminatorDelayEdit4;
	TTntLabel *Label12;
	TTntEdit *IlluminatorOnTimeEdit4;
	TTntLabel *Label13;
	TTntLabel *Label14;
	TTntEdit *IlluminatorDelayEdit5;
	TTntLabel *Label15;
	TTntEdit *IlluminatorOnTimeEdit5;
	TTntLabel *Label16;
	TTntLabel *Label17;
	TTntEdit *IlluminatorDelayEdit6;
	TTntLabel *Label18;
	TTntEdit *IlluminatorOnTimeEdit6;
	TTntLabel *Label19;
	TTntButton *SetupButton;
	TTntButton *CloseButton;
	TTntGroupBox *GroupBox4;
	TTntLabel *Label20;
	TTntEdit *CaptureStableDelayEdit;
  TTntCheckBox *CamCheckBox11;
  TTntCheckBox *CamCheckBox12;
  TTntCheckBox *CamCheckBox13;
  TTntCheckBox *CamCheckBox14;
  TTntCheckBox *CamCheckBox15;
  TTntCheckBox *CamCheckBox16;
	void __fastcall LEDOnSpeedButtonClick(TObject *Sender);
	void __fastcall LEDOffSpeedButtonClick(TObject *Sender);
	void __fastcall LEDAllOnSpeedButtonClick(TObject *Sender);
	void __fastcall LEDAllOffSpeedButtonClick(TObject *Sender);
	void __fastcall SetupButtonClick(TObject *Sender);
	void __fastcall CaptureSettingSpeedButtonClick(TObject *Sender);
	void __fastcall CamCheckBoxClick(TObject *Sender);
	void __fastcall MCLEDCheckBoxClick(TObject *Sender);
	void __fastcall NumEditClick(TObject *Sender);
  void __fastcall TntFormCreate(TObject *Sender);
  
private:	// User declarations
	TMachineCaptureInfo MachineCaptureInfo;

  int CurrentCaptureIndex;

  void __fastcall UpdateMachineCaptureInfo(void);
  void __fastcall GetDefaultString();
  void __fastcall SetActivateComponent();
public:		// User declarations
	__fastcall TVisionSettingForm(TComponent* Owner);
    void __fastcall SetCaptureInfo(TMachineCaptureInfo &info);
    void __fastcall GetCaptureInfo(TMachineCaptureInfo &info);
};
//---------------------------------------------------------------------------
extern PACKAGE TVisionSettingForm *VisionSettingForm;
//---------------------------------------------------------------------------
#endif
