--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MqttMonitor/Ui_MqttConnectionProfilesDialog.py Thu Aug 01 11:30:50 2024 +0200 @@ -0,0 +1,462 @@ +# Form implementation generated from reading ui file 'MqttMonitor/MqttConnectionProfilesDialog.ui' +# +# Created by: PyQt6 UI code generator 6.7.1 +# +# WARNING: Any manual changes made to this file will be lost when pyuic6 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt6 import QtCore, QtGui, QtWidgets + + +class Ui_MqttConnectionProfilesDialog(object): + def setupUi(self, MqttConnectionProfilesDialog): + MqttConnectionProfilesDialog.setObjectName("MqttConnectionProfilesDialog") + MqttConnectionProfilesDialog.resize(800, 600) + MqttConnectionProfilesDialog.setSizeGripEnabled(True) + self.verticalLayout_2 = QtWidgets.QVBoxLayout(MqttConnectionProfilesDialog) + self.verticalLayout_2.setObjectName("verticalLayout_2") + self.splitter = QtWidgets.QSplitter(parent=MqttConnectionProfilesDialog) + self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.splitter.setChildrenCollapsible(False) + self.splitter.setObjectName("splitter") + self.profileListFrame = QtWidgets.QFrame(parent=self.splitter) + self.profileListFrame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) + self.profileListFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) + self.profileListFrame.setObjectName("profileListFrame") + self.verticalLayout = QtWidgets.QVBoxLayout(self.profileListFrame) + self.verticalLayout.setObjectName("verticalLayout") + self.profilesList = QtWidgets.QListWidget(parent=self.profileListFrame) + self.profilesList.setAlternatingRowColors(True) + self.profilesList.setObjectName("profilesList") + self.verticalLayout.addWidget(self.profilesList) + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + self.plusButton = QtWidgets.QToolButton(parent=self.profileListFrame) + self.plusButton.setObjectName("plusButton") + self.horizontalLayout.addWidget(self.plusButton) + self.copyButton = QtWidgets.QToolButton(parent=self.profileListFrame) + self.copyButton.setObjectName("copyButton") + self.horizontalLayout.addWidget(self.copyButton) + self.minusButton = QtWidgets.QToolButton(parent=self.profileListFrame) + self.minusButton.setObjectName("minusButton") + self.horizontalLayout.addWidget(self.minusButton) + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.horizontalLayout.addItem(spacerItem) + self.verticalLayout.addLayout(self.horizontalLayout) + self.profileFrame = QtWidgets.QFrame(parent=self.splitter) + self.profileFrame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) + self.profileFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) + self.profileFrame.setObjectName("profileFrame") + self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.profileFrame) + self.verticalLayout_3.setObjectName("verticalLayout_3") + self.gridLayout = QtWidgets.QGridLayout() + self.gridLayout.setObjectName("gridLayout") + self.label = QtWidgets.QLabel(parent=self.profileFrame) + self.label.setObjectName("label") + self.gridLayout.addWidget(self.label, 0, 0, 1, 1) + self.profileEdit = QtWidgets.QLineEdit(parent=self.profileFrame) + self.profileEdit.setReadOnly(True) + self.profileEdit.setClearButtonEnabled(True) + self.profileEdit.setObjectName("profileEdit") + self.gridLayout.addWidget(self.profileEdit, 0, 1, 1, 1) + self.line = QtWidgets.QFrame(parent=self.profileFrame) + self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine) + self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) + self.line.setObjectName("line") + self.gridLayout.addWidget(self.line, 1, 0, 1, 2) + self.label_2 = QtWidgets.QLabel(parent=self.profileFrame) + self.label_2.setObjectName("label_2") + self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) + self.brokerAddressEdit = QtWidgets.QLineEdit(parent=self.profileFrame) + self.brokerAddressEdit.setClearButtonEnabled(True) + self.brokerAddressEdit.setObjectName("brokerAddressEdit") + self.gridLayout.addWidget(self.brokerAddressEdit, 2, 1, 1, 1) + self.label_3 = QtWidgets.QLabel(parent=self.profileFrame) + self.label_3.setObjectName("label_3") + self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1) + self.horizontalLayout_2 = QtWidgets.QHBoxLayout() + self.horizontalLayout_2.setObjectName("horizontalLayout_2") + self.brokerPortSpinBox = QtWidgets.QSpinBox(parent=self.profileFrame) + self.brokerPortSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) + self.brokerPortSpinBox.setMaximum(65535) + self.brokerPortSpinBox.setProperty("value", 1883) + self.brokerPortSpinBox.setObjectName("brokerPortSpinBox") + self.horizontalLayout_2.addWidget(self.brokerPortSpinBox) + spacerItem1 = QtWidgets.QSpacerItem(318, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.horizontalLayout_2.addItem(spacerItem1) + self.gridLayout.addLayout(self.horizontalLayout_2, 3, 1, 1, 1) + self.label_4 = QtWidgets.QLabel(parent=self.profileFrame) + self.label_4.setObjectName("label_4") + self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1) + self.horizontalLayout_3 = QtWidgets.QHBoxLayout() + self.horizontalLayout_3.setObjectName("horizontalLayout_3") + self.clientIdEdit = QtWidgets.QLineEdit(parent=self.profileFrame) + self.clientIdEdit.setClearButtonEnabled(True) + self.clientIdEdit.setObjectName("clientIdEdit") + self.horizontalLayout_3.addWidget(self.clientIdEdit) + self.generateIdButton = QtWidgets.QPushButton(parent=self.profileFrame) + self.generateIdButton.setObjectName("generateIdButton") + self.horizontalLayout_3.addWidget(self.generateIdButton) + self.gridLayout.addLayout(self.horizontalLayout_3, 4, 1, 1, 1) + self.line_2 = QtWidgets.QFrame(parent=self.profileFrame) + self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine) + self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) + self.line_2.setObjectName("line_2") + self.gridLayout.addWidget(self.line_2, 5, 0, 1, 2) + self.verticalLayout_3.addLayout(self.gridLayout) + self.profileTabWidget = QtWidgets.QTabWidget(parent=self.profileFrame) + self.profileTabWidget.setObjectName("profileTabWidget") + self.generalTab = QtWidgets.QWidget() + self.generalTab.setObjectName("generalTab") + self.gridLayout_2 = QtWidgets.QGridLayout(self.generalTab) + self.gridLayout_2.setObjectName("gridLayout_2") + self.groupBox_5 = QtWidgets.QGroupBox(parent=self.generalTab) + self.groupBox_5.setObjectName("groupBox_5") + self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox_5) + self.horizontalLayout_7.setObjectName("horizontalLayout_7") + self.mqttv31Button = QtWidgets.QRadioButton(parent=self.groupBox_5) + self.mqttv31Button.setObjectName("mqttv31Button") + self.horizontalLayout_7.addWidget(self.mqttv31Button) + self.mqttv311Button = QtWidgets.QRadioButton(parent=self.groupBox_5) + self.mqttv311Button.setChecked(True) + self.mqttv311Button.setObjectName("mqttv311Button") + self.horizontalLayout_7.addWidget(self.mqttv311Button) + self.mqttv5Button = QtWidgets.QRadioButton(parent=self.groupBox_5) + self.mqttv5Button.setObjectName("mqttv5Button") + self.horizontalLayout_7.addWidget(self.mqttv5Button) + self.gridLayout_2.addWidget(self.groupBox_5, 0, 0, 1, 2) + self.label_12 = QtWidgets.QLabel(parent=self.generalTab) + self.label_12.setObjectName("label_12") + self.gridLayout_2.addWidget(self.label_12, 1, 0, 1, 1) + self.horizontalLayout_5 = QtWidgets.QHBoxLayout() + self.horizontalLayout_5.setObjectName("horizontalLayout_5") + self.connectionTimeoutSpinBox = QtWidgets.QSpinBox(parent=self.generalTab) + self.connectionTimeoutSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) + self.connectionTimeoutSpinBox.setMaximum(300) + self.connectionTimeoutSpinBox.setSingleStep(5) + self.connectionTimeoutSpinBox.setProperty("value", 15) + self.connectionTimeoutSpinBox.setObjectName("connectionTimeoutSpinBox") + self.horizontalLayout_5.addWidget(self.connectionTimeoutSpinBox) + spacerItem2 = QtWidgets.QSpacerItem(148, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.horizontalLayout_5.addItem(spacerItem2) + self.gridLayout_2.addLayout(self.horizontalLayout_5, 1, 1, 1, 1) + self.label_5 = QtWidgets.QLabel(parent=self.generalTab) + self.label_5.setObjectName("label_5") + self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1) + self.horizontalLayout_4 = QtWidgets.QHBoxLayout() + self.horizontalLayout_4.setObjectName("horizontalLayout_4") + self.keepaliveSpinBox = QtWidgets.QSpinBox(parent=self.generalTab) + self.keepaliveSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) + self.keepaliveSpinBox.setMaximum(300) + self.keepaliveSpinBox.setSingleStep(5) + self.keepaliveSpinBox.setProperty("value", 60) + self.keepaliveSpinBox.setObjectName("keepaliveSpinBox") + self.horizontalLayout_4.addWidget(self.keepaliveSpinBox) + spacerItem3 = QtWidgets.QSpacerItem(148, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.horizontalLayout_4.addItem(spacerItem3) + self.gridLayout_2.addLayout(self.horizontalLayout_4, 2, 1, 1, 1) + self.cleanSessionCheckBox = QtWidgets.QCheckBox(parent=self.generalTab) + self.cleanSessionCheckBox.setObjectName("cleanSessionCheckBox") + self.gridLayout_2.addWidget(self.cleanSessionCheckBox, 3, 0, 1, 2) + spacerItem4 = QtWidgets.QSpacerItem(20, 227, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.gridLayout_2.addItem(spacerItem4, 4, 1, 1, 1) + self.profileTabWidget.addTab(self.generalTab, "") + self.credentialsTab = QtWidgets.QWidget() + self.credentialsTab.setObjectName("credentialsTab") + self.gridLayout_3 = QtWidgets.QGridLayout(self.credentialsTab) + self.gridLayout_3.setObjectName("gridLayout_3") + self.label_7 = QtWidgets.QLabel(parent=self.credentialsTab) + self.label_7.setObjectName("label_7") + self.gridLayout_3.addWidget(self.label_7, 0, 0, 1, 1) + self.usernameEdit = QtWidgets.QLineEdit(parent=self.credentialsTab) + self.usernameEdit.setClearButtonEnabled(True) + self.usernameEdit.setObjectName("usernameEdit") + self.gridLayout_3.addWidget(self.usernameEdit, 0, 1, 1, 2) + self.label_6 = QtWidgets.QLabel(parent=self.credentialsTab) + self.label_6.setObjectName("label_6") + self.gridLayout_3.addWidget(self.label_6, 1, 0, 1, 1) + self.passwordEdit = QtWidgets.QLineEdit(parent=self.credentialsTab) + self.passwordEdit.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password) + self.passwordEdit.setClearButtonEnabled(True) + self.passwordEdit.setObjectName("passwordEdit") + self.gridLayout_3.addWidget(self.passwordEdit, 1, 1, 1, 1) + self.showPasswordButton = QtWidgets.QToolButton(parent=self.credentialsTab) + self.showPasswordButton.setCheckable(True) + self.showPasswordButton.setObjectName("showPasswordButton") + self.gridLayout_3.addWidget(self.showPasswordButton, 1, 2, 1, 1) + spacerItem5 = QtWidgets.QSpacerItem(20, 228, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.gridLayout_3.addItem(spacerItem5, 2, 0, 1, 1) + self.profileTabWidget.addTab(self.credentialsTab, "") + self.lastWillTab = QtWidgets.QWidget() + self.lastWillTab.setObjectName("lastWillTab") + self.gridLayout_4 = QtWidgets.QGridLayout(self.lastWillTab) + self.gridLayout_4.setObjectName("gridLayout_4") + self.willTopicEdit = QtWidgets.QLineEdit(parent=self.lastWillTab) + self.willTopicEdit.setClearButtonEnabled(True) + self.willTopicEdit.setObjectName("willTopicEdit") + self.gridLayout_4.addWidget(self.willTopicEdit, 0, 0, 1, 1) + self.label_13 = QtWidgets.QLabel(parent=self.lastWillTab) + self.label_13.setObjectName("label_13") + self.gridLayout_4.addWidget(self.label_13, 0, 1, 1, 1) + self.willQosSpinBox = QtWidgets.QSpinBox(parent=self.lastWillTab) + self.willQosSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) + self.willQosSpinBox.setMaximum(2) + self.willQosSpinBox.setObjectName("willQosSpinBox") + self.gridLayout_4.addWidget(self.willQosSpinBox, 0, 2, 1, 1) + self.willRetainCheckBox = QtWidgets.QCheckBox(parent=self.lastWillTab) + self.willRetainCheckBox.setObjectName("willRetainCheckBox") + self.gridLayout_4.addWidget(self.willRetainCheckBox, 0, 3, 1, 1) + self.willPropertiesButton = QtWidgets.QToolButton(parent=self.lastWillTab) + self.willPropertiesButton.setText("") + self.willPropertiesButton.setObjectName("willPropertiesButton") + self.gridLayout_4.addWidget(self.willPropertiesButton, 0, 4, 1, 1) + self.willMessageEdit = QtWidgets.QPlainTextEdit(parent=self.lastWillTab) + self.willMessageEdit.setMaximumSize(QtCore.QSize(16777215, 300)) + self.willMessageEdit.setObjectName("willMessageEdit") + self.gridLayout_4.addWidget(self.willMessageEdit, 1, 0, 1, 5) + self.profileTabWidget.addTab(self.lastWillTab, "") + self.tlsTab = QtWidgets.QWidget() + self.tlsTab.setObjectName("tlsTab") + self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tlsTab) + self.verticalLayout_5.setObjectName("verticalLayout_5") + self.tlsGroupBox = QtWidgets.QGroupBox(parent=self.tlsTab) + self.tlsGroupBox.setCheckable(True) + self.tlsGroupBox.setChecked(False) + self.tlsGroupBox.setObjectName("tlsGroupBox") + self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tlsGroupBox) + self.verticalLayout_4.setObjectName("verticalLayout_4") + self.tlsDefaultCertsButton = QtWidgets.QRadioButton(parent=self.tlsGroupBox) + self.tlsDefaultCertsButton.setChecked(True) + self.tlsDefaultCertsButton.setObjectName("tlsDefaultCertsButton") + self.verticalLayout_4.addWidget(self.tlsDefaultCertsButton) + self.tlsCertsFileButton = QtWidgets.QRadioButton(parent=self.tlsGroupBox) + self.tlsCertsFileButton.setObjectName("tlsCertsFileButton") + self.verticalLayout_4.addWidget(self.tlsCertsFileButton) + self.tlsCertsFileWidget = QtWidgets.QWidget(parent=self.tlsGroupBox) + self.tlsCertsFileWidget.setEnabled(False) + self.tlsCertsFileWidget.setObjectName("tlsCertsFileWidget") + self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.tlsCertsFileWidget) + self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0) + self.horizontalLayout_6.setObjectName("horizontalLayout_6") + spacerItem6 = QtWidgets.QSpacerItem(25, 20, QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) + self.horizontalLayout_6.addItem(spacerItem6) + self.label_8 = QtWidgets.QLabel(parent=self.tlsCertsFileWidget) + self.label_8.setObjectName("label_8") + self.horizontalLayout_6.addWidget(self.label_8) + self.tlsCertsFilePicker = EricPathPicker(parent=self.tlsCertsFileWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.tlsCertsFilePicker.sizePolicy().hasHeightForWidth()) + self.tlsCertsFilePicker.setSizePolicy(sizePolicy) + self.tlsCertsFilePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) + self.tlsCertsFilePicker.setObjectName("tlsCertsFilePicker") + self.horizontalLayout_6.addWidget(self.tlsCertsFilePicker) + self.verticalLayout_4.addWidget(self.tlsCertsFileWidget) + self.tlsSelfSignedCertsButton = QtWidgets.QRadioButton(parent=self.tlsGroupBox) + self.tlsSelfSignedCertsButton.setObjectName("tlsSelfSignedCertsButton") + self.verticalLayout_4.addWidget(self.tlsSelfSignedCertsButton) + self.tlsSelfSignedFilesWidget = QtWidgets.QWidget(parent=self.tlsGroupBox) + self.tlsSelfSignedFilesWidget.setEnabled(False) + self.tlsSelfSignedFilesWidget.setObjectName("tlsSelfSignedFilesWidget") + self.gridLayout_5 = QtWidgets.QGridLayout(self.tlsSelfSignedFilesWidget) + self.gridLayout_5.setContentsMargins(0, 0, 0, 0) + self.gridLayout_5.setObjectName("gridLayout_5") + spacerItem7 = QtWidgets.QSpacerItem(25, 20, QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) + self.gridLayout_5.addItem(spacerItem7, 0, 0, 1, 1) + self.label_9 = QtWidgets.QLabel(parent=self.tlsSelfSignedFilesWidget) + self.label_9.setObjectName("label_9") + self.gridLayout_5.addWidget(self.label_9, 0, 1, 1, 1) + self.tlsSelfSignedCertsFilePicker = EricPathPicker(parent=self.tlsSelfSignedFilesWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.tlsSelfSignedCertsFilePicker.sizePolicy().hasHeightForWidth()) + self.tlsSelfSignedCertsFilePicker.setSizePolicy(sizePolicy) + self.tlsSelfSignedCertsFilePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) + self.tlsSelfSignedCertsFilePicker.setObjectName("tlsSelfSignedCertsFilePicker") + self.gridLayout_5.addWidget(self.tlsSelfSignedCertsFilePicker, 0, 2, 1, 1) + self.label_10 = QtWidgets.QLabel(parent=self.tlsSelfSignedFilesWidget) + self.label_10.setObjectName("label_10") + self.gridLayout_5.addWidget(self.label_10, 1, 1, 1, 1) + self.tlsSelfSignedClientCertFilePicker = EricPathPicker(parent=self.tlsSelfSignedFilesWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.tlsSelfSignedClientCertFilePicker.sizePolicy().hasHeightForWidth()) + self.tlsSelfSignedClientCertFilePicker.setSizePolicy(sizePolicy) + self.tlsSelfSignedClientCertFilePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) + self.tlsSelfSignedClientCertFilePicker.setObjectName("tlsSelfSignedClientCertFilePicker") + self.gridLayout_5.addWidget(self.tlsSelfSignedClientCertFilePicker, 1, 2, 1, 1) + self.label_11 = QtWidgets.QLabel(parent=self.tlsSelfSignedFilesWidget) + self.label_11.setObjectName("label_11") + self.gridLayout_5.addWidget(self.label_11, 2, 1, 1, 1) + self.tlsSelfSignedClientKeyFilePicker = EricPathPicker(parent=self.tlsSelfSignedFilesWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.tlsSelfSignedClientKeyFilePicker.sizePolicy().hasHeightForWidth()) + self.tlsSelfSignedClientKeyFilePicker.setSizePolicy(sizePolicy) + self.tlsSelfSignedClientKeyFilePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) + self.tlsSelfSignedClientKeyFilePicker.setObjectName("tlsSelfSignedClientKeyFilePicker") + self.gridLayout_5.addWidget(self.tlsSelfSignedClientKeyFilePicker, 2, 2, 1, 1) + self.verticalLayout_4.addWidget(self.tlsSelfSignedFilesWidget) + self.verticalLayout_5.addWidget(self.tlsGroupBox) + spacerItem8 = QtWidgets.QSpacerItem(20, 128, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.verticalLayout_5.addItem(spacerItem8) + self.profileTabWidget.addTab(self.tlsTab, "") + self.propertiesTab = QtWidgets.QWidget() + self.propertiesTab.setObjectName("propertiesTab") + self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.propertiesTab) + self.verticalLayout_6.setObjectName("verticalLayout_6") + self.horizontalLayout_8 = QtWidgets.QHBoxLayout() + self.horizontalLayout_8.setObjectName("horizontalLayout_8") + self.connectPropertiesButton = QtWidgets.QRadioButton(parent=self.propertiesTab) + self.connectPropertiesButton.setChecked(True) + self.connectPropertiesButton.setObjectName("connectPropertiesButton") + self.horizontalLayout_8.addWidget(self.connectPropertiesButton) + self.disconnectPropertiesButton = QtWidgets.QRadioButton(parent=self.propertiesTab) + self.disconnectPropertiesButton.setObjectName("disconnectPropertiesButton") + self.horizontalLayout_8.addWidget(self.disconnectPropertiesButton) + self.verticalLayout_6.addLayout(self.horizontalLayout_8) + self.propertiesWidget = MqttUserPropertiesEditor(parent=self.propertiesTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.propertiesWidget.sizePolicy().hasHeightForWidth()) + self.propertiesWidget.setSizePolicy(sizePolicy) + self.propertiesWidget.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) + self.propertiesWidget.setObjectName("propertiesWidget") + self.verticalLayout_6.addWidget(self.propertiesWidget) + self.samePropertiesCheckBox = QtWidgets.QCheckBox(parent=self.propertiesTab) + self.samePropertiesCheckBox.setObjectName("samePropertiesCheckBox") + self.verticalLayout_6.addWidget(self.samePropertiesCheckBox) + self.profileTabWidget.addTab(self.propertiesTab, "") + self.verticalLayout_3.addWidget(self.profileTabWidget) + self.profileButtonBox = QtWidgets.QDialogButtonBox(parent=self.profileFrame) + self.profileButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Reset|QtWidgets.QDialogButtonBox.StandardButton.RestoreDefaults) + self.profileButtonBox.setObjectName("profileButtonBox") + self.verticalLayout_3.addWidget(self.profileButtonBox) + self.verticalLayout_2.addWidget(self.splitter) + self.buttonBox = QtWidgets.QDialogButtonBox(parent=MqttConnectionProfilesDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout_2.addWidget(self.buttonBox) + + self.retranslateUi(MqttConnectionProfilesDialog) + self.profileTabWidget.setCurrentIndex(0) + self.buttonBox.accepted.connect(MqttConnectionProfilesDialog.accept) # type: ignore + self.buttonBox.rejected.connect(MqttConnectionProfilesDialog.reject) # type: ignore + self.tlsCertsFileButton.toggled['bool'].connect(self.tlsCertsFileWidget.setEnabled) # type: ignore + self.tlsSelfSignedCertsButton.toggled['bool'].connect(self.tlsSelfSignedFilesWidget.setEnabled) # type: ignore + QtCore.QMetaObject.connectSlotsByName(MqttConnectionProfilesDialog) + MqttConnectionProfilesDialog.setTabOrder(self.profilesList, self.plusButton) + MqttConnectionProfilesDialog.setTabOrder(self.plusButton, self.copyButton) + MqttConnectionProfilesDialog.setTabOrder(self.copyButton, self.minusButton) + MqttConnectionProfilesDialog.setTabOrder(self.minusButton, self.profileEdit) + MqttConnectionProfilesDialog.setTabOrder(self.profileEdit, self.brokerAddressEdit) + MqttConnectionProfilesDialog.setTabOrder(self.brokerAddressEdit, self.brokerPortSpinBox) + MqttConnectionProfilesDialog.setTabOrder(self.brokerPortSpinBox, self.clientIdEdit) + MqttConnectionProfilesDialog.setTabOrder(self.clientIdEdit, self.generateIdButton) + MqttConnectionProfilesDialog.setTabOrder(self.generateIdButton, self.profileTabWidget) + MqttConnectionProfilesDialog.setTabOrder(self.profileTabWidget, self.mqttv31Button) + MqttConnectionProfilesDialog.setTabOrder(self.mqttv31Button, self.mqttv311Button) + MqttConnectionProfilesDialog.setTabOrder(self.mqttv311Button, self.mqttv5Button) + MqttConnectionProfilesDialog.setTabOrder(self.mqttv5Button, self.connectionTimeoutSpinBox) + MqttConnectionProfilesDialog.setTabOrder(self.connectionTimeoutSpinBox, self.keepaliveSpinBox) + MqttConnectionProfilesDialog.setTabOrder(self.keepaliveSpinBox, self.cleanSessionCheckBox) + MqttConnectionProfilesDialog.setTabOrder(self.cleanSessionCheckBox, self.usernameEdit) + MqttConnectionProfilesDialog.setTabOrder(self.usernameEdit, self.passwordEdit) + MqttConnectionProfilesDialog.setTabOrder(self.passwordEdit, self.showPasswordButton) + MqttConnectionProfilesDialog.setTabOrder(self.showPasswordButton, self.willTopicEdit) + MqttConnectionProfilesDialog.setTabOrder(self.willTopicEdit, self.willMessageEdit) + MqttConnectionProfilesDialog.setTabOrder(self.willMessageEdit, self.willQosSpinBox) + MqttConnectionProfilesDialog.setTabOrder(self.willQosSpinBox, self.willRetainCheckBox) + MqttConnectionProfilesDialog.setTabOrder(self.willRetainCheckBox, self.willPropertiesButton) + MqttConnectionProfilesDialog.setTabOrder(self.willPropertiesButton, self.tlsGroupBox) + MqttConnectionProfilesDialog.setTabOrder(self.tlsGroupBox, self.tlsDefaultCertsButton) + MqttConnectionProfilesDialog.setTabOrder(self.tlsDefaultCertsButton, self.tlsCertsFileButton) + MqttConnectionProfilesDialog.setTabOrder(self.tlsCertsFileButton, self.tlsCertsFilePicker) + MqttConnectionProfilesDialog.setTabOrder(self.tlsCertsFilePicker, self.tlsSelfSignedCertsButton) + MqttConnectionProfilesDialog.setTabOrder(self.tlsSelfSignedCertsButton, self.tlsSelfSignedCertsFilePicker) + MqttConnectionProfilesDialog.setTabOrder(self.tlsSelfSignedCertsFilePicker, self.tlsSelfSignedClientCertFilePicker) + MqttConnectionProfilesDialog.setTabOrder(self.tlsSelfSignedClientCertFilePicker, self.tlsSelfSignedClientKeyFilePicker) + MqttConnectionProfilesDialog.setTabOrder(self.tlsSelfSignedClientKeyFilePicker, self.connectPropertiesButton) + MqttConnectionProfilesDialog.setTabOrder(self.connectPropertiesButton, self.disconnectPropertiesButton) + MqttConnectionProfilesDialog.setTabOrder(self.disconnectPropertiesButton, self.propertiesWidget) + MqttConnectionProfilesDialog.setTabOrder(self.propertiesWidget, self.samePropertiesCheckBox) + + def retranslateUi(self, MqttConnectionProfilesDialog): + _translate = QtCore.QCoreApplication.translate + MqttConnectionProfilesDialog.setWindowTitle(_translate("MqttConnectionProfilesDialog", "MQTT Connection Profiles")) + self.profilesList.setSortingEnabled(True) + self.plusButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Press to add a new profile")) + self.copyButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Press to copy the selected profile")) + self.minusButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Press to delete the selected profile")) + self.label.setText(_translate("MqttConnectionProfilesDialog", "Profile Name:")) + self.label_2.setText(_translate("MqttConnectionProfilesDialog", "Broker Address:")) + self.brokerAddressEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the broker server address")) + self.label_3.setText(_translate("MqttConnectionProfilesDialog", "Broker Port:")) + self.brokerPortSpinBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the broker port number (default 1883)")) + self.label_4.setText(_translate("MqttConnectionProfilesDialog", "Client ID:")) + self.clientIdEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the ID string for this client")) + self.generateIdButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Press to generate a client ID")) + self.generateIdButton.setText(_translate("MqttConnectionProfilesDialog", "Generate")) + self.groupBox_5.setTitle(_translate("MqttConnectionProfilesDialog", "MQTT Protocol")) + self.mqttv31Button.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use the MQTT 3.1 protocol")) + self.mqttv31Button.setText(_translate("MqttConnectionProfilesDialog", "v 3.1")) + self.mqttv311Button.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use the MQTT 3.1.1 protocol")) + self.mqttv311Button.setText(_translate("MqttConnectionProfilesDialog", "v 3.1.1")) + self.mqttv5Button.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use the MQTT 5.0 protocol")) + self.mqttv5Button.setText(_translate("MqttConnectionProfilesDialog", "v 5.0")) + self.label_12.setText(_translate("MqttConnectionProfilesDialog", "Connection Timeout:")) + self.connectionTimeoutSpinBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the connection timeout in seconds")) + self.connectionTimeoutSpinBox.setSuffix(_translate("MqttConnectionProfilesDialog", " s")) + self.label_5.setText(_translate("MqttConnectionProfilesDialog", "Keep Alive Interval:")) + self.keepaliveSpinBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the keep alive interval in seconds")) + self.keepaliveSpinBox.setSuffix(_translate("MqttConnectionProfilesDialog", " s")) + self.cleanSessionCheckBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to start with a clean session")) + self.cleanSessionCheckBox.setText(_translate("MqttConnectionProfilesDialog", "Clean Session")) + self.profileTabWidget.setTabText(self.profileTabWidget.indexOf(self.generalTab), _translate("MqttConnectionProfilesDialog", "General")) + self.label_7.setText(_translate("MqttConnectionProfilesDialog", "User Name:")) + self.usernameEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the user name")) + self.label_6.setText(_translate("MqttConnectionProfilesDialog", "Password:")) + self.passwordEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the password")) + self.showPasswordButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Toggle to show the password")) + self.profileTabWidget.setTabText(self.profileTabWidget.indexOf(self.credentialsTab), _translate("MqttConnectionProfilesDialog", "User Credentials")) + self.willTopicEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the topic of the last will")) + self.label_13.setText(_translate("MqttConnectionProfilesDialog", "QoS:")) + self.willQosSpinBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the desired QoS value")) + self.willRetainCheckBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to retain the last will message")) + self.willRetainCheckBox.setText(_translate("MqttConnectionProfilesDialog", "Retain")) + self.willPropertiesButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Press to edit the user properties")) + self.willMessageEdit.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the last will message to be sent")) + self.profileTabWidget.setTabText(self.profileTabWidget.indexOf(self.lastWillTab), _translate("MqttConnectionProfilesDialog", "Last Will")) + self.tlsGroupBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to enable SSL/TLS connections")) + self.tlsGroupBox.setTitle(_translate("MqttConnectionProfilesDialog", "SSL/TLS Enabled")) + self.tlsDefaultCertsButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use the default certificate file of the client")) + self.tlsDefaultCertsButton.setText(_translate("MqttConnectionProfilesDialog", "CA signed server certificate")) + self.tlsCertsFileButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use a specific certificate file")) + self.tlsCertsFileButton.setText(_translate("MqttConnectionProfilesDialog", "CA certificate file")) + self.label_8.setText(_translate("MqttConnectionProfilesDialog", "CA File:")) + self.tlsCertsFilePicker.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the full path to the CA certificate file")) + self.tlsSelfSignedCertsButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use a self signed client certificate")) + self.tlsSelfSignedCertsButton.setText(_translate("MqttConnectionProfilesDialog", "Self signed certificates")) + self.label_9.setText(_translate("MqttConnectionProfilesDialog", "CA File:")) + self.tlsSelfSignedCertsFilePicker.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the full path to the CA certificate file")) + self.label_10.setText(_translate("MqttConnectionProfilesDialog", "Client Certificate File:")) + self.tlsSelfSignedClientCertFilePicker.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the full path to the client certificate file")) + self.label_11.setText(_translate("MqttConnectionProfilesDialog", "Client Key File:")) + self.tlsSelfSignedClientKeyFilePicker.setToolTip(_translate("MqttConnectionProfilesDialog", "Enter the full path to the client key file")) + self.profileTabWidget.setTabText(self.profileTabWidget.indexOf(self.tlsTab), _translate("MqttConnectionProfilesDialog", "SSL/TLS")) + self.connectPropertiesButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to edit the CONNECT user properties")) + self.connectPropertiesButton.setText(_translate("MqttConnectionProfilesDialog", "CONNECT")) + self.disconnectPropertiesButton.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to edit the DISCONNECT user properties")) + self.disconnectPropertiesButton.setText(_translate("MqttConnectionProfilesDialog", "DISCONNECT")) + self.samePropertiesCheckBox.setToolTip(_translate("MqttConnectionProfilesDialog", "Select to use the CONNECT user properties when disconnecting")) + self.samePropertiesCheckBox.setText(_translate("MqttConnectionProfilesDialog", "Use CONNECT properties for DISCONNECT")) + self.profileTabWidget.setTabText(self.profileTabWidget.indexOf(self.propertiesTab), _translate("MqttConnectionProfilesDialog", "User Properties")) +from MqttMonitor.MqttUserPropertiesEditor import MqttUserPropertiesEditor +from eric7.EricWidgets.EricPathPicker import EricPathPicker