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

# Form implementation generated from reading ui file 'eric/SqlBrowser/SqlConnectionDialog.ui'
#
# Created by: PyQt5 UI code generator 5.4.1
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_SqlConnectionDialog(object):
    def setupUi(self, SqlConnectionDialog):
        SqlConnectionDialog.setObjectName("SqlConnectionDialog")
        SqlConnectionDialog.resize(400, 265)
        self.verticalLayout = QtWidgets.QVBoxLayout(SqlConnectionDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.textLabel2 = QtWidgets.QLabel(SqlConnectionDialog)
        self.textLabel2.setObjectName("textLabel2")
        self.gridLayout.addWidget(self.textLabel2, 0, 0, 1, 1)
        self.driverCombo = QtWidgets.QComboBox(SqlConnectionDialog)
        self.driverCombo.setObjectName("driverCombo")
        self.gridLayout.addWidget(self.driverCombo, 0, 1, 1, 2)
        self.textLabel3 = QtWidgets.QLabel(SqlConnectionDialog)
        self.textLabel3.setObjectName("textLabel3")
        self.gridLayout.addWidget(self.textLabel3, 1, 0, 1, 1)
        self.databaseEdit = QtWidgets.QLineEdit(SqlConnectionDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.databaseEdit.sizePolicy().hasHeightForWidth())
        self.databaseEdit.setSizePolicy(sizePolicy)
        self.databaseEdit.setObjectName("databaseEdit")
        self.gridLayout.addWidget(self.databaseEdit, 1, 1, 1, 2)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 2, 1, 1, 1)
        self.textLabel4 = QtWidgets.QLabel(SqlConnectionDialog)
        self.textLabel4.setObjectName("textLabel4")
        self.gridLayout.addWidget(self.textLabel4, 3, 0, 1, 1)
        self.usernameEdit = QtWidgets.QLineEdit(SqlConnectionDialog)
        self.usernameEdit.setObjectName("usernameEdit")
        self.gridLayout.addWidget(self.usernameEdit, 3, 1, 1, 2)
        self.textLabel4_2 = QtWidgets.QLabel(SqlConnectionDialog)
        self.textLabel4_2.setObjectName("textLabel4_2")
        self.gridLayout.addWidget(self.textLabel4_2, 4, 0, 1, 1)
        self.passwordEdit = QtWidgets.QLineEdit(SqlConnectionDialog)
        self.passwordEdit.setEchoMode(QtWidgets.QLineEdit.Password)
        self.passwordEdit.setObjectName("passwordEdit")
        self.gridLayout.addWidget(self.passwordEdit, 4, 1, 1, 2)
        self.textLabel5 = QtWidgets.QLabel(SqlConnectionDialog)
        self.textLabel5.setObjectName("textLabel5")
        self.gridLayout.addWidget(self.textLabel5, 5, 0, 1, 1)
        self.hostnameEdit = QtWidgets.QLineEdit(SqlConnectionDialog)
        self.hostnameEdit.setObjectName("hostnameEdit")
        self.gridLayout.addWidget(self.hostnameEdit, 5, 1, 1, 2)
        self.textLabel5_2 = QtWidgets.QLabel(SqlConnectionDialog)
        self.textLabel5_2.setObjectName("textLabel5_2")
        self.gridLayout.addWidget(self.textLabel5_2, 6, 0, 1, 1)
        self.portSpinBox = QtWidgets.QSpinBox(SqlConnectionDialog)
        self.portSpinBox.setMinimum(-1)
        self.portSpinBox.setMaximum(65535)
        self.portSpinBox.setProperty("value", -1)
        self.portSpinBox.setObjectName("portSpinBox")
        self.gridLayout.addWidget(self.portSpinBox, 6, 1, 1, 2)
        self.databaseFileButton = QtWidgets.QToolButton(SqlConnectionDialog)
        self.databaseFileButton.setObjectName("databaseFileButton")
        self.gridLayout.addWidget(self.databaseFileButton, 2, 2, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.buttonBox = QtWidgets.QDialogButtonBox(SqlConnectionDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)
        self.textLabel2.setBuddy(self.driverCombo)
        self.textLabel3.setBuddy(self.databaseEdit)
        self.textLabel4.setBuddy(self.usernameEdit)
        self.textLabel4_2.setBuddy(self.passwordEdit)
        self.textLabel5.setBuddy(self.hostnameEdit)
        self.textLabel5_2.setBuddy(self.portSpinBox)

        self.retranslateUi(SqlConnectionDialog)
        self.buttonBox.accepted.connect(SqlConnectionDialog.accept)
        self.buttonBox.rejected.connect(SqlConnectionDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(SqlConnectionDialog)
        SqlConnectionDialog.setTabOrder(self.driverCombo, self.databaseEdit)
        SqlConnectionDialog.setTabOrder(self.databaseEdit, self.databaseFileButton)
        SqlConnectionDialog.setTabOrder(self.databaseFileButton, self.usernameEdit)
        SqlConnectionDialog.setTabOrder(self.usernameEdit, self.passwordEdit)
        SqlConnectionDialog.setTabOrder(self.passwordEdit, self.hostnameEdit)
        SqlConnectionDialog.setTabOrder(self.hostnameEdit, self.portSpinBox)
        SqlConnectionDialog.setTabOrder(self.portSpinBox, self.buttonBox)

    def retranslateUi(self, SqlConnectionDialog):
        _translate = QtCore.QCoreApplication.translate
        SqlConnectionDialog.setWindowTitle(_translate("SqlConnectionDialog", "Connect..."))
        self.textLabel2.setText(_translate("SqlConnectionDialog", "D&river:"))
        self.driverCombo.setToolTip(_translate("SqlConnectionDialog", "Select the database driver"))
        self.textLabel3.setText(_translate("SqlConnectionDialog", "&Database Name:"))
        self.databaseEdit.setToolTip(_translate("SqlConnectionDialog", "Enter the database name"))
        self.textLabel4.setText(_translate("SqlConnectionDialog", "&Username:"))
        self.usernameEdit.setToolTip(_translate("SqlConnectionDialog", "Enter the user name"))
        self.textLabel4_2.setText(_translate("SqlConnectionDialog", "&Password:"))
        self.textLabel5.setText(_translate("SqlConnectionDialog", "&Hostname:"))
        self.hostnameEdit.setToolTip(_translate("SqlConnectionDialog", "Enter the hostname"))
        self.textLabel5_2.setText(_translate("SqlConnectionDialog", "P&ort:"))
        self.portSpinBox.setToolTip(_translate("SqlConnectionDialog", "Enter the port number"))
        self.portSpinBox.setSpecialValueText(_translate("SqlConnectionDialog", "Default"))
        self.databaseFileButton.setToolTip(_translate("SqlConnectionDialog", "Press to select a database file"))

