1、valueMain修复PLC连接状态显示不正常问题

2、优化valueMain长时间运行出现UI放大缩小卡顿问题
3、标定页面更新,增加按钮移动ROI位置,支持长安移动
4、标定页面更新,修复ROI四个瞄点在鼠标放置时显示方向图标
5、圆抠图算法更新
6、标定页面ROI标定流程,加入防呆流程,没有标定图时不能进入ROI设置页面
master
bob.pan 4 years ago
parent ef4426a264
commit dd5eb7f0c2

@ -42,7 +42,7 @@ static void setCursor(QGraphicsScene * scene, const QCursor & cursor)
for (int i = 0; i < views.count(); i++) for (int i = 0; i < views.count(); i++)
{ {
QGraphicsView * view = views.at(i); QGraphicsView * view = views.at(i);
if (view && (int)view->userData(0) == 1) if (view /*&& (int)view->userData(0) == 1*/)
view->setCursor(cursor); view->setCursor(cursor);
} }
} }

@ -2,7 +2,7 @@
#include "ui_AlgoDlg.h" #include "ui_AlgoDlg.h"
#include "qfiledialog.h" #include "qfiledialog.h"
#include "QDesktopWidget" #include "QDesktopWidget"
#pragma execution_character_set("utf-8")
CDsgAlgoDlg::CDsgAlgoDlg(QWidget *parent) : QDialog(parent), ui(new Ui::AlgoDlg) CDsgAlgoDlg::CDsgAlgoDlg(QWidget *parent) : QDialog(parent), ui(new Ui::AlgoDlg)
{ {
m_pDE = NULL; m_pDE = NULL;

@ -1,6 +1,6 @@
#include "DsgParamDlg.h" #include "DsgParamDlg.h"
#include "ui_ParamDlg.h" #include "ui_ParamDlg.h"
#pragma execution_character_set("utf-8")
CDsgParamDlg::CDsgParamDlg(QWidget *parent) : QDialog(parent), m_valueCombox(this) CDsgParamDlg::CDsgParamDlg(QWidget *parent) : QDialog(parent), m_valueCombox(this)
{ {
ui = new Ui::ParamDlg; ui = new Ui::ParamDlg;
@ -144,6 +144,15 @@ bool CDsgParamDlg::OnShowRoiDlg()
if (!m_pRoiDlg->Initialize(m_pDE, m_pAlgo, m_pTask)) if (!m_pRoiDlg->Initialize(m_pDE, m_pAlgo, m_pTask))
return false; return false;
if (m_pTask->GetTaskInfo()->templateImg.data == NULL)
{
QMessageBox infobox(QMessageBox::Critical, tr("提示"), tr("请设置标定图再进行ROI标定!"), QMessageBox::Yes, this);
infobox.setWindowIcon(QIcon(":/image/leaper"));
infobox.setButtonText(QMessageBox::Yes, tr("确认"));
infobox.exec();
return false;
}
m_tRoiData.img = m_pTask->GetTaskInfo()->templateImg; m_tRoiData.img = m_pTask->GetTaskInfo()->templateImg;
m_pRoiDlg->setParent(this); m_pRoiDlg->setParent(this);
m_pRoiDlg->setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint); m_pRoiDlg->setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);

@ -49,6 +49,32 @@ CDsgRoiDlg::CDsgRoiDlg(QWidget *parent) : QDialog(parent), ui(new Ui::RoiDlg)
m_pRoiScene = new RoiScene(this); m_pRoiScene = new RoiScene(this);
m_pRoiScene->SetGraphicsView(ui->graphicsView); m_pRoiScene->SetGraphicsView(ui->graphicsView);
m_pRoiScene->SetInfoLable(ui->label_pixel_info); m_pRoiScene->SetInfoLable(ui->label_pixel_info);
connect(ui->m_pbUp, SIGNAL(clicked()), this, SLOT(OnMove()));
connect(ui->m_pbLeft, SIGNAL(clicked()), this, SLOT(OnMove()));
connect(ui->m_pbRight, SIGNAL(clicked()), this, SLOT(OnMove()));
connect(ui->m_pbDown, SIGNAL(clicked()), this, SLOT(OnMove()));
/*开启按钮长按功能*/
ui->m_pbUp->setAutoRepeat(true);
ui->m_pbUp->setAutoRepeatDelay(400);
ui->m_pbUp->setAutoRepeatInterval(50);
ui->m_pbLeft->setAutoRepeat(true);
ui->m_pbLeft->setAutoRepeatDelay(400);
ui->m_pbLeft->setAutoRepeatInterval(50);
ui->m_pbRight->setAutoRepeat(true);
ui->m_pbRight->setAutoRepeatDelay(400);
ui->m_pbRight->setAutoRepeatInterval(50);
ui->m_pbDown->setAutoRepeat(true);
ui->m_pbDown->setAutoRepeatDelay(400);
ui->m_pbDown->setAutoRepeatInterval(50);
int slide = SystemStateInfo::setIni.value("sliderValue",1).toInt();
ui->horizontalSlider->setValue(slide);
connect(ui->horizontalSlider, SIGNAL(valueChanged(int)), this, SLOT(onSliderChange(int)));
} }
CDsgRoiDlg::~CDsgRoiDlg() CDsgRoiDlg::~CDsgRoiDlg()
@ -113,7 +139,7 @@ bool CDsgRoiDlg::OnOk()
int nItems = m_pRoiScene->getGraphItems(); int nItems = m_pRoiScene->getGraphItems();
if (nCount != nItems) if (nCount != nItems)
{ {
int a = QMessageBox::warning(this, QObject::tr("警告"), QObject::tr("系统检测到有ROI未进行绑定请绑定后继续")); QMessageBox::warning(this, QObject::tr("警告"), QObject::tr("系统检测到有ROI未进行绑定请绑定后继续"));
return false; return false;
} }
QDialog::accept(); QDialog::accept();
@ -146,10 +172,8 @@ void CDsgRoiDlg::OnShowColorDlg()
QColor color = QColorDialog::getColor(Qt::black,this,QString("select color")); QColor color = QColorDialog::getColor(Qt::black,this,QString("select color"));
if (color.rgb() == QColor(0, 0, 0).rgb()) if (color.rgb() == QColor(0, 0, 0).rgb())
return ; return ;
QString strRGB = QString("(%1,%2,%3)").arg(QString::number(color.red()), QString::number(color.green()), QString::number(color.blue())); QString strStyle = QString("font:8px ;background-color:rgba(%1,%2,%3,255);").arg(color.red()).arg(color.green()).arg(color.blue());
ui->lineEdit_3->setText(strRGB); ui->label_Color->setStyleSheet(strStyle);
QString strStyle = QString("background-color:rgba(%1,%2,%3,255);").arg(color.red()).arg(color.green()).arg(color.blue());
ui->lineEdit_3->setStyleSheet(strStyle);
SystemStateInfo::rgb = color.rgb(); SystemStateInfo::rgb = color.rgb();
return; return;
} }
@ -193,10 +217,9 @@ LP_DETECTOR_ROI_DATA CDsgRoiDlg::ShowRoiDlg(LP_DETECTOR_ROI_DATA roiData)
if (SystemStateInfo::rgb == 0) if (SystemStateInfo::rgb == 0)
SystemStateInfo::rgb = QColor(255, 0, 0).rgb(); SystemStateInfo::rgb = QColor(255, 0, 0).rgb();
QColor color(SystemStateInfo::rgb); QColor color(SystemStateInfo::rgb);
QString strRGB = QString("(%1,%2,%3)").arg(QString::number(color.red()), QString::number(color.green()), QString::number(color.blue()));
ui->lineEdit_3->setText(strRGB);
QString strStyle = QString("background-color:rgba(%1,%2,%3,255);").arg(color.red()).arg(color.green()).arg(color.blue()); QString strStyle = QString("background-color:rgba(%1,%2,%3,255);").arg(color.red()).arg(color.green()).arg(color.blue());
ui->lineEdit_3->setStyleSheet(strStyle); ui->label_Color->setStyleSheet(strStyle);
QDesktopWidget* desktop = QApplication::desktop(); QDesktopWidget* desktop = QApplication::desktop();
move((desktop->width() - this->width()) / 2, (desktop->height() - this->height()) / 2); move((desktop->width() - this->width()) / 2, (desktop->height() - this->height()) / 2);
@ -415,23 +438,24 @@ void CDsgRoiDlg::OnMove()
{ {
if (!m_pRoiScene) if (!m_pRoiScene)
return; return;
if (sender()->objectName() == "pushButton_10")
int step = ui->horizontalSlider->value();
if (sender()->objectName() == "m_pbLeft")
{ {
m_pRoiScene->MoveSelectedItem(LEFT); m_pRoiScene->MoveSelectedItem(LEFT, step);
} }
else if (sender()->objectName() == "pushButton_11") else if (sender()->objectName() == "m_pbUp")
{ {
m_pRoiScene->MoveSelectedItem(UP); m_pRoiScene->MoveSelectedItem(UP, step);
} }
else if (sender()->objectName() == "pushButton_12") else if (sender()->objectName() == "m_pbRight")
{ {
m_pRoiScene->MoveSelectedItem(RIGHT); m_pRoiScene->MoveSelectedItem(RIGHT, step);
} }
else if (sender()->objectName() == "pushButton_13") else if (sender()->objectName() == "m_pbDown")
{ {
m_pRoiScene->MoveSelectedItem(DOWN); m_pRoiScene->MoveSelectedItem(DOWN, step);
} }
} }
void CDsgRoiDlg::showEvent(QShowEvent *evt) void CDsgRoiDlg::showEvent(QShowEvent *evt)
@ -456,3 +480,15 @@ void CDsgRoiDlg::OnZoomOut()
m_pRoiScene->zoomImage(false); m_pRoiScene->zoomImage(false);
} }
Q_SLOT void CDsgRoiDlg::onSliderChange(int value)
{
SystemStateInfo::setIni.setValue(QStringLiteral("sliderValue"), value);
}
void CDsgRoiDlg::changeEvent(QEvent *event)
{
if (event->type() == QEvent::LanguageChange)
{
ui->retranslateUi(this);
}
}

