#pragma once #include #include "ToolDialog.h" #ifndef BUILD_STATIC # if defined(CST_VISIONPLUS_TOOL_LIB) # define CST_VISIONPLUS_TOOL_EXPORT Q_DECL_EXPORT # else # define CST_VISIONPLUS_TOOL_EXPORT Q_DECL_IMPORT # endif #else # define CST_VISIONPLUS_TOOL_EXPORT #endif class ToolImpl : public DllTool { public: ToolImpl(); virtual ~ToolImpl(); public: // 不带参数初始化 virtual int InitTool(); // 初始化 virtual int InitTool(QWidget* pParent, QString strPouName, QString strInstanceName); virtual const DLL_TOOL_DESC& Description(); //系统Run和Stop时调用 // virtual void Running(bool bRun); //// 序列化 //virtual void Serialize(CArchive& ar, const int nExeVersion, const int nDocVersion); // 显示参数设置对话框 // virtual void ShowDialog(); //// 获取调试时候的显示对象 //virtual DEUBGOBJ GetDeubgDispObj(); // virtual int Execute(); ////设置接收 工具状态 数据回调函数 //virtual void setReceToolStateCallBack(receToolStateCallBack callBack, long long userParam); /////设置接收 LOG 数据回调函数 //virtual void setReceLogCallBack(receLogCallBack callBack, long long userParam); /////设置接收 OnExecute 回调函数 //virtual void setOnExecuteCallBack(receOnExecutegCallBack callBack, long long userParam); /////设置接收 ToolBusy 回调函数 //virtual void setToolBusyCallBack(receToolBusyCallBack callBack, long long userParam); protected: virtual void InitDefaultInterfaces(bool withValue = false); //protected: // // CToolDialog* m_pDlgTool; };