You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

403 lines
16 KiB

/********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.13.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_MAINWINDOW_H
#define UI_MAINWINDOW_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
QWidget *centralwidget;
QWidget *layoutWidget;
QGridLayout *gridLayout;
QLabel *label_27;
QSpinBox *serverEdit;
QLineEdit *portEdit;
QPushButton *connectButton;
QLabel *label;
QLabel *label_2;
QWidget *layoutWidget_2;
QHBoxLayout *horizontalLayout_2;
QGroupBox *groupBox_2;
QGridLayout *gridLayout_3;
QLabel *label_4;
QSpinBox *readAddress;
QComboBox *readSize;
QLabel *label_9;
QTextEdit *textEditRead;
QLabel *label_5;
QGroupBox *writeGroupBox;
QGridLayout *gridLayout_2;
QSpinBox *writeAddress;
QVBoxLayout *verticalLayout_2;
QCheckBox *coilData1;
QCheckBox *coilData2;
QComboBox *writeSize;
QLabel *label_7;
QLabel *label_8;
QVBoxLayout *verticalLayout;
QHBoxLayout *horizontalLayout_3;
QLabel *label_3;
QTextEdit *textEdit1;
QLabel *label_10;
QTextEdit *textEdit2;
QVBoxLayout *verticalLayout_3;
QWidget *layoutWidget_3;
QHBoxLayout *horizontalLayout;
QLabel *label_6;
QComboBox *writeTable;
QSpacerItem *horizontalSpacer_2;
QPushButton *readButton;
QPushButton *writeButton;
QPushButton *readWriteButton;
QMenuBar *menubar;
QStatusBar *statusbar;
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
MainWindow->resize(588, 520);
centralwidget = new QWidget(MainWindow);
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
layoutWidget = new QWidget(centralwidget);
layoutWidget->setObjectName(QString::fromUtf8("layoutWidget"));
layoutWidget->setGeometry(QRect(0, 10, 571, 28));
gridLayout = new QGridLayout(layoutWidget);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
gridLayout->setContentsMargins(0, 0, 0, 0);
label_27 = new QLabel(layoutWidget);
label_27->setObjectName(QString::fromUtf8("label_27"));
QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(label_27->sizePolicy().hasHeightForWidth());
label_27->setSizePolicy(sizePolicy);
gridLayout->addWidget(label_27, 0, 4, 1, 1);
serverEdit = new QSpinBox(layoutWidget);
serverEdit->setObjectName(QString::fromUtf8("serverEdit"));
QSizePolicy sizePolicy1(QSizePolicy::Maximum, QSizePolicy::Fixed);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(serverEdit->sizePolicy().hasHeightForWidth());
serverEdit->setSizePolicy(sizePolicy1);
serverEdit->setMinimum(1);
serverEdit->setMaximum(247);
gridLayout->addWidget(serverEdit, 0, 5, 1, 1);
portEdit = new QLineEdit(layoutWidget);
portEdit->setObjectName(QString::fromUtf8("portEdit"));
QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Fixed);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(portEdit->sizePolicy().hasHeightForWidth());
portEdit->setSizePolicy(sizePolicy2);
gridLayout->addWidget(portEdit, 0, 3, 1, 1);
connectButton = new QPushButton(layoutWidget);
connectButton->setObjectName(QString::fromUtf8("connectButton"));
sizePolicy1.setHeightForWidth(connectButton->sizePolicy().hasHeightForWidth());
connectButton->setSizePolicy(sizePolicy1);
connectButton->setCheckable(false);
connectButton->setAutoDefault(false);
gridLayout->addWidget(connectButton, 0, 6, 1, 1);
label = new QLabel(layoutWidget);
label->setObjectName(QString::fromUtf8("label"));
gridLayout->addWidget(label, 0, 0, 1, 1);
label_2 = new QLabel(layoutWidget);
label_2->setObjectName(QString::fromUtf8("label_2"));
sizePolicy.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
label_2->setSizePolicy(sizePolicy);
gridLayout->addWidget(label_2, 0, 1, 1, 1);
layoutWidget_2 = new QWidget(centralwidget);
layoutWidget_2->setObjectName(QString::fromUtf8("layoutWidget_2"));
layoutWidget_2->setGeometry(QRect(0, 40, 571, 455));
horizontalLayout_2 = new QHBoxLayout(layoutWidget_2);
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
horizontalLayout_2->setContentsMargins(0, 0, 0, 0);
groupBox_2 = new QGroupBox(layoutWidget_2);
groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
groupBox_2->setMinimumSize(QSize(250, 0));
gridLayout_3 = new QGridLayout(groupBox_2);
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
label_4 = new QLabel(groupBox_2);
label_4->setObjectName(QString::fromUtf8("label_4"));
gridLayout_3->addWidget(label_4, 0, 1, 1, 1);
readAddress = new QSpinBox(groupBox_2);
readAddress->setObjectName(QString::fromUtf8("readAddress"));
readAddress->setMaximum(15);
gridLayout_3->addWidget(readAddress, 0, 2, 1, 1);
readSize = new QComboBox(groupBox_2);
readSize->addItem(QString());
readSize->addItem(QString());
readSize->addItem(QString());
readSize->addItem(QString());
readSize->addItem(QString());
readSize->addItem(QString());
readSize->addItem(QString());
readSize->addItem(QString());
readSize->addItem(QString());
readSize->addItem(QString());
readSize->setObjectName(QString::fromUtf8("readSize"));
gridLayout_3->addWidget(readSize, 1, 2, 1, 1);
label_9 = new QLabel(groupBox_2);
label_9->setObjectName(QString::fromUtf8("label_9"));
gridLayout_3->addWidget(label_9, 2, 1, 1, 1);
textEditRead = new QTextEdit(groupBox_2);
textEditRead->setObjectName(QString::fromUtf8("textEditRead"));
gridLayout_3->addWidget(textEditRead, 3, 1, 1, 2);
label_5 = new QLabel(groupBox_2);
label_5->setObjectName(QString::fromUtf8("label_5"));
gridLayout_3->addWidget(label_5, 1, 1, 1, 1);
horizontalLayout_2->addWidget(groupBox_2);
writeGroupBox = new QGroupBox(layoutWidget_2);
writeGroupBox->setObjectName(QString::fromUtf8("writeGroupBox"));
writeGroupBox->setMinimumSize(QSize(225, 0));
gridLayout_2 = new QGridLayout(writeGroupBox);
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
writeAddress = new QSpinBox(writeGroupBox);
writeAddress->setObjectName(QString::fromUtf8("writeAddress"));
writeAddress->setMaximum(9);
gridLayout_2->addWidget(writeAddress, 0, 1, 1, 1);
verticalLayout_2 = new QVBoxLayout();
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
coilData1 = new QCheckBox(writeGroupBox);
coilData1->setObjectName(QString::fromUtf8("coilData1"));
verticalLayout_2->addWidget(coilData1);
coilData2 = new QCheckBox(writeGroupBox);
coilData2->setObjectName(QString::fromUtf8("coilData2"));
verticalLayout_2->addWidget(coilData2);
gridLayout_2->addLayout(verticalLayout_2, 2, 0, 1, 2);
writeSize = new QComboBox(writeGroupBox);
writeSize->addItem(QString());
writeSize->addItem(QString());
writeSize->addItem(QString());
writeSize->addItem(QString());
writeSize->addItem(QString());
writeSize->addItem(QString());
writeSize->addItem(QString());
writeSize->addItem(QString());
writeSize->addItem(QString());
writeSize->addItem(QString());
writeSize->setObjectName(QString::fromUtf8("writeSize"));
gridLayout_2->addWidget(writeSize, 1, 1, 1, 1);
label_7 = new QLabel(writeGroupBox);
label_7->setObjectName(QString::fromUtf8("label_7"));
gridLayout_2->addWidget(label_7, 0, 0, 1, 1);
label_8 = new QLabel(writeGroupBox);
label_8->setObjectName(QString::fromUtf8("label_8"));
gridLayout_2->addWidget(label_8, 1, 0, 1, 1);
verticalLayout = new QVBoxLayout();
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
horizontalLayout_3 = new QHBoxLayout();
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
verticalLayout->addLayout(horizontalLayout_3);
label_3 = new QLabel(writeGroupBox);
label_3->setObjectName(QString::fromUtf8("label_3"));
verticalLayout->addWidget(label_3);
textEdit1 = new QTextEdit(writeGroupBox);
textEdit1->setObjectName(QString::fromUtf8("textEdit1"));
verticalLayout->addWidget(textEdit1);
label_10 = new QLabel(writeGroupBox);
label_10->setObjectName(QString::fromUtf8("label_10"));
verticalLayout->addWidget(label_10);
textEdit2 = new QTextEdit(writeGroupBox);
textEdit2->setObjectName(QString::fromUtf8("textEdit2"));
verticalLayout->addWidget(textEdit2);
verticalLayout_3 = new QVBoxLayout();
verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
verticalLayout->addLayout(verticalLayout_3);
gridLayout_2->addLayout(verticalLayout, 3, 0, 1, 2);
horizontalLayout_2->addWidget(writeGroupBox);
layoutWidget_3 = new QWidget(centralwidget);
layoutWidget_3->setObjectName(QString::fromUtf8("layoutWidget_3"));
layoutWidget_3->setGeometry(QRect(10, 350, 561, 27));
horizontalLayout = new QHBoxLayout(layoutWidget_3);
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
horizontalLayout->setContentsMargins(0, 0, 0, 0);
label_6 = new QLabel(layoutWidget_3);
label_6->setObjectName(QString::fromUtf8("label_6"));
horizontalLayout->addWidget(label_6);
writeTable = new QComboBox(layoutWidget_3);
writeTable->setObjectName(QString::fromUtf8("writeTable"));
horizontalLayout->addWidget(writeTable);
horizontalSpacer_2 = new QSpacerItem(13, 17, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer_2);
readButton = new QPushButton(layoutWidget_3);
readButton->setObjectName(QString::fromUtf8("readButton"));
sizePolicy1.setHeightForWidth(readButton->sizePolicy().hasHeightForWidth());
readButton->setSizePolicy(sizePolicy1);
horizontalLayout->addWidget(readButton);
writeButton = new QPushButton(layoutWidget_3);
writeButton->setObjectName(QString::fromUtf8("writeButton"));
horizontalLayout->addWidget(writeButton);
readWriteButton = new QPushButton(layoutWidget_3);
readWriteButton->setObjectName(QString::fromUtf8("readWriteButton"));
readWriteButton->setEnabled(false);
horizontalLayout->addWidget(readWriteButton);
MainWindow->setCentralWidget(centralwidget);
menubar = new QMenuBar(MainWindow);
menubar->setObjectName(QString::fromUtf8("menubar"));
menubar->setGeometry(QRect(0, 0, 588, 22));
MainWindow->setMenuBar(menubar);
statusbar = new QStatusBar(MainWindow);
statusbar->setObjectName(QString::fromUtf8("statusbar"));
MainWindow->setStatusBar(statusbar);
retranslateUi(MainWindow);
connectButton->setDefault(true);
readSize->setCurrentIndex(9);
writeSize->setCurrentIndex(9);
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MainWindow", nullptr));
label_27->setText(QCoreApplication::translate("MainWindow", "Server Address:", nullptr));
connectButton->setText(QCoreApplication::translate("MainWindow", "Connect", nullptr));
label->setText(QCoreApplication::translate("MainWindow", "Connection type Is Serial:", nullptr));
label_2->setText(QCoreApplication::translate("MainWindow", "Port:", nullptr));
groupBox_2->setTitle(QCoreApplication::translate("MainWindow", "Read", nullptr));
label_4->setText(QCoreApplication::translate("MainWindow", "Start address:", nullptr));
readSize->setItemText(0, QCoreApplication::translate("MainWindow", "1", nullptr));
readSize->setItemText(1, QCoreApplication::translate("MainWindow", "2", nullptr));
readSize->setItemText(2, QCoreApplication::translate("MainWindow", "3", nullptr));
readSize->setItemText(3, QCoreApplication::translate("MainWindow", "4", nullptr));
readSize->setItemText(4, QCoreApplication::translate("MainWindow", "5", nullptr));
readSize->setItemText(5, QCoreApplication::translate("MainWindow", "6", nullptr));
readSize->setItemText(6, QCoreApplication::translate("MainWindow", "7", nullptr));
readSize->setItemText(7, QCoreApplication::translate("MainWindow", "8", nullptr));
readSize->setItemText(8, QCoreApplication::translate("MainWindow", "9", nullptr));
readSize->setItemText(9, QCoreApplication::translate("MainWindow", "10", nullptr));
label_9->setText(QCoreApplication::translate("MainWindow", "Result:", nullptr));
label_5->setText(QCoreApplication::translate("MainWindow", "Number of values:", nullptr));
writeGroupBox->setTitle(QCoreApplication::translate("MainWindow", "Write", nullptr));
coilData1->setText(QCoreApplication::translate("MainWindow", "Coil1", nullptr));
coilData2->setText(QCoreApplication::translate("MainWindow", "Coil2", nullptr));
writeSize->setItemText(0, QCoreApplication::translate("MainWindow", "1", nullptr));
writeSize->setItemText(1, QCoreApplication::translate("MainWindow", "2", nullptr));
writeSize->setItemText(2, QCoreApplication::translate("MainWindow", "3", nullptr));
writeSize->setItemText(3, QCoreApplication::translate("MainWindow", "4", nullptr));
writeSize->setItemText(4, QCoreApplication::translate("MainWindow", "5", nullptr));
writeSize->setItemText(5, QCoreApplication::translate("MainWindow", "6", nullptr));
writeSize->setItemText(6, QCoreApplication::translate("MainWindow", "7", nullptr));
writeSize->setItemText(7, QCoreApplication::translate("MainWindow", "8", nullptr));
writeSize->setItemText(8, QCoreApplication::translate("MainWindow", "9", nullptr));
writeSize->setItemText(9, QCoreApplication::translate("MainWindow", "10", nullptr));
label_7->setText(QCoreApplication::translate("MainWindow", "Start address:", nullptr));
label_8->setText(QCoreApplication::translate("MainWindow", "Number of values:", nullptr));
label_3->setText(QCoreApplication::translate("MainWindow", "register1", nullptr));
label_10->setText(QCoreApplication::translate("MainWindow", "register2", nullptr));
label_6->setText(QCoreApplication::translate("MainWindow", "Table:", nullptr));
readButton->setText(QCoreApplication::translate("MainWindow", "Read", nullptr));
writeButton->setText(QCoreApplication::translate("MainWindow", "Write", nullptr));
readWriteButton->setText(QCoreApplication::translate("MainWindow", "Read-Write", nullptr));
} // retranslateUi
};
namespace Ui {
class MainWindow: public Ui_MainWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_MAINWINDOW_H