1/********************************************************************************
2** Form generated from reading UI file 'interface.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_INTERFACE_H
10#define UI_INTERFACE_H
11
12#include <QtCore/QVariant>
13#include <QtWidgets/QAction>
14#include <QtWidgets/QApplication>
15#include <QtWidgets/QComboBox>
16#include <QtWidgets/QFrame>
17#include <QtWidgets/QGridLayout>
18#include <QtWidgets/QGroupBox>
19#include <QtWidgets/QHBoxLayout>
20#include <QtWidgets/QLabel>
21#include <QtWidgets/QLineEdit>
22#include <QtWidgets/QMainWindow>
23#include <QtWidgets/QMenu>
24#include <QtWidgets/QMenuBar>
25#include <QtWidgets/QPushButton>
26#include <QtWidgets/QRadioButton>
27#include <QtWidgets/QSpacerItem>
28#include <QtWidgets/QSpinBox>
29#include <QtWidgets/QStackedWidget>
30#include <QtWidgets/QVBoxLayout>
31#include <QtWidgets/QWidget>
32#include "plaintextedit.h"
33
34QT_BEGIN_NAMESPACE
35
36class Ui_MainWindow
37{
38public:
39 QAction *actionExit;
40 QAction *actionClear;
41 QAction *actionCopy;
42 QAction *actionSelect_All;
43 QWidget *centralwidget;
44 QGridLayout *gridLayout_4;
45 QGroupBox *settingsBox;
46 QGridLayout *gridLayout_2;
47 QSpacerItem *verticalSpacer;
48 QSpacerItem *horizontalSpacer_4;
49 QPushButton *connectButton;
50 QWidget *settingsWidget;
51 QHBoxLayout *horizontalLayout;
52 QGridLayout *gridLayout;
53 QSpacerItem *horizontalSpacer;
54 QLabel *timeoutLabel;
55 QLabel *tcpPortLabel;
56 QSpacerItem *horizontalSpacer_3;
57 QLineEdit *tcpAddressEdit;
58 QFrame *line;
59 QLabel *tcpAddressLabel;
60 QComboBox *serialPortCombo;
61 QSpacerItem *horizontalSpacer_2;
62 QLineEdit *tcpPortEdit;
63 QLabel *serialPortLabel;
64 QSpinBox *timeoutSpin;
65 QRadioButton *serialRadio;
66 QLabel *retriesLabel;
67 QRadioButton *tcpRadio;
68 QSpinBox *retriesSpin;
69 QLabel *parityLabel;
70 QLabel *dataBitsLabel;
71 QLabel *stopBitsLabel;
72 QLabel *baudRateLabel;
73 QComboBox *parityCombo;
74 QComboBox *dataBitsCombo;
75 QComboBox *stopBitsCombo;
76 QComboBox *baudRateCombo;
77 QPushButton *disconnectButton;
78 QStackedWidget *stackedWidget;
79 QWidget *page;
80 QGridLayout *gridLayout_8;
81 QGroupBox *groupBox;
82 QGridLayout *gridLayout_7;
83 QLabel *addressLabel;
84 QLabel *fcSerialLabel;
85 QComboBox *fcSerialDrop;
86 QLabel *pduSerialLabel;
87 QLineEdit *pduSerialLine;
88 QSpacerItem *verticalSpacer_7;
89 QSpinBox *addressSpin;
90 QWidget *page_2;
91 QGridLayout *gridLayout_9;
92 QGroupBox *groupBox_2;
93 QGridLayout *gridLayout_6;
94 QGridLayout *gridLayout_3;
95 QVBoxLayout *verticalLayout_2;
96 QHBoxLayout *horizontalLayout_7;
97 QLabel *tiLabel;
98 QFrame *tiLine;
99 QHBoxLayout *horizontalLayout_4;
100 QLabel *ti1Label;
101 QSpinBox *ti1Spin;
102 QLabel *ti2Label;
103 QSpinBox *ti2Spin;
104 QSpacerItem *horizontalSpacer_6;
105 QVBoxLayout *verticalLayout;
106 QHBoxLayout *horizontalLayout_6;
107 QLabel *piLabel;
108 QFrame *piLine;
109 QHBoxLayout *horizontalLayout_5;
110 QLabel *pi1Label;
111 QSpinBox *pi1Spin;
112 QLabel *pi2Label;
113 QSpinBox *pi2Spin;
114 QSpacerItem *verticalSpacer_3;
115 QSpacerItem *verticalSpacer_4;
116 QVBoxLayout *verticalLayout_3;
117 QHBoxLayout *horizontalLayout_8;
118 QLabel *lLabel;
119 QFrame *lLine;
120 QHBoxLayout *horizontalLayout_3;
121 QLabel *l1Label;
122 QSpinBox *l1Spin;
123 QLabel *l2Label;
124 QSpinBox *l2Spin;
125 QVBoxLayout *verticalLayout_4;
126 QHBoxLayout *horizontalLayout_9;
127 QLabel *uiLabel;
128 QFrame *line_3;
129 QHBoxLayout *horizontalLayout_10;
130 QLabel *ui1Label;
131 QSpinBox *ui1Spin;
132 QSpacerItem *verticalSpacer_5;
133 QFrame *line_4;
134 QSpacerItem *verticalSpacer_6;
135 QGridLayout *gridLayout_5;
136 QLabel *fcTcpLabel;
137 QComboBox *fcTcpDrop;
138 QLabel *pduTcpLabel;
139 QLineEdit *pduTcpLine;
140 QSpacerItem *verticalSpacer_2;
141 QHBoxLayout *horizontalLayout_2;
142 QSpacerItem *horizontalSpacer_5;
143 QPushButton *sendButton;
144 QFrame *line_2;
145 PlainTextEdit *logTextEdit;
146 QMenuBar *menubar;
147 QMenu *menuFile;
148 QMenu *menuEdit;
149
150 void setupUi(QMainWindow *MainWindow)
151 {
152 if (MainWindow->objectName().isEmpty())
153 MainWindow->setObjectName(QString::fromUtf8(str: "MainWindow"));
154 MainWindow->resize(w: 667, h: 465);
155 MainWindow->setUnifiedTitleAndToolBarOnMac(false);
156 actionExit = new QAction(MainWindow);
157 actionExit->setObjectName(QString::fromUtf8(str: "actionExit"));
158 actionClear = new QAction(MainWindow);
159 actionClear->setObjectName(QString::fromUtf8(str: "actionClear"));
160 actionCopy = new QAction(MainWindow);
161 actionCopy->setObjectName(QString::fromUtf8(str: "actionCopy"));
162 actionSelect_All = new QAction(MainWindow);
163 actionSelect_All->setObjectName(QString::fromUtf8(str: "actionSelect_All"));
164 centralwidget = new QWidget(MainWindow);
165 centralwidget->setObjectName(QString::fromUtf8(str: "centralwidget"));
166 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
167 sizePolicy.setHorizontalStretch(0);
168 sizePolicy.setVerticalStretch(0);
169 sizePolicy.setHeightForWidth(centralwidget->sizePolicy().hasHeightForWidth());
170 centralwidget->setSizePolicy(sizePolicy);
171 gridLayout_4 = new QGridLayout(centralwidget);
172 gridLayout_4->setObjectName(QString::fromUtf8(str: "gridLayout_4"));
173 settingsBox = new QGroupBox(centralwidget);
174 settingsBox->setObjectName(QString::fromUtf8(str: "settingsBox"));
175 gridLayout_2 = new QGridLayout(settingsBox);
176 gridLayout_2->setObjectName(QString::fromUtf8(str: "gridLayout_2"));
177 verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
178
179 gridLayout_2->addItem(item: verticalSpacer, row: 1, column: 0, rowSpan: 1, columnSpan: 1);
180
181 horizontalSpacer_4 = new QSpacerItem(20, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
182
183 gridLayout_2->addItem(item: horizontalSpacer_4, row: 2, column: 0, rowSpan: 1, columnSpan: 1);
184
185 connectButton = new QPushButton(settingsBox);
186 connectButton->setObjectName(QString::fromUtf8(str: "connectButton"));
187 connectButton->setCheckable(false);
188 connectButton->setChecked(false);
189
190 gridLayout_2->addWidget(connectButton, row: 2, column: 1, rowSpan: 1, columnSpan: 1);
191
192 settingsWidget = new QWidget(settingsBox);
193 settingsWidget->setObjectName(QString::fromUtf8(str: "settingsWidget"));
194 horizontalLayout = new QHBoxLayout(settingsWidget);
195 horizontalLayout->setObjectName(QString::fromUtf8(str: "horizontalLayout"));
196 horizontalLayout->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0);
197 gridLayout = new QGridLayout();
198 gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout"));
199 horizontalSpacer = new QSpacerItem(13, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
200
201 gridLayout->addItem(item: horizontalSpacer, row: 7, column: 0, rowSpan: 1, columnSpan: 1);
202
203 timeoutLabel = new QLabel(settingsWidget);
204 timeoutLabel->setObjectName(QString::fromUtf8(str: "timeoutLabel"));
205 sizePolicy.setHeightForWidth(timeoutLabel->sizePolicy().hasHeightForWidth());
206 timeoutLabel->setSizePolicy(sizePolicy);
207 timeoutLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
208
209 gridLayout->addWidget(timeoutLabel, row: 11, column: 0, rowSpan: 1, columnSpan: 2);
210
211 tcpPortLabel = new QLabel(settingsWidget);
212 tcpPortLabel->setObjectName(QString::fromUtf8(str: "tcpPortLabel"));
213 tcpPortLabel->setEnabled(false);
214 sizePolicy.setHeightForWidth(tcpPortLabel->sizePolicy().hasHeightForWidth());
215 tcpPortLabel->setSizePolicy(sizePolicy);
216 tcpPortLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
217
218 gridLayout->addWidget(tcpPortLabel, row: 7, column: 1, rowSpan: 1, columnSpan: 1);
219
220 horizontalSpacer_3 = new QSpacerItem(13, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
221
222 gridLayout->addItem(item: horizontalSpacer_3, row: 1, column: 0, rowSpan: 1, columnSpan: 1);
223
224 tcpAddressEdit = new QLineEdit(settingsWidget);
225 tcpAddressEdit->setObjectName(QString::fromUtf8(str: "tcpAddressEdit"));
226 tcpAddressEdit->setEnabled(false);
227 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
228 sizePolicy1.setHorizontalStretch(0);
229 sizePolicy1.setVerticalStretch(0);
230 sizePolicy1.setHeightForWidth(tcpAddressEdit->sizePolicy().hasHeightForWidth());
231 tcpAddressEdit->setSizePolicy(sizePolicy1);
232 tcpAddressEdit->setMinimumSize(QSize(0, 0));
233
234 gridLayout->addWidget(tcpAddressEdit, row: 8, column: 2, rowSpan: 1, columnSpan: 1);
235
236 line = new QFrame(settingsWidget);
237 line->setObjectName(QString::fromUtf8(str: "line"));
238 line->setMinimumSize(QSize(0, 0));
239 line->setFrameShape(QFrame::HLine);
240 line->setFrameShadow(QFrame::Sunken);
241
242 gridLayout->addWidget(line, row: 9, column: 0, rowSpan: 1, columnSpan: 3);
243
244 tcpAddressLabel = new QLabel(settingsWidget);
245 tcpAddressLabel->setObjectName(QString::fromUtf8(str: "tcpAddressLabel"));
246 tcpAddressLabel->setEnabled(false);
247 sizePolicy.setHeightForWidth(tcpAddressLabel->sizePolicy().hasHeightForWidth());
248 tcpAddressLabel->setSizePolicy(sizePolicy);
249 tcpAddressLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
250
251 gridLayout->addWidget(tcpAddressLabel, row: 8, column: 1, rowSpan: 1, columnSpan: 1);
252
253 serialPortCombo = new QComboBox(settingsWidget);
254 serialPortCombo->setObjectName(QString::fromUtf8(str: "serialPortCombo"));
255
256 gridLayout->addWidget(serialPortCombo, row: 1, column: 2, rowSpan: 1, columnSpan: 1);
257
258 horizontalSpacer_2 = new QSpacerItem(13, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
259
260 gridLayout->addItem(item: horizontalSpacer_2, row: 8, column: 0, rowSpan: 1, columnSpan: 1);
261
262 tcpPortEdit = new QLineEdit(settingsWidget);
263 tcpPortEdit->setObjectName(QString::fromUtf8(str: "tcpPortEdit"));
264 tcpPortEdit->setEnabled(false);
265 sizePolicy1.setHeightForWidth(tcpPortEdit->sizePolicy().hasHeightForWidth());
266 tcpPortEdit->setSizePolicy(sizePolicy1);
267 tcpPortEdit->setMinimumSize(QSize(0, 0));
268
269 gridLayout->addWidget(tcpPortEdit, row: 7, column: 2, rowSpan: 1, columnSpan: 1);
270
271 serialPortLabel = new QLabel(settingsWidget);
272 serialPortLabel->setObjectName(QString::fromUtf8(str: "serialPortLabel"));
273 sizePolicy.setHeightForWidth(serialPortLabel->sizePolicy().hasHeightForWidth());
274 serialPortLabel->setSizePolicy(sizePolicy);
275 serialPortLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
276
277 gridLayout->addWidget(serialPortLabel, row: 1, column: 1, rowSpan: 1, columnSpan: 1);
278
279 timeoutSpin = new QSpinBox(settingsWidget);
280 timeoutSpin->setObjectName(QString::fromUtf8(str: "timeoutSpin"));
281 sizePolicy1.setHeightForWidth(timeoutSpin->sizePolicy().hasHeightForWidth());
282 timeoutSpin->setSizePolicy(sizePolicy1);
283 timeoutSpin->setMinimumSize(QSize(0, 0));
284 timeoutSpin->setMinimum(50);
285 timeoutSpin->setMaximum(100000);
286 timeoutSpin->setValue(1000);
287
288 gridLayout->addWidget(timeoutSpin, row: 11, column: 2, rowSpan: 1, columnSpan: 1);
289
290 serialRadio = new QRadioButton(settingsWidget);
291 serialRadio->setObjectName(QString::fromUtf8(str: "serialRadio"));
292 QSizePolicy sizePolicy2(QSizePolicy::Maximum, QSizePolicy::Fixed);
293 sizePolicy2.setHorizontalStretch(0);
294 sizePolicy2.setVerticalStretch(0);
295 sizePolicy2.setHeightForWidth(serialRadio->sizePolicy().hasHeightForWidth());
296 serialRadio->setSizePolicy(sizePolicy2);
297 serialRadio->setChecked(true);
298
299 gridLayout->addWidget(serialRadio, row: 0, column: 0, rowSpan: 1, columnSpan: 2);
300
301 retriesLabel = new QLabel(settingsWidget);
302 retriesLabel->setObjectName(QString::fromUtf8(str: "retriesLabel"));
303 retriesLabel->setEnabled(true);
304 sizePolicy.setHeightForWidth(retriesLabel->sizePolicy().hasHeightForWidth());
305 retriesLabel->setSizePolicy(sizePolicy);
306 retriesLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
307
308 gridLayout->addWidget(retriesLabel, row: 10, column: 0, rowSpan: 1, columnSpan: 2);
309
310 tcpRadio = new QRadioButton(settingsWidget);
311 tcpRadio->setObjectName(QString::fromUtf8(str: "tcpRadio"));
312 sizePolicy2.setHeightForWidth(tcpRadio->sizePolicy().hasHeightForWidth());
313 tcpRadio->setSizePolicy(sizePolicy2);
314
315 gridLayout->addWidget(tcpRadio, row: 6, column: 0, rowSpan: 1, columnSpan: 2);
316
317 retriesSpin = new QSpinBox(settingsWidget);
318 retriesSpin->setObjectName(QString::fromUtf8(str: "retriesSpin"));
319 retriesSpin->setEnabled(true);
320 sizePolicy1.setHeightForWidth(retriesSpin->sizePolicy().hasHeightForWidth());
321 retriesSpin->setSizePolicy(sizePolicy1);
322 retriesSpin->setMinimumSize(QSize(0, 0));
323 retriesSpin->setValue(3);
324
325 gridLayout->addWidget(retriesSpin, row: 10, column: 2, rowSpan: 1, columnSpan: 1);
326
327 parityLabel = new QLabel(settingsWidget);
328 parityLabel->setObjectName(QString::fromUtf8(str: "parityLabel"));
329
330 gridLayout->addWidget(parityLabel, row: 2, column: 1, rowSpan: 1, columnSpan: 1);
331
332 dataBitsLabel = new QLabel(settingsWidget);
333 dataBitsLabel->setObjectName(QString::fromUtf8(str: "dataBitsLabel"));
334
335 gridLayout->addWidget(dataBitsLabel, row: 3, column: 1, rowSpan: 1, columnSpan: 1);
336
337 stopBitsLabel = new QLabel(settingsWidget);
338 stopBitsLabel->setObjectName(QString::fromUtf8(str: "stopBitsLabel"));
339
340 gridLayout->addWidget(stopBitsLabel, row: 4, column: 1, rowSpan: 1, columnSpan: 1);
341
342 baudRateLabel = new QLabel(settingsWidget);
343 baudRateLabel->setObjectName(QString::fromUtf8(str: "baudRateLabel"));
344
345 gridLayout->addWidget(baudRateLabel, row: 5, column: 1, rowSpan: 1, columnSpan: 1);
346
347 parityCombo = new QComboBox(settingsWidget);
348 parityCombo->addItem(atext: QString());
349 parityCombo->addItem(atext: QString());
350 parityCombo->addItem(atext: QString());
351 parityCombo->addItem(atext: QString());
352 parityCombo->addItem(atext: QString());
353 parityCombo->setObjectName(QString::fromUtf8(str: "parityCombo"));
354
355 gridLayout->addWidget(parityCombo, row: 2, column: 2, rowSpan: 1, columnSpan: 1);
356
357 dataBitsCombo = new QComboBox(settingsWidget);
358 dataBitsCombo->addItem(atext: QString());
359 dataBitsCombo->addItem(atext: QString());
360 dataBitsCombo->addItem(atext: QString());
361 dataBitsCombo->addItem(atext: QString());
362 dataBitsCombo->setObjectName(QString::fromUtf8(str: "dataBitsCombo"));
363
364 gridLayout->addWidget(dataBitsCombo, row: 3, column: 2, rowSpan: 1, columnSpan: 1);
365
366 stopBitsCombo = new QComboBox(settingsWidget);
367 stopBitsCombo->addItem(atext: QString());
368 stopBitsCombo->addItem(atext: QString());
369 stopBitsCombo->addItem(atext: QString());
370 stopBitsCombo->setObjectName(QString::fromUtf8(str: "stopBitsCombo"));
371
372 gridLayout->addWidget(stopBitsCombo, row: 4, column: 2, rowSpan: 1, columnSpan: 1);
373
374 baudRateCombo = new QComboBox(settingsWidget);
375 baudRateCombo->addItem(atext: QString());
376 baudRateCombo->addItem(atext: QString());
377 baudRateCombo->addItem(atext: QString());
378 baudRateCombo->addItem(atext: QString());
379 baudRateCombo->addItem(atext: QString());
380 baudRateCombo->addItem(atext: QString());
381 baudRateCombo->addItem(atext: QString());
382 baudRateCombo->addItem(atext: QString());
383 baudRateCombo->setObjectName(QString::fromUtf8(str: "baudRateCombo"));
384
385 gridLayout->addWidget(baudRateCombo, row: 5, column: 2, rowSpan: 1, columnSpan: 1);
386
387
388 horizontalLayout->addLayout(layout: gridLayout);
389
390
391 gridLayout_2->addWidget(settingsWidget, row: 0, column: 0, rowSpan: 1, columnSpan: 3);
392
393 disconnectButton = new QPushButton(settingsBox);
394 disconnectButton->setObjectName(QString::fromUtf8(str: "disconnectButton"));
395 disconnectButton->setEnabled(false);
396
397 gridLayout_2->addWidget(disconnectButton, row: 2, column: 2, rowSpan: 1, columnSpan: 1);
398
399
400 gridLayout_4->addWidget(settingsBox, row: 0, column: 0, rowSpan: 2, columnSpan: 1);
401
402 stackedWidget = new QStackedWidget(centralwidget);
403 stackedWidget->setObjectName(QString::fromUtf8(str: "stackedWidget"));
404 page = new QWidget();
405 page->setObjectName(QString::fromUtf8(str: "page"));
406 gridLayout_8 = new QGridLayout(page);
407 gridLayout_8->setObjectName(QString::fromUtf8(str: "gridLayout_8"));
408 gridLayout_8->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0);
409 groupBox = new QGroupBox(page);
410 groupBox->setObjectName(QString::fromUtf8(str: "groupBox"));
411 gridLayout_7 = new QGridLayout(groupBox);
412 gridLayout_7->setObjectName(QString::fromUtf8(str: "gridLayout_7"));
413 addressLabel = new QLabel(groupBox);
414 addressLabel->setObjectName(QString::fromUtf8(str: "addressLabel"));
415 sizePolicy.setHeightForWidth(addressLabel->sizePolicy().hasHeightForWidth());
416 addressLabel->setSizePolicy(sizePolicy);
417 addressLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
418
419 gridLayout_7->addWidget(addressLabel, row: 0, column: 0, rowSpan: 1, columnSpan: 1);
420
421 fcSerialLabel = new QLabel(groupBox);
422 fcSerialLabel->setObjectName(QString::fromUtf8(str: "fcSerialLabel"));
423 QSizePolicy sizePolicy3(QSizePolicy::Maximum, QSizePolicy::Preferred);
424 sizePolicy3.setHorizontalStretch(0);
425 sizePolicy3.setVerticalStretch(0);
426 sizePolicy3.setHeightForWidth(fcSerialLabel->sizePolicy().hasHeightForWidth());
427 fcSerialLabel->setSizePolicy(sizePolicy3);
428
429 gridLayout_7->addWidget(fcSerialLabel, row: 1, column: 0, rowSpan: 1, columnSpan: 1);
430
431 fcSerialDrop = new QComboBox(groupBox);
432 fcSerialDrop->addItem(atext: QString());
433 fcSerialDrop->addItem(atext: QString());
434 fcSerialDrop->addItem(atext: QString());
435 fcSerialDrop->addItem(atext: QString());
436 fcSerialDrop->addItem(atext: QString());
437 fcSerialDrop->addItem(atext: QString());
438 fcSerialDrop->addItem(atext: QString());
439 fcSerialDrop->addItem(atext: QString());
440 fcSerialDrop->addItem(atext: QString());
441 fcSerialDrop->addItem(atext: QString());
442 fcSerialDrop->addItem(atext: QString());
443 fcSerialDrop->addItem(atext: QString());
444 fcSerialDrop->addItem(atext: QString());
445 fcSerialDrop->addItem(atext: QString());
446 fcSerialDrop->addItem(atext: QString());
447 fcSerialDrop->addItem(atext: QString());
448 fcSerialDrop->addItem(atext: QString());
449 fcSerialDrop->addItem(atext: QString());
450 fcSerialDrop->addItem(atext: QString());
451 fcSerialDrop->addItem(atext: QString());
452 fcSerialDrop->setObjectName(QString::fromUtf8(str: "fcSerialDrop"));
453 sizePolicy1.setHeightForWidth(fcSerialDrop->sizePolicy().hasHeightForWidth());
454 fcSerialDrop->setSizePolicy(sizePolicy1);
455
456 gridLayout_7->addWidget(fcSerialDrop, row: 1, column: 1, rowSpan: 1, columnSpan: 2);
457
458 pduSerialLabel = new QLabel(groupBox);
459 pduSerialLabel->setObjectName(QString::fromUtf8(str: "pduSerialLabel"));
460 sizePolicy3.setHeightForWidth(pduSerialLabel->sizePolicy().hasHeightForWidth());
461 pduSerialLabel->setSizePolicy(sizePolicy3);
462
463 gridLayout_7->addWidget(pduSerialLabel, row: 2, column: 0, rowSpan: 1, columnSpan: 1);
464
465 pduSerialLine = new QLineEdit(groupBox);
466 pduSerialLine->setObjectName(QString::fromUtf8(str: "pduSerialLine"));
467
468 gridLayout_7->addWidget(pduSerialLine, row: 2, column: 1, rowSpan: 1, columnSpan: 2);
469
470 verticalSpacer_7 = new QSpacerItem(20, 163, QSizePolicy::Minimum, QSizePolicy::Expanding);
471
472 gridLayout_7->addItem(item: verticalSpacer_7, row: 3, column: 1, rowSpan: 1, columnSpan: 1);
473
474 addressSpin = new QSpinBox(groupBox);
475 addressSpin->setObjectName(QString::fromUtf8(str: "addressSpin"));
476 sizePolicy1.setHeightForWidth(addressSpin->sizePolicy().hasHeightForWidth());
477 addressSpin->setSizePolicy(sizePolicy1);
478 addressSpin->setMinimumSize(QSize(0, 0));
479 addressSpin->setMaximum(255);
480 addressSpin->setValue(1);
481
482 gridLayout_7->addWidget(addressSpin, row: 0, column: 1, rowSpan: 1, columnSpan: 2);
483
484
485 gridLayout_8->addWidget(groupBox, row: 0, column: 0, rowSpan: 1, columnSpan: 1);
486
487 stackedWidget->addWidget(w: page);
488 page_2 = new QWidget();
489 page_2->setObjectName(QString::fromUtf8(str: "page_2"));
490 gridLayout_9 = new QGridLayout(page_2);
491 gridLayout_9->setObjectName(QString::fromUtf8(str: "gridLayout_9"));
492 gridLayout_9->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0);
493 groupBox_2 = new QGroupBox(page_2);
494 groupBox_2->setObjectName(QString::fromUtf8(str: "groupBox_2"));
495 gridLayout_6 = new QGridLayout(groupBox_2);
496 gridLayout_6->setObjectName(QString::fromUtf8(str: "gridLayout_6"));
497 gridLayout_3 = new QGridLayout();
498 gridLayout_3->setObjectName(QString::fromUtf8(str: "gridLayout_3"));
499 verticalLayout_2 = new QVBoxLayout();
500 verticalLayout_2->setObjectName(QString::fromUtf8(str: "verticalLayout_2"));
501 horizontalLayout_7 = new QHBoxLayout();
502 horizontalLayout_7->setObjectName(QString::fromUtf8(str: "horizontalLayout_7"));
503 tiLabel = new QLabel(groupBox_2);
504 tiLabel->setObjectName(QString::fromUtf8(str: "tiLabel"));
505 sizePolicy3.setHeightForWidth(tiLabel->sizePolicy().hasHeightForWidth());
506 tiLabel->setSizePolicy(sizePolicy3);
507
508 horizontalLayout_7->addWidget(tiLabel);
509
510 tiLine = new QFrame(groupBox_2);
511 tiLine->setObjectName(QString::fromUtf8(str: "tiLine"));
512 tiLine->setFrameShape(QFrame::HLine);
513 tiLine->setFrameShadow(QFrame::Sunken);
514
515 horizontalLayout_7->addWidget(tiLine);
516
517
518 verticalLayout_2->addLayout(layout: horizontalLayout_7);
519
520 horizontalLayout_4 = new QHBoxLayout();
521 horizontalLayout_4->setObjectName(QString::fromUtf8(str: "horizontalLayout_4"));
522 ti1Label = new QLabel(groupBox_2);
523 ti1Label->setObjectName(QString::fromUtf8(str: "ti1Label"));
524 sizePolicy3.setHeightForWidth(ti1Label->sizePolicy().hasHeightForWidth());
525 ti1Label->setSizePolicy(sizePolicy3);
526
527 horizontalLayout_4->addWidget(ti1Label);
528
529 ti1Spin = new QSpinBox(groupBox_2);
530 ti1Spin->setObjectName(QString::fromUtf8(str: "ti1Spin"));
531 ti1Spin->setMaximum(255);
532
533 horizontalLayout_4->addWidget(ti1Spin);
534
535 ti2Label = new QLabel(groupBox_2);
536 ti2Label->setObjectName(QString::fromUtf8(str: "ti2Label"));
537 sizePolicy3.setHeightForWidth(ti2Label->sizePolicy().hasHeightForWidth());
538 ti2Label->setSizePolicy(sizePolicy3);
539
540 horizontalLayout_4->addWidget(ti2Label);
541
542 ti2Spin = new QSpinBox(groupBox_2);
543 ti2Spin->setObjectName(QString::fromUtf8(str: "ti2Spin"));
544 ti2Spin->setMaximum(255);
545
546 horizontalLayout_4->addWidget(ti2Spin);
547
548
549 verticalLayout_2->addLayout(layout: horizontalLayout_4);
550
551
552 gridLayout_3->addLayout(verticalLayout_2, row: 0, column: 0, rowSpan: 1, columnSpan: 1);
553
554 horizontalSpacer_6 = new QSpacerItem(35, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
555
556 gridLayout_3->addItem(item: horizontalSpacer_6, row: 0, column: 1, rowSpan: 1, columnSpan: 1);
557
558 verticalLayout = new QVBoxLayout();
559 verticalLayout->setObjectName(QString::fromUtf8(str: "verticalLayout"));
560 horizontalLayout_6 = new QHBoxLayout();
561 horizontalLayout_6->setObjectName(QString::fromUtf8(str: "horizontalLayout_6"));
562 piLabel = new QLabel(groupBox_2);
563 piLabel->setObjectName(QString::fromUtf8(str: "piLabel"));
564 sizePolicy3.setHeightForWidth(piLabel->sizePolicy().hasHeightForWidth());
565 piLabel->setSizePolicy(sizePolicy3);
566
567 horizontalLayout_6->addWidget(piLabel);
568
569 piLine = new QFrame(groupBox_2);
570 piLine->setObjectName(QString::fromUtf8(str: "piLine"));
571 piLine->setFrameShape(QFrame::HLine);
572 piLine->setFrameShadow(QFrame::Sunken);
573
574 horizontalLayout_6->addWidget(piLine);
575
576
577 verticalLayout->addLayout(layout: horizontalLayout_6);
578
579 horizontalLayout_5 = new QHBoxLayout();
580 horizontalLayout_5->setObjectName(QString::fromUtf8(str: "horizontalLayout_5"));
581 pi1Label = new QLabel(groupBox_2);
582 pi1Label->setObjectName(QString::fromUtf8(str: "pi1Label"));
583 sizePolicy3.setHeightForWidth(pi1Label->sizePolicy().hasHeightForWidth());
584 pi1Label->setSizePolicy(sizePolicy3);
585
586 horizontalLayout_5->addWidget(pi1Label);
587
588 pi1Spin = new QSpinBox(groupBox_2);
589 pi1Spin->setObjectName(QString::fromUtf8(str: "pi1Spin"));
590 pi1Spin->setMaximum(255);
591
592 horizontalLayout_5->addWidget(pi1Spin);
593
594 pi2Label = new QLabel(groupBox_2);
595 pi2Label->setObjectName(QString::fromUtf8(str: "pi2Label"));
596 sizePolicy3.setHeightForWidth(pi2Label->sizePolicy().hasHeightForWidth());
597 pi2Label->setSizePolicy(sizePolicy3);
598
599 horizontalLayout_5->addWidget(pi2Label);
600
601 pi2Spin = new QSpinBox(groupBox_2);
602 pi2Spin->setObjectName(QString::fromUtf8(str: "pi2Spin"));
603 pi2Spin->setMaximum(255);
604
605 horizontalLayout_5->addWidget(pi2Spin);
606
607
608 verticalLayout->addLayout(layout: horizontalLayout_5);
609
610
611 gridLayout_3->addLayout(verticalLayout, row: 0, column: 2, rowSpan: 1, columnSpan: 1);
612
613 verticalSpacer_3 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
614
615 gridLayout_3->addItem(item: verticalSpacer_3, row: 1, column: 0, rowSpan: 1, columnSpan: 1);
616
617 verticalSpacer_4 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
618
619 gridLayout_3->addItem(item: verticalSpacer_4, row: 1, column: 2, rowSpan: 1, columnSpan: 1);
620
621 verticalLayout_3 = new QVBoxLayout();
622 verticalLayout_3->setObjectName(QString::fromUtf8(str: "verticalLayout_3"));
623 horizontalLayout_8 = new QHBoxLayout();
624 horizontalLayout_8->setObjectName(QString::fromUtf8(str: "horizontalLayout_8"));
625 lLabel = new QLabel(groupBox_2);
626 lLabel->setObjectName(QString::fromUtf8(str: "lLabel"));
627 sizePolicy3.setHeightForWidth(lLabel->sizePolicy().hasHeightForWidth());
628 lLabel->setSizePolicy(sizePolicy3);
629
630 horizontalLayout_8->addWidget(lLabel);
631
632 lLine = new QFrame(groupBox_2);
633 lLine->setObjectName(QString::fromUtf8(str: "lLine"));
634 lLine->setFrameShape(QFrame::HLine);
635 lLine->setFrameShadow(QFrame::Sunken);
636
637 horizontalLayout_8->addWidget(lLine);
638
639
640 verticalLayout_3->addLayout(layout: horizontalLayout_8);
641
642 horizontalLayout_3 = new QHBoxLayout();
643 horizontalLayout_3->setObjectName(QString::fromUtf8(str: "horizontalLayout_3"));
644 l1Label = new QLabel(groupBox_2);
645 l1Label->setObjectName(QString::fromUtf8(str: "l1Label"));
646 sizePolicy3.setHeightForWidth(l1Label->sizePolicy().hasHeightForWidth());
647 l1Label->setSizePolicy(sizePolicy3);
648
649 horizontalLayout_3->addWidget(l1Label);
650
651 l1Spin = new QSpinBox(groupBox_2);
652 l1Spin->setObjectName(QString::fromUtf8(str: "l1Spin"));
653 l1Spin->setMaximum(255);
654
655 horizontalLayout_3->addWidget(l1Spin);
656
657 l2Label = new QLabel(groupBox_2);
658 l2Label->setObjectName(QString::fromUtf8(str: "l2Label"));
659 sizePolicy3.setHeightForWidth(l2Label->sizePolicy().hasHeightForWidth());
660 l2Label->setSizePolicy(sizePolicy3);
661
662 horizontalLayout_3->addWidget(l2Label);
663
664 l2Spin = new QSpinBox(groupBox_2);
665 l2Spin->setObjectName(QString::fromUtf8(str: "l2Spin"));
666 l2Spin->setMaximum(255);
667
668 horizontalLayout_3->addWidget(l2Spin);
669
670
671 verticalLayout_3->addLayout(layout: horizontalLayout_3);
672
673
674 gridLayout_3->addLayout(verticalLayout_3, row: 2, column: 0, rowSpan: 1, columnSpan: 1);
675
676 verticalLayout_4 = new QVBoxLayout();
677 verticalLayout_4->setObjectName(QString::fromUtf8(str: "verticalLayout_4"));
678 horizontalLayout_9 = new QHBoxLayout();
679 horizontalLayout_9->setObjectName(QString::fromUtf8(str: "horizontalLayout_9"));
680 uiLabel = new QLabel(groupBox_2);
681 uiLabel->setObjectName(QString::fromUtf8(str: "uiLabel"));
682 sizePolicy3.setHeightForWidth(uiLabel->sizePolicy().hasHeightForWidth());
683 uiLabel->setSizePolicy(sizePolicy3);
684
685 horizontalLayout_9->addWidget(uiLabel);
686
687 line_3 = new QFrame(groupBox_2);
688 line_3->setObjectName(QString::fromUtf8(str: "line_3"));
689 line_3->setFrameShape(QFrame::HLine);
690 line_3->setFrameShadow(QFrame::Sunken);
691
692 horizontalLayout_9->addWidget(line_3);
693
694
695 verticalLayout_4->addLayout(layout: horizontalLayout_9);
696
697 horizontalLayout_10 = new QHBoxLayout();
698 horizontalLayout_10->setObjectName(QString::fromUtf8(str: "horizontalLayout_10"));
699 ui1Label = new QLabel(groupBox_2);
700 ui1Label->setObjectName(QString::fromUtf8(str: "ui1Label"));
701 sizePolicy3.setHeightForWidth(ui1Label->sizePolicy().hasHeightForWidth());
702 ui1Label->setSizePolicy(sizePolicy3);
703
704 horizontalLayout_10->addWidget(ui1Label);
705
706 ui1Spin = new QSpinBox(groupBox_2);
707 ui1Spin->setObjectName(QString::fromUtf8(str: "ui1Spin"));
708 ui1Spin->setMaximum(255);
709 ui1Spin->setValue(1);
710
711 horizontalLayout_10->addWidget(ui1Spin);
712
713
714 verticalLayout_4->addLayout(layout: horizontalLayout_10);
715
716
717 gridLayout_3->addLayout(verticalLayout_4, row: 2, column: 2, rowSpan: 1, columnSpan: 1);
718
719
720 gridLayout_6->addLayout(gridLayout_3, row: 0, column: 0, rowSpan: 1, columnSpan: 3);
721
722 verticalSpacer_5 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
723
724 gridLayout_6->addItem(item: verticalSpacer_5, row: 1, column: 0, rowSpan: 1, columnSpan: 1);
725
726 line_4 = new QFrame(groupBox_2);
727 line_4->setObjectName(QString::fromUtf8(str: "line_4"));
728 line_4->setFrameShape(QFrame::HLine);
729 line_4->setFrameShadow(QFrame::Sunken);
730
731 gridLayout_6->addWidget(line_4, row: 2, column: 0, rowSpan: 2, columnSpan: 3);
732
733 verticalSpacer_6 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
734
735 gridLayout_6->addItem(item: verticalSpacer_6, row: 3, column: 1, rowSpan: 1, columnSpan: 1);
736
737 gridLayout_5 = new QGridLayout();
738 gridLayout_5->setObjectName(QString::fromUtf8(str: "gridLayout_5"));
739 fcTcpLabel = new QLabel(groupBox_2);
740 fcTcpLabel->setObjectName(QString::fromUtf8(str: "fcTcpLabel"));
741 sizePolicy3.setHeightForWidth(fcTcpLabel->sizePolicy().hasHeightForWidth());
742 fcTcpLabel->setSizePolicy(sizePolicy3);
743
744 gridLayout_5->addWidget(fcTcpLabel, row: 0, column: 0, rowSpan: 1, columnSpan: 1);
745
746 fcTcpDrop = new QComboBox(groupBox_2);
747 fcTcpDrop->addItem(atext: QString());
748 fcTcpDrop->addItem(atext: QString());
749 fcTcpDrop->addItem(atext: QString());
750 fcTcpDrop->addItem(atext: QString());
751 fcTcpDrop->addItem(atext: QString());
752 fcTcpDrop->addItem(atext: QString());
753 fcTcpDrop->addItem(atext: QString());
754 fcTcpDrop->addItem(atext: QString());
755 fcTcpDrop->addItem(atext: QString());
756 fcTcpDrop->addItem(atext: QString());
757 fcTcpDrop->addItem(atext: QString());
758 fcTcpDrop->addItem(atext: QString());
759 fcTcpDrop->addItem(atext: QString());
760 fcTcpDrop->addItem(atext: QString());
761 fcTcpDrop->addItem(atext: QString());
762 fcTcpDrop->addItem(atext: QString());
763 fcTcpDrop->addItem(atext: QString());
764 fcTcpDrop->addItem(atext: QString());
765 fcTcpDrop->addItem(atext: QString());
766 fcTcpDrop->addItem(atext: QString());
767 fcTcpDrop->setObjectName(QString::fromUtf8(str: "fcTcpDrop"));
768 sizePolicy1.setHeightForWidth(fcTcpDrop->sizePolicy().hasHeightForWidth());
769 fcTcpDrop->setSizePolicy(sizePolicy1);
770
771 gridLayout_5->addWidget(fcTcpDrop, row: 0, column: 1, rowSpan: 1, columnSpan: 1);
772
773 pduTcpLabel = new QLabel(groupBox_2);
774 pduTcpLabel->setObjectName(QString::fromUtf8(str: "pduTcpLabel"));
775 sizePolicy3.setHeightForWidth(pduTcpLabel->sizePolicy().hasHeightForWidth());
776 pduTcpLabel->setSizePolicy(sizePolicy3);
777
778 gridLayout_5->addWidget(pduTcpLabel, row: 1, column: 0, rowSpan: 1, columnSpan: 1);
779
780 pduTcpLine = new QLineEdit(groupBox_2);
781 pduTcpLine->setObjectName(QString::fromUtf8(str: "pduTcpLine"));
782
783 gridLayout_5->addWidget(pduTcpLine, row: 1, column: 1, rowSpan: 1, columnSpan: 1);
784
785
786 gridLayout_6->addLayout(gridLayout_5, row: 4, column: 0, rowSpan: 1, columnSpan: 3);
787
788 verticalSpacer_2 = new QSpacerItem(20, 3, QSizePolicy::Minimum, QSizePolicy::Expanding);
789
790 gridLayout_6->addItem(item: verticalSpacer_2, row: 5, column: 2, rowSpan: 1, columnSpan: 1);
791
792
793 gridLayout_9->addWidget(groupBox_2, row: 0, column: 0, rowSpan: 1, columnSpan: 1);
794
795 stackedWidget->addWidget(w: page_2);
796
797 gridLayout_4->addWidget(stackedWidget, row: 0, column: 1, rowSpan: 1, columnSpan: 1);
798
799 horizontalLayout_2 = new QHBoxLayout();
800 horizontalLayout_2->setObjectName(QString::fromUtf8(str: "horizontalLayout_2"));
801 horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
802
803 horizontalLayout_2->addItem(horizontalSpacer_5);
804
805 sendButton = new QPushButton(centralwidget);
806 sendButton->setObjectName(QString::fromUtf8(str: "sendButton"));
807 sendButton->setEnabled(false);
808 QSizePolicy sizePolicy4(QSizePolicy::Preferred, QSizePolicy::Fixed);
809 sizePolicy4.setHorizontalStretch(0);
810 sizePolicy4.setVerticalStretch(0);
811 sizePolicy4.setHeightForWidth(sendButton->sizePolicy().hasHeightForWidth());
812 sendButton->setSizePolicy(sizePolicy4);
813
814 horizontalLayout_2->addWidget(sendButton);
815
816
817 gridLayout_4->addLayout(horizontalLayout_2, row: 1, column: 1, rowSpan: 1, columnSpan: 1);
818
819 line_2 = new QFrame(centralwidget);
820 line_2->setObjectName(QString::fromUtf8(str: "line_2"));
821 line_2->setFrameShape(QFrame::HLine);
822 line_2->setFrameShadow(QFrame::Sunken);
823
824 gridLayout_4->addWidget(line_2, row: 2, column: 0, rowSpan: 1, columnSpan: 2);
825
826 logTextEdit = new PlainTextEdit(centralwidget);
827 logTextEdit->setObjectName(QString::fromUtf8(str: "logTextEdit"));
828 logTextEdit->setUndoRedoEnabled(false);
829 logTextEdit->setReadOnly(true);
830 logTextEdit->setTextInteractionFlags(Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
831
832 gridLayout_4->addWidget(logTextEdit, row: 3, column: 0, rowSpan: 1, columnSpan: 2);
833
834 gridLayout_4->setRowStretch(row: 3, stretch: 1);
835 gridLayout_4->setColumnStretch(column: 1, stretch: 1);
836 MainWindow->setCentralWidget(centralwidget);
837 menubar = new QMenuBar(MainWindow);
838 menubar->setObjectName(QString::fromUtf8(str: "menubar"));
839 menubar->setGeometry(QRect(0, 0, 667, 21));
840 menuFile = new QMenu(menubar);
841 menuFile->setObjectName(QString::fromUtf8(str: "menuFile"));
842 menuEdit = new QMenu(menubar);
843 menuEdit->setObjectName(QString::fromUtf8(str: "menuEdit"));
844 MainWindow->setMenuBar(menubar);
845#if QT_CONFIG(shortcut)
846 timeoutLabel->setBuddy(timeoutSpin);
847 tcpPortLabel->setBuddy(tcpPortEdit);
848 tcpAddressLabel->setBuddy(tcpAddressEdit);
849 serialPortLabel->setBuddy(serialPortCombo);
850 retriesLabel->setBuddy(retriesSpin);
851 parityLabel->setBuddy(parityCombo);
852 dataBitsLabel->setBuddy(dataBitsCombo);
853 stopBitsLabel->setBuddy(stopBitsCombo);
854 baudRateLabel->setBuddy(baudRateCombo);
855 addressLabel->setBuddy(addressSpin);
856 fcSerialLabel->setBuddy(fcSerialDrop);
857 pduSerialLabel->setBuddy(pduSerialLine);
858 ti1Label->setBuddy(ti1Spin);
859 ti2Label->setBuddy(ti2Spin);
860 pi1Label->setBuddy(pi1Spin);
861 pi2Label->setBuddy(pi2Spin);
862 l1Label->setBuddy(l1Spin);
863 l2Label->setBuddy(l2Spin);
864 ui1Label->setBuddy(ui1Spin);
865 fcTcpLabel->setBuddy(fcTcpDrop);
866 pduTcpLabel->setBuddy(pduTcpLine);
867#endif // QT_CONFIG(shortcut)
868 QWidget::setTabOrder(serialRadio, serialPortCombo);
869 QWidget::setTabOrder(serialPortCombo, parityCombo);
870 QWidget::setTabOrder(parityCombo, dataBitsCombo);
871 QWidget::setTabOrder(dataBitsCombo, stopBitsCombo);
872 QWidget::setTabOrder(stopBitsCombo, baudRateCombo);
873 QWidget::setTabOrder(baudRateCombo, tcpRadio);
874 QWidget::setTabOrder(tcpRadio, tcpPortEdit);
875 QWidget::setTabOrder(tcpPortEdit, tcpAddressEdit);
876 QWidget::setTabOrder(tcpAddressEdit, retriesSpin);
877 QWidget::setTabOrder(retriesSpin, timeoutSpin);
878 QWidget::setTabOrder(timeoutSpin, connectButton);
879 QWidget::setTabOrder(connectButton, disconnectButton);
880 QWidget::setTabOrder(disconnectButton, addressSpin);
881 QWidget::setTabOrder(addressSpin, fcSerialDrop);
882 QWidget::setTabOrder(fcSerialDrop, pduSerialLine);
883 QWidget::setTabOrder(pduSerialLine, ti1Spin);
884 QWidget::setTabOrder(ti1Spin, ti2Spin);
885 QWidget::setTabOrder(ti2Spin, pi1Spin);
886 QWidget::setTabOrder(pi1Spin, pi2Spin);
887 QWidget::setTabOrder(pi2Spin, l1Spin);
888 QWidget::setTabOrder(l1Spin, l2Spin);
889 QWidget::setTabOrder(l2Spin, ui1Spin);
890 QWidget::setTabOrder(ui1Spin, fcTcpDrop);
891 QWidget::setTabOrder(fcTcpDrop, pduTcpLine);
892 QWidget::setTabOrder(pduTcpLine, sendButton);
893 QWidget::setTabOrder(sendButton, logTextEdit);
894
895 menubar->addAction(action: menuFile->menuAction());
896 menubar->addAction(action: menuEdit->menuAction());
897 menuFile->addAction(action: actionExit);
898 menuEdit->addAction(action: actionClear);
899 menuEdit->addAction(action: actionCopy);
900 menuEdit->addSeparator();
901 menuEdit->addAction(action: actionSelect_All);
902
903 retranslateUi(MainWindow);
904 QObject::connect(sender: tcpRadio, SIGNAL(toggled(bool)), receiver: tcpPortEdit, SLOT(setEnabled(bool)));
905 QObject::connect(sender: tcpRadio, SIGNAL(toggled(bool)), receiver: tcpAddressEdit, SLOT(setEnabled(bool)));
906 QObject::connect(sender: serialRadio, SIGNAL(toggled(bool)), receiver: serialPortLabel, SLOT(setEnabled(bool)));
907 QObject::connect(sender: tcpRadio, SIGNAL(toggled(bool)), receiver: tcpPortLabel, SLOT(setEnabled(bool)));
908 QObject::connect(sender: tcpRadio, SIGNAL(toggled(bool)), receiver: tcpAddressLabel, SLOT(setEnabled(bool)));
909 QObject::connect(sender: connectButton, SIGNAL(clicked(bool)), receiver: connectButton, SLOT(setEnabled(bool)));
910 QObject::connect(sender: connectButton, SIGNAL(clicked(bool)), receiver: disconnectButton, SLOT(setDisabled(bool)));
911 QObject::connect(sender: disconnectButton, SIGNAL(clicked(bool)), receiver: connectButton, SLOT(setDisabled(bool)));
912 QObject::connect(sender: disconnectButton, SIGNAL(clicked(bool)), receiver: disconnectButton, SLOT(setEnabled(bool)));
913 QObject::connect(sender: connectButton, SIGNAL(clicked(bool)), receiver: settingsWidget, SLOT(setEnabled(bool)));
914 QObject::connect(sender: disconnectButton, SIGNAL(clicked(bool)), receiver: settingsWidget, SLOT(setDisabled(bool)));
915 QObject::connect(sender: disconnectButton, SIGNAL(clicked(bool)), receiver: sendButton, SLOT(setEnabled(bool)));
916 QObject::connect(sender: connectButton, SIGNAL(clicked(bool)), receiver: sendButton, SLOT(setDisabled(bool)));
917 QObject::connect(sender: serialRadio, SIGNAL(toggled(bool)), receiver: serialPortCombo, SLOT(setEnabled(bool)));
918 QObject::connect(sender: serialRadio, SIGNAL(toggled(bool)), receiver: parityLabel, SLOT(setEnabled(bool)));
919 QObject::connect(sender: serialRadio, SIGNAL(toggled(bool)), receiver: dataBitsLabel, SLOT(setEnabled(bool)));
920 QObject::connect(sender: serialRadio, SIGNAL(toggled(bool)), receiver: stopBitsLabel, SLOT(setEnabled(bool)));
921 QObject::connect(sender: serialRadio, SIGNAL(toggled(bool)), receiver: baudRateLabel, SLOT(setEnabled(bool)));
922 QObject::connect(sender: serialRadio, SIGNAL(toggled(bool)), receiver: parityCombo, SLOT(setEnabled(bool)));
923 QObject::connect(sender: serialRadio, SIGNAL(toggled(bool)), receiver: dataBitsCombo, SLOT(setEnabled(bool)));
924 QObject::connect(sender: serialRadio, SIGNAL(toggled(bool)), receiver: stopBitsCombo, SLOT(setEnabled(bool)));
925 QObject::connect(sender: serialRadio, SIGNAL(toggled(bool)), receiver: baudRateCombo, SLOT(setEnabled(bool)));
926 QObject::connect(sender: actionClear, SIGNAL(triggered()), receiver: logTextEdit, SLOT(clear()));
927 QObject::connect(sender: actionSelect_All, SIGNAL(triggered()), receiver: logTextEdit, SLOT(selectAll()));
928 QObject::connect(sender: actionCopy, SIGNAL(triggered()), receiver: logTextEdit, SLOT(copy()));
929 QObject::connect(sender: actionSelect_All, SIGNAL(triggered()), receiver: logTextEdit, SLOT(setFocus()));
930
931 parityCombo->setCurrentIndex(1);
932 dataBitsCombo->setCurrentIndex(3);
933 baudRateCombo->setCurrentIndex(4);
934 stackedWidget->setCurrentIndex(0);
935
936
937 QMetaObject::connectSlotsByName(o: MainWindow);
938 } // setupUi
939
940 void retranslateUi(QMainWindow *MainWindow)
941 {
942 MainWindow->setWindowTitle(QCoreApplication::translate(context: "MainWindow", key: "Modbus ADU Editor", disambiguation: nullptr));
943 actionExit->setText(QCoreApplication::translate(context: "MainWindow", key: "Exit", disambiguation: nullptr));
944#if QT_CONFIG(shortcut)
945 actionExit->setShortcut(QCoreApplication::translate(context: "MainWindow", key: "Alt+F4", disambiguation: nullptr));
946#endif // QT_CONFIG(shortcut)
947 actionClear->setText(QCoreApplication::translate(context: "MainWindow", key: "Clear", disambiguation: nullptr));
948 actionCopy->setText(QCoreApplication::translate(context: "MainWindow", key: "Copy", disambiguation: nullptr));
949#if QT_CONFIG(shortcut)
950 actionCopy->setShortcut(QCoreApplication::translate(context: "MainWindow", key: "Ctrl+C", disambiguation: nullptr));
951#endif // QT_CONFIG(shortcut)
952 actionSelect_All->setText(QCoreApplication::translate(context: "MainWindow", key: "Select All", disambiguation: nullptr));
953#if QT_CONFIG(shortcut)
954 actionSelect_All->setShortcut(QCoreApplication::translate(context: "MainWindow", key: "Ctrl+A", disambiguation: nullptr));
955#endif // QT_CONFIG(shortcut)
956 settingsBox->setTitle(QString());
957 connectButton->setText(QCoreApplication::translate(context: "MainWindow", key: "Connect", disambiguation: nullptr));
958 timeoutLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Timeout (msec):", disambiguation: nullptr));
959 tcpPortLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Port:", disambiguation: nullptr));
960 tcpAddressEdit->setText(QCoreApplication::translate(context: "MainWindow", key: "127.0.0.1", disambiguation: nullptr));
961 tcpAddressLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Address:", disambiguation: nullptr));
962 tcpPortEdit->setText(QCoreApplication::translate(context: "MainWindow", key: "502", disambiguation: nullptr));
963 serialPortLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Port:", disambiguation: nullptr));
964 serialRadio->setText(QCoreApplication::translate(context: "MainWindow", key: "Serial", disambiguation: nullptr));
965 retriesLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Number of retries:", disambiguation: nullptr));
966 tcpRadio->setText(QCoreApplication::translate(context: "MainWindow", key: "TCP", disambiguation: nullptr));
967 parityLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Parity:", disambiguation: nullptr));
968 dataBitsLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Data Bits:", disambiguation: nullptr));
969 stopBitsLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Stop Bits:", disambiguation: nullptr));
970 baudRateLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "BaudRate:", disambiguation: nullptr));
971 parityCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "MainWindow", key: "No", disambiguation: nullptr));
972 parityCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "MainWindow", key: "Even", disambiguation: nullptr));
973 parityCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "MainWindow", key: "Odd", disambiguation: nullptr));
974 parityCombo->setItemText(index: 3, text: QCoreApplication::translate(context: "MainWindow", key: "Space", disambiguation: nullptr));
975 parityCombo->setItemText(index: 4, text: QCoreApplication::translate(context: "MainWindow", key: "Mark", disambiguation: nullptr));
976
977 dataBitsCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "MainWindow", key: "5", disambiguation: nullptr));
978 dataBitsCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "MainWindow", key: "6", disambiguation: nullptr));
979 dataBitsCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "MainWindow", key: "7", disambiguation: nullptr));
980 dataBitsCombo->setItemText(index: 3, text: QCoreApplication::translate(context: "MainWindow", key: "8", disambiguation: nullptr));
981
982 stopBitsCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "MainWindow", key: "1", disambiguation: nullptr));
983 stopBitsCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "MainWindow", key: "3", disambiguation: nullptr));
984 stopBitsCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "MainWindow", key: "2", disambiguation: nullptr));
985
986 baudRateCombo->setItemText(index: 0, text: QCoreApplication::translate(context: "MainWindow", key: "1200", disambiguation: nullptr));
987 baudRateCombo->setItemText(index: 1, text: QCoreApplication::translate(context: "MainWindow", key: "2400", disambiguation: nullptr));
988 baudRateCombo->setItemText(index: 2, text: QCoreApplication::translate(context: "MainWindow", key: "4800", disambiguation: nullptr));
989 baudRateCombo->setItemText(index: 3, text: QCoreApplication::translate(context: "MainWindow", key: "9600", disambiguation: nullptr));
990 baudRateCombo->setItemText(index: 4, text: QCoreApplication::translate(context: "MainWindow", key: "19200", disambiguation: nullptr));
991 baudRateCombo->setItemText(index: 5, text: QCoreApplication::translate(context: "MainWindow", key: "38400", disambiguation: nullptr));
992 baudRateCombo->setItemText(index: 6, text: QCoreApplication::translate(context: "MainWindow", key: "57600", disambiguation: nullptr));
993 baudRateCombo->setItemText(index: 7, text: QCoreApplication::translate(context: "MainWindow", key: "115200", disambiguation: nullptr));
994
995 disconnectButton->setText(QCoreApplication::translate(context: "MainWindow", key: "Disconnect", disambiguation: nullptr));
996 groupBox->setTitle(QString());
997 addressLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Server address:", disambiguation: nullptr));
998 fcSerialLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Function code:", disambiguation: nullptr));
999 fcSerialDrop->setItemText(index: 0, text: QCoreApplication::translate(context: "MainWindow", key: "Type your custom function code and data below", disambiguation: nullptr));
1000 fcSerialDrop->setItemText(index: 1, text: QCoreApplication::translate(context: "MainWindow", key: "0x01 - ReadCoils", disambiguation: nullptr));
1001 fcSerialDrop->setItemText(index: 2, text: QCoreApplication::translate(context: "MainWindow", key: "0x02 - Read Discrete Inputs", disambiguation: nullptr));
1002 fcSerialDrop->setItemText(index: 3, text: QCoreApplication::translate(context: "MainWindow", key: "0x03 - Read Holding Registers", disambiguation: nullptr));
1003 fcSerialDrop->setItemText(index: 4, text: QCoreApplication::translate(context: "MainWindow", key: "0x04 - Read Input Registers", disambiguation: nullptr));
1004 fcSerialDrop->setItemText(index: 5, text: QCoreApplication::translate(context: "MainWindow", key: "0x05 - Write Single Coil", disambiguation: nullptr));
1005 fcSerialDrop->setItemText(index: 6, text: QCoreApplication::translate(context: "MainWindow", key: "0x06 - Write Single Register", disambiguation: nullptr));
1006 fcSerialDrop->setItemText(index: 7, text: QCoreApplication::translate(context: "MainWindow", key: "0x07 - Read Exception Status", disambiguation: nullptr));
1007 fcSerialDrop->setItemText(index: 8, text: QCoreApplication::translate(context: "MainWindow", key: "0x08 - Diagnostics", disambiguation: nullptr));
1008 fcSerialDrop->setItemText(index: 9, text: QCoreApplication::translate(context: "MainWindow", key: "0x0B - Get Comm Event Counter", disambiguation: nullptr));
1009 fcSerialDrop->setItemText(index: 10, text: QCoreApplication::translate(context: "MainWindow", key: "0x0C - Get Comm Event Log", disambiguation: nullptr));
1010 fcSerialDrop->setItemText(index: 11, text: QCoreApplication::translate(context: "MainWindow", key: "0x0F - Write Multiple Coils", disambiguation: nullptr));
1011 fcSerialDrop->setItemText(index: 12, text: QCoreApplication::translate(context: "MainWindow", key: "0x10 - Write Multiple Registers", disambiguation: nullptr));
1012 fcSerialDrop->setItemText(index: 13, text: QCoreApplication::translate(context: "MainWindow", key: "0x11 - Report Server Id", disambiguation: nullptr));
1013 fcSerialDrop->setItemText(index: 14, text: QCoreApplication::translate(context: "MainWindow", key: "0x14 - Read File Record", disambiguation: nullptr));
1014 fcSerialDrop->setItemText(index: 15, text: QCoreApplication::translate(context: "MainWindow", key: "0x15 - Write File Record", disambiguation: nullptr));
1015 fcSerialDrop->setItemText(index: 16, text: QCoreApplication::translate(context: "MainWindow", key: "0x16 - Mask Write Register", disambiguation: nullptr));
1016 fcSerialDrop->setItemText(index: 17, text: QCoreApplication::translate(context: "MainWindow", key: "0x17 - Read/Write Multiple Registers", disambiguation: nullptr));
1017 fcSerialDrop->setItemText(index: 18, text: QCoreApplication::translate(context: "MainWindow", key: "0x18 - Read Fifo Queue", disambiguation: nullptr));
1018 fcSerialDrop->setItemText(index: 19, text: QCoreApplication::translate(context: "MainWindow", key: "0x2B - Encapsulated Interface Transport", disambiguation: nullptr));
1019
1020 pduSerialLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Data:", disambiguation: nullptr));
1021 pduSerialLine->setText(QString());
1022 pduSerialLine->setPlaceholderText(QCoreApplication::translate(context: "MainWindow", key: "Hexadecimal representation of the data in big-endian byte order.", disambiguation: nullptr));
1023 addressSpin->setSpecialValueText(QCoreApplication::translate(context: "MainWindow", key: "broadcast", disambiguation: nullptr));
1024 groupBox_2->setTitle(QString());
1025 tiLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Transaction identifier", disambiguation: nullptr));
1026 ti1Label->setText(QCoreApplication::translate(context: "MainWindow", key: "1. Byte:", disambiguation: nullptr));
1027 ti2Label->setText(QCoreApplication::translate(context: "MainWindow", key: "2. Byte:", disambiguation: nullptr));
1028 piLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Protocol identifier", disambiguation: nullptr));
1029 pi1Label->setText(QCoreApplication::translate(context: "MainWindow", key: "1. Byte:", disambiguation: nullptr));
1030 pi2Label->setText(QCoreApplication::translate(context: "MainWindow", key: "2. Byte:", disambiguation: nullptr));
1031 lLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Length", disambiguation: nullptr));
1032 l1Label->setText(QCoreApplication::translate(context: "MainWindow", key: "1. Byte:", disambiguation: nullptr));
1033 l2Label->setText(QCoreApplication::translate(context: "MainWindow", key: "2. Byte:", disambiguation: nullptr));
1034 uiLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Unit identifier", disambiguation: nullptr));
1035 ui1Label->setText(QCoreApplication::translate(context: "MainWindow", key: "1. Byte:", disambiguation: nullptr));
1036 ui1Spin->setSpecialValueText(QCoreApplication::translate(context: "MainWindow", key: "broadcast", disambiguation: nullptr));
1037 fcTcpLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Function code:", disambiguation: nullptr));
1038 fcTcpDrop->setItemText(index: 0, text: QCoreApplication::translate(context: "MainWindow", key: "Type your custom function code and data below", disambiguation: nullptr));
1039 fcTcpDrop->setItemText(index: 1, text: QCoreApplication::translate(context: "MainWindow", key: "0x01 - ReadCoils", disambiguation: nullptr));
1040 fcTcpDrop->setItemText(index: 2, text: QCoreApplication::translate(context: "MainWindow", key: "0x02 - Read Discrete Inputs", disambiguation: nullptr));
1041 fcTcpDrop->setItemText(index: 3, text: QCoreApplication::translate(context: "MainWindow", key: "0x03 - Read Holding Registers", disambiguation: nullptr));
1042 fcTcpDrop->setItemText(index: 4, text: QCoreApplication::translate(context: "MainWindow", key: "0x04 - Read Input Registers", disambiguation: nullptr));
1043 fcTcpDrop->setItemText(index: 5, text: QCoreApplication::translate(context: "MainWindow", key: "0x05 - Write Single Coil", disambiguation: nullptr));
1044 fcTcpDrop->setItemText(index: 6, text: QCoreApplication::translate(context: "MainWindow", key: "0x06 - Write Single Register", disambiguation: nullptr));
1045 fcTcpDrop->setItemText(index: 7, text: QCoreApplication::translate(context: "MainWindow", key: "0x07 - Read Exception Status", disambiguation: nullptr));
1046 fcTcpDrop->setItemText(index: 8, text: QCoreApplication::translate(context: "MainWindow", key: "0x08 - Diagnostics", disambiguation: nullptr));
1047 fcTcpDrop->setItemText(index: 9, text: QCoreApplication::translate(context: "MainWindow", key: "0x0B - Get Comm Event Counter", disambiguation: nullptr));
1048 fcTcpDrop->setItemText(index: 10, text: QCoreApplication::translate(context: "MainWindow", key: "0x0C - Get Comm Event Log", disambiguation: nullptr));
1049 fcTcpDrop->setItemText(index: 11, text: QCoreApplication::translate(context: "MainWindow", key: "0x0F - Write Multiple Coils", disambiguation: nullptr));
1050 fcTcpDrop->setItemText(index: 12, text: QCoreApplication::translate(context: "MainWindow", key: "0x10 - Write Multiple Registers", disambiguation: nullptr));
1051 fcTcpDrop->setItemText(index: 13, text: QCoreApplication::translate(context: "MainWindow", key: "0x11 - Report Server Id", disambiguation: nullptr));
1052 fcTcpDrop->setItemText(index: 14, text: QCoreApplication::translate(context: "MainWindow", key: "0x14 - Read File Record", disambiguation: nullptr));
1053 fcTcpDrop->setItemText(index: 15, text: QCoreApplication::translate(context: "MainWindow", key: "0x15 - Write File Record", disambiguation: nullptr));
1054 fcTcpDrop->setItemText(index: 16, text: QCoreApplication::translate(context: "MainWindow", key: "0x16 - Mask Write Register", disambiguation: nullptr));
1055 fcTcpDrop->setItemText(index: 17, text: QCoreApplication::translate(context: "MainWindow", key: "0x17 - Read/Write Multiple Registers", disambiguation: nullptr));
1056 fcTcpDrop->setItemText(index: 18, text: QCoreApplication::translate(context: "MainWindow", key: "0x18 - Read Fifo Queue", disambiguation: nullptr));
1057 fcTcpDrop->setItemText(index: 19, text: QCoreApplication::translate(context: "MainWindow", key: "0x2B - Encapsulated Interface Transport", disambiguation: nullptr));
1058
1059 pduTcpLabel->setText(QCoreApplication::translate(context: "MainWindow", key: "Data:", disambiguation: nullptr));
1060 pduTcpLine->setText(QString());
1061 pduTcpLine->setPlaceholderText(QCoreApplication::translate(context: "MainWindow", key: "Hexadecimal representation of the data in big-endian byte order.", disambiguation: nullptr));
1062 sendButton->setText(QCoreApplication::translate(context: "MainWindow", key: "Send", disambiguation: nullptr));
1063 menuFile->setTitle(QCoreApplication::translate(context: "MainWindow", key: "File", disambiguation: nullptr));
1064 menuEdit->setTitle(QCoreApplication::translate(context: "MainWindow", key: "Edit", disambiguation: nullptr));
1065 } // retranslateUi
1066
1067};
1068
1069namespace Ui {
1070 class MainWindow: public Ui_MainWindow {};
1071} // namespace Ui
1072
1073QT_END_NAMESPACE
1074
1075#endif // UI_INTERFACE_H
1076

source code of qtserialbus/examples/serialbus/modbus/adueditor/.uic/ui_interface.h