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

# Form implementation generated from reading ui file 'eric/SqlBrowser/SqlBrowserWidget.ui'
#
# Created: Thu Jul  8 14:17:39 2010
#      by: PyQt4 UI code generator 4.7.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_SqlBrowserWidget(object):
    def setupUi(self, SqlBrowserWidget):
        SqlBrowserWidget.setObjectName("SqlBrowserWidget")
        SqlBrowserWidget.resize(800, 550)
        self.verticalLayout_2 = QtGui.QVBoxLayout(SqlBrowserWidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.splitter = QtGui.QSplitter(SqlBrowserWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.connections = SqlConnectionWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.connections.sizePolicy().hasHeightForWidth())
        self.connections.setSizePolicy(sizePolicy)
        self.connections.setObjectName("connections")
        self.table = QtGui.QTableView(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.table.sizePolicy().hasHeightForWidth())
        self.table.setSizePolicy(sizePolicy)
        self.table.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
        self.table.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.table.setObjectName("table")
        self.verticalLayout_2.addWidget(self.splitter)
        self.queryGroup = QtGui.QGroupBox(SqlBrowserWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.queryGroup.sizePolicy().hasHeightForWidth())
        self.queryGroup.setSizePolicy(sizePolicy)
        self.queryGroup.setMaximumSize(QtCore.QSize(16777215, 200))
        self.queryGroup.setObjectName("queryGroup")
        self.verticalLayout = QtGui.QVBoxLayout(self.queryGroup)
        self.verticalLayout.setObjectName("verticalLayout")
        self.sqlEdit = QtGui.QPlainTextEdit(self.queryGroup)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sqlEdit.sizePolicy().hasHeightForWidth())
        self.sqlEdit.setSizePolicy(sizePolicy)
        self.sqlEdit.setMinimumSize(QtCore.QSize(0, 18))
        self.sqlEdit.setObjectName("sqlEdit")
        self.verticalLayout.addWidget(self.sqlEdit)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.clearButton = QtGui.QPushButton(self.queryGroup)
        self.clearButton.setObjectName("clearButton")
        self.horizontalLayout.addWidget(self.clearButton)
        self.executeButton = QtGui.QPushButton(self.queryGroup)
        self.executeButton.setObjectName("executeButton")
        self.horizontalLayout.addWidget(self.executeButton)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2.addWidget(self.queryGroup)
        self.insertRowAction = QtGui.QAction(SqlBrowserWidget)
        self.insertRowAction.setEnabled(False)
        self.insertRowAction.setObjectName("insertRowAction")
        self.deleteRowAction = QtGui.QAction(SqlBrowserWidget)
        self.deleteRowAction.setEnabled(False)
        self.deleteRowAction.setObjectName("deleteRowAction")

        self.retranslateUi(SqlBrowserWidget)
        QtCore.QMetaObject.connectSlotsByName(SqlBrowserWidget)
        SqlBrowserWidget.setTabOrder(self.sqlEdit, self.clearButton)
        SqlBrowserWidget.setTabOrder(self.clearButton, self.executeButton)
        SqlBrowserWidget.setTabOrder(self.executeButton, self.connections)
        SqlBrowserWidget.setTabOrder(self.connections, self.table)

    def retranslateUi(self, SqlBrowserWidget):
        SqlBrowserWidget.setWindowTitle(QtGui.QApplication.translate("SqlBrowserWidget", "eric4 SQL Browser", None, QtGui.QApplication.UnicodeUTF8))
        self.queryGroup.setTitle(QtGui.QApplication.translate("SqlBrowserWidget", "SQL Query", None, QtGui.QApplication.UnicodeUTF8))
        self.sqlEdit.setToolTip(QtGui.QApplication.translate("SqlBrowserWidget", "Enter the SQL query to be executed", None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setToolTip(QtGui.QApplication.translate("SqlBrowserWidget", "Press to clear the entry", None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(QtGui.QApplication.translate("SqlBrowserWidget", "&Clear", None, QtGui.QApplication.UnicodeUTF8))
        self.executeButton.setToolTip(QtGui.QApplication.translate("SqlBrowserWidget", "Press to execute the query", None, QtGui.QApplication.UnicodeUTF8))
        self.executeButton.setText(QtGui.QApplication.translate("SqlBrowserWidget", "&Execute", None, QtGui.QApplication.UnicodeUTF8))
        self.insertRowAction.setText(QtGui.QApplication.translate("SqlBrowserWidget", "&Insert Row", None, QtGui.QApplication.UnicodeUTF8))
        self.insertRowAction.setToolTip(QtGui.QApplication.translate("SqlBrowserWidget", "Inserts a new row", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteRowAction.setText(QtGui.QApplication.translate("SqlBrowserWidget", "&Delete Row", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteRowAction.setStatusTip(QtGui.QApplication.translate("SqlBrowserWidget", "Deletes the current row", None, QtGui.QApplication.UnicodeUTF8))

from SqlConnectionWidget import SqlConnectionWidget
