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#include <QtWidgets/QSpinBox>
22
23QT_BEGIN_NAMESPACE
24
25class Ui_SettingsDialog
26{
27public:
28 QGridLayout *gridLayout;
29 QSpacerItem *verticalSpacer;
30 QSpinBox *timeoutSpinner;
31 QLabel *label;
32 QPushButton *applyButton;
33 QGroupBox *groupBox;
34 QGridLayout *gridLayout_2;
35 QLabel *label_2;
36 QComboBox *parityCombo;
37 QLabel *label_3;
38 QComboBox *baudCombo;
39 QLabel *label_4;
40 QComboBox *dataBitsCombo;
41 QLabel *label_5;
42 QComboBox *stopBitsCombo;
43 QLabel *label_6;
44 QSpinBox *retriesSpinner;
45
46 void setupUi(QDialog *SettingsDialog)
47 {
48 if (SettingsDialog->objectName().isEmpty())
49 SettingsDialog->setObjectName(QString::fromUtf8(str: "SettingsDialog"));
50 SettingsDialog->resize(w: 239, h: 256);
51 gridLayout = new QGridLayout(SettingsDialog);
52 gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout"));
53 verticalSpacer = new QSpacerItem(20, 43, QSizePolicy::Minimum, QSizePolicy::Expanding);
54
55 gridLayout->addItem(item: verticalSpacer, row: 3, column: 1, rowSpan: 1, columnSpan: 1);
56
57 timeoutSpinner = new QSpinBox(SettingsDialog);
58 timeoutSpinner->setObjectName(QString::fromUtf8(str: "timeoutSpinner"));
59 timeoutSpinner->setAccelerated(true);
60 timeoutSpinner->setMinimum(-1);
61 timeoutSpinner->setMaximum(5000);
62 timeoutSpinner->setSingleStep(20);
63 timeoutSpinner->setValue(200);
64
65 gridLayout->addWidget(timeoutSpinner, row: 1, column: 1, rowSpan: 1, columnSpan: 1);
66
67 label = new QLabel(SettingsDialog);
68 label->setObjectName(QString::fromUtf8(str: "label"));
69
70 gridLayout->addWidget(label, row: 1, column: 0, rowSpan: 1, columnSpan: 1);
71
72 applyButton = new QPushButton(SettingsDialog);
73 applyButton->setObjectName(QString::fromUtf8(str: "applyButton"));
74
75 gridLayout->addWidget(applyButton, row: 4, column: 1, rowSpan: 1, columnSpan: 1);
76
77 groupBox = new QGroupBox(SettingsDialog);
78 groupBox->setObjectName(QString::fromUtf8(str: "groupBox"));
79 gridLayout_2 = new QGridLayout(groupBox);
80 gridLayout_2->setObjectName(QString::fromUtf8(str: "gridLayout_2"));
81 label_2 = new QLabel(groupBox);
82 label_2->setObjectName(QString::fromUtf8(str: "label_2"));
83
84 gridLayout_2->addWidget(label_2, row: 0, column: 0, rowSpan: 1, columnSpan: 1);
85
86 parityCombo = new QComboBox(groupBox);
87 parityCombo->addItem(atext: QString());
88 parityCombo->addItem(atext: QString());
89 parityCombo->addItem(atext: QString());
90 parityCombo->addItem(atext: QString());
91 parityCombo->addItem(atext: QString());
92 parityCombo->setObjectName(QString::fromUtf8(str: "parityCombo"));
93
94 gridLayout_2->addWidget(parityCombo, row: 0, column: 1, rowSpan: 1, columnSpan: 1);
95
96 label_3 = new QLabel(groupBox);
97 label_3->setObjectName(QString::fromUtf8(str: "label_3"));
98
99 gridLayout_2->addWidget(label_3, row: 1, column: 0, rowSpan: 1, columnSpan: 1);
100
101 baudCombo = new QComboBox(groupBox);
102 baudCombo->addItem(atext: QString());
103 baudCombo->addItem(atext: QString());
104 baudCombo->addItem(atext: QString());
105 baudCombo->addItem(atext: QString());
106 baudCombo->addItem(atext: QString());
107 baudCombo->addItem(atext: QString());
108 baudCombo->addItem(atext: QString());
109 baudCombo->addItem(atext: QString());
110 baudCombo->setObjectName(QString::fromUtf8(str: "baudCombo"));
111
112 gridLayout_2->addWidget(baudCombo, row: 1, column: 1, rowSpan: 1, columnSpan: 1);
113
114 label_4 = new QLabel(groupBox);
115 label_4->setObjectName(QString::fromUtf8(str: "label_4"));
116
117 gridLayout_2->addWidget(label_4, row: 2, column: 0, rowSpan: 1, columnSpan: 1);
118
119 dataBitsCombo = new QComboBox(groupBox);
120 dataBitsCombo->addItem(atext: QString());
121 dataBitsCombo->addItem(atext: QString());
122 dataBitsCombo->addItem(atext: QString());
123 dataBitsCombo->addItem(atext: QString());
124 dataBitsCombo->setObjectName(QString::fromUtf8(str: "dataBitsCombo"));
125
126 gridLayout_2->addWidget(dataBitsCombo, row: 2, column: 1, rowSpan: 1, columnSpan: 1);
127
128 label_5 = new QLabel(groupBox);
129 label_5->setObjectName(QString::fromUtf8(str: "label_5"));
130
131 gridLayout_2->addWidget(label_5, row: 3, column: 0, rowSpan: 1, columnSpan: 1);
132
133 stopBitsCombo = new QComboBox(groupBox);
134 stopBitsCombo->addItem(atext: QString());
135 stopBitsCombo->addItem(atext: QString());
136 stopBitsCombo->addItem(atext: QString());
137 stopBitsCombo->setObjectName(QString::fromUtf8(str: "stopBitsCombo"));
138
139 gridLayout_2->addWidget(stopBitsCombo, row: 3, column: 1, rowSpan: 1, columnSpan: 1);
140
141
142 gridLayout->addWidget(groupBox, row: 0, column: 0, rowSpan: 1, columnSpan: 2);
143
144 label_6 = new QLabel(SettingsDialog);
145 label_6->setObjectName(QString::fromUtf8(str: "label_6"));
146
147 gridLayout->addWidget(label_6, row: 2, column: 0, rowSpan: 1, columnSpan: 1);
148
149 retriesSpinner = new QSpinBox(SettingsDialog);
150 retriesSpinner->setObjectName(QString::fromUtf8(str: "retriesSpinner"));
151 retriesSpinner->setValue(3);
152
153 gridLayout->addWidget(retriesSpinner, row: 2, column: 1, rowSpan: 1, columnSpan: 1);
154
155
156 retranslateUi(SettingsDialog);
157
158 QMetaObject::connectSlotsByName(o: SettingsDialog);
159 } // setupUi
160
161 void retranslateUi(QDialog *SettingsDialog)
162 {
163 SettingsDialog->setWindowTitle(QCoreApplication::translate(context: "SettingsDialog", key: "Modbus Settings", disambiguation: nullptr));
164 timeoutSpinner->setSuffix(QCoreApplication::translate(context: "SettingsDialog", key: " ms", disambiguation: nullptr));
165 label->setText(QCoreApplication::translate(context: "SettingsDialog", key: "Response Timeout:", disambiguation: nullptr));
166 applyButton->setText(QCoreApplication::translate(context: "SettingsDialog", key: "Apply", disambiguation: nullptr));
167 groupBox->setTitle(QCoreApplication::translate(context: "SettingsDialog", key: "Serial Parameters", disambiguation: nullptr));
168 label_2->setText(QCoreApplication::translate(context: "SettingsDialog", key: "Parity:", disambiguation: nullptr));
169 parityCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "SettingsDialog", key: "No", disambiguation: nullptr));
170 parityCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "SettingsDialog", key: "Even", disambiguation: nullptr));
171 parityCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "SettingsDialog", key: "Odd", disambiguation: nullptr));
172 parityCombo->setItemText(index: 3, text: QCoreApplication::translate(context: "SettingsDialog", key: "Space", disambiguation: nullptr));
173 parityCombo->setItemText(index: 4, text: QCoreApplication::translate(context: "SettingsDialog", key: "Mark", disambiguation: nullptr));
174
175 label_3->setText(QCoreApplication::translate(context: "SettingsDialog", key: "Baud Rate:", disambiguation: nullptr));
176 baudCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "SettingsDialog", key: "1200", disambiguation: nullptr));
177 baudCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "SettingsDialog", key: "2400", disambiguation: nullptr));
178 baudCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "SettingsDialog", key: "4800", disambiguation: nullptr));
179 baudCombo->setItemText(index: 3, text: QCoreApplication::translate(context: "SettingsDialog", key: "9600", disambiguation: nullptr));
180 baudCombo->setItemText(index: 4, text: QCoreApplication::translate(context: "SettingsDialog", key: "19200", disambiguation: nullptr));
181 baudCombo->setItemText(index: 5, text: QCoreApplication::translate(context: "SettingsDialog", key: "38400", disambiguation: nullptr));
182 baudCombo->setItemText(index: 6, text: QCoreApplication::translate(context: "SettingsDialog", key: "57600", disambiguation: nullptr));
183 baudCombo->setItemText(index: 7, text: QCoreApplication::translate(context: "SettingsDialog", key: "115200", disambiguation: nullptr));
184
185 label_4->setText(QCoreApplication::translate(context: "SettingsDialog", key: "Data Bits:", disambiguation: nullptr));
186 dataBitsCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "SettingsDialog", key: "5", disambiguation: nullptr));
187 dataBitsCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "SettingsDialog", key: "6", disambiguation: nullptr));
188 dataBitsCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "SettingsDialog", key: "7", disambiguation: nullptr));
189 dataBitsCombo->setItemText(index: 3, text: QCoreApplication::translate(context: "SettingsDialog", key: "8", disambiguation: nullptr));
190
191 label_5->setText(QCoreApplication::translate(context: "SettingsDialog", key: "Stop Bits:", disambiguation: nullptr));
192 stopBitsCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "SettingsDialog", key: "1", disambiguation: nullptr));
193 stopBitsCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "SettingsDialog", key: "3", disambiguation: nullptr));
194 stopBitsCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "SettingsDialog", key: "2", disambiguation: nullptr));
195
196 label_6->setText(QCoreApplication::translate(context: "SettingsDialog", key: "Number of retries:", disambiguation: nullptr));
197 } // retranslateUi
198
199};
200
201namespace Ui {
202 class SettingsDialog: public Ui_SettingsDialog {};
203} // namespace Ui
204
205QT_END_NAMESPACE
206
207#endif // UI_SETTINGSDIALOG_H
208

source code of qtserialbus/examples/serialbus/modbus/master/.uic/ui_settingsdialog.h