aboutsummaryrefslogtreecommitdiffstats
path: root/examples/serialport/terminal/ui_settingsdialog.py
blob: 6c5a417cc64d2f2923a14c2bc07f8e31e9d81252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# -*- coding: utf-8 -*-

################################################################################
## Form generated from reading UI file 'settingsdialog.ui'
##
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
    QMetaObject, QObject, QPoint, QRect,
    QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
    QFont, QFontDatabase, QGradient, QIcon,
    QImage, QKeySequence, QLinearGradient, QPainter,
    QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QDialog,
    QGridLayout, QGroupBox, QHBoxLayout, QLabel,
    QPushButton, QSizePolicy, QSpacerItem, QVBoxLayout,
    QWidget)

class Ui_SettingsDialog(object):
    def setupUi(self, SettingsDialog):
        if not SettingsDialog.objectName():
            SettingsDialog.setObjectName(u"SettingsDialog")
        SettingsDialog.resize(281, 262)
        self.gridLayout_3 = QGridLayout(SettingsDialog)
        self.gridLayout_3.setObjectName(u"gridLayout_3")
        self.parametersBox = QGroupBox(SettingsDialog)
        self.parametersBox.setObjectName(u"parametersBox")
        self.gridLayout_2 = QGridLayout(self.parametersBox)
        self.gridLayout_2.setObjectName(u"gridLayout_2")
        self.baudRateLabel = QLabel(self.parametersBox)
        self.baudRateLabel.setObjectName(u"baudRateLabel")

        self.gridLayout_2.addWidget(self.baudRateLabel, 0, 0, 1, 1)

        self.baudRateBox = QComboBox(self.parametersBox)
        self.baudRateBox.setObjectName(u"baudRateBox")

        self.gridLayout_2.addWidget(self.baudRateBox, 0, 1, 1, 1)

        self.dataBitsLabel = QLabel(self.parametersBox)
        self.dataBitsLabel.setObjectName(u"dataBitsLabel")

        self.gridLayout_2.addWidget(self.dataBitsLabel, 1, 0, 1, 1)

        self.dataBitsBox = QComboBox(self.parametersBox)
        self.dataBitsBox.setObjectName(u"dataBitsBox")

        self.gridLayout_2.addWidget(self.dataBitsBox, 1, 1, 1, 1)

        self.parityLabel = QLabel(self.parametersBox)
        self.parityLabel.setObjectName(u"parityLabel")

        self.gridLayout_2.addWidget(self.parityLabel, 2, 0, 1, 1)

        self.parityBox = QComboBox(self.parametersBox)
        self.parityBox.setObjectName(u"parityBox")

        self.gridLayout_2.addWidget(self.parityBox, 2, 1, 1, 1)

        self.stopBitsLabel = QLabel(self.parametersBox)
        self.stopBitsLabel.setObjectName(u"stopBitsLabel")

        self.gridLayout_2.addWidget(self.stopBitsLabel, 3, 0, 1, 1)

        self.stopBitsBox = QComboBox(self.parametersBox)
        self.stopBitsBox.setObjectName(u"stopBitsBox")

        self.gridLayout_2.addWidget(self.stopBitsBox, 3, 1, 1, 1)

        self.flowControlLabel = QLabel(self.parametersBox)
        self.flowControlLabel.setObjectName(u"flowControlLabel")

        self.gridLayout_2.addWidget(self.flowControlLabel, 4, 0, 1, 1)

        self.flowControlBox = QComboBox(self.parametersBox)
        self.flowControlBox.setObjectName(u"flowControlBox")

        self.gridLayout_2.addWidget(self.flowControlBox, 4, 1, 1, 1)


        self.gridLayout_3.addWidget(self.parametersBox, 0, 1, 1, 1)

        self.selectBox = QGroupBox(SettingsDialog)
        self.selectBox.setObjectName(u"selectBox")
        self.gridLayout = QGridLayout(self.selectBox)
        self.gridLayout.setObjectName(u"gridLayout")
        self.serialPortInfoListBox = QComboBox(self.selectBox)
        self.serialPortInfoListBox.setObjectName(u"serialPortInfoListBox")

        self.gridLayout.addWidget(self.serialPortInfoListBox, 0, 0, 1, 1)

        self.descriptionLabel = QLabel(self.selectBox)
        self.descriptionLabel.setObjectName(u"descriptionLabel")

        self.gridLayout.addWidget(self.descriptionLabel, 1, 0, 1, 1)

        self.manufacturerLabel = QLabel(self.selectBox)
        self.manufacturerLabel.setObjectName(u"manufacturerLabel")

        self.gridLayout.addWidget(self.manufacturerLabel, 2, 0, 1, 1)

        self.serialNumberLabel = QLabel(self.selectBox)
        self.serialNumberLabel.setObjectName(u"serialNumberLabel")

        self.gridLayout.addWidget(self.serialNumberLabel, 3, 0, 1, 1)

        self.locationLabel = QLabel(self.selectBox)
        self.locationLabel.setObjectName(u"locationLabel")

        self.gridLayout.addWidget(self.locationLabel, 4, 0, 1, 1)

        self.vidLabel = QLabel(self.selectBox)
        self.vidLabel.setObjectName(u"vidLabel")

        self.gridLayout.addWidget(self.vidLabel, 5, 0, 1, 1)

        self.pidLabel = QLabel(self.selectBox)
        self.pidLabel.setObjectName(u"pidLabel")

        self.gridLayout.addWidget(self.pidLabel, 6, 0, 1, 1)


        self.gridLayout_3.addWidget(self.selectBox, 0, 0, 1, 1)

        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.horizontalSpacer = QSpacerItem(96, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayout.addItem(self.horizontalSpacer)

        self.applyButton = QPushButton(SettingsDialog)
        self.applyButton.setObjectName(u"applyButton")

        self.horizontalLayout.addWidget(self.applyButton)


        self.gridLayout_3.addLayout(self.horizontalLayout, 2, 0, 1, 2)

        self.additionalOptionsGroupBox = QGroupBox(SettingsDialog)
        self.additionalOptionsGroupBox.setObjectName(u"additionalOptionsGroupBox")
        self.verticalLayout = QVBoxLayout(self.additionalOptionsGroupBox)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.localEchoCheckBox = QCheckBox(self.additionalOptionsGroupBox)
        self.localEchoCheckBox.setObjectName(u"localEchoCheckBox")
        self.localEchoCheckBox.setChecked(True)

        self.verticalLayout.addWidget(self.localEchoCheckBox)


        self.gridLayout_3.addWidget(self.additionalOptionsGroupBox, 1, 0, 1, 2)


        self.retranslateUi(SettingsDialog)

        QMetaObject.connectSlotsByName(SettingsDialog)
    # setupUi

    def retranslateUi(self, SettingsDialog):
        SettingsDialog.setWindowTitle(QCoreApplication.translate("SettingsDialog", u"Settings", None))
        self.parametersBox.setTitle(QCoreApplication.translate("SettingsDialog", u"Select Parameters", None))
        self.baudRateLabel.setText(QCoreApplication.translate("SettingsDialog", u"BaudRate:", None))
        self.dataBitsLabel.setText(QCoreApplication.translate("SettingsDialog", u"Data bits:", None))
        self.parityLabel.setText(QCoreApplication.translate("SettingsDialog", u"Parity:", None))
        self.stopBitsLabel.setText(QCoreApplication.translate("SettingsDialog", u"Stop bits:", None))
        self.flowControlLabel.setText(QCoreApplication.translate("SettingsDialog", u"Flow control:", None))
        self.selectBox.setTitle(QCoreApplication.translate("SettingsDialog", u"Select Serial Port", None))
        self.descriptionLabel.setText(QCoreApplication.translate("SettingsDialog", u"Description:", None))
        self.manufacturerLabel.setText(QCoreApplication.translate("SettingsDialog", u"Manufacturer:", None))
        self.serialNumberLabel.setText(QCoreApplication.translate("SettingsDialog", u"Serial number:", None))
        self.locationLabel.setText(QCoreApplication.translate("SettingsDialog", u"Location:", None))
        self.vidLabel.setText(QCoreApplication.translate("SettingsDialog", u"Vendor ID:", None))
        self.pidLabel.setText(QCoreApplication.translate("SettingsDialog", u"Product ID:", None))
        self.applyButton.setText(QCoreApplication.translate("SettingsDialog", u"Apply", None))
        self.additionalOptionsGroupBox.setTitle(QCoreApplication.translate("SettingsDialog", u"Additional options", None))
        self.localEchoCheckBox.setText(QCoreApplication.translate("SettingsDialog", u"Local echo", None))
    # retranslateUi