@ -24,6 +24,9 @@ public:
virtual void OnManualTrigger(){} virtual void OnManualTrigger(){}
virtual void OnSetParam(IDetectorTask* pTask){} virtual void OnSetParam(IDetectorTask* pTask){}
virtual void showEvent(QShowEvent *evt); virtual void showEvent(QShowEvent *evt);
Q_SLOT void onSliderChange(int value);
protected:
virtual void changeEvent(QEvent *event);
public slots : public slots :
bool OnOk(); bool OnOk();
bool OnCancel(); bool OnCancel();
@ -34,6 +37,7 @@ public slots :
void OnMove(); void OnMove();
void OnZoomIn(); void OnZoomIn();
void OnZoomOut(); void OnZoomOut();
void OnSelectImage(); void OnSelectImage();
void OnShowTenFlag(); void OnShowTenFlag();
private: private:

@ -117,26 +117,25 @@ CMainFrame::CMainFrame(QWidget *parent)
ui->setupUi(this); ui->setupUi(this);
setContextMenuPolicy(Qt::NoContextMenu); setContextMenuPolicy(Qt::NoContextMenu);
setWindowIcon(QIcon(":/img/resource/app.png")); setWindowIcon(QIcon(":/img/resource/app.png"));
//task列表控件设置
connect(ui->treeWidget, SIGNAL(itemClicked(QTreeWidgetItem*, int)), this, SLOT(OnTreeItemClick())); connect(ui->treeWidget, SIGNAL(itemClicked(QTreeWidgetItem*, int)), this, SLOT(OnTreeItemClick()));
ui->treeWidget->setStyleSheet("QTreeWidget::item{height:30px}"); ui->treeWidget->setStyleSheet("QTreeWidget::item{height:30px}");
//算法列表控件初始化
ui->tableWidget_2->setContextMenuPolicy(Qt::CustomContextMenu); ui->tableWidget_2->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->tableWidget_2, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(OnParamPopMenu(const QPoint&))); connect(ui->tableWidget_2, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(OnParamPopMenu(const QPoint&)));
connect(ui->tableWidget_2, SIGNAL(cellDoubleClicked(int, int)), this, SLOT(OnRunAlgo())); connect(ui->tableWidget_2, SIGNAL(cellDoubleClicked(int, int)), this, SLOT(OnRunAlgo()));
connect(ui->tableWidget_2, SIGNAL(cellClicked(int, int)), this, SLOT(OnInitCurrentAlgoParam())); connect(ui->tableWidget_2, SIGNAL(cellClicked(int, int)), this, SLOT(OnInitCurrentAlgoParam()));
//算法参数列表控件初始化
ui->tableWidget->setContextMenuPolicy(Qt::CustomContextMenu); ui->tableWidget->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->tableWidget, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(OnParamListPopMenu(const QPoint&))); connect(ui->tableWidget, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(OnParamListPopMenu(const QPoint&)));
connect(ui->tableWidget, SIGNAL(cellClicked(int, int)), this, SLOT(OnCellClicked(int, int))); connect(ui->tableWidget, SIGNAL(cellClicked(int, int)), this, SLOT(OnCellClicked(int, int)));
ui->gv_input->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->gv_input, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(OnGvInputWidgetPopMenu(const QPoint&)));
connect(ui->pushButton_5, SIGNAL(clicked()), this, SLOT(OnClearResult()));//清空打印信息
connect(ui->m_pbLoadImage, SIGNAL(clicked()), this, SLOT(onLoadImage()));//加载图片
connect(ui->m_pbSaveBtn, SIGNAL(clicked()), this, SLOT(OnTrigger()));//保存标定参数
connect(this, SIGNAL(sgShowStatus(QString)), this, SLOT(OnShowStatus(QString)));
//图像输入框
ui->gv_input->setInfoLabel(ui->label_pixel_info); ui->gv_input->setInfoLabel(ui->label_pixel_info);
ui->gv_input->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->gv_input, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(OnGvInputWidgetPopMenu(const QPoint&)));
connect(ui->gv_input, SIGNAL(imgScaled(QTransform, QPointF)), ui->gv_output, SLOT(scaleImg(QTransform, QPointF))); connect(ui->gv_input, SIGNAL(imgScaled(QTransform, QPointF)), ui->gv_output, SLOT(scaleImg(QTransform, QPointF)));
connect(ui->gv_input, SIGNAL(imgMoved(QPointF)), ui->gv_output, SLOT(moveImg(QPointF))); connect(ui->gv_input, SIGNAL(imgMoved(QPointF)), ui->gv_output, SLOT(moveImg(QPointF)));
connect(ui->gv_output, SIGNAL(imgScaled(QTransform, QPointF)), ui->gv_input, SLOT(scaleImg(QTransform, QPointF))); connect(ui->gv_output, SIGNAL(imgScaled(QTransform, QPointF)), ui->gv_input, SLOT(scaleImg(QTransform, QPointF)));
@ -144,7 +143,12 @@ CMainFrame::CMainFrame(QWidget *parent)
connect(ui->gv_output, SIGNAL(pixelSelected(QPoint)), ui->gv_input, SLOT(selectPixel(QPoint))); connect(ui->gv_output, SIGNAL(pixelSelected(QPoint)), ui->gv_input, SLOT(selectPixel(QPoint)));
connect(this, SIGNAL(sgShowCameraImage(QImage)), this, SLOT(OnShowCameraImage(QImage))); connect(this, SIGNAL(sgShowCameraImage(QImage)), this, SLOT(OnShowCameraImage(QImage)));
m_plablStatus = new QLabel(this); connect(ui->pushButton_5, SIGNAL(clicked()), this, SLOT(OnClearResult()));//清空打印信息
connect(ui->m_pbLoadImage, SIGNAL(clicked()), this, SLOT(onLoadImage()));//加载图片
connect(ui->m_pbSaveBtn, SIGNAL(clicked()), this, SLOT(OnTrigger()));//保存标定参数
connect(this, SIGNAL(sgShowStatus(QString)), this, SLOT(OnShowStatus(QString)));
m_plablStatus = new QLabel(this);//菜单栏提示信息
ui->statusBar->addWidget(m_plablStatus); ui->statusBar->addWidget(m_plablStatus);
_pSaveStatus = ui->label_SaveStatus; _pSaveStatus = ui->label_SaveStatus;
} }
@ -165,12 +169,10 @@ CMainFrame::~CMainFrame()
bool CMainFrame::OnMainMenuTrigger(QAction* pAction) bool CMainFrame::OnMainMenuTrigger(QAction* pAction)
{ {
if (pAction) if (pAction) {
{
QString strName = pAction->objectName(); QString strName = pAction->objectName();
if ("action_save" == strName) if ("action_save" == strName) {
{ if (_pOldTask) {
if (_pOldTask){
if (!oldMat.empty()) if (!oldMat.empty())
_pOldTask->GetTaskInfo()->templateImg = oldMat; _pOldTask->GetTaskInfo()->templateImg = oldMat;
} }
@ -374,9 +376,18 @@ bool CMainFrame::InitCurrentTask()
std::string strPath = strImageName.toLocal8Bit().toStdString(); std::string strPath = strImageName.toLocal8Bit().toStdString();
m_pCurrentTask->GetTaskInfo()->templateImg = cv::imread(strPath, CV_LOAD_IMAGE_GRAYSCALE); m_pCurrentTask->GetTaskInfo()->templateImg = cv::imread(strPath, CV_LOAD_IMAGE_GRAYSCALE);
} }
if (m_pCurrentTask->GetTaskInfo()->templateImg.data == NULL)
{
QImage img(":/resource/no-img.png");
ui->gv_input->setImg(img);
}
else
{
ColossusBase::showImage(m_pCurrentTask->GetTaskInfo()->templateImg, ui->gv_input); ColossusBase::showImage(m_pCurrentTask->GetTaskInfo()->templateImg, ui->gv_input);
} }
}
return true; return true;
} }

