From c77236e1522caa3e2082dd7b5b32f6c30b125172 Mon Sep 17 00:00:00 2001 From: LYW <leeyeanwoo@diteam.co.kr> Date: 목, 23 9월 2021 15:00:43 +0900 Subject: [PATCH] 1. 주석 양식 수정 --- ReviewSystem/ReviewSystem/DlgSelfDiagnosis_Setting.cpp | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 50 insertions(+), 3 deletions(-) diff --git a/ReviewSystem/ReviewSystem/DlgSelfDiagnosis_Setting.cpp b/ReviewSystem/ReviewSystem/DlgSelfDiagnosis_Setting.cpp index 8419810..21afd3d 100644 --- a/ReviewSystem/ReviewSystem/DlgSelfDiagnosis_Setting.cpp +++ b/ReviewSystem/ReviewSystem/DlgSelfDiagnosis_Setting.cpp @@ -56,6 +56,12 @@ DDX_Control(pDX, IDC_EDIT_WSI_PANEL_POS_Y, m_editPanelPosY); DDX_Control(pDX, IDC_EDIT_WSI_PANEL_POS_X2, m_editPanelPosX2); DDX_Control(pDX, IDC_EDIT_WSI_PANEL_POS_Y2, m_editPanelPosY2); + /*< LYW 20210719 : #3517 ADD Start >*/ + DDX_Control(pDX, IDC_CHECK_SELF_DIAGNOSIS_FLATNESS_SKIP, m_CheckFlatnessSkip); + DDX_Control(pDX, IDC_EDIT_SQUARENESS_STANDARD, m_editSquarenessStandard); + DDX_Control(pDX, IDC_EDIT_SQUARENESS_STANDARD2, m_editSquarenessStandard2); + DDX_Control(pDX, IDC_EDIT_WSI_STANDARD, m_editWSIStandard); + /*< LYW 20210719 : #3517 ADD End >*/ DDX_Text(pDX, IDC_EDIT_REVIEW_PANEL_POS_X, m_dEditReviewPanelPosX); DDX_Text(pDX, IDC_EDIT_REVIEW_PANEL_POS_Y, m_dEditReviewPanelPosY); DDX_Text(pDX, IDC_EDIT_REVIEW_PANEL_POS_X2, m_dEditReviewPanelPosX2); @@ -111,16 +117,19 @@ BOOL CDlgSelfDiagnosis_Setting::ReadAutoDiagnosisConfigFile() { + /*< LYW 20210719 : #3517 ADD Start >*/ + CString strConfigFilePath = _T(""); + strConfigFilePath.Format(_T("%s\\%s"), REVIEW_AUTO_DIAGNOSIS_SETTING_FILE_PATH, REVIEW_AUTO_DIAGNOSIS_SETTING_FILE_NAME); + m_pDiagnosisManager->LoadSettingConfigFile(strConfigFilePath); + /*< LYW 20210719 : #3517 ADD End >*/ CDiagnosisInfo* pSettingInfo = m_pDiagnosisManager->GetDiagnosisInfo(); if (pSettingInfo == NULL) return FALSE; CString strTemp = _T(""); - CString strFilePath = REVIEW_AUTO_DIAGNOSIS_SETTING_FILE_PATH; - CString strFileName = _T("AutoDiagnosisSetting.cfg"); - m_editFilePath.SetWindowTextA(strFilePath +_T('\\') + strFileName); + m_editFilePath.SetWindowTextA(strConfigFilePath); strTemp.Format("%d", pSettingInfo->GetModuleCount()); m_editModuleCount.SetWindowTextA(strTemp); @@ -133,6 +142,14 @@ strTemp.Format("%f", pSettingInfo->GetJudgeData_Degree()); m_editJudgeData_Degree.SetWindowTextA(strTemp); + + /*< LYW 20210719 : #3517 ADD Start >*/ + strTemp.Format("%f", pSettingInfo->GetSquarenessStandard()); + m_editSquarenessStandard.SetWindowTextA(strTemp); + + strTemp.Format("%f", pSettingInfo->GetSquarenessStandard2()); + m_editSquarenessStandard2.SetWindowTextA(strTemp); + /*< LYW 20210719 : #3517 ADD End >*/ strTemp.Format("%d", pSettingInfo->GetCameraFrameWidth()); m_editFrameWidth.SetWindowTextA(strTemp); @@ -166,12 +183,20 @@ strTemp.Format("%d", pSettingInfo->GetGlassSizeY_Flatness()); m_editGlassSizeY.SetWindowTextA(strTemp); + /*< LYW 20210719 : #3517 ADD Start >*/ + m_CheckFlatnessSkip.SetCheck(pSettingInfo->GetFlastnessSkipMode()); + /*< LYW 20210719 : #3517 ADD End >*/ strTemp.Format("%d", pSettingInfo->GetPanelCount_Wsi()); m_editPanelCount_Wsi.SetWindowTextA(strTemp); strTemp.Format("%f", pSettingInfo->GetJudgeData_3Sigma()); m_editJudgeData_3Sigma.SetWindowTextA(strTemp); + + /*< LYW 20210719 : #3517 ADD Start >*/ + strTemp.Format("%f", pSettingInfo->GetWSIStandard()); + m_editWSIStandard.SetWindowTextA(strTemp); + /*< LYW 20210719 : #3517 ADD End >*/ strTemp.Format("%f", pSettingInfo->GetPanelPosX_Wsi()); m_editPanelPosX.SetWindowTextA(strTemp); @@ -278,6 +303,28 @@ nTemp = atoi(strTemp); macroFile.SetItem(strItem, nTemp); + /*< LYW 20210719 : #3517 ADD Start >*/ + strItem.Format(_T("FLATNESS_SKIPMODE")); + nTemp = m_CheckFlatnessSkip.GetCheck(); + macroFile.SetItem(strItem, nTemp); + + strItem.Format(_T("SQUARENESS_STANDARD")); + m_editSquarenessStandard.GetWindowTextA(strTemp); + dTemp = atof(strTemp); + macroFile.SetItem(strItem, dTemp); + + strItem.Format(_T("SQUARENESS_STANDARD2")); + m_editSquarenessStandard2.GetWindowTextA(strTemp); + dTemp = atof(strTemp); + macroFile.SetItem(strItem, dTemp); + + strItem.Format(_T("WSI_STANDARD")); + m_editWSIStandard.GetWindowTextA(strTemp); + dTemp = atof(strTemp); + macroFile.SetItem(strItem, dTemp); + + /*< LYW 20210719 : #3517 ADD End >*/ + strItem.Format(_T("WSI_PANEL_COUNT")); m_editPanelCount_Wsi.GetWindowTextA(strTemp); nTemp = atoi(strTemp); -- Gitblit v1.9.3