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

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

#include "common.h"
#include "TntButtons.hpp"
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------
class TCPBSettingForm : public TTntForm
{
__published:	// IDE-managed Components
	TTntPanel *HPISetupPanel;
  TTntPanel *Panel5;
  TTntSpeedButton *SPBSpeedButton1;
  TTntSpeedButton *SPBSpeedButton2;
  TTntSpeedButton *SPBSpeedButton3;
  TTntSpeedButton *SPBSpeedButton4;
  TTntPanel *SPBSystemSetupPanel;
  TTntGroupBox *GroupBox1;
  TTntLabel *CPBGroupEnableLabel1;
  TTntLabel *CPBGroupEnableLabel2;
  TTntLabel *CPBGroupEnableLabel3;
  TTntLabel *CPBGroupEnableLabel4;
  TTntPanel *Panel1;
  TTntButton *SystemSetupButton;
  TTntButton *CloseButton;
	TTntGroupBox *GroupBox2;
	TTntComboBox *CPBSDRSizeComboBox1;
	TTntLabel *Label1;
	TTntComboBox *CPBSDRSizeComboBox2;
	TTntLabel *Label2;
	TTntComboBox *CPBSDRSizeComboBox3;
	TTntLabel *Label3;
	TTntComboBox *CPBSDRSizeComboBox4;
	TTntLabel *Label4;
	TTntSpeedButton *EnableSettingSpeedButton;
	TTntGroupBox *GroupBox3;
	TTntLabel *Label6;
	TTntLabel *Label7;
	TTntLabel *Label8;
	TTntLabel *Label9;
	TTntComboBox *CPBClockComboBox1;
	TTntComboBox *CPBClockComboBox2;
	TTntComboBox *CPBClockComboBox3;
	TTntComboBox *CPBClockComboBox4;
	TTntPanel *Panel2;
	TTntPanel *Panel3;
	TTntRadioGroup *HPITransferMethodRadioGroup;
  TTntGroupBox *TntGroupBox1;
  TRadioButton *CPBVersionRadioBtn1;
  TRadioButton *CPBVersionRadioBtn2;
  TLabel *CPUCountLabel1;
  TLabel *CPUCountLabel2;
  TLabel *CPUCountLabel3;
  TLabel *CPUCountLabel4;
  TTntLabel *TntLabel1;
  TEdit *Edit_IpAddr;
  TEdit *Edit_TcpPort;
  TTntLabel *TntLabel2;
  TTntSpeedButton *SPBSpeedButton5;
  TTntSpeedButton *SPBSpeedButton6;
  TTntButton *CpbStatusCheckBtn;
  TTntSpeedButton *SPBSpeedButton7;
  TTntSpeedButton *SPBSpeedButton8;
  void __fastcall CloseButtonClick(TObject *Sender);
  void __fastcall SPBSpeedButtonClick(TObject *Sender);
  void __fastcall CPBGroupEnableLabelClick(TObject *Sender);
  void __fastcall SystemSetupButtonClick(TObject *Sender);
	void __fastcall CPBSDRSizeComboBoxChange(TObject *Sender);
	void __fastcall EnableSettingSpeedButtonClick(TObject *Sender);
	void __fastcall CPBClockComboBoxChange(TObject *Sender);
	void __fastcall FormCreate(TObject *Sender);
	void __fastcall HPITransferMethodRadioGroupClick(TObject *Sender);
  void __fastcall CPBVersionRadioBtn1Click(TObject *Sender);
  void __fastcall Edit_IpAddrChange(TObject *Sender);
  void __fastcall Edit_TcpPortChange(TObject *Sender);
  void __fastcall CpbStatusCheckBtnClick(TObject *Sender);
private:	// User declarations
  int CurrentSPBIndex;
	int CurrentCameraIndex;
  int CurrentCPUIndex;
  int CurrentMaxCPUIndex;
	TSPBSystemSetupData TempSPBSystemSetupData[SYSTEM_SPB_MAX_COUNT];
	
    void __fastcall ShowSPBSystemSetupInfo(int spbIndex);
public:		// User declarations
    __fastcall TCPBSettingForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TCPBSettingForm *CPBSettingForm;
//---------------------------------------------------------------------------
#endif