@ -9,8 +9,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1050</width> <width>1022</width>
<height>755</height> <height>702</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -315,7 +315,7 @@
<item> <item>
<widget class="QPushButton" name="m_pbLoadImage"> <widget class="QPushButton" name="m_pbLoadImage">
<property name="text"> <property name="text">
<string>加载图像</string> <string>加载标定图像</string>
</property> </property>
</widget> </widget>
</item> </item>

@ -9,80 +9,74 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>896</width> <width>925</width>
<height>587</height> <height>623</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>ROI检测区域配置</string> <string>ROI检测区域配置</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_3"> <layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="title">
<string>绘图区域:</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>2</number>
</property>
<property name="leftMargin"> <property name="leftMargin">
<number>5</number> <number>6</number>
</property> </property>
<property name="topMargin"> <property name="topMargin">
<number>5</number> <number>6</number>
</property> </property>
<property name="rightMargin"> <property name="rightMargin">
<number>5</number> <number>6</number>
</property> </property>
<property name="bottomMargin"> <property name="bottomMargin">
<number>5</number> <number>6</number>
</property>
<item row="1" column="0">
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>649</width>
<height>27</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="pushButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property> </property>
<item>
<widget class="QLabel" name="label_pixel_info">
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize> <pointsize>12</pointsize>
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>确定</string> <string>Pixel info: </string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="2"> <item>
<widget class="QPushButton" name="pushButton_2"> <widget class="QGraphicsView" name="graphicsView">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize> <pointsize>12</pointsize>
</font> </font>
</property> </property>
<property name="text"> <property name="styleSheet">
<string>取消</string> <string notr="true">background-color: rgb(212, 212, 212);</string>
</property>
<property name="transformationAnchor">
<enum>QGraphicsView::AnchorUnderMouse</enum>
</property>
<property name="resizeAnchor">
<enum>QGraphicsView::AnchorUnderMouse</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0" colspan="3"> </layout>
<widget class="QSplitter" name="splitter"> </widget>
<property name="orientation"> </item>
<enum>Qt::Horizontal</enum> <item row="0" column="1">
</property>
<widget class="QGroupBox" name="groupBox_2"> <widget class="QGroupBox" name="groupBox_2">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
@ -98,21 +92,22 @@
<property name="title"> <property name="title">
<string>工具</string> <string>工具</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QGridLayout" name="gridLayout_2">
<property name="leftMargin"> <item row="0" column="0">
<number>2</number> <layout class="QHBoxLayout" name="horizontalLayout_2">
</property> <item>
<property name="topMargin"> <widget class="QLabel" name="label_Color">
<number>2</number> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<property name="rightMargin"> <horstretch>0</horstretch>
<number>2</number> <verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="bottomMargin"> <property name="text">
<number>2</number> <string/>
</property> </property>
<item> </widget>
<layout class="QHBoxLayout" name="horizontalLayout_2"> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_8"> <widget class="QPushButton" name="pushButton_8">
<property name="maximumSize"> <property name="maximumSize">
@ -131,23 +126,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> </layout>
<widget class="QLineEdit" name="lineEdit_3"> </item>
<property name="sizePolicy"> <item row="1" column="0">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <widget class="QPushButton" name="pushButton_7">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>0</width>
<height>0</height> <height>30</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>100</width> <width>130</width>
<height>16777215</height> <height>16777215</height>
</size> </size>
</property> </property>
@ -156,35 +147,30 @@
<pointsize>12</pointsize> <pointsize>12</pointsize>
</font> </font>
</property> </property>
<property name="text">
<string>圆</string>
</property>
</widget> </widget>
</item> </item>
</layout> <item row="2" column="0">
</item> <widget class="QPushButton" name="pushButton_5">
<item>
<widget class="QPushButton" name="pushButton_7">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>130</width>
<height>16777215</height>
</size>
</property>
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize> <pointsize>12</pointsize>
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>圆</string> <string>十字标定线</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="3" column="0">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
@ -197,87 +183,246 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="4" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item> <item>
<widget class="QPushButton" name="pushButton_5"> <widget class="QLabel" name="label">
<property name="minimumSize"> <property name="text">
<string>步长</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="horizontalSlider">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>10</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedAppearance">
<bool>false</bool>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::TicksAbove</enum>
</property>
<property name="tickInterval">
<number>1</number>
</property>
</widget>
</item>
</layout>
</item>
<item row="5" column="0">
<layout class="QGridLayout" name="gridLayout">
<property name="topMargin">
<number>5</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="3" column="1">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size> <size>
<width>0</width> <width>20</width>
<height>30</height> <height>40</height>
</size> </size>
</property> </property>
<property name="font"> </spacer>
<font> </item>
<pointsize>12</pointsize> <item row="0" column="1">
</font> <widget class="QToolButton" name="m_pbUp">
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="image.qrc">
<normaloff>:/resource/caret-up.png</normaloff>:/resource/caret-up.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property> </property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QToolButton" name="m_pbDown">
<property name="text"> <property name="text">
<string>十字标定线</string> <string>...</string>
</property>
<property name="icon">
<iconset resource="image.qrc">
<normaloff>:/resource/caret-down.png</normaloff>:/resource/caret-down.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="autoRaise">
<bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="1" column="2">
<widget class="QToolButton" name="m_pbRight">
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="image.qrc">
<normaloff>:/resource/caret-right.png</normaloff>:/resource/caret-right.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget> </widget>
<widget class="QGroupBox" name="groupBox"> </item>
<property name="font"> <item row="1" column="0">
<font> <widget class="QToolButton" name="m_pbLeft">
<pointsize>12</pointsize> <property name="text">
</font> <string>...</string>
</property> </property>
<property name="title"> <property name="icon">
<string>绘图区域:</string> <iconset resource="image.qrc">
<normaloff>:/resource/caret-left.png</normaloff>:/resource/caret-left.png</iconset>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <property name="iconSize">
<property name="spacing"> <size>
<number>2</number> <width>32</width>
<height>32</height>
</size>
</property> </property>
<property name="leftMargin"> <property name="autoRaise">
<number>6</number> <bool>true</bool>
</property> </property>
<property name="topMargin"> </widget>
<number>6</number> </item>
<item row="1" column="1">
<widget class="QToolButton" name="toolButton">
<property name="enabled">
<bool>false</bool>
</property> </property>
<property name="rightMargin"> <property name="text">
<number>6</number> <string>...</string>
</property> </property>
<property name="bottomMargin"> <property name="icon">
<number>6</number> <iconset resource="image.qrc">
<normaloff>:/resource/btn-close.png</normaloff>:/resource/btn-close.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<property name="autoRepeat">
<bool>false</bool>
</property>
<property name="autoExclusive">
<bool>false</bool>
</property>
<property name="popupMode">
<enum>QToolButton::DelayedPopup</enum>
</property>
<property name="autoRaise">
<bool>true</bool>
</property> </property>
<property name="arrowType">
<enum>Qt::NoArrow</enum>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QLabel" name="label_pixel_info"> <spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>649</width>
<height>27</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize> <pointsize>12</pointsize>
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>Pixel info: </string> <string>确定</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGraphicsView" name="graphicsView"> <widget class="QPushButton" name="pushButton_2">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize> <pointsize>12</pointsize>
</font> </font>
</property> </property>
<property name="styleSheet"> <property name="text">
<string notr="true">background-color: rgb(212, 212, 212);</string> <string>取消</string>
</property>
<property name="transformationAnchor">
<enum>QGraphicsView::AnchorUnderMouse</enum>
</property>
<property name="resizeAnchor">
<enum>QGraphicsView::AnchorUnderMouse</enum>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>
<resources/> <resources>
<include location="image.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>

