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

# Form implementation generated from reading ui file 'C:/src/qgis/python/plugins/db_manager/ui/DlgCreateTable.ui'
#
# Created: Sat Jul 21 05:20:32 2018
#      by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_DbManagerDlgCreateTable(object):
    def setupUi(self, DbManagerDlgCreateTable):
        DbManagerDlgCreateTable.setObjectName(_fromUtf8("DbManagerDlgCreateTable"))
        DbManagerDlgCreateTable.resize(474, 562)
        self.gridLayout_2 = QtGui.QGridLayout(DbManagerDlgCreateTable)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
        self.label_3 = QtGui.QLabel(DbManagerDlgCreateTable)
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridlayout.addWidget(self.label_3, 0, 0, 1, 2)
        self.cboSchema = QtGui.QComboBox(DbManagerDlgCreateTable)
        self.cboSchema.setObjectName(_fromUtf8("cboSchema"))
        self.gridlayout.addWidget(self.cboSchema, 0, 2, 1, 1)
        self.label = QtGui.QLabel(DbManagerDlgCreateTable)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridlayout.addWidget(self.label, 1, 0, 1, 2)
        self.editName = QtGui.QLineEdit(DbManagerDlgCreateTable)
        self.editName.setText(_fromUtf8(""))
        self.editName.setObjectName(_fromUtf8("editName"))
        self.gridlayout.addWidget(self.editName, 1, 2, 1, 1)
        self.gridLayout_2.addLayout(self.gridlayout, 0, 0, 1, 2)
        self.vboxlayout = QtGui.QVBoxLayout()
        self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
        self.btnAddField = QtGui.QPushButton(DbManagerDlgCreateTable)
        self.btnAddField.setObjectName(_fromUtf8("btnAddField"))
        self.vboxlayout.addWidget(self.btnAddField)
        self.btnDeleteField = QtGui.QPushButton(DbManagerDlgCreateTable)
        self.btnDeleteField.setObjectName(_fromUtf8("btnDeleteField"))
        self.vboxlayout.addWidget(self.btnDeleteField)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem)
        self.btnFieldUp = QtGui.QPushButton(DbManagerDlgCreateTable)
        self.btnFieldUp.setObjectName(_fromUtf8("btnFieldUp"))
        self.vboxlayout.addWidget(self.btnFieldUp)
        self.btnFieldDown = QtGui.QPushButton(DbManagerDlgCreateTable)
        self.btnFieldDown.setObjectName(_fromUtf8("btnFieldDown"))
        self.vboxlayout.addWidget(self.btnFieldDown)
        self.gridLayout_2.addLayout(self.vboxlayout, 1, 1, 1, 1)
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setSpacing(8)
        self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
        self.label_4 = QtGui.QLabel(DbManagerDlgCreateTable)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.hboxlayout.addWidget(self.label_4)
        self.cboPrimaryKey = QtGui.QComboBox(DbManagerDlgCreateTable)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboPrimaryKey.sizePolicy().hasHeightForWidth())
        self.cboPrimaryKey.setSizePolicy(sizePolicy)
        self.cboPrimaryKey.setObjectName(_fromUtf8("cboPrimaryKey"))
        self.hboxlayout.addWidget(self.cboPrimaryKey)
        self.gridLayout_2.addLayout(self.hboxlayout, 2, 0, 1, 2)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.chkGeomColumn = QtGui.QCheckBox(DbManagerDlgCreateTable)
        self.chkGeomColumn.setObjectName(_fromUtf8("chkGeomColumn"))
        self.gridLayout.addWidget(self.chkGeomColumn, 0, 0, 1, 1)
        self.cboGeomType = QtGui.QComboBox(DbManagerDlgCreateTable)
        self.cboGeomType.setObjectName(_fromUtf8("cboGeomType"))
        self.cboGeomType.addItem(_fromUtf8(""))
        self.cboGeomType.setItemText(0, _fromUtf8("POINT"))
        self.cboGeomType.addItem(_fromUtf8(""))
        self.cboGeomType.setItemText(1, _fromUtf8("LINESTRING"))
        self.cboGeomType.addItem(_fromUtf8(""))
        self.cboGeomType.setItemText(2, _fromUtf8("POLYGON"))
        self.cboGeomType.addItem(_fromUtf8(""))
        self.cboGeomType.setItemText(3, _fromUtf8("MULTIPOINT"))
        self.cboGeomType.addItem(_fromUtf8(""))
        self.cboGeomType.setItemText(4, _fromUtf8("MULTILINESTRING"))
        self.cboGeomType.addItem(_fromUtf8(""))
        self.cboGeomType.setItemText(5, _fromUtf8("MULTIPOLYGON"))
        self.cboGeomType.addItem(_fromUtf8(""))
        self.cboGeomType.setItemText(6, _fromUtf8("GEOMETRYCOLLECTION"))
        self.gridLayout.addWidget(self.cboGeomType, 0, 1, 1, 2)
        self.label_2 = QtGui.QLabel(DbManagerDlgCreateTable)
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.editGeomColumn = QtGui.QLineEdit(DbManagerDlgCreateTable)
        self.editGeomColumn.setText(_fromUtf8("geom"))
        self.editGeomColumn.setObjectName(_fromUtf8("editGeomColumn"))
        self.gridLayout.addWidget(self.editGeomColumn, 1, 1, 1, 1)
        self.label_5 = QtGui.QLabel(DbManagerDlgCreateTable)
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1)
        self.spinGeomDim = QtGui.QSpinBox(DbManagerDlgCreateTable)
        self.spinGeomDim.setMinimum(2)
        self.spinGeomDim.setMaximum(4)
        self.spinGeomDim.setObjectName(_fromUtf8("spinGeomDim"))
        self.gridLayout.addWidget(self.spinGeomDim, 2, 1, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(50, 51, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 2, 2, 2, 1)
        self.label_6 = QtGui.QLabel(DbManagerDlgCreateTable)
        self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 3, 0, 1, 1)
        self.editGeomSrid = QtGui.QLineEdit(DbManagerDlgCreateTable)
        self.editGeomSrid.setText(_fromUtf8("0"))
        self.editGeomSrid.setObjectName(_fromUtf8("editGeomSrid"))
        self.gridLayout.addWidget(self.editGeomSrid, 3, 1, 1, 1)
        self.chkSpatialIndex = QtGui.QCheckBox(DbManagerDlgCreateTable)
        self.chkSpatialIndex.setObjectName(_fromUtf8("chkSpatialIndex"))
        self.gridLayout.addWidget(self.chkSpatialIndex, 4, 0, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 3, 0, 1, 2)
        self.buttonBox = QtGui.QDialogButtonBox(DbManagerDlgCreateTable)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout_2.addWidget(self.buttonBox, 4, 0, 1, 2)
        self.fields = QtGui.QTableView(DbManagerDlgCreateTable)
        self.fields.setEditTriggers(QtGui.QAbstractItemView.AllEditTriggers)
        self.fields.setObjectName(_fromUtf8("fields"))
        self.fields.horizontalHeader().setStretchLastSection(True)
        self.gridLayout_2.addWidget(self.fields, 1, 0, 1, 1)

        self.retranslateUi(DbManagerDlgCreateTable)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DbManagerDlgCreateTable.reject)
        QtCore.QMetaObject.connectSlotsByName(DbManagerDlgCreateTable)
        DbManagerDlgCreateTable.setTabOrder(self.cboSchema, self.editName)
        DbManagerDlgCreateTable.setTabOrder(self.editName, self.fields)
        DbManagerDlgCreateTable.setTabOrder(self.fields, self.btnAddField)
        DbManagerDlgCreateTable.setTabOrder(self.btnAddField, self.btnDeleteField)
        DbManagerDlgCreateTable.setTabOrder(self.btnDeleteField, self.btnFieldUp)
        DbManagerDlgCreateTable.setTabOrder(self.btnFieldUp, self.btnFieldDown)
        DbManagerDlgCreateTable.setTabOrder(self.btnFieldDown, self.cboPrimaryKey)
        DbManagerDlgCreateTable.setTabOrder(self.cboPrimaryKey, self.chkGeomColumn)
        DbManagerDlgCreateTable.setTabOrder(self.chkGeomColumn, self.cboGeomType)
        DbManagerDlgCreateTable.setTabOrder(self.cboGeomType, self.editGeomColumn)
        DbManagerDlgCreateTable.setTabOrder(self.editGeomColumn, self.spinGeomDim)
        DbManagerDlgCreateTable.setTabOrder(self.spinGeomDim, self.editGeomSrid)
        DbManagerDlgCreateTable.setTabOrder(self.editGeomSrid, self.chkSpatialIndex)
        DbManagerDlgCreateTable.setTabOrder(self.chkSpatialIndex, self.buttonBox)

    def retranslateUi(self, DbManagerDlgCreateTable):
        DbManagerDlgCreateTable.setWindowTitle(_translate("DbManagerDlgCreateTable", "Create Table", None))
        self.label_3.setText(_translate("DbManagerDlgCreateTable", "Schema", None))
        self.label.setText(_translate("DbManagerDlgCreateTable", "Name", None))
        self.btnAddField.setText(_translate("DbManagerDlgCreateTable", "Add field", None))
        self.btnDeleteField.setText(_translate("DbManagerDlgCreateTable", "Delete field", None))
        self.btnFieldUp.setText(_translate("DbManagerDlgCreateTable", "Up", None))
        self.btnFieldDown.setText(_translate("DbManagerDlgCreateTable", "Down", None))
        self.label_4.setText(_translate("DbManagerDlgCreateTable", "Primary key", None))
        self.chkGeomColumn.setText(_translate("DbManagerDlgCreateTable", "Create geometry column", None))
        self.label_2.setText(_translate("DbManagerDlgCreateTable", "Name", None))
        self.label_5.setText(_translate("DbManagerDlgCreateTable", "Dimensions", None))
        self.label_6.setText(_translate("DbManagerDlgCreateTable", "SRID", None))
        self.chkSpatialIndex.setText(_translate("DbManagerDlgCreateTable", "Create spatial index", None))

