You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWATI/Src/nmNum/nmPlot/nmObjPointWellTool.cpp

30 lines
721 B
C++

#include <QPainter>
//#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<nmObjPointWell*>(m_pObj);
NM_DATA_LOG_FILE(pObj->getWellID());
pObj->editWell();
return true;
}
}
return nmObjToolBase::onLeftDoubleClick(pt);
}