@ -5,7 +5,7 @@
#include <QCursor> #include <QCursor>
#include <QDebug> #include <QDebug>
#include <QGraphicsEffect> #include <QGraphicsEffect>
#define MinRECTWITH 20 #define MinRECTWITH 32
static QPainterPath qt_graphicsItem_shapeFromPath(const QPainterPath &path, const QPen &pen) static QPainterPath qt_graphicsItem_shapeFromPath(const QPainterPath &path, const QPen &pen)
{ {
const qreal penWidthZero = qreal(0.00000001); const qreal penWidthZero = qreal(0.00000001);
@ -65,9 +65,9 @@ void GraphicsItemGroup::paint(QPainter *painter, const QStyleOptionGraphicsItem
//绘制中心 //绘制中心
painter->setPen(QPen(QColor(qRed(rgb), qGreen(rgb), qBlue(rgb)), 3, Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin)); painter->setPen(QPen(QColor(qRed(rgb), qGreen(rgb), qBlue(rgb)), 3, Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin));
painter->drawEllipse(-5, -5, 10, 10); painter->drawEllipse(-20, -20, 25, 25);
painter->drawLine(QLineF(QPointF(-10, 0), QPointF(10, 0))); painter->drawLine(QLineF(QPointF(-15, 0), QPointF(15, 0)));
painter->drawLine(QLineF(QPointF(0, -10), QPointF(0, 10))); painter->drawLine(QLineF(QPointF(0, -15), QPointF(0, 15)));
} }
} }
@ -110,12 +110,8 @@ QRectF GraphicsItemGroup::boundingRect() const
{ {
rect = mapRectFromItem(m_vecItem[i], m_vecItem[i]->rect()); rect = mapRectFromItem(m_vecItem[i], m_vecItem[i]->rect());
} }
rects = rects.united(rect); rects = rects.united(rect);
} }
return rects; return rects;
} }

@ -233,7 +233,6 @@ bool RoiScene::InitRecord(Item_List record, int nIndex)
itemPoint.setX(item.second.at(0)); itemPoint.setX(item.second.at(0));
itemPoint.setY(item.second.at(1)); itemPoint.setY(item.second.at(1));
graphicItem->setPos(itemPoint-mImgPosOffSet); graphicItem->setPos(itemPoint-mImgPosOffSet);
//m_graphItemMap[graphicItem]= maptoImgNewPos(graphicItem);
tagROIParas tagItem; tagROIParas tagItem;
tagItem._model = ENUM_LOCKROI; tagItem._model = ENUM_LOCKROI;
tagItem.rectf = maptoImgNewPos(graphicItem); tagItem.rectf = maptoImgNewPos(graphicItem);
@ -279,7 +278,6 @@ void RoiScene::mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
DrawTool * tool = DrawTool::findTool(DrawTool::c_drawShape); DrawTool * tool = DrawTool::findTool(DrawTool::c_drawShape);
if (tool) if (tool)
tool->mousePressEvent(mouseEvent, this); tool->mousePressEvent(mouseEvent, this);
} }
} }
@ -337,7 +335,7 @@ void RoiScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent)
} }
void RoiScene::MoveSelectedItem(DirType type) void RoiScene::MoveSelectedItem(DirType type, int step)
{ {
QList<QGraphicsItem *> items = this->selectedItems(); QList<QGraphicsItem *> items = this->selectedItems();
GraphicsItem *item = 0; GraphicsItem *item = 0;
@ -351,22 +349,22 @@ void RoiScene::MoveSelectedItem(DirType type)
{ {
case LEFT: case LEFT:
{ {
item->moveBy(-1, 0); item->moveBy(-step, 0);
break; break;
} }
case RIGHT: case RIGHT:
{ {
item->moveBy(1, 0); item->moveBy(step, 0);
break; break;
} }
case UP: case UP:
{ {
item->moveBy(0, -1); item->moveBy(0, -step);
break; break;
} }
case DOWN: case DOWN:
{ {
item->moveBy(0, 1); item->moveBy(0, step);
break; break;
} }
} }
@ -480,6 +478,7 @@ void RoiScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
{ {
unCheckAction = menu.addAction(QObject::tr("解绑")); unCheckAction = menu.addAction(QObject::tr("解绑"));
unCheckAction->setObjectName("unCheckAction"); unCheckAction->setObjectName("unCheckAction");
unCheckAction->setIcon(QIcon(":/resource/lock-open.png"));
} }
else if (tmpModel == ENUM_BINDROI) else if (tmpModel == ENUM_BINDROI)
{ {
@ -487,28 +486,34 @@ void RoiScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
{ {
checkAction = menu.addAction(QObject::tr("绑定")); checkAction = menu.addAction(QObject::tr("绑定"));
checkAction->setObjectName("checkAction"); checkAction->setObjectName("checkAction");
checkAction->setIcon(QIcon(":/resource/lock.png"));
} }
unCheckAction = menu.addAction(QObject::tr("解除径向绑定")); unCheckAction = menu.addAction(QObject::tr("解除径向绑定"));
unCheckAction->setObjectName("unCheckAction"); unCheckAction->setObjectName("unCheckAction");
unCheckAction->setIcon(QIcon(":/resource/lock.png"));
} }
else if (tmpModel == ENUM_UNBINDROI) else if (tmpModel == ENUM_UNBINDROI)
{ {
radiusFixAction = menu.addAction(QObject::tr("径向解锁")); radiusFixAction = menu.addAction(QObject::tr("径向解锁"));
radiusFixAction->setObjectName("radiusUnfixAction"); radiusFixAction->setObjectName("radiusUnfixAction");
unCheckAction->setIcon(QIcon(":/resource/lock-open_green.png"));
} }
else else
{ {
if (items.size() > 0){ if (items.size() > 0){
deleteAction = menu.addAction(QObject::tr("删除")); deleteAction = menu.addAction(QObject::tr("删除"));
deleteAction->setObjectName("deleteAction"); deleteAction->setObjectName("deleteAction");
deleteAction->setIcon(QIcon(":/resource/btn-close.png"));
} }
checkAction = menu.addAction(QObject::tr("绑定")); checkAction = menu.addAction(QObject::tr("绑定"));
checkAction->setObjectName("checkAction"); checkAction->setObjectName("checkAction");
checkAction->setIcon(QIcon(":/resource/lock.png"));
if (m_graphItemMapStruct.size() == 2){ if (m_graphItemMapStruct.size() == 2){
if (tmpModel != ENUM_UNLOCKROI){ if (tmpModel != ENUM_UNLOCKROI){
unCheckAction = menu.addAction(QObject::tr("解绑")); unCheckAction = menu.addAction(QObject::tr("解绑"));
unCheckAction->setObjectName("unCheckAction"); unCheckAction->setObjectName("unCheckAction");
unCheckAction->setIcon(QIcon(":/resource/lock-open.png"));
} }
GraphicsItem *pFirst = m_graphItemMapStruct.firstKey(); GraphicsItem *pFirst = m_graphItemMapStruct.firstKey();
@ -525,6 +530,7 @@ void RoiScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
if (pSmallItem == ptmpItem){ if (pSmallItem == ptmpItem){
radiusFixAction = menu.addAction(QObject::tr("径向绑定")); radiusFixAction = menu.addAction(QObject::tr("径向绑定"));
radiusFixAction->setObjectName("radiusFixAction"); radiusFixAction->setObjectName("radiusFixAction");
radiusFixAction->setIcon(QIcon(":/resource/lock.png"));
} }
} }
} }
@ -767,7 +773,13 @@ void RoiScene::InitShowImage(cv::Mat img)
if (!mpGraphicsView) if (!mpGraphicsView)
return; return;
if (img.empty()) if (img.empty())
{
if (m_pImageItem)
{
m_pImageItem = nullptr;
}
return; return;
}
mpShowImage = ColossusBase::convMat2QImage(img); mpShowImage = ColossusBase::convMat2QImage(img);

@ -53,7 +53,7 @@ public:
bool InitRecord(Item_List record, int nIndex); bool InitRecord(Item_List record, int nIndex);
void InitShowImage(cv::Mat img); void InitShowImage(cv::Mat img);
void DisableMenu(bool bRet) { m_bDisableMenu = bRet; } void DisableMenu(bool bRet) { m_bDisableMenu = bRet; }
void MoveSelectedItem(DirType type); void MoveSelectedItem(DirType type,int step = 1);
void SetSelectedItem(QPoint pos, QRect size); void SetSelectedItem(QPoint pos, QRect size);
void SetGraphicsView(QGraphicsView* ipGV){ mpGraphicsView = ipGV; } void SetGraphicsView(QGraphicsView* ipGV){ mpGraphicsView = ipGV; }
void SetInfoLable(QLabel* ipLable){ mpInfoLabel = ipLable; } void SetInfoLable(QLabel* ipLable){ mpInfoLabel = ipLable; }

@ -12,7 +12,7 @@ class QGraphicsSceneMouseEvent;
QT_END_NAMESPACE QT_END_NAMESPACE
enum { SELECTION_HANDLE_SIZE = 10, SELECTION_MARGIN = 10 }; enum { SELECTION_HANDLE_SIZE = 20, SELECTION_MARGIN = 20 };
enum SelectionHandleState { SelectionHandleOff, SelectionHandleInactive, SelectionHandleActive }; enum SelectionHandleState { SelectionHandleOff, SelectionHandleInactive, SelectionHandleActive };
class SizeHandleRect :public QGraphicsRectItem class SizeHandleRect :public QGraphicsRectItem

@ -1,6 +1,21 @@
<RCC> <RCC>
<qresource prefix="/"> <qresource prefix="/">
<file>resource/app.png</file> <file>resource/app.png</file>
<file>resource/arrow.png</file>
<file>resource/arrow-down.png</file>
<file>resource/arrow-left.png</file>
<file>resource/arrow-right.png</file>
<file>resource/btn-close.png</file>
<file>resource/lock.png</file>
<file>resource/lock-open.png</file>
<file>resource/no-img.png</file>
<file>resource/caret-down.png</file>
<file>resource/caret-left.png</file>
<file>resource/caret-right.png</file>
<file>resource/caret-up.png</file>
<file>resource/interlines.png</file>
<file>resource/lock-open_green.png</file>
<file>resource/save.png</file> <file>resource/save.png</file>
<file>resource/save-all.png</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1020 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1023 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 943 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1017 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

@ -7,6 +7,7 @@
<file>Resource/windows3.png</file> <file>Resource/windows3.png</file>
<file>Resource/windows4.png</file> <file>Resource/windows4.png</file>
<file>none.jpg</file> <file>none.jpg</file>
<file alias="no-img">Resource/no-img.png</file>
</qresource> </qresource>
<qresource prefix="/ToolBarPic"> <qresource prefix="/ToolBarPic">
<file>ToolBarpic/3d12.png</file> <file>ToolBarpic/3d12.png</file>

@ -56,4 +56,11 @@ void QAddModel::SetClearData()
ui.wf_model_edit_ply->setText(""); ui.wf_model_edit_ply->setText("");
} }
void QAddModel::changeEvent(QEvent *event)
{
if (event->type() == QEvent::LanguageChange)
{
ui.retranslateUi(this);
}
}

