#include //#include "ZxBaseUtil.h" #include "nmDefines.h" #include "nmObjPointWell.h" #include "nmObjPointWellTool.h" nmObjPointWellTool::nmObjPointWellTool() { setText(tr("nObjPointWellTool")); m_oNot = NOT_Point_Well; } bool nmObjPointWellTool::onLeftDoubleClick(const QPointF &pt) { if (NULL != m_pObj) { int nOption = -1; int nIndex = -1; if (m_pObj->_runHitTest(pt, nOption, nIndex)) { // yours own codes nmObjPointWell* pObj = dynamic_cast(m_pObj); NM_DATA_LOG_FILE(pObj->getWellID()); pObj->editWell(); return true; } } return nmObjToolBase::onLeftDoubleClick(pt); }