| 1 | /******************************************************************************** |
| 2 | ** Form generated from reading UI file 'settingsdialog.ui' |
| 3 | ** |
| 4 | ** Created by: Qt User Interface Compiler version 5.15.9 |
| 5 | ** |
| 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! |
| 7 | ********************************************************************************/ |
| 8 | |
| 9 | #ifndef UI_SETTINGSDIALOG_H |
| 10 | #define UI_SETTINGSDIALOG_H |
| 11 | |
| 12 | #include <QtCore/QVariant> |
| 13 | #include <QtWidgets/QApplication> |
| 14 | #include <QtWidgets/QComboBox> |
| 15 | #include <QtWidgets/QDialog> |
| 16 | #include <QtWidgets/QGridLayout> |
| 17 | #include <QtWidgets/QGroupBox> |
| 18 | #include <QtWidgets/QLabel> |
| 19 | #include <QtWidgets/QPushButton> |
| 20 | #include <QtWidgets/QSpacerItem> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | class Ui_SettingsDialog |
| 25 | { |
| 26 | public: |
| 27 | QGridLayout *gridLayout; |
| 28 | QSpacerItem *verticalSpacer; |
| 29 | QPushButton *applyButton; |
| 30 | QGroupBox *groupBox; |
| 31 | QGridLayout *gridLayout_2; |
| 32 | QLabel *label_2; |
| 33 | QComboBox *parityCombo; |
| 34 | QLabel *label_3; |
| 35 | QComboBox *baudCombo; |
| 36 | QLabel *label_4; |
| 37 | QComboBox *dataBitsCombo; |
| 38 | QLabel *label_5; |
| 39 | QComboBox *stopBitsCombo; |
| 40 | |
| 41 | void setupUi(QDialog *SettingsDialog) |
| 42 | { |
| 43 | if (SettingsDialog->objectName().isEmpty()) |
| 44 | SettingsDialog->setObjectName(QString::fromUtf8(str: "SettingsDialog" )); |
| 45 | SettingsDialog->resize(w: 239, h: 256); |
| 46 | gridLayout = new QGridLayout(SettingsDialog); |
| 47 | gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout" )); |
| 48 | verticalSpacer = new QSpacerItem(20, 43, QSizePolicy::Minimum, QSizePolicy::Expanding); |
| 49 | |
| 50 | gridLayout->addItem(item: verticalSpacer, row: 1, column: 1, rowSpan: 1, columnSpan: 1); |
| 51 | |
| 52 | applyButton = new QPushButton(SettingsDialog); |
| 53 | applyButton->setObjectName(QString::fromUtf8(str: "applyButton" )); |
| 54 | |
| 55 | gridLayout->addWidget(applyButton, row: 2, column: 1, rowSpan: 1, columnSpan: 1); |
| 56 | |
| 57 | groupBox = new QGroupBox(SettingsDialog); |
| 58 | groupBox->setObjectName(QString::fromUtf8(str: "groupBox" )); |
| 59 | gridLayout_2 = new QGridLayout(groupBox); |
| 60 | gridLayout_2->setObjectName(QString::fromUtf8(str: "gridLayout_2" )); |
| 61 | label_2 = new QLabel(groupBox); |
| 62 | label_2->setObjectName(QString::fromUtf8(str: "label_2" )); |
| 63 | |
| 64 | gridLayout_2->addWidget(label_2, row: 0, column: 0, rowSpan: 1, columnSpan: 1); |
| 65 | |
| 66 | parityCombo = new QComboBox(groupBox); |
| 67 | parityCombo->addItem(atext: QString()); |
| 68 | parityCombo->addItem(atext: QString()); |
| 69 | parityCombo->addItem(atext: QString()); |
| 70 | parityCombo->addItem(atext: QString()); |
| 71 | parityCombo->addItem(atext: QString()); |
| 72 | parityCombo->setObjectName(QString::fromUtf8(str: "parityCombo" )); |
| 73 | |
| 74 | gridLayout_2->addWidget(parityCombo, row: 0, column: 1, rowSpan: 1, columnSpan: 1); |
| 75 | |
| 76 | label_3 = new QLabel(groupBox); |
| 77 | label_3->setObjectName(QString::fromUtf8(str: "label_3" )); |
| 78 | |
| 79 | gridLayout_2->addWidget(label_3, row: 1, column: 0, rowSpan: 1, columnSpan: 1); |
| 80 | |
| 81 | baudCombo = new QComboBox(groupBox); |
| 82 | baudCombo->addItem(atext: QString()); |
| 83 | baudCombo->addItem(atext: QString()); |
| 84 | baudCombo->addItem(atext: QString()); |
| 85 | baudCombo->addItem(atext: QString()); |
| 86 | baudCombo->addItem(atext: QString()); |
| 87 | baudCombo->addItem(atext: QString()); |
| 88 | baudCombo->addItem(atext: QString()); |
| 89 | baudCombo->addItem(atext: QString()); |
| 90 | baudCombo->setObjectName(QString::fromUtf8(str: "baudCombo" )); |
| 91 | |
| 92 | gridLayout_2->addWidget(baudCombo, row: 1, column: 1, rowSpan: 1, columnSpan: 1); |
| 93 | |
| 94 | label_4 = new QLabel(groupBox); |
| 95 | label_4->setObjectName(QString::fromUtf8(str: "label_4" )); |
| 96 | |
| 97 | gridLayout_2->addWidget(label_4, row: 2, column: 0, rowSpan: 1, columnSpan: 1); |
| 98 | |
| 99 | dataBitsCombo = new QComboBox(groupBox); |
| 100 | dataBitsCombo->addItem(atext: QString()); |
| 101 | dataBitsCombo->addItem(atext: QString()); |
| 102 | dataBitsCombo->addItem(atext: QString()); |
| 103 | dataBitsCombo->addItem(atext: QString()); |
| 104 | dataBitsCombo->setObjectName(QString::fromUtf8(str: "dataBitsCombo" )); |
| 105 | |
| 106 | gridLayout_2->addWidget(dataBitsCombo, row: 2, column: 1, rowSpan: 1, columnSpan: 1); |
| 107 | |
| 108 | label_5 = new QLabel(groupBox); |
| 109 | label_5->setObjectName(QString::fromUtf8(str: "label_5" )); |
| 110 | |
| 111 | gridLayout_2->addWidget(label_5, row: 3, column: 0, rowSpan: 1, columnSpan: 1); |
| 112 | |
| 113 | stopBitsCombo = new QComboBox(groupBox); |
| 114 | stopBitsCombo->addItem(atext: QString()); |
| 115 | stopBitsCombo->addItem(atext: QString()); |
| 116 | stopBitsCombo->addItem(atext: QString()); |
| 117 | stopBitsCombo->setObjectName(QString::fromUtf8(str: "stopBitsCombo" )); |
| 118 | |
| 119 | gridLayout_2->addWidget(stopBitsCombo, row: 3, column: 1, rowSpan: 1, columnSpan: 1); |
| 120 | |
| 121 | |
| 122 | gridLayout->addWidget(groupBox, row: 0, column: 0, rowSpan: 1, columnSpan: 2); |
| 123 | |
| 124 | |
| 125 | retranslateUi(SettingsDialog); |
| 126 | |
| 127 | QMetaObject::connectSlotsByName(o: SettingsDialog); |
| 128 | } // setupUi |
| 129 | |
| 130 | void retranslateUi(QDialog *SettingsDialog) |
| 131 | { |
| 132 | SettingsDialog->setWindowTitle(QCoreApplication::translate(context: "SettingsDialog" , key: "Modbus Settings" , disambiguation: nullptr)); |
| 133 | applyButton->setText(QCoreApplication::translate(context: "SettingsDialog" , key: "Apply" , disambiguation: nullptr)); |
| 134 | groupBox->setTitle(QCoreApplication::translate(context: "SettingsDialog" , key: "Serial Parameters" , disambiguation: nullptr)); |
| 135 | label_2->setText(QCoreApplication::translate(context: "SettingsDialog" , key: "Parity:" , disambiguation: nullptr)); |
| 136 | parityCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "SettingsDialog" , key: "No" , disambiguation: nullptr)); |
| 137 | parityCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "SettingsDialog" , key: "Even" , disambiguation: nullptr)); |
| 138 | parityCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "SettingsDialog" , key: "Odd" , disambiguation: nullptr)); |
| 139 | parityCombo->setItemText(index: 3, text: QCoreApplication::translate(context: "SettingsDialog" , key: "Space" , disambiguation: nullptr)); |
| 140 | parityCombo->setItemText(index: 4, text: QCoreApplication::translate(context: "SettingsDialog" , key: "Mark" , disambiguation: nullptr)); |
| 141 | |
| 142 | label_3->setText(QCoreApplication::translate(context: "SettingsDialog" , key: "Baud Rate:" , disambiguation: nullptr)); |
| 143 | baudCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "SettingsDialog" , key: "1200" , disambiguation: nullptr)); |
| 144 | baudCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "SettingsDialog" , key: "2400" , disambiguation: nullptr)); |
| 145 | baudCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "SettingsDialog" , key: "4800" , disambiguation: nullptr)); |
| 146 | baudCombo->setItemText(index: 3, text: QCoreApplication::translate(context: "SettingsDialog" , key: "9600" , disambiguation: nullptr)); |
| 147 | baudCombo->setItemText(index: 4, text: QCoreApplication::translate(context: "SettingsDialog" , key: "19200" , disambiguation: nullptr)); |
| 148 | baudCombo->setItemText(index: 5, text: QCoreApplication::translate(context: "SettingsDialog" , key: "38400" , disambiguation: nullptr)); |
| 149 | baudCombo->setItemText(index: 6, text: QCoreApplication::translate(context: "SettingsDialog" , key: "57600" , disambiguation: nullptr)); |
| 150 | baudCombo->setItemText(index: 7, text: QCoreApplication::translate(context: "SettingsDialog" , key: "115200" , disambiguation: nullptr)); |
| 151 | |
| 152 | label_4->setText(QCoreApplication::translate(context: "SettingsDialog" , key: "Data Bits:" , disambiguation: nullptr)); |
| 153 | dataBitsCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "SettingsDialog" , key: "5" , disambiguation: nullptr)); |
| 154 | dataBitsCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "SettingsDialog" , key: "6" , disambiguation: nullptr)); |
| 155 | dataBitsCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "SettingsDialog" , key: "7" , disambiguation: nullptr)); |
| 156 | dataBitsCombo->setItemText(index: 3, text: QCoreApplication::translate(context: "SettingsDialog" , key: "8" , disambiguation: nullptr)); |
| 157 | |
| 158 | label_5->setText(QCoreApplication::translate(context: "SettingsDialog" , key: "Stop Bits:" , disambiguation: nullptr)); |
| 159 | stopBitsCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "SettingsDialog" , key: "1" , disambiguation: nullptr)); |
| 160 | stopBitsCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "SettingsDialog" , key: "3" , disambiguation: nullptr)); |
| 161 | stopBitsCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "SettingsDialog" , key: "2" , disambiguation: nullptr)); |
| 162 | |
| 163 | } // retranslateUi |
| 164 | |
| 165 | }; |
| 166 | |
| 167 | namespace Ui { |
| 168 | class SettingsDialog: public Ui_SettingsDialog {}; |
| 169 | } // namespace Ui |
| 170 | |
| 171 | QT_END_NAMESPACE |
| 172 | |
| 173 | #endif // UI_SETTINGSDIALOG_H |
| 174 | |