@ -25,6 +25,8 @@ public:
QMap<QString, QVariant> getData(); QMap<QString, QVariant> getData();
void SetClearData(); void SetClearData();
protected:
virtual void changeEvent(QEvent *event);
}; };
#endif // QADDMODEL_H #endif // QADDMODEL_H

@ -19,6 +19,14 @@ Q_SLOT void QShowImg::showImg()
} }
void QShowImg::changeEvent(QEvent *event)
{
if (event->type() == QEvent::LanguageChange)
{
ui.retranslateUi(this);
}
}
void QShowImg::setPicPath(QString m_filePath /*= QString()*/) void QShowImg::setPicPath(QString m_filePath /*= QString()*/)
{ {
QPixmap m_pix(m_filePath); QPixmap m_pix(m_filePath);

@ -15,6 +15,8 @@ public:
Q_SLOT void showImg(); Q_SLOT void showImg();
signals: signals:
void sgChangeImg(); void sgChangeImg();
protected:
virtual void changeEvent(QEvent *event);
private: private:
Ui::QShowImg ui; Ui::QShowImg ui;
}; };

@ -50,3 +50,11 @@ Q_SLOT void QWorkItemDlg::onOk()
QDialog::accept(); QDialog::accept();
} }
void QWorkItemDlg::changeEvent(QEvent *event)
{
if (event->type() == QEvent::LanguageChange)
{
ui.retranslateUi(this);
}
}

@ -19,7 +19,8 @@ public:
}; };
private: private:
Q_SLOT void onOk(); Q_SLOT void onOk();
protected:
virtual void changeEvent(QEvent *event);
private: private:
Ui::QWorkItemUI ui; Ui::QWorkItemUI ui;

@ -17,7 +17,7 @@
#include "qworkItemdlg.h" #include "qworkItemdlg.h"
#include <QMessageBox> #include <QMessageBox>
#pragma execution_character_set("utf-8") #pragma execution_character_set("utf-8")
#define MODEL_UI_ICON_NONE ":/image/no-img"
QWorkMgrUI::QWorkMgrUI(QWorkMgrCtrl *pWork, IWheelCtrl *pCtrl) QWorkMgrUI::QWorkMgrUI(QWorkMgrCtrl *pWork, IWheelCtrl *pCtrl)
: m_pCtrl(pCtrl), m_pWorkCtrl(pWork), m_ptrModel(NULL), m_ptableModel(NULL) : m_pCtrl(pCtrl), m_pWorkCtrl(pWork), m_ptrModel(NULL), m_ptableModel(NULL)
{ {
@ -492,7 +492,7 @@ void QWorkMgrUI::UpdateTab2(QStringList m_strList)
QString strFilePath = pModel->getPicPath(); QString strFilePath = pModel->getPicPath();
if (strFilePath.isEmpty()) if (strFilePath.isEmpty())
{ {
strFilePath = ":/image/none.jpg"; strFilePath = MODEL_UI_ICON_NONE;
} }
else else
{ {
@ -501,7 +501,7 @@ void QWorkMgrUI::UpdateTab2(QStringList m_strList)
QPixmap pix = QPixmap(strFilePath); QPixmap pix = QPixmap(strFilePath);
if (pix.isNull()) if (pix.isNull())
pix = QPixmap(":/image/none.jpg"); pix = QPixmap(MODEL_UI_ICON_NONE);
QIcon icon(pix.scaled(QSize(100, 100))); QIcon icon(pix.scaled(QSize(100, 100)));
QListWidgetItem* pItem = new QListWidgetItem(icon, strName); QListWidgetItem* pItem = new QListWidgetItem(icon, strName);
@ -599,6 +599,14 @@ void QWorkMgrUI::closeEvent(QCloseEvent *event)
return; return;
} }
void QWorkMgrUI::changeEvent(QEvent *event)
{
if (event->type() == QEvent::LanguageChange)
{
ui.retranslateUi(this);
}
}
void QWorkMgrUI::setData2Show(QString str){ void QWorkMgrUI::setData2Show(QString str){
ui.state_lineEdit->setText(str); ui.state_lineEdit->setText(str);
} }

@ -44,6 +44,7 @@ public:
void UpdateTabView(QString strName, TypeSelect enTymodel); void UpdateTabView(QString strName, TypeSelect enTymodel);
protected: protected:
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event);
virtual void changeEvent(QEvent *event);
signals: signals:
void sgShowMsg(QString str); void sgShowMsg(QString str);
void sgUpdatedefect(); void sgUpdatedefect();

@ -64,6 +64,14 @@ void QAlgParamDlg::timerEvent(QTimerEvent *event)
} }
} }
void QAlgParamDlg::changeEvent(QEvent *event)
{
if (event->type() == QEvent::LanguageChange)
{
ui.retranslateUi(this);
}
}
void QAlgParamDlg::setParam() void QAlgParamDlg::setParam()
{ {
ui.checkBox->setChecked(lpGlobalConfig::instance()->algParam.m_UseBackground == 0 ? false : true); ui.checkBox->setChecked(lpGlobalConfig::instance()->algParam.m_UseBackground == 0 ? false : true);

@ -12,14 +12,15 @@ public:
QAlgParamDlg(QWidget *parent = Q_NULLPTR); QAlgParamDlg(QWidget *parent = Q_NULLPTR);
~QAlgParamDlg(); ~QAlgParamDlg();
Q_SLOT void onButtonClicked(); Q_SLOT void onButtonClicked();
void setParam();
void getParam();
Q_SLOT void onChangeBG();
signals: signals:
void sgParamChange(); void sgParamChange();
protected: protected:
virtual void showEvent(QShowEvent *event); virtual void showEvent(QShowEvent *event);
virtual void timerEvent(QTimerEvent *event); virtual void timerEvent(QTimerEvent *event);
void setParam(); virtual void changeEvent(QEvent *event);
void getParam();
Q_SLOT void onChangeBG();
private: private:
Ui::QAlgParamDlg ui; Ui::QAlgParamDlg ui;
int m_timeID{ 0 }; int m_timeID{ 0 };

@ -196,3 +196,11 @@ void QCamSettingDlg::EnableUI(bool b)
ui.m_ImgHeight->setDisabled(!b); ui.m_ImgHeight->setDisabled(!b);
} }
void QCamSettingDlg::changeEvent(QEvent *event)
{
if (event->type() == QEvent::LanguageChange)
{
ui.retranslateUi(this);
}
}

