# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'c:\Users\SpecterShell\Documents\Workspace\QPass\SetDatabase.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_SetDatabase(object):
    def setupUi(self, SetDatabase):
        SetDatabase.setObjectName("SetDatabase")
        SetDatabase.resize(486, 312)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("d:\\Repositories\\PasswordManager\\QPass\\QPass\\icon/dns-black-48dp.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        SetDatabase.setWindowIcon(icon)
        self.gridLayout = QtWidgets.QGridLayout(SetDatabase)
        self.gridLayout.setObjectName("gridLayout")
        self.pushButtonTestConnection = QtWidgets.QPushButton(SetDatabase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButtonTestConnection.sizePolicy().hasHeightForWidth())
        self.pushButtonTestConnection.setSizePolicy(sizePolicy)
        self.pushButtonTestConnection.setObjectName("pushButtonTestConnection")
        self.gridLayout.addWidget(self.pushButtonTestConnection, 3, 0, 1, 1)
        self.plainTextEditTestResult = QtWidgets.QPlainTextEdit(SetDatabase)
        self.plainTextEditTestResult.setReadOnly(True)
        self.plainTextEditTestResult.setObjectName("plainTextEditTestResult")
        self.gridLayout.addWidget(self.plainTextEditTestResult, 4, 0, 1, 3)
        self.buttonBox = QtWidgets.QDialogButtonBox(SetDatabase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth())
        self.buttonBox.setSizePolicy(sizePolicy)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 3, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 3, 1, 1, 1)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.labelHost = QtWidgets.QLabel(SetDatabase)
        self.labelHost.setObjectName("labelHost")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.labelHost)
        self.lineEditHost = QtWidgets.QLineEdit(SetDatabase)
        self.lineEditHost.setObjectName("lineEditHost")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEditHost)
        self.labelPort = QtWidgets.QLabel(SetDatabase)
        self.labelPort.setObjectName("labelPort")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.labelPort)
        self.lineEditPort = QtWidgets.QLineEdit(SetDatabase)
        self.lineEditPort.setInputMethodHints(QtCore.Qt.ImhFormattedNumbersOnly)
        self.lineEditPort.setMaxLength(5)
        self.lineEditPort.setObjectName("lineEditPort")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEditPort)
        self.labelUser = QtWidgets.QLabel(SetDatabase)
        self.labelUser.setObjectName("labelUser")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.labelUser)
        self.lineEditUser = QtWidgets.QLineEdit(SetDatabase)
        self.lineEditUser.setObjectName("lineEditUser")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEditUser)
        self.labelPassword = QtWidgets.QLabel(SetDatabase)
        self.labelPassword.setObjectName("labelPassword")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.labelPassword)
        self.lineEditPassword = QtWidgets.QLineEdit(SetDatabase)
        self.lineEditPassword.setEchoMode(QtWidgets.QLineEdit.PasswordEchoOnEdit)
        self.lineEditPassword.setObjectName("lineEditPassword")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.lineEditPassword)
        self.labelDatabase = QtWidgets.QLabel(SetDatabase)
        self.labelDatabase.setObjectName("labelDatabase")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.labelDatabase)
        self.lineEditDatabase = QtWidgets.QLineEdit(SetDatabase)
        self.lineEditDatabase.setObjectName("lineEditDatabase")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.lineEditDatabase)
        self.gridLayout.addLayout(self.formLayout, 2, 0, 1, 3)

        self.retranslateUi(SetDatabase)
        self.buttonBox.accepted.connect(SetDatabase.accept)
        self.buttonBox.rejected.connect(SetDatabase.reject)
        QtCore.QMetaObject.connectSlotsByName(SetDatabase)

    def retranslateUi(self, SetDatabase):
        _translate = QtCore.QCoreApplication.translate
        SetDatabase.setWindowTitle(_translate("SetDatabase", "数据库"))
        self.pushButtonTestConnection.setText(_translate("SetDatabase", "测试"))
        self.plainTextEditTestResult.setPlainText(_translate("SetDatabase", "准备就绪"))
        self.labelHost.setText(_translate("SetDatabase", "地址"))
        self.lineEditHost.setText(_translate("SetDatabase", "127.0.0.1"))
        self.labelPort.setText(_translate("SetDatabase", "端口"))
        self.lineEditPort.setText(_translate("SetDatabase", "3306"))
        self.labelUser.setText(_translate("SetDatabase", "用户名"))
        self.lineEditUser.setText(_translate("SetDatabase", "root"))
        self.labelPassword.setText(_translate("SetDatabase", "密码"))
        self.labelDatabase.setText(_translate("SetDatabase", "数据库"))
        self.lineEditDatabase.setText(_translate("SetDatabase", "passwords"))
