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

# Form implementation generated from reading ui file 'eric/SqlBrowser/SqlConnectionDialog.ui'
#
# Created: Wed Mar 14 20:23:20 2012
#      by: PyQt4 UI code generator 4.8.5
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_SqlConnectionDialog(object):
    def setupUi(self, SqlConnectionDialog):
        SqlConnectionDialog.setObjectName(_fromUtf8("SqlConnectionDialog"))
        SqlConnectionDialog.resize(400, 259)
        SqlConnectionDialog.setWindowTitle(QtGui.QApplication.translate("SqlConnectionDialog", "Connect...", None, QtGui.QApplication.UnicodeUTF8))
        self.verticalLayout = QtGui.QVBoxLayout(SqlConnectionDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.textLabel2 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel2.setText(QtGui.QApplication.translate("SqlConnectionDialog", "D&river:", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel2.setObjectName(_fromUtf8("textLabel2"))
        self.gridLayout.addWidget(self.textLabel2, 0, 0, 1, 1)
        self.driverCombo = QtGui.QComboBox(SqlConnectionDialog)
        self.driverCombo.setToolTip(QtGui.QApplication.translate("SqlConnectionDialog", "Select the database driver", None, QtGui.QApplication.UnicodeUTF8))
        self.driverCombo.setObjectName(_fromUtf8("driverCombo"))
        self.gridLayout.addWidget(self.driverCombo, 0, 1, 1, 2)
        self.textLabel3 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel3.setText(QtGui.QApplication.translate("SqlConnectionDialog", "&Database Name:", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel3.setObjectName(_fromUtf8("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.setToolTip(QtGui.QApplication.translate("SqlConnectionDialog", "Enter the database name", None, QtGui.QApplication.UnicodeUTF8))
        self.databaseEdit.setObjectName(_fromUtf8("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.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.databaseFileButton.setObjectName(_fromUtf8("databaseFileButton"))
        self.gridLayout.addWidget(self.databaseFileButton, 2, 2, 1, 1)
        self.textLabel4 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel4.setText(QtGui.QApplication.translate("SqlConnectionDialog", "&Username:", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel4.setObjectName(_fromUtf8("textLabel4"))
        self.gridLayout.addWidget(self.textLabel4, 3, 0, 1, 1)
        self.usernameEdit = QtGui.QLineEdit(SqlConnectionDialog)
        self.usernameEdit.setToolTip(QtGui.QApplication.translate("SqlConnectionDialog", "Enter the user name", None, QtGui.QApplication.UnicodeUTF8))
        self.usernameEdit.setObjectName(_fromUtf8("usernameEdit"))
        self.gridLayout.addWidget(self.usernameEdit, 3, 1, 1, 2)
        self.textLabel4_2 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel4_2.setText(QtGui.QApplication.translate("SqlConnectionDialog", "&Password:", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel4_2.setObjectName(_fromUtf8("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(_fromUtf8("passwordEdit"))
        self.gridLayout.addWidget(self.passwordEdit, 4, 1, 1, 2)
        self.textLabel5 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel5.setText(QtGui.QApplication.translate("SqlConnectionDialog", "&Hostname:", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel5.setObjectName(_fromUtf8("textLabel5"))
        self.gridLayout.addWidget(self.textLabel5, 5, 0, 1, 1)
        self.hostnameEdit = QtGui.QLineEdit(SqlConnectionDialog)
        self.hostnameEdit.setToolTip(QtGui.QApplication.translate("SqlConnectionDialog", "Enter the hostname", None, QtGui.QApplication.UnicodeUTF8))
        self.hostnameEdit.setObjectName(_fromUtf8("hostnameEdit"))
        self.gridLayout.addWidget(self.hostnameEdit, 5, 1, 1, 2)
        self.textLabel5_2 = QtGui.QLabel(SqlConnectionDialog)
        self.textLabel5_2.setText(QtGui.QApplication.translate("SqlConnectionDialog", "P&ort:", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel5_2.setObjectName(_fromUtf8("textLabel5_2"))
        self.gridLayout.addWidget(self.textLabel5_2, 6, 0, 1, 1)
        self.portSpinBox = QtGui.QSpinBox(SqlConnectionDialog)
        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))
        self.portSpinBox.setMinimum(-1)
        self.portSpinBox.setMaximum(65535)
        self.portSpinBox.setProperty("value", -1)
        self.portSpinBox.setObjectName(_fromUtf8("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(_fromUtf8("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(_fromUtf8("accepted()")), SqlConnectionDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("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):
        pass

