|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 177 KiB |
@ -1,15 +0,0 @@
|
||||
{
|
||||
"solution_description": "aaa",
|
||||
"solution_id": 1,
|
||||
"solution_name": "1_模型列表",
|
||||
"solution_type": 1,
|
||||
"tasklist": [
|
||||
"123",
|
||||
"2423423",
|
||||
"A1",
|
||||
"AAA",
|
||||
"C3",
|
||||
"D4",
|
||||
"template"
|
||||
]
|
||||
}
|
||||
@ -1,30 +0,0 @@
|
||||
{
|
||||
"1_模型列表": [
|
||||
{
|
||||
"Name": "123",
|
||||
"PlcIndex": 2
|
||||
},
|
||||
{
|
||||
"Name": "A1",
|
||||
"PlcIndex": 33
|
||||
},
|
||||
{
|
||||
"Name": "D4",
|
||||
"PlcIndex": 1
|
||||
}
|
||||
],
|
||||
"2_模型列表": [
|
||||
{
|
||||
"Name": "2",
|
||||
"PlcIndex": 1
|
||||
},
|
||||
{
|
||||
"Name": "A1",
|
||||
"PlcIndex": 14
|
||||
},
|
||||
{
|
||||
"Name": "B2",
|
||||
"PlcIndex": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,163 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'DsgRoiDlg.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../DsgRoiDlg.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'DsgRoiDlg.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. It"
|
||||
#error "cannot be used with the include files from this version of Qt."
|
||||
#error "(The moc has changed too much.)"
|
||||
#endif
|
||||
|
||||
QT_BEGIN_MOC_NAMESPACE
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
struct qt_meta_stringdata_CDsgRoiDlg_t {
|
||||
QByteArrayData data[15];
|
||||
char stringdata0[147];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_CDsgRoiDlg_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_CDsgRoiDlg_t qt_meta_stringdata_CDsgRoiDlg = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 10), // "CDsgRoiDlg"
|
||||
QT_MOC_LITERAL(1, 11, 14), // "onSliderChange"
|
||||
QT_MOC_LITERAL(2, 26, 0), // ""
|
||||
QT_MOC_LITERAL(3, 27, 5), // "value"
|
||||
QT_MOC_LITERAL(4, 33, 4), // "OnOk"
|
||||
QT_MOC_LITERAL(5, 38, 8), // "OnCancel"
|
||||
QT_MOC_LITERAL(6, 47, 11), // "OnRectangle"
|
||||
QT_MOC_LITERAL(7, 59, 9), // "OnEllipse"
|
||||
QT_MOC_LITERAL(8, 69, 8), // "OnCircle"
|
||||
QT_MOC_LITERAL(9, 78, 14), // "OnShowColorDlg"
|
||||
QT_MOC_LITERAL(10, 93, 6), // "OnMove"
|
||||
QT_MOC_LITERAL(11, 100, 8), // "OnZoomIn"
|
||||
QT_MOC_LITERAL(12, 109, 9), // "OnZoomOut"
|
||||
QT_MOC_LITERAL(13, 119, 13), // "OnSelectImage"
|
||||
QT_MOC_LITERAL(14, 133, 13) // "OnShowTenFlag"
|
||||
|
||||
},
|
||||
"CDsgRoiDlg\0onSliderChange\0\0value\0OnOk\0"
|
||||
"OnCancel\0OnRectangle\0OnEllipse\0OnCircle\0"
|
||||
"OnShowColorDlg\0OnMove\0OnZoomIn\0OnZoomOut\0"
|
||||
"OnSelectImage\0OnShowTenFlag"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_CDsgRoiDlg[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
12, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
1, 1, 74, 2, 0x0a /* Public */,
|
||||
4, 0, 77, 2, 0x0a /* Public */,
|
||||
5, 0, 78, 2, 0x0a /* Public */,
|
||||
6, 0, 79, 2, 0x0a /* Public */,
|
||||
7, 0, 80, 2, 0x0a /* Public */,
|
||||
8, 0, 81, 2, 0x0a /* Public */,
|
||||
9, 0, 82, 2, 0x0a /* Public */,
|
||||
10, 0, 83, 2, 0x0a /* Public */,
|
||||
11, 0, 84, 2, 0x0a /* Public */,
|
||||
12, 0, 85, 2, 0x0a /* Public */,
|
||||
13, 0, 86, 2, 0x0a /* Public */,
|
||||
14, 0, 87, 2, 0x0a /* Public */,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, QMetaType::Int, 3,
|
||||
QMetaType::Bool,
|
||||
QMetaType::Bool,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void CDsgRoiDlg::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
CDsgRoiDlg *_t = static_cast<CDsgRoiDlg *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->onSliderChange((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 1: { bool _r = _t->OnOk();
|
||||
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
|
||||
case 2: { bool _r = _t->OnCancel();
|
||||
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
|
||||
case 3: _t->OnRectangle(); break;
|
||||
case 4: _t->OnEllipse(); break;
|
||||
case 5: _t->OnCircle(); break;
|
||||
case 6: _t->OnShowColorDlg(); break;
|
||||
case 7: _t->OnMove(); break;
|
||||
case 8: _t->OnZoomIn(); break;
|
||||
case 9: _t->OnZoomOut(); break;
|
||||
case 10: _t->OnSelectImage(); break;
|
||||
case 11: _t->OnShowTenFlag(); break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObject CDsgRoiDlg::staticMetaObject = {
|
||||
{ &QDialog::staticMetaObject, qt_meta_stringdata_CDsgRoiDlg.data,
|
||||
qt_meta_data_CDsgRoiDlg, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *CDsgRoiDlg::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *CDsgRoiDlg::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_CDsgRoiDlg.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
return QDialog::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int CDsgRoiDlg::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QDialog::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 12)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 12;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 12)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 12;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,163 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'DsgRoiDlg.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../DsgRoiDlg.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'DsgRoiDlg.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. It"
|
||||
#error "cannot be used with the include files from this version of Qt."
|
||||
#error "(The moc has changed too much.)"
|
||||
#endif
|
||||
|
||||
QT_BEGIN_MOC_NAMESPACE
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
struct qt_meta_stringdata_CDsgRoiDlg_t {
|
||||
QByteArrayData data[15];
|
||||
char stringdata0[147];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_CDsgRoiDlg_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_CDsgRoiDlg_t qt_meta_stringdata_CDsgRoiDlg = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 10), // "CDsgRoiDlg"
|
||||
QT_MOC_LITERAL(1, 11, 14), // "onSliderChange"
|
||||
QT_MOC_LITERAL(2, 26, 0), // ""
|
||||
QT_MOC_LITERAL(3, 27, 5), // "value"
|
||||
QT_MOC_LITERAL(4, 33, 4), // "OnOk"
|
||||
QT_MOC_LITERAL(5, 38, 8), // "OnCancel"
|
||||
QT_MOC_LITERAL(6, 47, 11), // "OnRectangle"
|
||||
QT_MOC_LITERAL(7, 59, 9), // "OnEllipse"
|
||||
QT_MOC_LITERAL(8, 69, 8), // "OnCircle"
|
||||
QT_MOC_LITERAL(9, 78, 14), // "OnShowColorDlg"
|
||||
QT_MOC_LITERAL(10, 93, 6), // "OnMove"
|
||||
QT_MOC_LITERAL(11, 100, 8), // "OnZoomIn"
|
||||
QT_MOC_LITERAL(12, 109, 9), // "OnZoomOut"
|
||||
QT_MOC_LITERAL(13, 119, 13), // "OnSelectImage"
|
||||
QT_MOC_LITERAL(14, 133, 13) // "OnShowTenFlag"
|
||||
|
||||
},
|
||||
"CDsgRoiDlg\0onSliderChange\0\0value\0OnOk\0"
|
||||
"OnCancel\0OnRectangle\0OnEllipse\0OnCircle\0"
|
||||
"OnShowColorDlg\0OnMove\0OnZoomIn\0OnZoomOut\0"
|
||||
"OnSelectImage\0OnShowTenFlag"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_CDsgRoiDlg[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
12, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
1, 1, 74, 2, 0x0a /* Public */,
|
||||
4, 0, 77, 2, 0x0a /* Public */,
|
||||
5, 0, 78, 2, 0x0a /* Public */,
|
||||
6, 0, 79, 2, 0x0a /* Public */,
|
||||
7, 0, 80, 2, 0x0a /* Public */,
|
||||
8, 0, 81, 2, 0x0a /* Public */,
|
||||
9, 0, 82, 2, 0x0a /* Public */,
|
||||
10, 0, 83, 2, 0x0a /* Public */,
|
||||
11, 0, 84, 2, 0x0a /* Public */,
|
||||
12, 0, 85, 2, 0x0a /* Public */,
|
||||
13, 0, 86, 2, 0x0a /* Public */,
|
||||
14, 0, 87, 2, 0x0a /* Public */,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, QMetaType::Int, 3,
|
||||
QMetaType::Bool,
|
||||
QMetaType::Bool,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void CDsgRoiDlg::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
CDsgRoiDlg *_t = static_cast<CDsgRoiDlg *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->onSliderChange((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 1: { bool _r = _t->OnOk();
|
||||
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
|
||||
case 2: { bool _r = _t->OnCancel();
|
||||
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
|
||||
case 3: _t->OnRectangle(); break;
|
||||
case 4: _t->OnEllipse(); break;
|
||||
case 5: _t->OnCircle(); break;
|
||||
case 6: _t->OnShowColorDlg(); break;
|
||||
case 7: _t->OnMove(); break;
|
||||
case 8: _t->OnZoomIn(); break;
|
||||
case 9: _t->OnZoomOut(); break;
|
||||
case 10: _t->OnSelectImage(); break;
|
||||
case 11: _t->OnShowTenFlag(); break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObject CDsgRoiDlg::staticMetaObject = {
|
||||
{ &QDialog::staticMetaObject, qt_meta_stringdata_CDsgRoiDlg.data,
|
||||
qt_meta_data_CDsgRoiDlg, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *CDsgRoiDlg::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *CDsgRoiDlg::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_CDsgRoiDlg.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
return QDialog::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int CDsgRoiDlg::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QDialog::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 12)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 12;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 12)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 12;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,294 +0,0 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'RoiDlg.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 5.9.4
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_ROIDLG_H
|
||||
#define UI_ROIDLG_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtWidgets/QAction>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QButtonGroup>
|
||||
#include <QtWidgets/QDialog>
|
||||
#include <QtWidgets/QGraphicsView>
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QGroupBox>
|
||||
#include <QtWidgets/QHBoxLayout>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QLabel>
|
||||
#include <QtWidgets/QPushButton>
|
||||
#include <QtWidgets/QSlider>
|
||||
#include <QtWidgets/QSpacerItem>
|
||||
#include <QtWidgets/QToolButton>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_RoiDlg
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout_3;
|
||||
QGroupBox *groupBox;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QLabel *label_pixel_info;
|
||||
QGraphicsView *graphicsView;
|
||||
QGroupBox *groupBox_2;
|
||||
QGridLayout *gridLayout_2;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QLabel *label_Color;
|
||||
QPushButton *pushButton_8;
|
||||
QPushButton *pushButton_7;
|
||||
QPushButton *pushButton_5;
|
||||
QSpacerItem *verticalSpacer;
|
||||
QHBoxLayout *horizontalLayout_3;
|
||||
QLabel *label;
|
||||
QSlider *horizontalSlider;
|
||||
QGridLayout *gridLayout;
|
||||
QSpacerItem *verticalSpacer_2;
|
||||
QToolButton *m_pbUp;
|
||||
QToolButton *m_pbDown;
|
||||
QToolButton *m_pbRight;
|
||||
QToolButton *m_pbLeft;
|
||||
QToolButton *toolButton;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QSpacerItem *horizontalSpacer_5;
|
||||
QPushButton *pushButton;
|
||||
QPushButton *pushButton_2;
|
||||
|
||||
void setupUi(QDialog *RoiDlg)
|
||||
{
|
||||
if (RoiDlg->objectName().isEmpty())
|
||||
RoiDlg->setObjectName(QStringLiteral("RoiDlg"));
|
||||
RoiDlg->setWindowModality(Qt::ApplicationModal);
|
||||
RoiDlg->resize(925, 623);
|
||||
gridLayout_3 = new QGridLayout(RoiDlg);
|
||||
gridLayout_3->setObjectName(QStringLiteral("gridLayout_3"));
|
||||
groupBox = new QGroupBox(RoiDlg);
|
||||
groupBox->setObjectName(QStringLiteral("groupBox"));
|
||||
QFont font;
|
||||
font.setPointSize(12);
|
||||
groupBox->setFont(font);
|
||||
verticalLayout = new QVBoxLayout(groupBox);
|
||||
verticalLayout->setSpacing(2);
|
||||
verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
|
||||
verticalLayout->setContentsMargins(6, 6, 6, 6);
|
||||
label_pixel_info = new QLabel(groupBox);
|
||||
label_pixel_info->setObjectName(QStringLiteral("label_pixel_info"));
|
||||
label_pixel_info->setFont(font);
|
||||
|
||||
verticalLayout->addWidget(label_pixel_info);
|
||||
|
||||
graphicsView = new QGraphicsView(groupBox);
|
||||
graphicsView->setObjectName(QStringLiteral("graphicsView"));
|
||||
graphicsView->setFont(font);
|
||||
graphicsView->setStyleSheet(QStringLiteral("background-color: rgb(212, 212, 212);"));
|
||||
graphicsView->setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
|
||||
graphicsView->setResizeAnchor(QGraphicsView::AnchorUnderMouse);
|
||||
|
||||
verticalLayout->addWidget(graphicsView);
|
||||
|
||||
|
||||
gridLayout_3->addWidget(groupBox, 0, 0, 1, 1);
|
||||
|
||||
groupBox_2 = new QGroupBox(RoiDlg);
|
||||
groupBox_2->setObjectName(QStringLiteral("groupBox_2"));
|
||||
groupBox_2->setMaximumSize(QSize(140, 16777215));
|
||||
groupBox_2->setFont(font);
|
||||
gridLayout_2 = new QGridLayout(groupBox_2);
|
||||
gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2"));
|
||||
label_Color = new QLabel(groupBox_2);
|
||||
label_Color->setObjectName(QStringLiteral("label_Color"));
|
||||
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(label_Color->sizePolicy().hasHeightForWidth());
|
||||
label_Color->setSizePolicy(sizePolicy);
|
||||
|
||||
horizontalLayout_2->addWidget(label_Color);
|
||||
|
||||
pushButton_8 = new QPushButton(groupBox_2);
|
||||
pushButton_8->setObjectName(QStringLiteral("pushButton_8"));
|
||||
pushButton_8->setMaximumSize(QSize(80, 16777215));
|
||||
pushButton_8->setFont(font);
|
||||
|
||||
horizontalLayout_2->addWidget(pushButton_8);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(horizontalLayout_2, 0, 0, 1, 1);
|
||||
|
||||
pushButton_7 = new QPushButton(groupBox_2);
|
||||
pushButton_7->setObjectName(QStringLiteral("pushButton_7"));
|
||||
pushButton_7->setMinimumSize(QSize(0, 30));
|
||||
pushButton_7->setMaximumSize(QSize(130, 16777215));
|
||||
pushButton_7->setFont(font);
|
||||
|
||||
gridLayout_2->addWidget(pushButton_7, 1, 0, 1, 1);
|
||||
|
||||
pushButton_5 = new QPushButton(groupBox_2);
|
||||
pushButton_5->setObjectName(QStringLiteral("pushButton_5"));
|
||||
pushButton_5->setMinimumSize(QSize(0, 30));
|
||||
pushButton_5->setFont(font);
|
||||
|
||||
gridLayout_2->addWidget(pushButton_5, 2, 0, 1, 1);
|
||||
|
||||
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
|
||||
gridLayout_2->addItem(verticalSpacer, 3, 0, 1, 1);
|
||||
|
||||
horizontalLayout_3 = new QHBoxLayout();
|
||||
horizontalLayout_3->setObjectName(QStringLiteral("horizontalLayout_3"));
|
||||
label = new QLabel(groupBox_2);
|
||||
label->setObjectName(QStringLiteral("label"));
|
||||
|
||||
horizontalLayout_3->addWidget(label);
|
||||
|
||||
horizontalSlider = new QSlider(groupBox_2);
|
||||
horizontalSlider->setObjectName(QStringLiteral("horizontalSlider"));
|
||||
horizontalSlider->setMinimum(1);
|
||||
horizontalSlider->setMaximum(10);
|
||||
horizontalSlider->setPageStep(1);
|
||||
horizontalSlider->setOrientation(Qt::Horizontal);
|
||||
horizontalSlider->setInvertedAppearance(false);
|
||||
horizontalSlider->setInvertedControls(false);
|
||||
horizontalSlider->setTickPosition(QSlider::TicksAbove);
|
||||
horizontalSlider->setTickInterval(1);
|
||||
|
||||
horizontalLayout_3->addWidget(horizontalSlider);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(horizontalLayout_3, 4, 0, 1, 1);
|
||||
|
||||
gridLayout = new QGridLayout();
|
||||
gridLayout->setSpacing(0);
|
||||
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
||||
gridLayout->setContentsMargins(-1, 5, -1, -1);
|
||||
verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
|
||||
gridLayout->addItem(verticalSpacer_2, 3, 1, 1, 1);
|
||||
|
||||
m_pbUp = new QToolButton(groupBox_2);
|
||||
m_pbUp->setObjectName(QStringLiteral("m_pbUp"));
|
||||
QIcon icon;
|
||||
icon.addFile(QStringLiteral(":/resource/caret-up.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
m_pbUp->setIcon(icon);
|
||||
m_pbUp->setIconSize(QSize(32, 32));
|
||||
m_pbUp->setAutoRaise(true);
|
||||
|
||||
gridLayout->addWidget(m_pbUp, 0, 1, 1, 1);
|
||||
|
||||
m_pbDown = new QToolButton(groupBox_2);
|
||||
m_pbDown->setObjectName(QStringLiteral("m_pbDown"));
|
||||
QIcon icon1;
|
||||
icon1.addFile(QStringLiteral(":/resource/caret-down.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
m_pbDown->setIcon(icon1);
|
||||
m_pbDown->setIconSize(QSize(32, 32));
|
||||
m_pbDown->setAutoRaise(true);
|
||||
|
||||
gridLayout->addWidget(m_pbDown, 2, 1, 1, 1);
|
||||
|
||||
m_pbRight = new QToolButton(groupBox_2);
|
||||
m_pbRight->setObjectName(QStringLiteral("m_pbRight"));
|
||||
QIcon icon2;
|
||||
icon2.addFile(QStringLiteral(":/resource/caret-right.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
m_pbRight->setIcon(icon2);
|
||||
m_pbRight->setIconSize(QSize(32, 32));
|
||||
m_pbRight->setAutoRaise(true);
|
||||
|
||||
gridLayout->addWidget(m_pbRight, 1, 2, 1, 1);
|
||||
|
||||
m_pbLeft = new QToolButton(groupBox_2);
|
||||
m_pbLeft->setObjectName(QStringLiteral("m_pbLeft"));
|
||||
QIcon icon3;
|
||||
icon3.addFile(QStringLiteral(":/resource/caret-left.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
m_pbLeft->setIcon(icon3);
|
||||
m_pbLeft->setIconSize(QSize(32, 32));
|
||||
m_pbLeft->setAutoRaise(true);
|
||||
|
||||
gridLayout->addWidget(m_pbLeft, 1, 0, 1, 1);
|
||||
|
||||
toolButton = new QToolButton(groupBox_2);
|
||||
toolButton->setObjectName(QStringLiteral("toolButton"));
|
||||
toolButton->setEnabled(false);
|
||||
QIcon icon4;
|
||||
icon4.addFile(QStringLiteral(":/resource/btn-close.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButton->setIcon(icon4);
|
||||
toolButton->setIconSize(QSize(32, 32));
|
||||
toolButton->setCheckable(false);
|
||||
toolButton->setAutoRepeat(false);
|
||||
toolButton->setAutoExclusive(false);
|
||||
toolButton->setPopupMode(QToolButton::DelayedPopup);
|
||||
toolButton->setAutoRaise(true);
|
||||
toolButton->setArrowType(Qt::NoArrow);
|
||||
|
||||
gridLayout->addWidget(toolButton, 1, 1, 1, 1);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(gridLayout, 5, 0, 1, 1);
|
||||
|
||||
|
||||
gridLayout_3->addWidget(groupBox_2, 0, 1, 1, 1);
|
||||
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
|
||||
horizontalSpacer_5 = new QSpacerItem(649, 27, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer_5);
|
||||
|
||||
pushButton = new QPushButton(RoiDlg);
|
||||
pushButton->setObjectName(QStringLiteral("pushButton"));
|
||||
pushButton->setMinimumSize(QSize(0, 30));
|
||||
pushButton->setFont(font);
|
||||
|
||||
horizontalLayout->addWidget(pushButton);
|
||||
|
||||
pushButton_2 = new QPushButton(RoiDlg);
|
||||
pushButton_2->setObjectName(QStringLiteral("pushButton_2"));
|
||||
pushButton_2->setMinimumSize(QSize(0, 30));
|
||||
pushButton_2->setFont(font);
|
||||
|
||||
horizontalLayout->addWidget(pushButton_2);
|
||||
|
||||
|
||||
gridLayout_3->addLayout(horizontalLayout, 1, 0, 1, 2);
|
||||
|
||||
|
||||
retranslateUi(RoiDlg);
|
||||
|
||||
QMetaObject::connectSlotsByName(RoiDlg);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QDialog *RoiDlg)
|
||||
{
|
||||
RoiDlg->setWindowTitle(QApplication::translate("RoiDlg", "ROI\346\243\200\346\265\213\345\214\272\345\237\237\351\205\215\347\275\256", Q_NULLPTR));
|
||||
groupBox->setTitle(QApplication::translate("RoiDlg", "\347\273\230\345\233\276\345\214\272\345\237\237\357\274\232", Q_NULLPTR));
|
||||
label_pixel_info->setText(QApplication::translate("RoiDlg", "Pixel info: ", Q_NULLPTR));
|
||||
groupBox_2->setTitle(QApplication::translate("RoiDlg", "\345\267\245\345\205\267", Q_NULLPTR));
|
||||
label_Color->setText(QString());
|
||||
pushButton_8->setText(QApplication::translate("RoiDlg", "\351\242\234\350\211\262", Q_NULLPTR));
|
||||
pushButton_7->setText(QApplication::translate("RoiDlg", "\345\234\206", Q_NULLPTR));
|
||||
pushButton_5->setText(QApplication::translate("RoiDlg", "\345\215\201\345\255\227\346\240\207\345\256\232\347\272\277", Q_NULLPTR));
|
||||
label->setText(QApplication::translate("RoiDlg", "\346\255\245\351\225\277", Q_NULLPTR));
|
||||
m_pbUp->setText(QApplication::translate("RoiDlg", "...", Q_NULLPTR));
|
||||
m_pbDown->setText(QApplication::translate("RoiDlg", "...", Q_NULLPTR));
|
||||
m_pbRight->setText(QApplication::translate("RoiDlg", "...", Q_NULLPTR));
|
||||
m_pbLeft->setText(QApplication::translate("RoiDlg", "...", Q_NULLPTR));
|
||||
toolButton->setText(QApplication::translate("RoiDlg", "...", Q_NULLPTR));
|
||||
pushButton->setText(QApplication::translate("RoiDlg", "\347\241\256\345\256\232", Q_NULLPTR));
|
||||
pushButton_2->setText(QApplication::translate("RoiDlg", "\345\217\226\346\266\210", Q_NULLPTR));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class RoiDlg: public Ui_RoiDlg {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_ROIDLG_H
|
||||
@ -0,0 +1,24 @@
|
||||
#ifndef _QSETCENTERDLG_H_
|
||||
#define _QSETCENTERDLG_H_
|
||||
|
||||
#include <QDialog>
|
||||
#include "ui_QSetCenterDlg.h"
|
||||
|
||||
class QSetCenterDlg : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QSetCenterDlg(QWidget *parent = Q_NULLPTR);
|
||||
~QSetCenterDlg();
|
||||
void setCenter(double x, double y);
|
||||
void getCenter(double &x, double &y);
|
||||
void setRange(QRect rect, QPointF imgSize);
|
||||
Q_SLOT void onButtonClicked();
|
||||
private:
|
||||
Ui::QSetCenterDlg ui;
|
||||
QRect m_ItemRect;
|
||||
QPointF m_ImgSize;
|
||||
};
|
||||
|
||||
#endif
|
||||
@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>QSetCenterDlg</class>
|
||||
<widget class="QDialog" name="QSetCenterDlg">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>209</width>
|
||||
<height>100</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>圆心坐标设置</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetFixedSize</enum>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>圆心X坐标</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="lineEdit">
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>圆心Y坐标</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="lineEdit_2">
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="text">
|
||||
<string>确定</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_2">
|
||||
<property name="text">
|
||||
<string>取消</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
@ -0,0 +1,56 @@
|
||||
#include "QModModeUI.h"
|
||||
#include "QMessageBox"
|
||||
#include "QIcon"
|
||||
#pragma execution_character_set("utf-8")
|
||||
QModModeUI::QModModeUI(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
connect(ui.pushButton, SIGNAL(clicked()), this, SLOT(onButtonClicked()));
|
||||
connect(ui.pushButton_2, SIGNAL(clicked()), this, SLOT(onButtonClicked()));
|
||||
}
|
||||
|
||||
QModModeUI::~QModModeUI()
|
||||
{
|
||||
}
|
||||
|
||||
void QModModeUI::setModelName(QString strName, QStringList names)
|
||||
{
|
||||
ui.lineEdit->setText(strName);
|
||||
m_names = names;
|
||||
}
|
||||
|
||||
Q_SLOT void QModModeUI::onButtonClicked()
|
||||
{
|
||||
QString strObj = sender()->objectName();
|
||||
if (strObj == "pushButton")
|
||||
{
|
||||
QString strName = getInputName();
|
||||
if (strName.isEmpty())
|
||||
{
|
||||
QMessageBox msgWarning(QMessageBox::Warning, QObject::tr("错误警告"), strName + QObject::tr("型号名不能为空"), QMessageBox::Yes);
|
||||
msgWarning.setWindowIcon(QIcon(":/leaper/Resource/app.png"));
|
||||
msgWarning.setButtonText(QMessageBox::Yes, QObject::tr("确认"));
|
||||
msgWarning.exec();
|
||||
return;
|
||||
}
|
||||
if (m_names.contains(strName))
|
||||
{
|
||||
QMessageBox msgWarning(QMessageBox::Warning, QObject::tr("错误警告"), strName + QObject::tr(" 名字重复,请重新输入"), QMessageBox::Yes);
|
||||
msgWarning.setWindowIcon(QIcon(":/leaper/Resource/app.png"));
|
||||
msgWarning.setButtonText(QMessageBox::Yes, QObject::tr("确认"));
|
||||
msgWarning.exec();
|
||||
return;
|
||||
}
|
||||
QDialog::accept();
|
||||
}
|
||||
else if (strObj == "pushButton_2")
|
||||
{
|
||||
QDialog::reject();
|
||||
}
|
||||
}
|
||||
|
||||
QString QModModeUI::getInputName()
|
||||
{
|
||||
return ui.lineEdit_2->text();
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
#ifndef _QMODMODEUI_H_
|
||||
#define _QMODMODEUI_H_
|
||||
|
||||
#include <QDialog>
|
||||
#include "ui_QModModeUI.h"
|
||||
|
||||
class QModModeUI : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QModModeUI(QWidget *parent = Q_NULLPTR);
|
||||
~QModModeUI();
|
||||
void setModelName(QString strName, QStringList names);
|
||||
Q_SLOT void onButtonClicked();
|
||||
QString getInputName();
|
||||
private:
|
||||
Ui::QModModeUI ui;
|
||||
QStringList m_names;
|
||||
};
|
||||
|
||||
#endif
|
||||
@ -0,0 +1,118 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>QModModeUI</class>
|
||||
<widget class="QDialog" name="QModModeUI">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>303</width>
|
||||
<height>169</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>型号名修改</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetFixedSize</enum>
|
||||
</property>
|
||||
<item row="1" column="0" colspan="3">
|
||||
<widget class="QLineEdit" name="lineEdit">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>35</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<widget class="QLineEdit" name="lineEdit_2">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>35</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="3">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>新型号名:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>旧型号名:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>25</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>确认</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="2">
|
||||
<widget class="QPushButton" name="pushButton_2">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>25</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>取消</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||