#pragma once
|
#include "GridCtrl.h"
|
#include "GlassRecipe.h"
|
#include "Glass_Data.h"
|
#include "EdgeImageViewer.h"
|
|
// CDlgSideNotchSetting 措拳 惑磊涝聪促.
|
|
class CDlgSideNotchSetting : public CDialogEx
|
{
|
DECLARE_DYNAMIC(CDlgSideNotchSetting)
|
|
public:
|
CDlgSideNotchSetting(CWnd* pParent = NULL); // 钎霖 积己磊涝聪促.
|
virtual ~CDlgSideNotchSetting();
|
|
// 措拳 惑磊 单捞磐涝聪促.
|
enum { IDD = IDD_DLG_SIDE_NOTCH_SETTING };
|
|
protected:
|
virtual BOOL OnInitDialog();
|
BOOL PreTranslateMessage(MSG* pMsg);
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 瘤盔涝聪促.
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
void SetSelectSideIdx(eViewCmdSide* pSelectSideIdx) {m_pSelectSideIdx = pSelectSideIdx;}
|
void SetSelectLanguage(emLanguageType* pSelectLanguage) {m_pSelectLangType = pSelectLanguage;}
|
void SetDlgRecipe(CGlassRecipe* pDlgRecipe);
|
void SetGlassData(CGlass_Data* pGlassData) {m_pGlassData = pGlassData;}
|
void SetRecipeImageViewer(CEdgeImageViewer* pViewer) {m_pRecipeImageViewer = pViewer;}
|
void UpdateRecipe(BOOL bGetData);
|
|
void Init_SideNotch_List();
|
void Fill_SideNotch_List(BOOL bGetData);
|
|
void Init_SideNotch_Inspect_Param();
|
void Fill_SideNotch_Inspect_Param(BOOL bGetData);
|
|
void Init_SideNotch_Measure_Param();
|
void Fill_SideNotch_Measure_Param(BOOL bGetData);
|
void Fill_SideNotch_Measure_Param_CurrentResult();
|
|
void Init_SideNotch_Circle_Param();
|
void Fill_SideNotch_Circle_Param(BOOL bGetData);
|
|
private:
|
eViewCmdSide* m_pSelectSideIdx;
|
emLanguageType* m_pSelectLangType;
|
CGlassRecipe* m_pDlgRecipe;
|
CGlass_Data* m_pGlassData;
|
CEdgeImageViewer* m_pRecipeImageViewer;
|
|
int m_nSelectNotchIdx;
|
int m_nSelectNotchCircleIdx;
|
|
CGridCtrl m_NotchList;
|
CGridCtrl m_NotchList_Inspect_Param;
|
CGridCtrl m_NotchList_Measure_Param;
|
CGridCtrl m_NotchList_Circle_Param;
|
|
public:
|
DECLARE_EVENTSINK_MAP()
|
void ClickButtonAdd();
|
void ClickButtonModify();
|
void ClickButtonDel();
|
void ClickButtonAdd_NotchCircle();
|
void ClickButtonModify_NotchCircle();
|
void ClickButtonDel_NotchCircle();
|
void ClickButtonGetSideNotchResult();
|
afx_msg void OnGridClickSelectNotch(NMHDR *pNotifyStruct, LRESULT* pResult);
|
afx_msg void OnGridClickSelectNotchCircle(NMHDR *pNotifyStruct, LRESULT* pResult);
|
};
|