LAPTOP-SNT8I5JK\Boounion
2025-03-25 9d3e2ee8831bdd443bce96590fc023b8af5c790a
SourceCode/Bond/Servo/CPageGraph2.cpp
@@ -54,11 +54,6 @@
      ASSERT(pPin1->pData);
      ASSERT(pPin2->pData);
      //int nRet = ((IPin*)pPin1->pData)->checkConnectPin((IPin*)pPin2->pData);
      //if (nRet >= 0) {
      //   return true;
      //}
      return false;
   };
   listener.onConnectPin = [](PIN* pPin1, PIN* pPin2) -> bool {
@@ -67,29 +62,18 @@
      ASSERT(pPin1->pData);
      ASSERT(pPin2->pData);
      //int nRet = ((IPin*)pPin1->pData)->connectPin((IPin*)pPin2->pData);
      //if (nRet >= 0) {
      //   return true;
      //}
      return false;
   };
   listener.onDisconnectPin = [](PIN* pPin) -> bool {
      ASSERT(pPin);
      ASSERT(pPin->pData);
      //int nRet = ((IPin*)pPin->pData)->disconnect();
      //if (nRet >= 0) {
      //   return true;
      //}
      return false;
   };
   listener.onDeleteEqItem = [&](EQITEM* pItem) -> bool {
      ASSERT(pItem);
      ASSERT(pItem->pData);
      return true;
      // return _filterManager.unload((CFilter*)pFilter->pData) >= 0;
      return false;
   };
   listener.onEqItemPosChanged = [&](EQITEM* pItem, int x, int y) -> void {
      ASSERT(pItem);
@@ -146,10 +130,30 @@
         SERVO::CEquipment* pEquipment = (SERVO::CEquipment*)pItem->pData;
         pEquipment->outputGlass(1);
      }
      else if (nCmd == ID_EQSGRAPHITEM_TEST3) {
         SERVO::CEquipment* pEquipment = (SERVO::CEquipment*)pItem->pData;
         SERVO::CGlass* pGlass = pEquipment->getFrontGlass();
         if (pGlass != nullptr) {
            std::string strDescription;
            SERVO::CPath* pPath = pGlass->getPath();
            while (pPath != nullptr) {
               pPath->getDescription(strDescription);
               AfxMessageBox(strDescription.c_str());
               pPath = pPath->getNext();
            }
         }
      }
      return true;
   };
   listener.onSelectEqItem = [&](EQITEM* pItem) -> bool {
      ASSERT(pItem);
      SERVO::CEquipment* pEquipment = (SERVO::CEquipment*)pItem->pData;
      theApp.m_model.notifyPtr(RX_CODE_SELECT_EQUIPMENT, pEquipment);
      return true;
   };
   m_pEqsGraphWnd = CEqsGraphWnd::FromHandle(GetDlgItem(IDC_EQSGRAPHWND1)->m_hWnd);
   m_pEqsGraphWnd->SetBkgndColor(m_crBkgnd);