@ -22,6 +22,8 @@ public:
void onShowVirtualDir(bool bShow); void onShowVirtualDir(bool bShow);
void EnableUI(bool b); void EnableUI(bool b);
protected:
virtual void changeEvent(QEvent *event);
private: private:
Ui::QCamSettingDlg ui; Ui::QCamSettingDlg ui;
ICoreCtrl* m_pCoreCtl{ nullptr }; ICoreCtrl* m_pCoreCtl{ nullptr };

@ -111,3 +111,11 @@ Q_SLOT void QDebugDlg::onTimeOut()
{ {
emit sgTriggerCam(); emit sgTriggerCam();
} }
void QDebugDlg::changeEvent(QEvent *event)
{
if (event->type() == QEvent::LanguageChange)
{
ui.retranslateUi(this);
}
}

@ -24,6 +24,8 @@ public:
signals: signals:
void sgTriggerCam(); void sgTriggerCam();
protected:
virtual void changeEvent(QEvent *event);
private: private:
Ui::QDebugDlg ui; Ui::QDebugDlg ui;
QTimer m_simuliter; QTimer m_simuliter;

@ -16,7 +16,7 @@
#define WS_PICSIZE 129 //!>缩放大小 #define WS_PICSIZE 129 //!>缩放大小
#define WS_PICSIZELIST_ITEM 100 #define WS_PICSIZELIST_ITEM 100
#define MODEL_UI_ICON_NONE ":/image/none.jpg" #define MODEL_UI_ICON_NONE ":/image/no-img"
#define MODEL_UI_ICON_LEAPER ":/image/leaper" #define MODEL_UI_ICON_LEAPER ":/image/leaper"
enum EM_TYPE_PROCESSMODEL enum EM_TYPE_PROCESSMODEL
@ -1011,3 +1011,11 @@ void QModelMgrDlg::closeEvent(QCloseEvent *event)
} }
return; return;
} }
void QModelMgrDlg::changeEvent(QEvent *event)
{
if (event->type() == QEvent::LanguageChange)
{
ui.retranslateUi(this);
}
}

@ -63,8 +63,8 @@ private:
protected: protected:
Q_SLOT void onButtonClicked(); Q_SLOT void onButtonClicked();
virtual void showEvent(QShowEvent *event); virtual void showEvent(QShowEvent *event);
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event);
virtual void changeEvent(QEvent *event);
private: private:
Ui::QModelMgrDlg ui; Ui::QModelMgrDlg ui;

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>985</width> <width>1023</width>
<height>691</height> <height>700</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -469,6 +469,12 @@
<height>129</height> <height>129</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>129</width>
<height>129</height>
</size>
</property>
<property name="acceptDrops"> <property name="acceptDrops">
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -479,10 +485,10 @@
<enum>Qt::PlainText</enum> <enum>Qt::PlainText</enum>
</property> </property>
<property name="pixmap"> <property name="pixmap">
<pixmap>:/image/none.jpg</pixmap> <pixmap resource="../../src/tpMain/hubDetect.qrc">:/image/no-img</pixmap>
</property> </property>
<property name="scaledContents"> <property name="scaledContents">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
@ -646,6 +652,8 @@
</layout> </layout>
</widget> </widget>
<layoutdefault spacing="6" margin="11"/> <layoutdefault spacing="6" margin="11"/>
<resources/> <resources>
<include location="../../src/tpMain/hubDetect.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>

@ -1,12 +0,0 @@
#include "QSettingDlg.h"
QSettingDlg::QSettingDlg(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
setWindowIcon(QIcon(":/image/leaper"));
}
QSettingDlg::~QSettingDlg()
{
}

@ -1,19 +0,0 @@
#ifndef _H_QSETTINGDLG_H_
#define _H_QSETTINGDLG_H_
#include <QWidget>
#include "ui_QSettingDlg.h"
class QSettingDlg : public QWidget
{
Q_OBJECT
public:
QSettingDlg(QWidget *parent = Q_NULLPTR);
~QSettingDlg();
private:
Ui::QSettingDlg ui;
};
#endif

@ -1,23 +0,0 @@
<UI version="4.0" >
<class>QSettingDlg</class>
<widget class="QWidget" name="QSettingDlg" >
<property name="objectName" >
<string notr="true">QSettingDlg</string>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>QSettingDlg</string>
</property>
</widget>
<layoutDefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</UI>

