mrDarker
2025-08-14 4fb0f6c9b7b0fdfc6cc52c9bf1153d87f92651ca
EdgeInspector_App/ViewMain_Recipe.cpp
@@ -1657,7 +1657,7 @@
      nRows = 14;
      break;
   case eRcp_InsType_RipThickness:
      nRows = 10;
      nRows = 15;
      break;
   default:
      break;
@@ -1855,6 +1855,16 @@
      vecParams.push_back(strTemp);
      strTemp.Format(_T("%s Ins. B Offset"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("%s Ins. Use (0:OFF/1:ON)"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("%s Ins. Range (um)"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("%s Ins. SideLine Offset (um)"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("%s Ins. Min Thres"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("%s Ins. Max Thres"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      CLanguageControl* pLanguageControl = g_pStatus->m_pLanguageControl;
@@ -1911,7 +1921,7 @@
      nRows = 11;
      break;
   case eRcp_InsType_RipThickness:
      nRows = 7;
      nRows = 10;
      break;
   default:
      break;
@@ -2069,17 +2079,23 @@
   }
   else if (eRcp_InsType_RipThickness == m_eSelectInsType) {
      std::vector<CString> vecParams;
      strTemp.Format(_T("Glass Size Min um"), g_strInsType[m_eSelectInsType]);
      strTemp.Format(_T("Glass %s Size Min um"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("Glass Size Max um"), g_strInsType[m_eSelectInsType]);
      strTemp.Format(_T("Glass %s Size Max um"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("Left Rip Size Min um"), g_strInsType[m_eSelectInsType]);
      strTemp.Format(_T("Left %s Rip Size Min um"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("Left Rip Size Max um"), g_strInsType[m_eSelectInsType]);
      strTemp.Format(_T("Left %s Rip Size Max um"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("Right Rip Size Min um"), g_strInsType[m_eSelectInsType]);
      strTemp.Format(_T("Right %s Rip Size Min um"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("Right Rip Size Max um"), g_strInsType[m_eSelectInsType]);
      strTemp.Format(_T("Right %s Rip Size Max um"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("%s Rip Judge Size Min X um"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("%s Rip Judge Size Min Y um"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      strTemp.Format(_T("%s Rip Judge Mode (0:NoUse/1:OR/2:AND)"), g_strInsType[m_eSelectInsType]);
      vecParams.push_back(strTemp);
      CLanguageControl* pLanguageControl = g_pStatus->m_pLanguageControl;
@@ -2608,27 +2624,28 @@
            strTemp.Format(_T("%d"), rip.m_nBottomOffset);
            m_SideInspectInfo.SetItemText(nRowIdx++, nColIdx, strTemp);
            // 10.  RIP Inspect Use
            m_SideInspectInfo.GetCell(nRowIdx, nColIdx)->SetBackClr(uCellColor);
            // 10. RIP Inspect Use
            if (rip.m_bRipUseInspect)  m_SideInspectInfo.GetCell(nRowIdx, nColIdx)->SetBackClr(RGB(50, 255, 50));
            else                       m_SideInspectInfo.GetCell(nRowIdx, nColIdx)->SetBackClr(RGB(255, 50, 50));
            strTemp.Format(_T("%d"), rip.m_bRipUseInspect);
            m_SideInspectInfo.SetItemText(nRowIdx++, nColIdx, strTemp);
            // 11.  RIP Inspect Range
            // 11. RIP Inspect Range
            m_SideInspectInfo.GetCell(nRowIdx, nColIdx)->SetBackClr(uCellColor);
            strTemp.Format(_T("%d"), rip.m_nRipInspect_Range_um);
            m_SideInspectInfo.SetItemText(nRowIdx++, nColIdx, strTemp);
            // 12.  RIP Inspect SideLine Offset
            // 12. RIP Inspect SideLine Offset
            m_SideInspectInfo.GetCell(nRowIdx, nColIdx)->SetBackClr(uCellColor);
            strTemp.Format(_T("%d"), rip.m_nRipInspect_SideLine_Offset_um);
            m_SideInspectInfo.SetItemText(nRowIdx++, nColIdx, strTemp);
            // 13.  RIP Min Threshold
            // 13. RIP Min Threshold
            m_SideInspectInfo.GetCell(nRowIdx, nColIdx)->SetBackClr(uCellColor);
            strTemp.Format(_T("%d"), rip.m_nRipMin_Threshold);
            m_SideInspectInfo.SetItemText(nRowIdx++, nColIdx, strTemp);
            // 14.  RIP Min Threshold
            // 14. RIP Min Threshold
            m_SideInspectInfo.GetCell(nRowIdx, nColIdx)->SetBackClr(uCellColor);
            strTemp.Format(_T("%d"), rip.m_nRipMax_Threshold);
            m_SideInspectInfo.SetItemText(nRowIdx++, nColIdx, strTemp);
@@ -2841,23 +2858,23 @@
            strTemp = m_SideInspectInfo.GetItemText(nRowIdx++, nColIdx);
            rip.m_nBottomOffset = _wtoi(strTemp);
            // 10.  RIP Inspect Use
            // 10. RIP Inspect Use
            strTemp = m_SideInspectInfo.GetItemText(nRowIdx++, nColIdx);
            rip.m_bRipUseInspect = _wtoi(strTemp);
            // 11.  RIP Inspect Range
            // 11. RIP Inspect Range
            strTemp = m_SideInspectInfo.GetItemText(nRowIdx++, nColIdx);
            rip.m_nRipInspect_Range_um = _wtoi(strTemp);
            // 12.  RIP Inspect SideLine Offset
            // 12. RIP Inspect SideLine Offset
            strTemp = m_SideInspectInfo.GetItemText(nRowIdx++, nColIdx);
            rip.m_nRipInspect_SideLine_Offset_um = _wtoi(strTemp);
            // 13.  RIP Min Threshold
            // 13. RIP Min Threshold
            strTemp = m_SideInspectInfo.GetItemText(nRowIdx++, nColIdx);
            rip.m_nRipMin_Threshold = _wtoi(strTemp);
            // 14.  RIP Min Threshold
            // 14. RIP Min Threshold
            strTemp = m_SideInspectInfo.GetItemText(nRowIdx++, nColIdx);
            rip.m_nRipMax_Threshold = _wtoi(strTemp);
         }