|
1 # Form implementation generated from reading ui file 'MqttMonitor/MqttConnectionProfilesDialog.ui' |
|
2 # |
|
3 # Created by: PyQt6 UI code generator 6.7.1 |
|
4 # |
|
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is |
|
6 # run again. Do not edit this file unless you know what you are doing. |
|
7 |
|
8 |
|
9 from PyQt6 import QtCore, QtGui, QtWidgets |
|
10 |
|
11 |
|
12 class Ui_MqttConnectionProfilesDialog(object): |
|
13 def setupUi(self, MqttConnectionProfilesDialog): |
|
14 MqttConnectionProfilesDialog.setObjectName("MqttConnectionProfilesDialog") |
|
15 MqttConnectionProfilesDialog.resize(800, 600) |
|
16 MqttConnectionProfilesDialog.setSizeGripEnabled(True) |
|
17 self.verticalLayout_2 = QtWidgets.QVBoxLayout(MqttConnectionProfilesDialog) |
|
18 self.verticalLayout_2.setObjectName("verticalLayout_2") |
|
19 self.splitter = QtWidgets.QSplitter(parent=MqttConnectionProfilesDialog) |
|
20 self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal) |
|
21 self.splitter.setChildrenCollapsible(False) |
|
22 self.splitter.setObjectName("splitter") |
|
23 self.profileListFrame = QtWidgets.QFrame(parent=self.splitter) |
|
24 self.profileListFrame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) |
|
25 self.profileListFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) |
|
26 self.profileListFrame.setObjectName("profileListFrame") |
|
27 self.verticalLayout = QtWidgets.QVBoxLayout(self.profileListFrame) |
|
28 self.verticalLayout.setObjectName("verticalLayout") |
|
29 self.profilesList = QtWidgets.QListWidget(parent=self.profileListFrame) |
|
30 self.profilesList.setAlternatingRowColors(True) |
|
31 self.profilesList.setObjectName("profilesList") |
|
32 self.verticalLayout.addWidget(self.profilesList) |
|
33 self.horizontalLayout = QtWidgets.QHBoxLayout() |
|
34 self.horizontalLayout.setObjectName("horizontalLayout") |
|
35 self.plusButton = QtWidgets.QToolButton(parent=self.profileListFrame) |
|
36 self.plusButton.setObjectName("plusButton") |
|
37 self.horizontalLayout.addWidget(self.plusButton) |
|
38 self.copyButton = QtWidgets.QToolButton(parent=self.profileListFrame) |
|
39 self.copyButton.setObjectName("copyButton") |
|
40 self.horizontalLayout.addWidget(self.copyButton) |
|
41 self.minusButton = QtWidgets.QToolButton(parent=self.profileListFrame) |
|
42 self.minusButton.setObjectName("minusButton") |
|
43 self.horizontalLayout.addWidget(self.minusButton) |
|
44 spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
|
45 self.horizontalLayout.addItem(spacerItem) |
|
46 self.verticalLayout.addLayout(self.horizontalLayout) |
|
47 self.profileFrame = QtWidgets.QFrame(parent=self.splitter) |
|
48 self.profileFrame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) |
|
49 self.profileFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) |
|
50 self.profileFrame.setObjectName("profileFrame") |
|
51 self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.profileFrame) |
|
52 self.verticalLayout_3.setObjectName("verticalLayout_3") |
|
53 self.gridLayout = QtWidgets.QGridLayout() |
|
54 self.gridLayout.setObjectName("gridLayout") |
|
55 self.label = QtWidgets.QLabel(parent=self.profileFrame) |
|
56 self.label.setObjectName("label") |
|
57 self.gridLayout.addWidget(self.label, 0, 0, 1, 1) |
|
58 self.profileEdit = QtWidgets.QLineEdit(parent=self.profileFrame) |
|
59 self.profileEdit.setReadOnly(True) |
|
60 self.profileEdit.setClearButtonEnabled(True) |
|
61 self.profileEdit.setObjectName("profileEdit") |
|
62 self.gridLayout.addWidget(self.profileEdit, 0, 1, 1, 1) |
|
63 self.line = QtWidgets.QFrame(parent=self.profileFrame) |
|
64 self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine) |
|
65 self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) |
|
66 self.line.setObjectName("line") |
|
67 self.gridLayout.addWidget(self.line, 1, 0, 1, 2) |
|
68 self.label_2 = QtWidgets.QLabel(parent=self.profileFrame) |
|
69 self.label_2.setObjectName("label_2") |
|
70 self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) |
|
71 self.brokerAddressEdit = QtWidgets.QLineEdit(parent=self.profileFrame) |
|
72 self.brokerAddressEdit.setClearButtonEnabled(True) |
|
73 self.brokerAddressEdit.setObjectName("brokerAddressEdit") |
|
74 self.gridLayout.addWidget(self.brokerAddressEdit, 2, 1, 1, 1) |
|
75 self.label_3 = QtWidgets.QLabel(parent=self.profileFrame) |
|
76 self.label_3.setObjectName("label_3") |
|
77 self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1) |
|
78 self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
79 self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
80 self.brokerPortSpinBox = QtWidgets.QSpinBox(parent=self.profileFrame) |
|
81 self.brokerPortSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) |
|
82 self.brokerPortSpinBox.setMaximum(65535) |
|
83 self.brokerPortSpinBox.setProperty("value", 1883) |
|
84 self.brokerPortSpinBox.setObjectName("brokerPortSpinBox") |
|
85 self.horizontalLayout_2.addWidget(self.brokerPortSpinBox) |
|
86 spacerItem1 = QtWidgets.QSpacerItem(318, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
|
87 self.horizontalLayout_2.addItem(spacerItem1) |
|
88 self.gridLayout.addLayout(self.horizontalLayout_2, 3, 1, 1, 1) |
|
89 self.label_4 = QtWidgets.QLabel(parent=self.profileFrame) |
|
90 self.label_4.setObjectName("label_4") |
|
91 self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1) |
|
92 self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
|
93 self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
|
94 self.clientIdEdit = QtWidgets.QLineEdit(parent=self.profileFrame) |
|
95 self.clientIdEdit.setClearButtonEnabled(True) |
|
96 self.clientIdEdit.setObjectName("clientIdEdit") |
|
97 self.horizontalLayout_3.addWidget(self.clientIdEdit) |
|
98 self.generateIdButton = QtWidgets.QPushButton(parent=self.profileFrame) |
|
99 self.generateIdButton.setObjectName("generateIdButton") |
|
100 self.horizontalLayout_3.addWidget(self.generateIdButton) |
|
101 self.gridLayout.addLayout(self.horizontalLayout_3, 4, 1, 1, 1) |
|
102 self.line_2 = QtWidgets.QFrame(parent=self.profileFrame) |
|
103 self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine) |
|
104 self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) |
|
105 self.line_2.setObjectName("line_2") |
|
106 self.gridLayout.addWidget(self.line_2, 5, 0, 1, 2) |
|
107 self.verticalLayout_3.addLayout(self.gridLayout) |
|
108 self.profileTabWidget = QtWidgets.QTabWidget(parent=self.profileFrame) |
|
109 self.profileTabWidget.setObjectName("profileTabWidget") |
|
110 self.generalTab = QtWidgets.QWidget() |
|
111 self.generalTab.setObjectName("generalTab") |
|
112 self.gridLayout_2 = QtWidgets.QGridLayout(self.generalTab) |
|
113 self.gridLayout_2.setObjectName("gridLayout_2") |
|
114 self.groupBox_5 = QtWidgets.QGroupBox(parent=self.generalTab) |
|
115 self.groupBox_5.setObjectName("groupBox_5") |
|
116 self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox_5) |
|
117 self.horizontalLayout_7.setObjectName("horizontalLayout_7") |
|
118 self.mqttv31Button = QtWidgets.QRadioButton(parent=self.groupBox_5) |
|
119 self.mqttv31Button.setObjectName("mqttv31Button") |
|
120 self.horizontalLayout_7.addWidget(self.mqttv31Button) |
|
121 self.mqttv311Button = QtWidgets.QRadioButton(parent=self.groupBox_5) |
|
122 self.mqttv311Button.setChecked(True) |
|
123 self.mqttv311Button.setObjectName("mqttv311Button") |
|
124 self.horizontalLayout_7.addWidget(self.mqttv311Button) |
|
125 self.mqttv5Button = QtWidgets.QRadioButton(parent=self.groupBox_5) |
|
126 self.mqttv5Button.setObjectName("mqttv5Button") |
|
127 self.horizontalLayout_7.addWidget(self.mqttv5Button) |
|
128 self.gridLayout_2.addWidget(self.groupBox_5, 0, 0, 1, 2) |
|
129 self.label_12 = QtWidgets.QLabel(parent=self.generalTab) |
|
130 self.label_12.setObjectName("label_12") |
|
131 self.gridLayout_2.addWidget(self.label_12, 1, 0, 1, 1) |
|
132 self.horizontalLayout_5 = QtWidgets.QHBoxLayout() |
|
133 self.horizontalLayout_5.setObjectName("horizontalLayout_5") |
|
134 self.connectionTimeoutSpinBox = QtWidgets.QSpinBox(parent=self.generalTab) |
|
135 self.connectionTimeoutSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) |
|
136 self.connectionTimeoutSpinBox.setMaximum(300) |
|
137 self.connectionTimeoutSpinBox.setSingleStep(5) |
|
138 self.connectionTimeoutSpinBox.setProperty("value", 15) |
|
139 self.connectionTimeoutSpinBox.setObjectName("connectionTimeoutSpinBox") |
|
140 self.horizontalLayout_5.addWidget(self.connectionTimeoutSpinBox) |
|
141 spacerItem2 = QtWidgets.QSpacerItem(148, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
|
142 self.horizontalLayout_5.addItem(spacerItem2) |
|
143 self.gridLayout_2.addLayout(self.horizontalLayout_5, 1, 1, 1, 1) |
|
144 self.label_5 = QtWidgets.QLabel(parent=self.generalTab) |
|
145 self.label_5.setObjectName("label_5") |
|
146 self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1) |
|
147 self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
|
148 self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
|
149 self.keepaliveSpinBox = QtWidgets.QSpinBox(parent=self.generalTab) |
|
150 self.keepaliveSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) |
|
151 self.keepaliveSpinBox.setMaximum(300) |
|
152 self.keepaliveSpinBox.setSingleStep(5) |
|
153 self.keepaliveSpinBox.setProperty("value", 60) |
|
154 self.keepaliveSpinBox.setObjectName("keepaliveSpinBox") |
|
155 self.horizontalLayout_4.addWidget(self.keepaliveSpinBox) |
|
156 spacerItem3 = QtWidgets.QSpacerItem(148, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
|
157 self.horizontalLayout_4.addItem(spacerItem3) |
|
158 self.gridLayout_2.addLayout(self.horizontalLayout_4, 2, 1, 1, 1) |
|
159 self.cleanSessionCheckBox = QtWidgets.QCheckBox(parent=self.generalTab) |
|
160 self.cleanSessionCheckBox.setObjectName("cleanSessionCheckBox") |
|
161 self.gridLayout_2.addWidget(self.cleanSessionCheckBox, 3, 0, 1, 2) |
|
162 spacerItem4 = QtWidgets.QSpacerItem(20, 227, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) |
|
163 self.gridLayout_2.addItem(spacerItem4, 4, 1, 1, 1) |
|
164 self.profileTabWidget.addTab(self.generalTab, "") |
|
165 self.credentialsTab = QtWidgets.QWidget() |
|
166 self.credentialsTab.setObjectName("credentialsTab") |
|
167 self.gridLayout_3 = QtWidgets.QGridLayout(self.credentialsTab) |
|
168 self.gridLayout_3.setObjectName("gridLayout_3") |
|
169 self.label_7 = QtWidgets.QLabel(parent=self.credentialsTab) |
|
170 self.label_7.setObjectName("label_7") |
|
171 self.gridLayout_3.addWidget(self.label_7, 0, 0, 1, 1) |
|
172 self.usernameEdit = QtWidgets.QLineEdit(parent=self.credentialsTab) |
|
173 self.usernameEdit.setClearButtonEnabled(True) |
|
174 self.usernameEdit.setObjectName("usernameEdit") |
|
175 self.gridLayout_3.addWidget(self.usernameEdit, 0, 1, 1, 2) |
|
176 self.label_6 = QtWidgets.QLabel(parent=self.credentialsTab) |
|
177 self.label_6.setObjectName("label_6") |
|
178 self.gridLayout_3.addWidget(self.label_6, 1, 0, 1, 1) |
|
179 self.passwordEdit = QtWidgets.QLineEdit(parent=self.credentialsTab) |
|
180 self.passwordEdit.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password) |
|
181 self.passwordEdit.setClearButtonEnabled(True) |
|
182 self.passwordEdit.setObjectName("passwordEdit") |
|
183 self.gridLayout_3.addWidget(self.passwordEdit, 1, 1, 1, 1) |
|
184 self.showPasswordButton = QtWidgets.QToolButton(parent=self.credentialsTab) |
|
185 self.showPasswordButton.setCheckable(True) |
|
186 self.showPasswordButton.setObjectName("showPasswordButton") |
|
187 self.gridLayout_3.addWidget(self.showPasswordButton, 1, 2, 1, 1) |
|
188 spacerItem5 = QtWidgets.QSpacerItem(20, 228, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) |
|
189 self.gridLayout_3.addItem(spacerItem5, 2, 0, 1, 1) |
|
190 self.profileTabWidget.addTab(self.credentialsTab, "") |
|
191 self.lastWillTab = QtWidgets.QWidget() |
|
192 self.lastWillTab.setObjectName("lastWillTab") |
|
193 self.gridLayout_4 = QtWidgets.QGridLayout(self.lastWillTab) |
|
194 self.gridLayout_4.setObjectName("gridLayout_4") |
|
195 self.willTopicEdit = QtWidgets.QLineEdit(parent=self.lastWillTab) |
|
196 self.willTopicEdit.setClearButtonEnabled(True) |
|
197 self.willTopicEdit.setObjectName("willTopicEdit") |
|
198 self.gridLayout_4.addWidget(self.willTopicEdit, 0, 0, 1, 1) |
|
199 self.label_13 = QtWidgets.QLabel(parent=self.lastWillTab) |
|
200 self.label_13.setObjectName("label_13") |
|
201 self.gridLayout_4.addWidget(self.label_13, 0, 1, 1, 1) |
|
202 self.willQosSpinBox = QtWidgets.QSpinBox(parent=self.lastWillTab) |
|
203 self.willQosSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) |
|
204 self.willQosSpinBox.setMaximum(2) |
|
205 self.willQosSpinBox.setObjectName("willQosSpinBox") |
|
206 self.gridLayout_4.addWidget(self.willQosSpinBox, 0, 2, 1, 1) |
|
207 self.willRetainCheckBox = QtWidgets.QCheckBox(parent=self.lastWillTab) |
|
208 self.willRetainCheckBox.setObjectName("willRetainCheckBox") |
|
209 self.gridLayout_4.addWidget(self.willRetainCheckBox, 0, 3, 1, 1) |
|
210 self.willPropertiesButton = QtWidgets.QToolButton(parent=self.lastWillTab) |
|
211 self.willPropertiesButton.setText("") |
|
212 self.willPropertiesButton.setObjectName("willPropertiesButton") |
|
213 self.gridLayout_4.addWidget(self.willPropertiesButton, 0, 4, 1, 1) |
|
214 self.willMessageEdit = QtWidgets.QPlainTextEdit(parent=self.lastWillTab) |
|
215 self.willMessageEdit.setMaximumSize(QtCore.QSize(16777215, 300)) |
|
216 self.willMessageEdit.setObjectName("willMessageEdit") |
|
217 self.gridLayout_4.addWidget(self.willMessageEdit, 1, 0, 1, 5) |
|
218 self.profileTabWidget.addTab(self.lastWillTab, "") |
|
219 self.tlsTab = QtWidgets.QWidget() |
|
220 self.tlsTab.setObjectName("tlsTab") |
|
221 self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tlsTab) |
|
222 self.verticalLayout_5.setObjectName("verticalLayout_5") |
|
223 self.tlsGroupBox = QtWidgets.QGroupBox(parent=self.tlsTab) |
|
224 self.tlsGroupBox.setCheckable(True) |
|
225 self.tlsGroupBox.setChecked(False) |
|
226 self.tlsGroupBox.setObjectName("tlsGroupBox") |
|
227 self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tlsGroupBox) |
|
228 self.verticalLayout_4.setObjectName("verticalLayout_4") |
|
229 self.tlsDefaultCertsButton = QtWidgets.QRadioButton(parent=self.tlsGroupBox) |
|
230 self.tlsDefaultCertsButton.setChecked(True) |
|
231 self.tlsDefaultCertsButton.setObjectName("tlsDefaultCertsButton") |
|
232 self.verticalLayout_4.addWidget(self.tlsDefaultCertsButton) |
|
233 self.tlsCertsFileButton = QtWidgets.QRadioButton(parent=self.tlsGroupBox) |
|
234 self.tlsCertsFileButton.setObjectName("tlsCertsFileButton") |
|
235 self.verticalLayout_4.addWidget(self.tlsCertsFileButton) |
|
236 self.tlsCertsFileWidget = QtWidgets.QWidget(parent=self.tlsGroupBox) |
|
237 self.tlsCertsFileWidget.setEnabled(False) |
|
238 self.tlsCertsFileWidget.setObjectName("tlsCertsFileWidget") |
|
239 self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.tlsCertsFileWidget) |
|
240 self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0) |
|
241 self.horizontalLayout_6.setObjectName("horizontalLayout_6") |
|
242 spacerItem6 = QtWidgets.QSpacerItem(25, 20, QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) |
|
243 self.horizontalLayout_6.addItem(spacerItem6) |
|
244 self.label_8 = QtWidgets.QLabel(parent=self.tlsCertsFileWidget) |
|
245 self.label_8.setObjectName("label_8") |
|
246 self.horizontalLayout_6.addWidget(self.label_8) |
|
247 self.tlsCertsFilePicker = EricPathPicker(parent=self.tlsCertsFileWidget) |
|
248 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) |
|
249 sizePolicy.setHorizontalStretch(0) |
|
250 sizePolicy.setVerticalStretch(0) |
|
251 sizePolicy.setHeightForWidth(self.tlsCertsFilePicker.sizePolicy().hasHeightForWidth()) |
|
252 self.tlsCertsFilePicker.setSizePolicy(sizePolicy) |
|
253 self.tlsCertsFilePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) |
|
254 self.tlsCertsFilePicker.setObjectName("tlsCertsFilePicker") |
|
255 self.horizontalLayout_6.addWidget(self.tlsCertsFilePicker) |
|
256 self.verticalLayout_4.addWidget(self.tlsCertsFileWidget) |
|
257 self.tlsSelfSignedCertsButton = QtWidgets.QRadioButton(parent=self.tlsGroupBox) |
|
258 self.tlsSelfSignedCertsButton.setObjectName("tlsSelfSignedCertsButton") |
|
259 self.verticalLayout_4.addWidget(self.tlsSelfSignedCertsButton) |
|
260 self.tlsSelfSignedFilesWidget = QtWidgets.QWidget(parent=self.tlsGroupBox) |
|
261 self.tlsSelfSignedFilesWidget.setEnabled(False) |
|
262 self.tlsSelfSignedFilesWidget.setObjectName("tlsSelfSignedFilesWidget") |
|
263 self.gridLayout_5 = QtWidgets.QGridLayout(self.tlsSelfSignedFilesWidget) |
|
264 self.gridLayout_5.setContentsMargins(0, 0, 0, 0) |
|
265 self.gridLayout_5.setObjectName("gridLayout_5") |
|
266 spacerItem7 = QtWidgets.QSpacerItem(25, 20, QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) |
|
267 self.gridLayout_5.addItem(spacerItem7, 0, 0, 1, 1) |
|
268 self.label_9 = QtWidgets.QLabel(parent=self.tlsSelfSignedFilesWidget) |
|
269 self.label_9.setObjectName("label_9") |
|
270 self.gridLayout_5.addWidget(self.label_9, 0, 1, 1, 1) |
|
271 self.tlsSelfSignedCertsFilePicker = EricPathPicker(parent=self.tlsSelfSignedFilesWidget) |
|
272 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) |
|
273 sizePolicy.setHorizontalStretch(0) |
|
274 sizePolicy.setVerticalStretch(0) |
|
275 sizePolicy.setHeightForWidth(self.tlsSelfSignedCertsFilePicker.sizePolicy().hasHeightForWidth()) |
|
276 self.tlsSelfSignedCertsFilePicker.setSizePolicy(sizePolicy) |
|
277 self.tlsSelfSignedCertsFilePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) |
|
278 self.tlsSelfSignedCertsFilePicker.setObjectName("tlsSelfSignedCertsFilePicker") |
|
279 self.gridLayout_5.addWidget(self.tlsSelfSignedCertsFilePicker, 0, 2, 1, 1) |
|
280 self.label_10 = QtWidgets.QLabel(parent=self.tlsSelfSignedFilesWidget) |
|
281 self.label_10.setObjectName("label_10") |
|
282 self.gridLayout_5.addWidget(self.label_10, 1, 1, 1, 1) |
|
283 self.tlsSelfSignedClientCertFilePicker = EricPathPicker(parent=self.tlsSelfSignedFilesWidget) |
|
284 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) |
|
285 sizePolicy.setHorizontalStretch(0) |
|
286 sizePolicy.setVerticalStretch(0) |
|
287 sizePolicy.setHeightForWidth(self.tlsSelfSignedClientCertFilePicker.sizePolicy().hasHeightForWidth()) |
|
288 self.tlsSelfSignedClientCertFilePicker.setSizePolicy(sizePolicy) |
|
289 self.tlsSelfSignedClientCertFilePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) |
|
290 self.tlsSelfSignedClientCertFilePicker.setObjectName("tlsSelfSignedClientCertFilePicker") |
|
291 self.gridLayout_5.addWidget(self.tlsSelfSignedClientCertFilePicker, 1, 2, 1, 1) |
|
292 self.label_11 = QtWidgets.QLabel(parent=self.tlsSelfSignedFilesWidget) |
|
293 self.label_11.setObjectName("label_11") |
|
294 self.gridLayout_5.addWidget(self.label_11, 2, 1, 1, 1) |
|
295 self.tlsSelfSignedClientKeyFilePicker = EricPathPicker(parent=self.tlsSelfSignedFilesWidget) |
|
296 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) |
|
297 sizePolicy.setHorizontalStretch(0) |
|
298 sizePolicy.setVerticalStretch(0) |
|
299 sizePolicy.setHeightForWidth(self.tlsSelfSignedClientKeyFilePicker.sizePolicy().hasHeightForWidth()) |
|
300 self.tlsSelfSignedClientKeyFilePicker.setSizePolicy(sizePolicy) |
|
301 self.tlsSelfSignedClientKeyFilePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) |
|
302 self.tlsSelfSignedClientKeyFilePicker.setObjectName("tlsSelfSignedClientKeyFilePicker") |
|
303 self.gridLayout_5.addWidget(self.tlsSelfSignedClientKeyFilePicker, 2, 2, 1, 1) |
|
304 self.verticalLayout_4.addWidget(self.tlsSelfSignedFilesWidget) |
|
305 self.verticalLayout_5.addWidget(self.tlsGroupBox) |
|
306 spacerItem8 = QtWidgets.QSpacerItem(20, 128, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) |
|
307 self.verticalLayout_5.addItem(spacerItem8) |
|
308 self.profileTabWidget.addTab(self.tlsTab, "") |
|
309 self.propertiesTab = QtWidgets.QWidget() |
|
310 self.propertiesTab.setObjectName("propertiesTab") |
|
311 self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.propertiesTab) |
|
312 self.verticalLayout_6.setObjectName("verticalLayout_6") |
|
313 self.horizontalLayout_8 = QtWidgets.QHBoxLayout() |
|
314 self.horizontalLayout_8.setObjectName("horizontalLayout_8") |
|
315 self.connectPropertiesButton = QtWidgets.QRadioButton(parent=self.propertiesTab) |
|
316 self.connectPropertiesButton.setChecked(True) |
|
317 self.connectPropertiesButton.setObjectName("connectPropertiesButton") |
|
318 self.horizontalLayout_8.addWidget(self.connectPropertiesButton) |
|
319 self.disconnectPropertiesButton = QtWidgets.QRadioButton(parent=self.propertiesTab) |
|
320 self.disconnectPropertiesButton.setObjectName("disconnectPropertiesButton") |
|
321 self.horizontalLayout_8.addWidget(self.disconnectPropertiesButton) |
|
322 self.verticalLayout_6.addLayout(self.horizontalLayout_8) |
|
323 self.propertiesWidget = MqttUserPropertiesEditor(parent=self.propertiesTab) |
|
324 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) |
|
325 sizePolicy.setHorizontalStretch(0) |
|
326 sizePolicy.setVerticalStretch(0) |
|
327 sizePolicy.setHeightForWidth(self.propertiesWidget.sizePolicy().hasHeightForWidth()) |
|
328 self.propertiesWidget.setSizePolicy(sizePolicy) |
|
329 self.propertiesWidget.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) |
|
330 self.propertiesWidget.setObjectName("propertiesWidget") |
|
331 self.verticalLayout_6.addWidget(self.propertiesWidget) |
|
332 self.samePropertiesCheckBox = QtWidgets.QCheckBox(parent=self.propertiesTab) |
|
333 self.samePropertiesCheckBox.setObjectName("samePropertiesCheckBox") |
|
334 self.verticalLayout_6.addWidget(self.samePropertiesCheckBox) |
|
335 self.profileTabWidget.addTab(self.propertiesTab, "") |
|
336 self.verticalLayout_3.addWidget(self.profileTabWidget) |
|
337 self.profileButtonBox = QtWidgets.QDialogButtonBox(parent=self.profileFrame) |
|
338 self.profileButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Reset|QtWidgets.QDialogButtonBox.StandardButton.RestoreDefaults) |
|
339 self.profileButtonBox.setObjectName("profileButtonBox") |
|
340 self.verticalLayout_3.addWidget(self.profileButtonBox) |
|
341 self.verticalLayout_2.addWidget(self.splitter) |
|
342 self.buttonBox = QtWidgets.QDialogButtonBox(parent=MqttConnectionProfilesDialog) |
|
343 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) |
|
344 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) |
|
345 self.buttonBox.setObjectName("buttonBox") |
|
346 self.verticalLayout_2.addWidget(self.buttonBox) |
|
347 |
|
348 self.retranslateUi(MqttConnectionProfilesDialog) |
|
349 self.profileTabWidget.setCurrentIndex(0) |
|
350 self.buttonBox.accepted.connect(MqttConnectionProfilesDialog.accept) # type: ignore |
|
351 self.buttonBox.rejected.connect(MqttConnectionProfilesDialog.reject) # type: ignore |
|
352 self.tlsCertsFileButton.toggled['bool'].connect(self.tlsCertsFileWidget.setEnabled) # type: ignore |
|
353 self.tlsSelfSignedCertsButton.toggled['bool'].connect(self.tlsSelfSignedFilesWidget.setEnabled) # type: ignore |
|
354 QtCore.QMetaObject.connectSlotsByName(MqttConnectionProfilesDialog) |
|
355 MqttConnectionProfilesDialog.setTabOrder(self.profilesList, self.plusButton) |
|
356 MqttConnectionProfilesDialog.setTabOrder(self.plusButton, self.copyButton) |
|
357 MqttConnectionProfilesDialog.setTabOrder(self.copyButton, self.minusButton) |
|
358 MqttConnectionProfilesDialog.setTabOrder(self.minusButton, self.profileEdit) |
|
359 MqttConnectionProfilesDialog.setTabOrder(self.profileEdit, self.brokerAddressEdit) |
|
360 MqttConnectionProfilesDialog.setTabOrder(self.brokerAddressEdit, self.brokerPortSpinBox) |
|
361 MqttConnectionProfilesDialog.setTabOrder(self.brokerPortSpinBox, self.clientIdEdit) |
|
362 MqttConnectionProfilesDialog.setTabOrder(self.clientIdEdit, self.generateIdButton) |
|
363 MqttConnectionProfilesDialog.setTabOrder(self.generateIdButton, self.profileTabWidget) |
|
364 MqttConnectionProfilesDialog.setTabOrder(self.profileTabWidget, self.mqttv31Button) |
|
365 MqttConnectionProfilesDialog.setTabOrder(self.mqttv31Button, self.mqttv311Button) |
|
366 MqttConnectionProfilesDialog.setTabOrder(self.mqttv311Button, self.mqttv5Button) |
|
367 MqttConnectionProfilesDialog.setTabOrder(self.mqttv5Button, self.connectionTimeoutSpinBox) |
|
368 MqttConnectionProfilesDialog.setTabOrder(self.connectionTimeoutSpinBox, self.keepaliveSpinBox) |
|
369 MqttConnectionProfilesDialog.setTabOrder(self.keepaliveSpinBox, self.cleanSessionCheckBox) |
|
370 MqttConnectionProfilesDialog.setTabOrder(self.cleanSessionCheckBox, self.usernameEdit) |
|
371 MqttConnectionProfilesDialog.setTabOrder(self.usernameEdit, self.passwordEdit) |
|
372 MqttConnectionProfilesDialog.setTabOrder(self.passwordEdit, self.showPasswordButton) |
|
373 MqttConnectionProfilesDialog.setTabOrder(self.showPasswordButton, self.willTopicEdit) |
|
374 MqttConnectionProfilesDialog.setTabOrder(self.willTopicEdit, self.willMessageEdit) |
|
375 MqttConnectionProfilesDialog.setTabOrder(self.willMessageEdit, self.willQosSpinBox) |
|
376 MqttConnectionProfilesDialog.setTabOrder(self.willQosSpinBox, self.willRetainCheckBox) |
|
377 MqttConnectionProfilesDialog.setTabOrder(self.willRetainCheckBox, self.willPropertiesButton) |
|
378 MqttConnectionProfilesDialog.setTabOrder(self.willPropertiesButton, self.tlsGroupBox) |
|
379 MqttConnectionProfilesDialog.setTabOrder(self.tlsGroupBox, self.tlsDefaultCertsButton) |
|
380 MqttConnectionProfilesDialog.setTabOrder(self.tlsDefaultCertsButton, self.tlsCertsFileButton) |
|
381 MqttConnectionProfilesDialog.setTabOrder(self.tlsCertsFileButton, self.tlsCertsFilePicker) |
|
382 MqttConnectionProfilesDialog.setTabOrder(self.tlsCertsFilePicker, self.tlsSelfSignedCertsButton) |
|
383 MqttConnectionProfilesDialog.setTabOrder(self.tlsSelfSignedCertsButton, self.tlsSelfSignedCertsFilePicker) |
|
384 MqttConnectionProfilesDialog.setTabOrder(self.tlsSelfSignedCertsFilePicker, self.tlsSelfSignedClientCertFilePicker) |
|
385 MqttConnectionProfilesDialog.setTabOrder(self.tlsSelfSignedClientCertFilePicker, self.tlsSelfSignedClientKeyFilePicker) |
|
386 MqttConnectionProfilesDialog.setTabOrder(self.tlsSelfSignedClientKeyFilePicker, self.connectPropertiesButton) |
|
387 MqttConnectionProfilesDialog.setTabOrder(self.connectPropertiesButton, self.disconnectPropertiesButton) |
|
388 MqttConnectionProfilesDialog.setTabOrder(self.disconnectPropertiesButton, self.propertiesWidget) |
|
389 MqttConnectionProfilesDialog.setTabOrder(self.propertiesWidget, self.samePropertiesCheckBox) |
|
390 |
|
391 def retranslateUi(self, MqttConnectionProfilesDialog): |
|
392 _translate = QtCore.QCoreApplication.translate |
|
393 MqttConnectionProfilesDialog.setWindowTitle(_translate("MqttConnectionProfilesDialog", "MQTT Connection Profiles")) |
|
394 self.profilesList.setSortingEnabled(True) |
|
395 self.plusButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Press to add a new profile")) |
|
396 self.copyButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Press to copy the selected profile")) |
|
397 self.minusButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Press to delete the selected profile")) |
|
398 self.label.setText(_translate("MqttConnectionProfilesDialog", "Profile Name:")) |
|
399 self.label_2.setText(_translate("MqttConnectionProfilesDialog", "Broker Address:")) |
|
400 self.brokerAddressEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the broker server address")) |
|
401 self.label_3.setText(_translate("MqttConnectionProfilesDialog", "Broker Port:")) |
|
402 self.brokerPortSpinBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the broker port number (default 1883)")) |
|
403 self.label_4.setText(_translate("MqttConnectionProfilesDialog", "Client ID:")) |
|
404 self.clientIdEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the ID string for this client")) |
|
405 self.generateIdButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Press to generate a client ID")) |
|
406 self.generateIdButton.setText(_translate("MqttConnectionProfilesDialog", "Generate")) |
|
407 self.groupBox_5.setTitle(_translate("MqttConnectionProfilesDialog", "MQTT Protocol")) |
|
408 self.mqttv31Button.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use the MQTT 3.1 protocol")) |
|
409 self.mqttv31Button.setText(_translate("MqttConnectionProfilesDialog", "v 3.1")) |
|
410 self.mqttv311Button.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use the MQTT 3.1.1 protocol")) |
|
411 self.mqttv311Button.setText(_translate("MqttConnectionProfilesDialog", "v 3.1.1")) |
|
412 self.mqttv5Button.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use the MQTT 5.0 protocol")) |
|
413 self.mqttv5Button.setText(_translate("MqttConnectionProfilesDialog", "v 5.0")) |
|
414 self.label_12.setText(_translate("MqttConnectionProfilesDialog", "Connection Timeout:")) |
|
415 self.connectionTimeoutSpinBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the connection timeout in seconds")) |
|
416 self.connectionTimeoutSpinBox.setSuffix(_translate("MqttConnectionProfilesDialog", " s")) |
|
417 self.label_5.setText(_translate("MqttConnectionProfilesDialog", "Keep Alive Interval:")) |
|
418 self.keepaliveSpinBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the keep alive interval in seconds")) |
|
419 self.keepaliveSpinBox.setSuffix(_translate("MqttConnectionProfilesDialog", " s")) |
|
420 self.cleanSessionCheckBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to start with a clean session")) |
|
421 self.cleanSessionCheckBox.setText(_translate("MqttConnectionProfilesDialog", "Clean Session")) |
|
422 self.profileTabWidget.setTabText(self.profileTabWidget.indexOf(self.generalTab), _translate("MqttConnectionProfilesDialog", "General")) |
|
423 self.label_7.setText(_translate("MqttConnectionProfilesDialog", "User Name:")) |
|
424 self.usernameEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the user name")) |
|
425 self.label_6.setText(_translate("MqttConnectionProfilesDialog", "Password:")) |
|
426 self.passwordEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the password")) |
|
427 self.showPasswordButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Toggle to show the password")) |
|
428 self.profileTabWidget.setTabText(self.profileTabWidget.indexOf(self.credentialsTab), _translate("MqttConnectionProfilesDialog", "User Credentials")) |
|
429 self.willTopicEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the topic of the last will")) |
|
430 self.label_13.setText(_translate("MqttConnectionProfilesDialog", "QoS:")) |
|
431 self.willQosSpinBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the desired QoS value")) |
|
432 self.willRetainCheckBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to retain the last will message")) |
|
433 self.willRetainCheckBox.setText(_translate("MqttConnectionProfilesDialog", "Retain")) |
|
434 self.willPropertiesButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Press to edit the user properties")) |
|
435 self.willMessageEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the last will message to be sent")) |
|
436 self.profileTabWidget.setTabText(self.profileTabWidget.indexOf(self.lastWillTab), _translate("MqttConnectionProfilesDialog", "Last Will")) |
|
437 self.tlsGroupBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to enable SSL/TLS connections")) |
|
438 self.tlsGroupBox.setTitle(_translate("MqttConnectionProfilesDialog", "SSL/TLS Enabled")) |
|
439 self.tlsDefaultCertsButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use the default certificate file of the client")) |
|
440 self.tlsDefaultCertsButton.setText(_translate("MqttConnectionProfilesDialog", "CA signed server certificate")) |
|
441 self.tlsCertsFileButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use a specific certificate file")) |
|
442 self.tlsCertsFileButton.setText(_translate("MqttConnectionProfilesDialog", "CA certificate file")) |
|
443 self.label_8.setText(_translate("MqttConnectionProfilesDialog", "CA File:")) |
|
444 self.tlsCertsFilePicker.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the full path to the CA certificate file")) |
|
445 self.tlsSelfSignedCertsButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use a self signed client certificate")) |
|
446 self.tlsSelfSignedCertsButton.setText(_translate("MqttConnectionProfilesDialog", "Self signed certificates")) |
|
447 self.label_9.setText(_translate("MqttConnectionProfilesDialog", "CA File:")) |
|
448 self.tlsSelfSignedCertsFilePicker.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the full path to the CA certificate file")) |
|
449 self.label_10.setText(_translate("MqttConnectionProfilesDialog", "Client Certificate File:")) |
|
450 self.tlsSelfSignedClientCertFilePicker.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the full path to the client certificate file")) |
|
451 self.label_11.setText(_translate("MqttConnectionProfilesDialog", "Client Key File:")) |
|
452 self.tlsSelfSignedClientKeyFilePicker.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the full path to the client key file")) |
|
453 self.profileTabWidget.setTabText(self.profileTabWidget.indexOf(self.tlsTab), _translate("MqttConnectionProfilesDialog", "SSL/TLS")) |
|
454 self.connectPropertiesButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to edit the CONNECT user properties")) |
|
455 self.connectPropertiesButton.setText(_translate("MqttConnectionProfilesDialog", "CONNECT")) |
|
456 self.disconnectPropertiesButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to edit the DISCONNECT user properties")) |
|
457 self.disconnectPropertiesButton.setText(_translate("MqttConnectionProfilesDialog", "DISCONNECT")) |
|
458 self.samePropertiesCheckBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use the CONNECT user properties when disconnecting")) |
|
459 self.samePropertiesCheckBox.setText(_translate("MqttConnectionProfilesDialog", "Use CONNECT properties for DISCONNECT")) |
|
460 self.profileTabWidget.setTabText(self.profileTabWidget.indexOf(self.propertiesTab), _translate("MqttConnectionProfilesDialog", "User Properties")) |
|
461 from MqttMonitor.MqttUserPropertiesEditor import MqttUserPropertiesEditor |
|
462 from eric7.EricWidgets.EricPathPicker import EricPathPicker |