@ -22,12 +22,12 @@
#include "databasesql.h" #include "databasesql.h"
#include "lpCryptokey.h" #include "lpCryptokey.h"
#define VERSION_HUB "3.0.1.4" #define VERSION_HUB "3.0.1.5"
#define VERSION_ALG "3.0.1.3" #define VERSION_ALG "3.0.1.4"
#define UPDATE_TIME "2021-09-30" #define UPDATE_TIME "2021-10-09"
#pragma execution_character_set("utf-8") #pragma execution_character_set("utf-8")
#define MODEL_UI_ICON_NONE ":/image/no-img"
static QImage cvMat2QImage(const cv::Mat& mat) { static QImage cvMat2QImage(const cv::Mat& mat) {
if (mat.type() == CV_8UC1) { if (mat.type() == CV_8UC1) {
QImage image(mat.cols, mat.rows, QImage::Format_Indexed8); QImage image(mat.cols, mat.rows, QImage::Format_Indexed8);
@ -85,12 +85,6 @@ static cv::Mat QImageToMat(QImage image) {
lpMainWin::lpMainWin(QWidget *parent) lpMainWin::lpMainWin(QWidget *parent)
: QMainWindow(parent) : QMainWindow(parent)
{ {
{//加载语言设置
QSettings languageSetting("hubdetect.ini", QSettings::IniFormat);
QString strLanguage = languageSetting.value("language", "Chinese").toString();
SetLanguage(strLanguage);
}
this->setWindowIcon(QIcon(":/image/leaper")); this->setWindowIcon(QIcon(":/image/leaper"));
qRegisterMetaType<TimeStruct>("TimeStruct"); qRegisterMetaType<TimeStruct>("TimeStruct");
onInitCoreCtrl();//初始化CoreCtrl模块 相机相关处理模块 onInitCoreCtrl();//初始化CoreCtrl模块 相机相关处理模块
@ -98,7 +92,11 @@ lpMainWin::lpMainWin(QWidget *parent)
ui.setupUi(this); ui.setupUi(this);
onInitAbout(); onInitAbout();
setupTrayIcon(); setupTrayIcon();
{//加载语言设置
QSettings languageSetting("hubdetect.ini", QSettings::IniFormat);
QString strLanguage = languageSetting.value("language", "Chinese").toString();
SetLanguage(strLanguage);
}
lpGlobalConfig::instance()->loadStandParam(); lpGlobalConfig::instance()->loadStandParam();
{ {
QGridLayout *pLayout = new QGridLayout(ui.cam_win_1); QGridLayout *pLayout = new QGridLayout(ui.cam_win_1);
@ -130,11 +128,11 @@ lpMainWin::lpMainWin(QWidget *parent)
ui.action_userManager->setVisible(false); ui.action_userManager->setVisible(false);
QMenu *pToolMenu = new QMenu(this); QMenu *pToolMenu = new QMenu(this);
pToolMenu->addAction(ui.actioncamSetting);
pToolMenu->addAction(ui.action_ImageCali);//图像标定 pToolMenu->addAction(ui.action_ImageCali);//图像标定
pToolMenu->addAction(ui.action_debug);
pToolMenu->addAction(ui.actionSystemSeting); pToolMenu->addAction(ui.actionSystemSeting);
pToolMenu->addAction(ui.actioncamSetting);
pToolMenu->addAction(ui.actionalgo); pToolMenu->addAction(ui.actionalgo);
pToolMenu->addAction(ui.action_debug);
QToolButton* pbutton = new QToolButton(this); QToolButton* pbutton = new QToolButton(this);
pbutton->setMenu(pToolMenu); pbutton->setMenu(pToolMenu);
@ -1392,7 +1390,7 @@ void lpMainWin::onShowResult(Result2Ui* pRlt)
scare = scareh; scare = scareh;
if (pRlt->m_strModel.isEmpty()) { if (pRlt->m_strModel.isEmpty()) {
lpGlobalConfig::instance()->totalUnDetectNum++; lpGlobalConfig::instance()->totalUnDetectNum++;
QPixmap pix(":/image/none.jpg"); QPixmap pix(MODEL_UI_ICON_NONE);
ui.main_lb_res_model_pic->setPixmap(pix.scaled(scare - 15, scare - 15)); ui.main_lb_res_model_pic->setPixmap(pix.scaled(scare - 15, scare - 15));
ui.main_lb_res_model_pic->setStyleSheet(QString("QLabel{border: 5px solid rgb(250,0,0,250);background-color: rgb(200, 200, 200);}")); ui.main_lb_res_model_pic->setStyleSheet(QString("QLabel{border: 5px solid rgb(250,0,0,250);background-color: rgb(200, 200, 200);}"));

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>1026</width> <width>1025</width>
<height>704</height> <height>704</height>
</rect> </rect>
</property> </property>

@ -162,9 +162,6 @@
<ClCompile Include="GeneratedFiles\Debug\moc_qsaveresult.cpp"> <ClCompile Include="GeneratedFiles\Debug\moc_qsaveresult.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile> </ClCompile>
<ClCompile Include="GeneratedFiles\Debug\moc_QSettingDlg.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="GeneratedFiles\Debug\moc_qshowimg.cpp"> <ClCompile Include="GeneratedFiles\Debug\moc_qshowimg.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile> </ClCompile>
@ -297,9 +294,6 @@
<ClCompile Include="GeneratedFiles\Release\moc_qsaveresult.cpp"> <ClCompile Include="GeneratedFiles\Release\moc_qsaveresult.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
</ClCompile> </ClCompile>
<ClCompile Include="GeneratedFiles\Release\moc_QSettingDlg.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="GeneratedFiles\Release\moc_qshowimg.cpp"> <ClCompile Include="GeneratedFiles\Release\moc_qshowimg.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
</ClCompile> </ClCompile>
@ -336,7 +330,6 @@
<ClCompile Include="QDebugDlg.cpp" /> <ClCompile Include="QDebugDlg.cpp" />
<ClCompile Include="QModelMgrDlg.cpp" /> <ClCompile Include="QModelMgrDlg.cpp" />
<ClCompile Include="QPLCDevice.cpp" /> <ClCompile Include="QPLCDevice.cpp" />
<ClCompile Include="QSettingDlg.cpp" />
<ClCompile Include="WebServer.cpp" /> <ClCompile Include="WebServer.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@ -430,16 +423,6 @@
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs> <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">"$(QTDIR)\bin\moc.exe" "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp" -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DTPMAIN_LIB -DTPMAIN_EXPORTS -DQT_GUI_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_PRINTSUPPORT_LIB -DQT_NETWORK_LIB -DQT_SERIALPORT_LIB -DQT_WEBSOCKETS_LIB -D%(PreprocessorDefinitions) "-I." "-I.\GeneratedFiles" "-I.\GeneratedFiles\$(ConfigurationName)" "-I$(QTDIR)\include" "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets" "-I$(QTDIR)\include\ActiveQt" "-I$(QTDIR)\include\QtSerialPort" "-I$(QTDIR)\include\QtANGLE" "-I$(QTDIR)\include\QtPrintSupport" "-I$(QTDIR)\include\QtSql" "-I$(QTDIR)\include\QtNetwork" "-I$(QTDIR)\include\QtWebSockets" "-I.\..\..\src\algorithm" "-I.\..\..\src\tpMain" "-I.\..\..\src\tpMain\thread" "-I.\..\..\src\tpMain\splashScreen" "-I.\..\..\src\tpMain\LightBoxwidget" "-I.\..\..\src\tpMain\QDiskCleanThread" "-I.\..\..\src\tpMain\QPixmapListBar" "-I.\..\..\src\userCtrl" "-I.\..\..\src\NetWheel" "-I.\..\..\3part\libzkq\include" "-I.\..\..\3part\tadpole\include\tpBase" "-I.\..\..\3part\opencv3.4.1\include" "-I.\..\..\3part\opencv3.4.1\include\opencv" "-I.\..\..\3part\opencv3.4.1\include\opencv2" "-I.\..\..\3part\edcircle\include" "-I.\..\..\3part\lpCoreCtrl\include" "-I.\..\..\src\tpMain\algela" "-I.\..\..\src\ImageCompare" "-I.\..\..\src\interface" "-I.\lpRawTcp" "-I.\..\..\src\tpMain\cryptokey" "-I.\..\..\3part\RsaCrypto\include" "-I.\..\..\3part\openssl-1.0.2n\vs13\include" "-I.\..\..\3part\lp_libtcp\include"</Command> <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">"$(QTDIR)\bin\moc.exe" "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp" -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DTPMAIN_LIB -DTPMAIN_EXPORTS -DQT_GUI_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_PRINTSUPPORT_LIB -DQT_NETWORK_LIB -DQT_SERIALPORT_LIB -DQT_WEBSOCKETS_LIB -D%(PreprocessorDefinitions) "-I." "-I.\GeneratedFiles" "-I.\GeneratedFiles\$(ConfigurationName)" "-I$(QTDIR)\include" "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets" "-I$(QTDIR)\include\ActiveQt" "-I$(QTDIR)\include\QtSerialPort" "-I$(QTDIR)\include\QtANGLE" "-I$(QTDIR)\include\QtPrintSupport" "-I$(QTDIR)\include\QtSql" "-I$(QTDIR)\include\QtNetwork" "-I$(QTDIR)\include\QtWebSockets" "-I.\..\..\src\algorithm" "-I.\..\..\src\tpMain" "-I.\..\..\src\tpMain\thread" "-I.\..\..\src\tpMain\splashScreen" "-I.\..\..\src\tpMain\LightBoxwidget" "-I.\..\..\src\tpMain\QDiskCleanThread" "-I.\..\..\src\tpMain\QPixmapListBar" "-I.\..\..\src\userCtrl" "-I.\..\..\src\NetWheel" "-I.\..\..\3part\libzkq\include" "-I.\..\..\3part\tadpole\include\tpBase" "-I.\..\..\3part\opencv3.4.1\include" "-I.\..\..\3part\opencv3.4.1\include\opencv" "-I.\..\..\3part\opencv3.4.1\include\opencv2" "-I.\..\..\3part\edcircle\include" "-I.\..\..\3part\lpCoreCtrl\include" "-I.\..\..\src\tpMain\algela" "-I.\..\..\src\ImageCompare" "-I.\..\..\src\interface" "-I.\lpRawTcp" "-I.\..\..\src\tpMain\cryptokey" "-I.\..\..\3part\RsaCrypto\include" "-I.\..\..\3part\openssl-1.0.2n\vs13\include" "-I.\..\..\3part\lp_libtcp\include"</Command>
</CustomBuild> </CustomBuild>
<CustomBuild Include="QSettingDlg.h">
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Moc%27ing %(Identity)...</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">"$(QTDIR)\bin\moc.exe" "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp" -DUNICODE -DWIN32 -DWIN64 -DQT_CORE_LIB -DTPMAIN_LIB -DTPMAIN_EXPORTS -DQT_GUI_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_PRINTSUPPORT_LIB -DQT_NETWORK_LIB -DQT_SERIALPORT_LIB -D_WINDOWS -DQT_WEBSOCKETS_LIB -D%(PreprocessorDefinitions) "-I." "-I.\GeneratedFiles" "-I.\GeneratedFiles\$(ConfigurationName)" "-I$(QTDIR)\include" "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets" "-I$(QTDIR)\include\ActiveQt" "-I$(QTDIR)\include\QtSerialPort" "-I$(QTDIR)\include\QtANGLE" "-I$(QTDIR)\include\QtPrintSupport" "-I$(QTDIR)\include\QtSql" "-I$(QTDIR)\include\QtNetwork" "-I$(QTDIR)\include\QtWebSockets" "-I.\..\..\src\algorithm" "-I.\..\..\src\tpMain" "-I.\..\..\src\tpMain\thread" "-I.\..\..\src\tpMain\splashScreen" "-I.\..\..\src\tpMain\LightBoxwidget" "-I.\..\..\src\tpMain\QDiskCleanThread" "-I.\..\..\src\tpMain\QPixmapListBar" "-I.\..\..\src\userCtrl" "-I.\..\..\src\NetWheel" "-I.\..\..\3part\libzkq\include" "-I.\..\..\3part\tadpole\include\tpBase" "-I.\..\..\3part\opencv3.4.1\include" "-I.\..\..\3part\opencv3.4.1\include\opencv" "-I.\..\..\3part\opencv3.4.1\include\opencv2" "-I.\..\..\3part\edcircle\include" "-I.\..\..\3part\lpCoreCtrl\include" "-I.\..\..\src\tpMain\algela" "-I.\..\..\src\ImageCompare" "-I.\..\..\src\interface" "-I.\lpRawTcp" "-I.\..\..\src\tpMain\cryptokey" "-I.\..\..\3part\RsaCrypto\include" "-I.\..\..\3part\openssl-1.0.2n\vs13\include" "-I.\..\..\3part\lp_libtcp\include"</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Moc%27ing %(Identity)...</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">"$(QTDIR)\bin\moc.exe" "%(FullPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp" -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DTPMAIN_LIB -DTPMAIN_EXPORTS -DQT_GUI_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_PRINTSUPPORT_LIB -DQT_NETWORK_LIB -DQT_SERIALPORT_LIB -DQT_WEBSOCKETS_LIB -D%(PreprocessorDefinitions) "-I." "-I.\GeneratedFiles" "-I.\GeneratedFiles\$(ConfigurationName)" "-I$(QTDIR)\include" "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtWidgets" "-I$(QTDIR)\include\ActiveQt" "-I$(QTDIR)\include\QtSerialPort" "-I$(QTDIR)\include\QtANGLE" "-I$(QTDIR)\include\QtPrintSupport" "-I$(QTDIR)\include\QtSql" "-I$(QTDIR)\include\QtNetwork" "-I$(QTDIR)\include\QtWebSockets" "-I.\..\..\src\algorithm" "-I.\..\..\src\tpMain" "-I.\..\..\src\tpMain\thread" "-I.\..\..\src\tpMain\splashScreen" "-I.\..\..\src\tpMain\LightBoxwidget" "-I.\..\..\src\tpMain\QDiskCleanThread" "-I.\..\..\src\tpMain\QPixmapListBar" "-I.\..\..\src\userCtrl" "-I.\..\..\src\NetWheel" "-I.\..\..\3part\libzkq\include" "-I.\..\..\3part\tadpole\include\tpBase" "-I.\..\..\3part\opencv3.4.1\include" "-I.\..\..\3part\opencv3.4.1\include\opencv" "-I.\..\..\3part\opencv3.4.1\include\opencv2" "-I.\..\..\3part\edcircle\include" "-I.\..\..\3part\lpCoreCtrl\include" "-I.\..\..\src\tpMain\algela" "-I.\..\..\src\ImageCompare" "-I.\..\..\src\interface" "-I.\lpRawTcp" "-I.\..\..\src\tpMain\cryptokey" "-I.\..\..\3part\RsaCrypto\include" "-I.\..\..\3part\openssl-1.0.2n\vs13\include" "-I.\..\..\3part\lp_libtcp\include"</Command>
</CustomBuild>
<CustomBuild Include="..\..\src\tpMain\algela\lpImgViewer.h"> <CustomBuild Include="..\..\src\tpMain\algela\lpImgViewer.h">
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs> <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QTDIR)\bin\moc.exe;%(FullPath)</AdditionalInputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Moc%27ing %(Identity)...</Message> <Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Moc%27ing %(Identity)...</Message>
@ -515,7 +498,6 @@
<ClInclude Include="GeneratedFiles\ui_QDebugDlg.h" /> <ClInclude Include="GeneratedFiles\ui_QDebugDlg.h" />
<ClInclude Include="GeneratedFiles\ui_QModelMgrDlg.h" /> <ClInclude Include="GeneratedFiles\ui_QModelMgrDlg.h" />
<ClInclude Include="GeneratedFiles\ui_qmodnamedlg.h" /> <ClInclude Include="GeneratedFiles\ui_qmodnamedlg.h" />
<ClInclude Include="GeneratedFiles\ui_QSettingDlg.h" />
<ClInclude Include="GeneratedFiles\ui_qshowimg.h" /> <ClInclude Include="GeneratedFiles\ui_qshowimg.h" />
<ClInclude Include="GeneratedFiles\ui_qworkItemdlg.h" /> <ClInclude Include="GeneratedFiles\ui_qworkItemdlg.h" />
<ClInclude Include="GeneratedFiles\ui_qworkmgrui.h" /> <ClInclude Include="GeneratedFiles\ui_qworkmgrui.h" />
@ -1158,18 +1140,6 @@
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">"$(QTDIR)\bin\uic.exe" -o ".\GeneratedFiles\ui_%(Filename).h" "%(FullPath)"</Command> <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">"$(QTDIR)\bin\uic.exe" -o ".\GeneratedFiles\ui_%(Filename).h" "%(FullPath)"</Command>
</CustomBuild> </CustomBuild>
</ItemGroup> </ItemGroup>
<ItemGroup>
<CustomBuild Include="QSettingDlg.ui">
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QTDIR)\bin\uic.exe;%(AdditionalInputs)</AdditionalInputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Uic%27ing %(Identity)...</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\GeneratedFiles\ui_%(Filename).h;%(Outputs)</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">"$(QTDIR)\bin\uic.exe" -o ".\GeneratedFiles\ui_%(Filename).h" "%(FullPath)"</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QTDIR)\bin\uic.exe;%(AdditionalInputs)</AdditionalInputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Uic%27ing %(Identity)...</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\GeneratedFiles\ui_%(Filename).h;%(Outputs)</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">"$(QTDIR)\bin\uic.exe" -o ".\GeneratedFiles\ui_%(Filename).h" "%(FullPath)"</Command>
</CustomBuild>
</ItemGroup>
<ItemGroup> <ItemGroup>
<CustomBuild Include="QCamSettingDlg.ui"> <CustomBuild Include="QCamSettingDlg.ui">
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QTDIR)\bin\uic.exe;%(AdditionalInputs)</AdditionalInputs> <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QTDIR)\bin\uic.exe;%(AdditionalInputs)</AdditionalInputs>

@ -358,9 +358,6 @@
<ClCompile Include="GeneratedFiles\Release\moc_QSettingDlg.cpp"> <ClCompile Include="GeneratedFiles\Release\moc_QSettingDlg.cpp">
<Filter>Generated Files\Release</Filter> <Filter>Generated Files\Release</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="QSettingDlg.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ImageCompare\cvdrawutils.cpp"> <ClCompile Include="..\..\src\ImageCompare\cvdrawutils.cpp">
<Filter>ImageCompare</Filter> <Filter>ImageCompare</Filter>
</ClCompile> </ClCompile>
@ -609,9 +606,6 @@
<ClInclude Include="GeneratedFiles\ui_QDebugDlg.h"> <ClInclude Include="GeneratedFiles\ui_QDebugDlg.h">
<Filter>Generated Files</Filter> <Filter>Generated Files</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="GeneratedFiles\ui_QSettingDlg.h">
<Filter>Generated Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ImageCompare\cvdrawutils.h"> <ClInclude Include="..\..\src\ImageCompare\cvdrawutils.h">
<Filter>ImageCompare</Filter> <Filter>ImageCompare</Filter>
</ClInclude> </ClInclude>
@ -782,12 +776,6 @@
<CustomBuild Include="lpMainWin.ui"> <CustomBuild Include="lpMainWin.ui">
<Filter>lpMain</Filter> <Filter>lpMain</Filter>
</CustomBuild> </CustomBuild>
<CustomBuild Include="QSettingDlg.h">
<Filter>Header Files</Filter>
</CustomBuild>
<CustomBuild Include="QSettingDlg.ui">
<Filter>Form Files</Filter>
</CustomBuild>
<CustomBuild Include="..\..\src\tpMain\algela\lpImgViewer.h"> <CustomBuild Include="..\..\src\tpMain\algela\lpImgViewer.h">
<Filter>BaseUILib\ImgView</Filter> <Filter>BaseUILib\ImgView</Filter>
</CustomBuild> </CustomBuild>

Loading…
Cancel
Save