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

# Form implementation generated from reading ui file 'eric/SqlBrowser/SqlConnectionDialog.ui'
#
# Created: Sun May  2 14:37:57 2010
#      by: PyQt4 UI code generator 4.6.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_SqlConnectionDialog(object):
    def setupUi(self, SqlConnectionDialog):
        SqlConnectionDialog.setObjectName("SqlConnectionDialog")
        SqlConnectionDialog.resize(400, 259)
        self.verticalLayout = QtGui.QVBoxLayout(SqlConnectionDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.textLabel2 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel2.setObjectName("textLabel2")
        self.gridLayout.addWidget(self.textLabel2, 0, 0, 1, 1)
        self.driverCombo = QtGui.QComboBox(SqlConnectionDialog)
        self.driverCombo.setObjectName("driverCombo")
        self.gridLayout.addWidget(self.driverCombo, 0, 1, 1, 2)
        self.textLabel3 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel3.setObjectName("textLabel3")
        self.gridLayout.addWidget(self.textLabel3, 1, 0, 1, 1)
        self.databaseEdit = QtGui.QLineEdit(SqlConnectionDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.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 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 2, 1, 1, 1)
        self.databaseFileButton = QtGui.QPushButton(SqlConnectionDialog)
        self.databaseFileButton.setObjectName("databaseFileButton")
        self.gridLayout.addWidget(self.databaseFileButton, 2, 2, 1, 1)
        self.textLabel4 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel4.setObjectName("textLabel4")
        self.gridLayout.addWidget(self.textLabel4, 3, 0, 1, 1)
        self.usernameEdit = QtGui.QLineEdit(SqlConnectionDialog)
        self.usernameEdit.setObjectName("usernameEdit")
        self.gridLayout.addWidget(self.usernameEdit, 3, 1, 1, 2)
        self.textLabel4_2 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel4_2.setObjectName("textLabel4_2")
        self.gridLayout.addWidget(self.textLabel4_2, 4, 0, 1, 1)
        self.passwordEdit = QtGui.QLineEdit(SqlConnectionDialog)
        self.passwordEdit.setEchoMode(QtGui.QLineEdit.Password)
        self.passwordEdit.setObjectName("passwordEdit")
        self.gridLayout.addWidget(self.passwordEdit, 4, 1, 1, 2)
        self.textLabel5 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel5.setObjectName("textLabel5")
        self.gridLayout.addWidget(self.textLabel5, 5, 0, 1, 1)
        self.hostnameEdit = QtGui.QLineEdit(SqlConnectionDialog)
        self.hostnameEdit.setObjectName("hostnameEdit")
        self.gridLayout.addWidget(self.hostnameEdit, 5, 1, 1, 2)
        self.textLabel5_2 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel5_2.setObjectName("textLabel5_2")
        self.gridLayout.addWidget(self.textLabel5_2, 6, 0, 1, 1)
        self.portSpinBox = QtGui.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.verticalLayout.addLayout(self.gridLayout)
        self.buttonBox = QtGui.QDialogButtonBox(SqlConnectionDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.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)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), SqlConnectionDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), 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):
        SqlConnectionDialog.setWindowTitle(QtGui.QApplication.translate("SqlConnectionDialog", "Connect...", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel2.setText(QtGui.QApplication.translate("SqlConnectionDialog", "D&river:", None, QtGui.QApplication.UnicodeUTF8))
        self.driverCombo.setToolTip(QtGui.QApplication.translate("SqlConnectionDialog", "Select the database driver", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel3.setText(QtGui.QApplication.translate("SqlConnectionDialog", "&Database Name:", None, QtGui.QApplication.UnicodeUTF8))
        self.databaseEdit.setToolTip(QtGui.QApplication.translate("SqlConnectionDialog", "Enter the database name", None, QtGui.QApplication.UnicodeUTF8))
        self.databaseFileButton.setToolTip(QtGui.QApplication.translate("SqlConnectionDialog", "Press to select a database file", None, QtGui.QApplication.UnicodeUTF8))
        self.databaseFileButton.setText(QtGui.QApplication.translate("SqlConnectionDialog", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel4.setText(QtGui.QApplication.translate("SqlConnectionDialog", "&Username:", None, QtGui.QApplication.UnicodeUTF8))
        self.usernameEdit.setToolTip(QtGui.QApplication.translate("SqlConnectionDialog", "Enter the user name", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel4_2.setText(QtGui.QApplication.translate("SqlConnectionDialog", "&Password:", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel5.setText(QtGui.QApplication.translate("SqlConnectionDialog", "&Hostname:", None, QtGui.QApplication.UnicodeUTF8))
        self.hostnameEdit.setToolTip(QtGui.QApplication.translate("SqlConnectionDialog", "Enter the hostname", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel5_2.setText(QtGui.QApplication.translate("SqlConnectionDialog", "P&ort:", None, QtGui.QApplication.UnicodeUTF8))
        self.portSpinBox.setToolTip(QtGui.QApplication.translate("SqlConnectionDialog", "Enter the port number", None, QtGui.QApplication.UnicodeUTF8))
        self.portSpinBox.setSpecialValueText(QtGui.QApplication.translate("SqlConnectionDialog", "Default", None, QtGui.QApplication.UnicodeUTF8))

