|
#pragma once
|
|
#include "btnenh.h"
|
#include "ViewMain_Status.h"
|
#include "ViewMain_Information.h"
|
#include "ViewMain_ScanImage.h"
|
#include "ViewMain_Defect.h"
|
#include "ViewMain_Recipe.h"
|
#include "ViewMain_LiveCam.h"
|
#include "ViewMain_HWSetting.h"
|
|
#include "Global_Define.h"
|
#include "GlassRecipe.h"
|
#include "HardwareSettings.h"
|
#include "Glass_Data.h"
|
#include "Transfer_Data.h"
|
|
using namespace GLOBAL_DEFINE;
|
|
#define VIEW_REFRESH_INIT_VIEW 100
|
#define VIEW_REFRESH_ONESCAN_END 200
|
#define VIEW_REFRESH_INSPECT_END 300
|
|
enum eView {eView_InsInfo=0, eView_DefectView, eView_ImageView, eView_Recipe, eView_LiveCam, eView_HWSetting, eView_Exit, eView_End};
|
|
class CEdgeInspector_AppView : public CFormView
|
{
|
protected:
|
CEdgeInspector_AppView();
|
virtual ~CEdgeInspector_AppView();
|
DECLARE_DYNCREATE(CEdgeInspector_AppView)
|
|
public:
|
enum{ IDD = IDD_MAIN_VIEW };
|
|
// 犁沥狼涝聪促.
|
public:
|
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
virtual void DoDataExchange(CDataExchange* pDX);
|
DECLARE_MESSAGE_MAP()
|
DECLARE_EVENTSINK_MAP()
|
|
public:
|
void CreateChildView();
|
void SetV2M(IViewInterface2Parent* pV2M);
|
GLOBAL_DEFINE::ENTRY_VIEW GetCurEntry();
|
void SetCurEntry(GLOBAL_DEFINE::ENTRY_VIEW View);
|
void SetHardwareSetting(CHardwareSettings *pHW);
|
void SetRecipeSettings(CGlassRecipe *pRecipe);
|
void SetGlassData(CGlass_Data *pGlass);
|
void SetTransferData(CTransfer_Data *pTrans);
|
void ResetViewAll();
|
void UpdateTransferData();
|
void RefreshDefect(CString strDefect);
|
void InitView(Init_View_Command eVew);
|
|
void ViewRefresh(PROG_MSG ProcMsg);
|
HWND GetViewScanHWnd(){return m_pViewScanImage==NULL?NULL:m_pViewScanImage->GetSafeHwnd();}
|
HWND GetViewRecipeHWnd(){return m_pViewRecipeSetting==NULL?NULL:m_pViewRecipeSetting->GetSafeHwnd();}
|
|
void SetupImageSave() {m_pViewScanImage->SetupImageSave();}
|
|
public:
|
void SwitchView(GLOBAL_DEFINE::ENTRY_VIEW eEntry);
|
protected:
|
void ClickMenuButton();
|
void ChangeView(UINT nViewID);
|
void SetButtonEnableAll(BOOL bEnable);
|
void SetButtonEnable(eView eSelView, BOOL bEnable);
|
|
public:
|
void View_LicenseInfo();
|
|
protected:
|
CViewMain_Status* m_pViewMainStatus;
|
|
CViewMain_Information* m_pViewInformation;
|
CViewMain_Defect* m_pViewDefect;
|
CViewMain_ScanImage* m_pViewScanImage;
|
CViewMain_Recipe* m_pViewRecipeSetting;
|
CViewMain_LiveCam* m_pViewLiveCam;
|
CViewMain_HWSetting* m_pViewHWSetting;
|
|
CGlass_Data *m_pGlassData;
|
IViewInterface2Parent *m_IV2M;
|
|
CHardwareSettings *m_pHardwareSetting;
|
CGlassRecipe *m_pGlassRecipe;
|
|
ENTRY_VIEW m_eCurEntry;
|
eView m_eCurView;
|
CBtnEnh m_ctrlBtn[eView_End];
|
};
|