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

# Form implementation generated from reading ui file 'connection.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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_Connection(object):
    def setupUi(self, Connection):
        Connection.setObjectName("Connection")
        Connection.resize(245, 243)
        self.label = QtWidgets.QLabel(Connection)
        self.label.setGeometry(QtCore.QRect(20, 10, 101, 16))
        self.label.setObjectName("label")
        self.portLabel = QtWidgets.QLabel(Connection)
        self.portLabel.setGeometry(QtCore.QRect(20, 70, 49, 16))
        self.portLabel.setObjectName("portLabel")
        self.userLabel = QtWidgets.QLabel(Connection)
        self.userLabel.setGeometry(QtCore.QRect(20, 100, 61, 16))
        self.userLabel.setObjectName("userLabel")
        self.passLabel = QtWidgets.QLabel(Connection)
        self.passLabel.setGeometry(QtCore.QRect(20, 130, 81, 16))
        self.passLabel.setObjectName("passLabel")
        self.databaseLabel = QtWidgets.QLabel(Connection)
        self.databaseLabel.setGeometry(QtCore.QRect(20, 160, 61, 16))
        self.databaseLabel.setObjectName("databaseLabel")
        self.portInput = QtWidgets.QLineEdit(Connection)
        self.portInput.setGeometry(QtCore.QRect(100, 70, 131, 21))
        self.portInput.setText("")
        self.portInput.setObjectName("portInput")
        self.usernameInput = QtWidgets.QLineEdit(Connection)
        self.usernameInput.setGeometry(QtCore.QRect(100, 100, 131, 21))
        self.usernameInput.setText("")
        self.usernameInput.setObjectName("usernameInput")
        self.passwordInput = QtWidgets.QLineEdit(Connection)
        self.passwordInput.setGeometry(QtCore.QRect(100, 130, 131, 21))
        self.passwordInput.setInputMethodHints(QtCore.Qt.ImhHiddenText|QtCore.Qt.ImhSensitiveData)
        self.passwordInput.setObjectName("passwordInput")
        self.databaseInput = QtWidgets.QLineEdit(Connection)
        self.databaseInput.setGeometry(QtCore.QRect(100, 160, 131, 21))
        self.databaseInput.setObjectName("databaseInput")
        self.testButton = QtWidgets.QPushButton(Connection)
        self.testButton.setEnabled(False)
        self.testButton.setGeometry(QtCore.QRect(14, 190, 101, 24))
        self.testButton.setObjectName("testButton")
        self.saveButton = QtWidgets.QPushButton(Connection)
        self.saveButton.setEnabled(False)
        self.saveButton.setGeometry(QtCore.QRect(130, 190, 101, 24))
        self.saveButton.setObjectName("saveButton")
        self.returnLabel = QtWidgets.QLabel(Connection)
        self.returnLabel.setGeometry(QtCore.QRect(20, 220, 211, 16))
        self.returnLabel.setObjectName("returnLabel")
        self.ipLabel = QtWidgets.QLabel(Connection)
        self.ipLabel.setGeometry(QtCore.QRect(20, 40, 101, 16))
        self.ipLabel.setObjectName("ipLabel")
        self.ipInput = QtWidgets.QLineEdit(Connection)
        self.ipInput.setGeometry(QtCore.QRect(100, 40, 131, 21))
        self.ipInput.setText("")
        self.ipInput.setObjectName("ipInput")
        self.dbtypeCombo = QtWidgets.QComboBox(Connection)
        self.dbtypeCombo.setGeometry(QtCore.QRect(100, 10, 131, 22))
        self.dbtypeCombo.setObjectName("dbtypeCombo")
        self.dbPath = QtWidgets.QFileDialog(Connection)
        self.dbPath.setGeometry(QtCore.QRect(100, 15, 131, 22))
        self.dbPath.setObjectName("dbPath")

        self.retranslateUi(Connection)
        self.ipInput.returnPressed.connect(self.portInput.setFocus) # type: ignore
        self.portInput.returnPressed.connect(self.usernameInput.setFocus) # type: ignore
        self.usernameInput.returnPressed.connect(self.passwordInput.setFocus) # type: ignore
        self.passwordInput.returnPressed.connect(self.databaseInput.setFocus) # type: ignore
        self.databaseInput.returnPressed.connect(self.testButton.click) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Connection)
        Connection.setTabOrder(self.dbtypeCombo, self.ipInput)
        Connection.setTabOrder(self.ipInput, self.portInput)
        Connection.setTabOrder(self.portInput, self.usernameInput)
        Connection.setTabOrder(self.usernameInput, self.passwordInput)
        Connection.setTabOrder(self.passwordInput, self.databaseInput)
        Connection.setTabOrder(self.databaseInput, self.testButton)
        Connection.setTabOrder(self.testButton, self.saveButton)

    def retranslateUi(self, Connection):
        _translate = QtCore.QCoreApplication.translate
        Connection.setWindowTitle(_translate("Connection", "Form"))
        self.label.setText(_translate("Connection", "Database"))
        self.portLabel.setText(_translate("Connection", "Port"))
        self.userLabel.setText(_translate("Connection", "Username"))
        self.passLabel.setText(_translate("Connection", "Password"))
        self.databaseLabel.setText(_translate("Connection", "Database"))
        self.testButton.setText(_translate("Connection", "Test Connection"))
        self.saveButton.setText(_translate("Connection", "Save"))
        self.returnLabel.setText(_translate("Connection", "Connection ... / Saved..."))
        self.ipLabel.setText(_translate("Connection", "IP"))
