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

# Form implementation generated from reading ui file 'C:/src/qgis/python/plugins/db_manager/ui/DlgImportVector.ui'
#
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_DbManagerDlgImportVector(object):
    def setupUi(self, DbManagerDlgImportVector):
        DbManagerDlgImportVector.setObjectName("DbManagerDlgImportVector")
        DbManagerDlgImportVector.resize(482, 496)
        self.verticalLayout = QtWidgets.QVBoxLayout(DbManagerDlgImportVector)
        self.verticalLayout.setObjectName("verticalLayout")
        self.wdgInput = QtWidgets.QWidget(DbManagerDlgImportVector)
        self.wdgInput.setObjectName("wdgInput")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.wdgInput)
        self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_5 = QtWidgets.QLabel(self.wdgInput)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setObjectName("label_5")
        self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 1)
        self.btnChooseInputFile = QtWidgets.QToolButton(self.wdgInput)
        self.btnChooseInputFile.setObjectName("btnChooseInputFile")
        self.gridLayout_3.addWidget(self.btnChooseInputFile, 0, 3, 1, 1)
        self.line = QtWidgets.QFrame(self.wdgInput)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout_3.addWidget(self.line, 2, 0, 1, 4)
        self.cboInputLayer = QtWidgets.QComboBox(self.wdgInput)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboInputLayer.sizePolicy().hasHeightForWidth())
        self.cboInputLayer.setSizePolicy(sizePolicy)
        self.cboInputLayer.setEditable(True)
        self.cboInputLayer.setInsertPolicy(QtWidgets.QComboBox.NoInsert)
        self.cboInputLayer.setObjectName("cboInputLayer")
        self.gridLayout_3.addWidget(self.cboInputLayer, 0, 1, 1, 2)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.chkSelectedFeatures = QtWidgets.QCheckBox(self.wdgInput)
        self.chkSelectedFeatures.setObjectName("chkSelectedFeatures")
        self.horizontalLayout_2.addWidget(self.chkSelectedFeatures)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.btnUpdateInputLayer = QtWidgets.QPushButton(self.wdgInput)
        self.btnUpdateInputLayer.setObjectName("btnUpdateInputLayer")
        self.horizontalLayout_2.addWidget(self.btnUpdateInputLayer)
        self.gridLayout_3.addLayout(self.horizontalLayout_2, 1, 0, 1, 4)
        self.verticalLayout.addWidget(self.wdgInput)
        self.groupBox_3 = QtWidgets.QGroupBox(DbManagerDlgImportVector)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_2 = QtWidgets.QLabel(self.groupBox_3)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
        self.cboSchema = QtWidgets.QComboBox(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboSchema.sizePolicy().hasHeightForWidth())
        self.cboSchema.setSizePolicy(sizePolicy)
        self.cboSchema.setObjectName("cboSchema")
        self.gridLayout_2.addWidget(self.cboSchema, 0, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_3)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
        self.cboTable = QtWidgets.QComboBox(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboTable.sizePolicy().hasHeightForWidth())
        self.cboTable.setSizePolicy(sizePolicy)
        self.cboTable.setEditable(True)
        self.cboTable.setInsertPolicy(QtWidgets.QComboBox.NoInsert)
        self.cboTable.setObjectName("cboTable")
        self.gridLayout_2.addWidget(self.cboTable, 1, 1, 1, 1)
        self.cboTable.raise_()
        self.label_2.raise_()
        self.cboSchema.raise_()
        self.label_3.raise_()
        self.verticalLayout.addWidget(self.groupBox_3)
        self.groupBox_2 = QtWidgets.QGroupBox(DbManagerDlgImportVector)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout.setObjectName("gridLayout")
        self.chkPrimaryKey = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkPrimaryKey.setObjectName("chkPrimaryKey")
        self.gridLayout.addWidget(self.chkPrimaryKey, 0, 0, 1, 1)
        self.editPrimaryKey = QtWidgets.QLineEdit(self.groupBox_2)
        self.editPrimaryKey.setEnabled(False)
        self.editPrimaryKey.setObjectName("editPrimaryKey")
        self.gridLayout.addWidget(self.editPrimaryKey, 0, 1, 1, 1)
        self.chkGeomColumn = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkGeomColumn.setObjectName("chkGeomColumn")
        self.gridLayout.addWidget(self.chkGeomColumn, 1, 0, 1, 1)
        self.editGeomColumn = QtWidgets.QLineEdit(self.groupBox_2)
        self.editGeomColumn.setEnabled(False)
        self.editGeomColumn.setObjectName("editGeomColumn")
        self.gridLayout.addWidget(self.editGeomColumn, 1, 1, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.chkSourceSrid = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkSourceSrid.setObjectName("chkSourceSrid")
        self.horizontalLayout.addWidget(self.chkSourceSrid)
        self.editSourceSrid = QtWidgets.QLineEdit(self.groupBox_2)
        self.editSourceSrid.setEnabled(False)
        self.editSourceSrid.setObjectName("editSourceSrid")
        self.horizontalLayout.addWidget(self.editSourceSrid)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.chkTargetSrid = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkTargetSrid.setObjectName("chkTargetSrid")
        self.horizontalLayout.addWidget(self.chkTargetSrid)
        self.editTargetSrid = QtWidgets.QLineEdit(self.groupBox_2)
        self.editTargetSrid.setEnabled(False)
        self.editTargetSrid.setObjectName("editTargetSrid")
        self.horizontalLayout.addWidget(self.editTargetSrid)
        self.gridLayout.addLayout(self.horizontalLayout, 2, 0, 1, 2)
        self.chkEncoding = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkEncoding.setObjectName("chkEncoding")
        self.gridLayout.addWidget(self.chkEncoding, 3, 0, 1, 1)
        self.cboEncoding = QtWidgets.QComboBox(self.groupBox_2)
        self.cboEncoding.setEnabled(False)
        self.cboEncoding.setEditable(True)
        self.cboEncoding.setObjectName("cboEncoding")
        self.gridLayout.addWidget(self.cboEncoding, 3, 1, 1, 1)
        self.chkSinglePart = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkSinglePart.setObjectName("chkSinglePart")
        self.gridLayout.addWidget(self.chkSinglePart, 6, 0, 1, 2)
        self.chkSpatialIndex = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkSpatialIndex.setObjectName("chkSpatialIndex")
        self.gridLayout.addWidget(self.chkSpatialIndex, 8, 0, 1, 2)
        self.chkDropTable = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkDropTable.setObjectName("chkDropTable")
        self.gridLayout.addWidget(self.chkDropTable, 4, 0, 1, 2)
        self.chkLowercaseFieldNames = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkLowercaseFieldNames.setObjectName("chkLowercaseFieldNames")
        self.gridLayout.addWidget(self.chkLowercaseFieldNames, 7, 0, 1, 1)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.buttonBox = QtWidgets.QDialogButtonBox(DbManagerDlgImportVector)
        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.groupBox_2.raise_()
        self.buttonBox.raise_()
        self.groupBox_3.raise_()
        self.wdgInput.raise_()

        self.retranslateUi(DbManagerDlgImportVector)
        self.buttonBox.rejected.connect(DbManagerDlgImportVector.reject)
        self.chkPrimaryKey.toggled['bool'].connect(self.editPrimaryKey.setEnabled)
        self.chkGeomColumn.toggled['bool'].connect(self.editGeomColumn.setEnabled)
        self.chkSourceSrid.toggled['bool'].connect(self.editSourceSrid.setEnabled)
        self.chkTargetSrid.toggled['bool'].connect(self.editTargetSrid.setEnabled)
        self.chkEncoding.toggled['bool'].connect(self.cboEncoding.setEnabled)
        self.buttonBox.accepted.connect(DbManagerDlgImportVector.accept)
        QtCore.QMetaObject.connectSlotsByName(DbManagerDlgImportVector)
        DbManagerDlgImportVector.setTabOrder(self.chkSourceSrid, self.editSourceSrid)
        DbManagerDlgImportVector.setTabOrder(self.editSourceSrid, self.chkEncoding)
        DbManagerDlgImportVector.setTabOrder(self.chkEncoding, self.cboEncoding)
        DbManagerDlgImportVector.setTabOrder(self.cboEncoding, self.chkSinglePart)
        DbManagerDlgImportVector.setTabOrder(self.chkSinglePart, self.chkSpatialIndex)
        DbManagerDlgImportVector.setTabOrder(self.chkSpatialIndex, self.buttonBox)

    def retranslateUi(self, DbManagerDlgImportVector):
        _translate = QtCore.QCoreApplication.translate
        DbManagerDlgImportVector.setWindowTitle(_translate("DbManagerDlgImportVector", "Import vector layer"))
        self.label_5.setText(_translate("DbManagerDlgImportVector", "Input"))
        self.btnChooseInputFile.setText(_translate("DbManagerDlgImportVector", "…"))
        self.chkSelectedFeatures.setText(_translate("DbManagerDlgImportVector", "Import only selected features"))
        self.btnUpdateInputLayer.setText(_translate("DbManagerDlgImportVector", "Update options"))
        self.groupBox_3.setTitle(_translate("DbManagerDlgImportVector", "Output table"))
        self.label_2.setText(_translate("DbManagerDlgImportVector", "Schema"))
        self.label_3.setText(_translate("DbManagerDlgImportVector", "Table"))
        self.groupBox_2.setTitle(_translate("DbManagerDlgImportVector", "Options"))
        self.chkPrimaryKey.setText(_translate("DbManagerDlgImportVector", "Primary key"))
        self.chkGeomColumn.setText(_translate("DbManagerDlgImportVector", "Geometry column"))
        self.chkSourceSrid.setText(_translate("DbManagerDlgImportVector", "Source SRID"))
        self.chkTargetSrid.setText(_translate("DbManagerDlgImportVector", "Target SRID"))
        self.chkEncoding.setText(_translate("DbManagerDlgImportVector", "Encoding"))
        self.chkSinglePart.setText(_translate("DbManagerDlgImportVector", "Create single-part geometries instead of multi-part"))
        self.chkSpatialIndex.setText(_translate("DbManagerDlgImportVector", "Create spatial index"))
        self.chkDropTable.setText(_translate("DbManagerDlgImportVector", "Replace destination table (if exists)"))
        self.chkLowercaseFieldNames.setText(_translate("DbManagerDlgImportVector", "Convert field names to lowercase"))

