mirror of
https://github.com/GNS3/gns3-gui.git
synced 2026-05-17 00:46:01 +03:00
119 lines
8.3 KiB
Python
119 lines
8.3 KiB
Python
# Form implementation generated from reading ui file '/home/grossmj/PycharmProjects/gns3-gui/gns3/ui/edit_compute_dialog.ui'
|
|
#
|
|
# Created by: PyQt6 UI code generator 6.10.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_EditComputeDialog(object):
|
|
def setupUi(self, EditComputeDialog):
|
|
EditComputeDialog.setObjectName("EditComputeDialog")
|
|
EditComputeDialog.setWindowModality(QtCore.Qt.WindowModality.WindowModal)
|
|
EditComputeDialog.resize(585, 353)
|
|
self.verticalLayout = QtWidgets.QVBoxLayout(EditComputeDialog)
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
self.groupBox = QtWidgets.QGroupBox(parent=EditComputeDialog)
|
|
self.groupBox.setObjectName("groupBox")
|
|
self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
|
|
self.gridLayout.setObjectName("gridLayout")
|
|
self.uiServerPortLabel = QtWidgets.QLabel(parent=self.groupBox)
|
|
self.uiServerPortLabel.setObjectName("uiServerPortLabel")
|
|
self.gridLayout.addWidget(self.uiServerPortLabel, 3, 0, 1, 1)
|
|
self.uiServerNameLineEdit = QtWidgets.QLineEdit(parent=self.groupBox)
|
|
self.uiServerNameLineEdit.setObjectName("uiServerNameLineEdit")
|
|
self.gridLayout.addWidget(self.uiServerNameLineEdit, 0, 1, 1, 1)
|
|
self.uiServerHostLineEdit = QtWidgets.QLineEdit(parent=self.groupBox)
|
|
self.uiServerHostLineEdit.setObjectName("uiServerHostLineEdit")
|
|
self.gridLayout.addWidget(self.uiServerHostLineEdit, 2, 1, 1, 2)
|
|
self.uiServerHostLabel = QtWidgets.QLabel(parent=self.groupBox)
|
|
self.uiServerHostLabel.setObjectName("uiServerHostLabel")
|
|
self.gridLayout.addWidget(self.uiServerHostLabel, 2, 0, 1, 1)
|
|
self.uiServerPortSpinBox = QtWidgets.QSpinBox(parent=self.groupBox)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.uiServerPortSpinBox.sizePolicy().hasHeightForWidth())
|
|
self.uiServerPortSpinBox.setSizePolicy(sizePolicy)
|
|
self.uiServerPortSpinBox.setSuffix(" TCP")
|
|
self.uiServerPortSpinBox.setMaximum(65535)
|
|
self.uiServerPortSpinBox.setProperty("value", 3080)
|
|
self.uiServerPortSpinBox.setObjectName("uiServerPortSpinBox")
|
|
self.gridLayout.addWidget(self.uiServerPortSpinBox, 3, 1, 1, 2)
|
|
self.label = QtWidgets.QLabel(parent=self.groupBox)
|
|
self.label.setObjectName("label")
|
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
|
self.uiServerProtocolLabel = QtWidgets.QLabel(parent=self.groupBox)
|
|
self.uiServerProtocolLabel.setObjectName("uiServerProtocolLabel")
|
|
self.gridLayout.addWidget(self.uiServerProtocolLabel, 1, 0, 1, 1)
|
|
self.uiServerProtocolComboBox = QtWidgets.QComboBox(parent=self.groupBox)
|
|
self.uiServerProtocolComboBox.setObjectName("uiServerProtocolComboBox")
|
|
self.uiServerProtocolComboBox.addItem("")
|
|
self.uiServerProtocolComboBox.addItem("")
|
|
self.gridLayout.addWidget(self.uiServerProtocolComboBox, 1, 1, 1, 1)
|
|
self.verticalLayout.addWidget(self.groupBox)
|
|
self.uiEnableAuthenticationCheckBox = QtWidgets.QGroupBox(parent=EditComputeDialog)
|
|
self.uiEnableAuthenticationCheckBox.setCheckable(True)
|
|
self.uiEnableAuthenticationCheckBox.setObjectName("uiEnableAuthenticationCheckBox")
|
|
self.formLayout = QtWidgets.QFormLayout(self.uiEnableAuthenticationCheckBox)
|
|
self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow)
|
|
self.formLayout.setObjectName("formLayout")
|
|
self.uiServerUserLabel = QtWidgets.QLabel(parent=self.uiEnableAuthenticationCheckBox)
|
|
self.uiServerUserLabel.setObjectName("uiServerUserLabel")
|
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.uiServerUserLabel)
|
|
self.uiServerUserLineEdit = QtWidgets.QLineEdit(parent=self.uiEnableAuthenticationCheckBox)
|
|
self.uiServerUserLineEdit.setEnabled(True)
|
|
self.uiServerUserLineEdit.setToolTip("")
|
|
self.uiServerUserLineEdit.setObjectName("uiServerUserLineEdit")
|
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.uiServerUserLineEdit)
|
|
self.uiServerPasswordLabel = QtWidgets.QLabel(parent=self.uiEnableAuthenticationCheckBox)
|
|
self.uiServerPasswordLabel.setObjectName("uiServerPasswordLabel")
|
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.uiServerPasswordLabel)
|
|
self.uiServerPasswordLineEdit = QtWidgets.QLineEdit(parent=self.uiEnableAuthenticationCheckBox)
|
|
self.uiServerPasswordLineEdit.setEnabled(True)
|
|
self.uiServerPasswordLineEdit.setInputMethodHints(QtCore.Qt.InputMethodHint.ImhHiddenText|QtCore.Qt.InputMethodHint.ImhNoAutoUppercase|QtCore.Qt.InputMethodHint.ImhNoPredictiveText|QtCore.Qt.InputMethodHint.ImhSensitiveData)
|
|
self.uiServerPasswordLineEdit.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password)
|
|
self.uiServerPasswordLineEdit.setObjectName("uiServerPasswordLineEdit")
|
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.uiServerPasswordLineEdit)
|
|
self.verticalLayout.addWidget(self.uiEnableAuthenticationCheckBox)
|
|
self.uiWarningLabel = QtWidgets.QLabel(parent=EditComputeDialog)
|
|
self.uiWarningLabel.setWordWrap(True)
|
|
self.uiWarningLabel.setObjectName("uiWarningLabel")
|
|
self.verticalLayout.addWidget(self.uiWarningLabel)
|
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
|
self.verticalLayout.addItem(spacerItem)
|
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=EditComputeDialog)
|
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
|
self.buttonBox.setObjectName("buttonBox")
|
|
self.verticalLayout.addWidget(self.buttonBox)
|
|
|
|
self.retranslateUi(EditComputeDialog)
|
|
self.buttonBox.accepted.connect(EditComputeDialog.accept) # type: ignore
|
|
self.buttonBox.rejected.connect(EditComputeDialog.reject) # type: ignore
|
|
QtCore.QMetaObject.connectSlotsByName(EditComputeDialog)
|
|
EditComputeDialog.setTabOrder(self.uiServerNameLineEdit, self.uiServerHostLineEdit)
|
|
EditComputeDialog.setTabOrder(self.uiServerHostLineEdit, self.uiServerPortSpinBox)
|
|
EditComputeDialog.setTabOrder(self.uiServerPortSpinBox, self.uiEnableAuthenticationCheckBox)
|
|
EditComputeDialog.setTabOrder(self.uiEnableAuthenticationCheckBox, self.uiServerUserLineEdit)
|
|
EditComputeDialog.setTabOrder(self.uiServerUserLineEdit, self.uiServerPasswordLineEdit)
|
|
|
|
def retranslateUi(self, EditComputeDialog):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
EditComputeDialog.setWindowTitle(_translate("EditComputeDialog", "Edit server settings"))
|
|
self.groupBox.setTitle(_translate("EditComputeDialog", "Server settings"))
|
|
self.uiServerPortLabel.setText(_translate("EditComputeDialog", "Port:"))
|
|
self.uiServerHostLineEdit.setText(_translate("EditComputeDialog", "192.168.56.101"))
|
|
self.uiServerHostLabel.setText(_translate("EditComputeDialog", "Host:"))
|
|
self.label.setText(_translate("EditComputeDialog", "Name:"))
|
|
self.uiServerProtocolLabel.setText(_translate("EditComputeDialog", "Protocol:"))
|
|
self.uiServerProtocolComboBox.setItemText(0, _translate("EditComputeDialog", "HTTP"))
|
|
self.uiServerProtocolComboBox.setItemText(1, _translate("EditComputeDialog", "HTTPS"))
|
|
self.uiEnableAuthenticationCheckBox.setTitle(_translate("EditComputeDialog", "Enable authentication"))
|
|
self.uiServerUserLabel.setText(_translate("EditComputeDialog", "User:"))
|
|
self.uiServerPasswordLabel.setText(_translate("EditComputeDialog", "Password:"))
|
|
self.uiWarningLabel.setText(_translate("EditComputeDialog", "<html><head/><body><p><span style=\" font-weight:600;\">WARNING</span>: Changing a server with authentication enabled will reset the password.</p></body></html>"))
|