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

#ifndef InspectionAreaRevision_FormH
#define InspectionAreaRevision_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>

#include "processing.h"
#include "cpb_module.h"
#include <ExtCtrls.hpp>
#include "TntButtons.hpp"
#include "TntComCtrls.hpp"
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
#include <Buttons.hpp>
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TInspectionAreaRevisionForm : public TTntForm
{
__published:	// IDE-managed Components
  TPanel *Panel1;
  TPanel *Panel2;
  TImage *DestImage;
  TTntSpeedButton *AreaKindSpeedButton1;
  TTntBitBtn *BitBtn17;
  TTntBitBtn *BitBtn18;
  TUpDown *ImageNumberUpDown;
  TEdit *ImageNumberEdit;
  TSpeedButton *BitBtn1;
  TSpeedButton *BitBtn2;
  TSpeedButton *BitBtn3;
  TSpeedButton *BitBtn4;
  TSpeedButton *BitBtn5;
  TSpeedButton *BitBtn6;
  TSpeedButton *BitBtn7;
  TSpeedButton *BitBtn8;
  TSpeedButton *BitBtn9;
  TSpeedButton *BitBtn10;
  TSpeedButton *BitBtn11;
  TSpeedButton *BitBtn12;
  TSpeedButton *BitBtn13;
  TSpeedButton *BitBtn14;
  TSpeedButton *BitBtn15;
  TSpeedButton *BitBtn16;
  TLabel *WidthLabel;
  TLabel *HeightLabel;
  TTntSpeedButton *TntSpeedButton1;
  TTntSpeedButton *TntSpeedButton2;
  TTntSpeedButton *TntSpeedButton3;
  TTntSpeedButton *TntSpeedButton4;
  TTntSpeedButton *TntSpeedButton5;
  void __fastcall cameraBtnClick(TObject *Sender);
  void __fastcall FormActivate(TObject *Sender);
  void __fastcall DestImageMouseDown(TObject *Sender, TMouseButton Button,
          TShiftState Shift, int X, int Y);
  void __fastcall areaKindSelect(TObject *Sender);
  void __fastcall ImageNumberUpDownClick(TObject *Sender,
          TUDBtnType Button);
  void __fastcall BitBtn18Click(TObject *Sender);
  void __fastcall BitBtn17Click(TObject *Sender);
  void __fastcall FormCreate(TObject *Sender);
private:	// User declarations
  void __fastcall ShowBoundaryImage(void);

  TRect BoundaryArea[SYSTEM_TOTAL_CAMERA_COUNT];
  TPoint DiscCenterPos[SYSTEM_TOTAL_CAMERA_COUNT];
  
  bool IsBoundarySettingMode;
  int AreaKind;
  int currentCameraIndex;
  int currentImageNumber;

  int CAM_Widht;
  int CAM_Height;
public:		// User declarations
  TTabletSetupData *srcTabletSetupData;
  TTabletSetupData dstTabletSetupData;
  bool saveFlag;

  int mode;

  __fastcall TInspectionAreaRevisionForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TInspectionAreaRevisionForm *InspectionAreaRevisionForm;
//---------------------------------------------------------------------------
#endif
