#ifndef UI_GENINSPECTREGION_H #define UI_GENINSPECTREGION_H #include <QtCore/QVariant> #include <QtGui/QAction> #include <QtGui/QApplication> #include <QtGui/QButtonGroup> #include <QtGui/QCheckBox> #include <QtGui/QComboBox> #include <QtGui/QGridLayout> #include <QtGui/QHeaderView> #include <QtGui/QLabel> #include <QtGui/QPushButton> #include <QtGui/QScrollArea> #include <QtGui/QSpacerItem> #include <QtGui/QVBoxLayout> #include <QtGui/QWidget> #include "MyPushButton.h" #include "MySpinBox.h" QT_BEGIN_NAMESPACE class Ui_GenInspectRegionClass { public: QVBoxLayout *verticalLayout_2; QScrollArea *scrollArea; QWidget *scrollAreaWidgetContents; QVBoxLayout *verticalLayout_7; QGridLayout *gridLayout_2; QLabel *label; CMySpinBox *lineEditCircularityMax; QComboBox *cBSelectBin; QLabel *label_5; MyPushButton *pBtDetectRegion; QLabel *label_3; QComboBox *RegionSelect; QLabel *label_15; QSpacerItem *horizontalSpacer; QSpacerItem *verticalSpacer; CMySpinBox *lineEditCircularityMin; CMySpinBox *RegGrayMax; CMySpinBox *lineEditSizeMin; QLabel *label_4; CMySpinBox *OpenSize; QLabel *label_16; QCheckBox *checkBoxEnabled; QPushButton *pBtReset; QLabel *label_2; CMySpinBox *lineEditSizeMax; CMySpinBox *RegGrayMin; QLabel *label_6; CMySpinBox *lineEditMeanGrayMin; CMySpinBox *lineEditMeanGrayMax; QLabel *label_7; void setupUi(QWidget *GenInspectRegionClass) { if (GenInspectRegionClass->objectName().isEmpty()) GenInspectRegionClass->setObjectName(QString::fromUtf8("GenInspectRegionClass")); GenInspectRegionClass->resize(959, 346); verticalLayout_2 = new QVBoxLayout(GenInspectRegionClass); verticalLayout_2->setSpacing(6); verticalLayout_2->setContentsMargins(11, 11, 11, 11); verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2")); scrollArea = new QScrollArea(GenInspectRegionClass); scrollArea->setObjectName(QString::fromUtf8("scrollArea")); scrollArea->setWidgetResizable(true); scrollAreaWidgetContents = new QWidget(); scrollAreaWidgetContents->setObjectName(QString::fromUtf8("scrollAreaWidgetContents")); scrollAreaWidgetContents->setGeometry(QRect(0, 0, 935, 322)); verticalLayout_7 = new QVBoxLayout(scrollAreaWidgetContents); verticalLayout_7->setSpacing(6); verticalLayout_7->setContentsMargins(11, 11, 11, 11); verticalLayout_7->setObjectName(QString::fromUtf8("verticalLayout_7")); gridLayout_2 = new QGridLayout(); gridLayout_2->setSpacing(0); gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2")); label = new QLabel(scrollAreaWidgetContents); label->setObjectName(QString::fromUtf8("label")); gridLayout_2->addWidget(label, 1, 1, 1, 1); lineEditCircularityMax = new CMySpinBox(scrollAreaWidgetContents); lineEditCircularityMax->setObjectName(QString::fromUtf8("lineEditCircularityMax")); lineEditCircularityMax->setMinimumSize(QSize(100, 30)); lineEditCircularityMax->setMaximumSize(QSize(100, 30)); gridLayout_2->addWidget(lineEditCircularityMax, 3, 4, 1, 1); cBSelectBin = new QComboBox(scrollAreaWidgetContents); cBSelectBin->setObjectName(QString::fromUtf8("cBSelectBin")); gridLayout_2->addWidget(cBSelectBin, 0, 0, 1, 1); label_5 = new QLabel(scrollAreaWidgetContents); label_5->setObjectName(QString::fromUtf8("label_5")); gridLayout_2->addWidget(label_5, 2, 3, 1, 1); pBtDetectRegion = new MyPushButton(scrollAreaWidgetContents); pBtDetectRegion->setObjectName(QString::fromUtf8("pBtDetectRegion")); gridLayout_2->addWidget(pBtDetectRegion, 0, 2, 1, 2); label_3 = new QLabel(scrollAreaWidgetContents); label_3->setObjectName(QString::fromUtf8("label_3")); gridLayout_2->addWidget(label_3, 1, 5, 1, 1); RegionSelect = new QComboBox(scrollAreaWidgetContents); RegionSelect->setObjectName(QString::fromUtf8("RegionSelect")); gridLayout_2->addWidget(RegionSelect, 0, 1, 1, 1); label_15 = new QLabel(scrollAreaWidgetContents); label_15->setObjectName(QString::fromUtf8("label_15")); gridLayout_2->addWidget(label_15, 3, 1, 1, 1); horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); gridLayout_2->addItem(horizontalSpacer, 1, 7, 1, 1);

    verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
    gridLayout_2->addItem(verticalSpacer, 5, 1, 1, 1);
    lineEditCircularityMin = new CMySpinBox(scrollAreaWidgetContents);
    lineEditCircularityMin->setObjectName(QString::fromUtf8("lineEditCircularityMin"));
    lineEditCircularityMin->setMinimumSize(QSize(100, 30));
    lineEditCircularityMin->setMaximumSize(QSize(100, 30));
    gridLayout_2->addWidget(lineEditCircularityMin, 3, 2, 1, 1);
    RegGrayMax = new CMySpinBox(scrollAreaWidgetContents);
    RegGrayMax->setObjectName(QString::fromUtf8("RegGrayMax"));
    RegGrayMax->setMinimumSize(QSize(100, 30));
    RegGrayMax->setMaximumSize(QSize(100, 30));
    gridLayout_2->addWidget(RegGrayMax, 1, 4, 1, 1);
    lineEditSizeMin = new CMySpinBox(scrollAreaWidgetContents);
    lineEditSizeMin->setObjectName(QString::fromUtf8("lineEditSizeMin"));
    lineEditSizeMin->setMinimumSize(QSize(100, 30));
    lineEditSizeMin->setMaximumSize(QSize(100, 30));
    gridLayout_2->addWidget(lineEditSizeMin, 2, 2, 1, 1);
    label_4 = new QLabel(scrollAreaWidgetContents);
    label_4->setObjectName(QString::fromUtf8("label_4"));
    gridLayout_2->addWidget(label_4, 2, 1, 1, 1);
    OpenSize = new CMySpinBox(scrollAreaWidgetContents);
    OpenSize->setObjectName(QString::fromUtf8("OpenSize"));
    OpenSize->setMinimumSize(QSize(100, 30));
    OpenSize->setMaximumSize(QSize(100, 30));
    gridLayout_2->addWidget(OpenSize, 1, 6, 1, 1);
    label_16 = new QLabel(scrollAreaWidgetContents);
    label_16->setObjectName(QString::fromUtf8("label_16"));
    gridLayout_2->addWidget(label_16, 3, 3, 1, 1);
    checkBoxEnabled = new QCheckBox(scrollAreaWidgetContents);
    checkBoxEnabled->setObjectName(QString::fromUtf8("checkBoxEnabled"));
    gridLayout_2->addWidget(checkBoxEnabled, 1, 0, 1, 1);
    pBtReset = new QPushButton(scrollAreaWidgetContents);
    pBtReset->setObjectName(QString::fromUtf8("pBtReset"));
    gridLayout_2->addWidget(pBtReset, 0, 4, 1, 1);
    label_2 = new QLabel(scrollAreaWidgetContents);
    label_2->setObjectName(QString::fromUtf8("label_2"));
    gridLayout_2->addWidget(label_2, 1, 3, 1, 1);
    lineEditSizeMax = new CMySpinBox(scrollAreaWidgetContents);
    lineEditSizeMax->setObjectName(QString::fromUtf8("lineEditSizeMax"));
    lineEditSizeMax->setMinimumSize(QSize(100, 30));
    lineEditSizeMax->setMaximumSize(QSize(100, 30));
    gridLayout_2->addWidget(lineEditSizeMax, 2, 4, 1, 1);
    RegGrayMin = new CMySpinBox(scrollAreaWidgetContents);
    RegGrayMin->setObjectName(QString::fromUtf8("RegGrayMin"));
    RegGrayMin->setMinimumSize(QSize(100, 30));
    RegGrayMin->setMaximumSize(QSize(100, 30));
    gridLayout_2->addWidget(RegGrayMin, 1, 2, 1, 1);
    label_6 = new QLabel(scrollAreaWidgetContents);
    label_6->setObjectName(QString::fromUtf8("label_6"));
    gridLayout_2->addWidget(label_6, 4, 1, 1, 1);
    lineEditMeanGrayMin = new CMySpinBox(scrollAreaWidgetContents);
    lineEditMeanGrayMin->setObjectName(QString::fromUtf8("lineEditMeanGrayMin"));
    lineEditMeanGrayMin->setMinimumSize(QSize(0, 30));
    lineEditMeanGrayMin->setMaximumSize(QSize(100, 16777215));
    gridLayout_2->addWidget(lineEditMeanGrayMin, 4, 2, 1, 1);
    lineEditMeanGrayMax = new CMySpinBox(scrollAreaWidgetContents);
    lineEditMeanGrayMax->setObjectName(QString::fromUtf8("lineEditMeanGrayMax"));
    lineEditMeanGrayMax->setMinimumSize(QSize(0, 30));
    lineEditMeanGrayMax->setMaximumSize(QSize(100, 16777215));
    gridLayout_2->addWidget(lineEditMeanGrayMax, 4, 4, 1, 1);

    label_7 = new QLabel(scrollAreaWidgetContents);
    label_7->setObjectName(QString::fromUtf8("label_7"));
    gridLayout_2->addWidget(label_7, 4, 3, 1, 1);

    verticalLayout_7->addLayout(gridLayout_2);

    scrollArea->setWidget(scrollAreaWidgetContents);

    verticalLayout_2->addWidget(scrollArea);

    retranslateUi(GenInspectRegionClass);
    QMetaObject::connectSlotsByName(GenInspectRegionClass);
} // setupUi

