|
|
|
@ -1,4 +1,4 @@
|
|
|
|
#ifndef _H_LPMAINWIN_H_
|
|
|
|
#ifndef _H_LPMAINWIN_H_
|
|
|
|
#define _H_LPMAINWIN_H_
|
|
|
|
#define _H_LPMAINWIN_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QMainWindow>
|
|
|
|
@ -30,11 +30,11 @@ public:
|
|
|
|
lpMainWin(QWidget *parent = Q_NULLPTR);
|
|
|
|
lpMainWin(QWidget *parent = Q_NULLPTR);
|
|
|
|
~lpMainWin();
|
|
|
|
~lpMainWin();
|
|
|
|
|
|
|
|
|
|
|
|
//接收图像回调函数
|
|
|
|
//接收图像回调函数
|
|
|
|
void INewCameraImage(const QString& camKey, QImage img);
|
|
|
|
void INewCameraImage(const QString& camKey, QImage img);
|
|
|
|
//接收算法检测结果回调函数
|
|
|
|
//接收算法检测结果回调函数
|
|
|
|
void IVariantMapToUI(const QString& camKey, const QVariantMap& vMap);
|
|
|
|
void IVariantMapToUI(const QString& camKey, const QVariantMap& vMap);
|
|
|
|
//传输算法参数回调函数
|
|
|
|
//传输算法参数回调函数
|
|
|
|
QVariant IGetVariantById(int id);
|
|
|
|
QVariant IGetVariantById(int id);
|
|
|
|
signals:
|
|
|
|
signals:
|
|
|
|
void sgTaskSendModels(int nIndex, QString strModel, double dDiameter, double dHeight);
|
|
|
|
void sgTaskSendModels(int nIndex, QString strModel, double dDiameter, double dHeight);
|
|
|
|
@ -69,9 +69,9 @@ private:
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
bool onInitCoreCtrl();
|
|
|
|
bool onInitCoreCtrl();
|
|
|
|
|
|
|
|
|
|
|
|
void loadUserModel();//加载用户管理模块
|
|
|
|
void loadUserModel();//加载用户管理模块
|
|
|
|
|
|
|
|
|
|
|
|
//国际化
|
|
|
|
//国际化
|
|
|
|
void SearchQmFile(const QString & strDir);
|
|
|
|
void SearchQmFile(const QString & strDir);
|
|
|
|
void SetTranslator(const QString strPath);
|
|
|
|
void SetTranslator(const QString strPath);
|
|
|
|
void SetLanguage(QString strLangage);
|
|
|
|
void SetLanguage(QString strLangage);
|
|
|
|
@ -80,7 +80,7 @@ protected:
|
|
|
|
void SendTickTskFun();
|
|
|
|
void SendTickTskFun();
|
|
|
|
void onSetModel();
|
|
|
|
void onSetModel();
|
|
|
|
|
|
|
|
|
|
|
|
Q_SLOT void onUpdateDefect();//勾选 更新界面显示窗口
|
|
|
|
Q_SLOT void onUpdateDefect();//勾选 更新界面显示窗口
|
|
|
|
//net slot
|
|
|
|
//net slot
|
|
|
|
Q_SLOT void onTcpConnet(QString str, bool bConnect);
|
|
|
|
Q_SLOT void onTcpConnet(QString str, bool bConnect);
|
|
|
|
Q_SLOT void onClientConnect(QString addr, bool bConnect);
|
|
|
|
Q_SLOT void onClientConnect(QString addr, bool bConnect);
|
|
|
|
@ -108,8 +108,10 @@ protected:
|
|
|
|
Q_SLOT void onTriggerCam();
|
|
|
|
Q_SLOT void onTriggerCam();
|
|
|
|
|
|
|
|
|
|
|
|
void onInitAbout();
|
|
|
|
void onInitAbout();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q_SLOT void onLanguageChange(QString strLanguage);
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
void onShowResult(Result2Ui* pRlt);//展示识别结果
|
|
|
|
void onShowResult(Result2Ui* pRlt);//展示识别结果
|
|
|
|
|
|
|
|
|
|
|
|
void SendResultBee(emTypeBee m_Type, int num);
|
|
|
|
void SendResultBee(emTypeBee m_Type, int num);
|
|
|
|
void SendResultStr2PLC(Result2Ui* m_Res);
|
|
|
|
void SendResultStr2PLC(Result2Ui* m_Res);
|
|
|
|
@ -131,12 +133,12 @@ private:
|
|
|
|
class QLabel* main_showWorkLabel{ nullptr };
|
|
|
|
class QLabel* main_showWorkLabel{ nullptr };
|
|
|
|
class ModelsView *m_pTableCheck{ nullptr };
|
|
|
|
class ModelsView *m_pTableCheck{ nullptr };
|
|
|
|
|
|
|
|
|
|
|
|
RoiImgViewer *m_ImgViewer{ nullptr };//展示检测图像
|
|
|
|
RoiImgViewer *m_ImgViewer{ nullptr };//展示检测图像
|
|
|
|
/*status 状态栏*/
|
|
|
|
/*status 状态栏*/
|
|
|
|
class QLabel* m_pLbCurrentTime{ nullptr };//显示系统时间
|
|
|
|
class QLabel* m_pLbCurrentTime{ nullptr };//显示系统时间
|
|
|
|
class QLabel* m_pLbBanci{ nullptr };//显示班次
|
|
|
|
class QLabel* m_pLbBanci{ nullptr };//显示班次
|
|
|
|
class QLabel* m_pLbDetectState{ nullptr };//显示检测状态
|
|
|
|
class QLabel* m_pLbDetectState{ nullptr };//显示检测状态
|
|
|
|
class QLabel *m_pLbUser{ nullptr };//显示登陆用户信息
|
|
|
|
class QLabel *m_pLbUser{ nullptr };//显示登陆用户信息
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
CDllCoreCtrl* m_pDllCoreCtrl{ nullptr };
|
|
|
|
CDllCoreCtrl* m_pDllCoreCtrl{ nullptr };
|
|
|
|
ICoreCtrl* m_pCoreCtrl{ nullptr };
|
|
|
|
ICoreCtrl* m_pCoreCtrl{ nullptr };
|
|
|
|
@ -158,27 +160,27 @@ private:
|
|
|
|
QThread *pTickThread{ nullptr };
|
|
|
|
QThread *pTickThread{ nullptr };
|
|
|
|
|
|
|
|
|
|
|
|
int m_nWfThress{ 0 };
|
|
|
|
int m_nWfThress{ 0 };
|
|
|
|
int m_TimerID{ 0 };//心跳包定时器 用于记录超时
|
|
|
|
int m_TimerID{ 0 };//心跳包定时器 用于记录超时
|
|
|
|
int m_TimerOutCount{ 0 };
|
|
|
|
int m_TimerOutCount{ 0 };
|
|
|
|
int m_RestartServerCount{ 0 };
|
|
|
|
int m_RestartServerCount{ 0 };
|
|
|
|
|
|
|
|
|
|
|
|
QStringList forDefectList;
|
|
|
|
QStringList forDefectList;
|
|
|
|
int m_nDiffTrigNum{ 0 };//触发次数 用于判断相机是否正常打开
|
|
|
|
int m_nDiffTrigNum{ 0 };//触发次数 用于判断相机是否正常打开
|
|
|
|
|
|
|
|
|
|
|
|
//模板管理页面
|
|
|
|
//模板管理页面
|
|
|
|
QModelMgrDlg *m_pModelMgrDlg{ nullptr };
|
|
|
|
QModelMgrDlg *m_pModelMgrDlg{ nullptr };
|
|
|
|
QDebugDlg* m_pDebugDlg{ nullptr };
|
|
|
|
QDebugDlg* m_pDebugDlg{ nullptr };
|
|
|
|
QWidget m_aboutDlg;//关于
|
|
|
|
QWidget m_aboutDlg;//关于
|
|
|
|
QTimeMgrDlg* m_pTimerMgrDlg{ nullptr };
|
|
|
|
QTimeMgrDlg* m_pTimerMgrDlg{ nullptr };
|
|
|
|
QPixmapListBar* m_pixMapList{ nullptr };//展示历史检测结果
|
|
|
|
QPixmapListBar* m_pixMapList{ nullptr };//展示历史检测结果
|
|
|
|
QSystemSettingDlg* m_pSystemSettingDlg{ nullptr };
|
|
|
|
QSystemSettingDlg* m_pSystemSettingDlg{ nullptr };
|
|
|
|
QCamSettingDlg* m_CamSettingDlg{ nullptr };
|
|
|
|
QCamSettingDlg* m_CamSettingDlg{ nullptr };
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
IUserCtrl *m_pUserCtrl{ nullptr };//用户管理模块
|
|
|
|
IUserCtrl *m_pUserCtrl{ nullptr };//用户管理模块
|
|
|
|
|
|
|
|
|
|
|
|
QVector<QTranslator* > m_VecTranPtr;//国际化语言包管理
|
|
|
|
QVector<QTranslator* > m_VecTranPtr;//国际化语言包管理
|
|
|
|
|
|
|
|
|
|
|
|
int m_timerID{ 0 };//定时器 更新状态栏信息
|
|
|
|
int m_timerID{ 0 };//定时器 更新状态栏信息
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|