void retranslateUi(QWidget *GenInspectRegionClass)
{
    GenInspectRegionClass->setWindowTitle(QApplication::translate("GenInspectRegionClass", "GenInspectRegion", 0, QApplication::UnicodeUTF8));
    label->setText(QApplication::translate("GenInspectRegionClass", "Gray", 0, QApplication::UnicodeUTF8));
    cBSelectBin->clear();
    cBSelectBin->insertItems(0, QStringList()
     << QApplication::translate("GenInspectRegionClass", "Red", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("GenInspectRegionClass", "Green", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("GenInspectRegionClass", "Blue", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("GenInspectRegionClass", "Gray", 0, QApplication::UnicodeUTF8)
    );
    label_5->setText(QApplication::translate("GenInspectRegionClass", "-", 0, QApplication::UnicodeUTF8));
    pBtDetectRegion->setText(QApplication::translate("GenInspectRegionClass", "Draw", 0, QApplication::UnicodeUTF8));
    label_3->setText(QApplication::translate("GenInspectRegionClass", "Open", 0, QApplication::UnicodeUTF8));
    RegionSelect->clear();
    RegionSelect->insertItems(0, QStringList()
     << QApplication::translate("GenInspectRegionClass", "Rectangle", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("GenInspectRegionClass", "Ellipse", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("GenInspectRegionClass", "Polygon", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("GenInspectRegionClass", "Freehand", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("GenInspectRegionClass", "Brush", 0, QApplication::UnicodeUTF8)
    );
    label_15->setText(QApplication::translate("GenInspectRegionClass", "Circularity", 0, QApplication::UnicodeUTF8));
    label_4->setText(QApplication::translate("GenInspectRegionClass", "Size", 0, QApplication::UnicodeUTF8));
    label_16->setText(QApplication::translate("GenInspectRegionClass", "-", 0, QApplication::UnicodeUTF8));
    checkBoxEnabled->setText(QApplication::translate("GenInspectRegionClass", "Enabled", 0, QApplication::UnicodeUTF8));
    pBtReset->setText(QApplication::translate("GenInspectRegionClass", "Reset", 0, QApplication::UnicodeUTF8));
    label_2->setText(QApplication::translate("GenInspectRegionClass", "Gray", 0, QApplication::UnicodeUTF8));
    label_6->setText(QApplication::translate("GenInspectRegionClass", "Mean Gray", 0, QApplication::UnicodeUTF8));
    label_7->setText(QApplication::translate("GenInspectRegionClass", "-", 0, QApplication::UnicodeUTF8));
} // retranslateUi

}; namespace Ui { class GenInspectRegionClass: public Ui_GenInspectRegionClass {}; } // namespace Ui

QT_END_NAMESPACE #endif // UI_GENINSPECTREGION_H

GenInspectRegion UI Class: C++ GUI for Region Inspection

原文地址: https://www.cveoy.top/t/topic/fNNy 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录