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

# Form implementation generated from reading ui file 'C:\Users\esymons\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\tuflow\forms\ui_tuflowqgis_increment.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from qgis.PyQt import QtCore, QtGui, QtWidgets



from ..compatibility_routines import QT_SIZE_POLICY_PREFERRED, QT_SIZE_POLICY_EXPANDING, QT_ALIGN_TOP, QT_SIZE_POLICY_FIXED, QT_ALIGN_LEFT, QT_SIZE_POLICY_MINIMUM, QT_ALIGN_LEADING


class Ui_tuflowqgis_increment(object):
    def setupUi(self, tuflowqgis_increment):
        tuflowqgis_increment.setObjectName("tuflowqgis_increment")
        tuflowqgis_increment.resize(472, 836)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(tuflowqgis_increment)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.label_1 = QtWidgets.QLabel(tuflowqgis_increment)
        self.label_1.setObjectName("label_1")
        self.verticalLayout_5.addWidget(self.label_1)
        self.sourcelayer = QtWidgets.QComboBox(tuflowqgis_increment)
        self.sourcelayer.setObjectName("sourcelayer")
        self.verticalLayout_5.addWidget(self.sourcelayer)
        self.label_2 = QtWidgets.QLabel(tuflowqgis_increment)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_5.addWidget(self.label_2)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.outfolder = QtWidgets.QLineEdit(tuflowqgis_increment)
        self.outfolder.setReadOnly(False)
        self.outfolder.setObjectName("outfolder")
        self.horizontalLayout_6.addWidget(self.outfolder)
        self.btnBrowseDatabase = QtWidgets.QPushButton(tuflowqgis_increment)
        self.btnBrowseDatabase.setObjectName("btnBrowseDatabase")
        self.horizontalLayout_6.addWidget(self.btnBrowseDatabase)
        self.verticalLayout_5.addLayout(self.horizontalLayout_6)
        self.label = QtWidgets.QLabel(tuflowqgis_increment)
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.verticalLayout_5.addWidget(self.label)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.outfilename = QtWidgets.QLineEdit(tuflowqgis_increment)
        self.outfilename.setReadOnly(False)
        self.outfilename.setObjectName("outfilename")
        self.horizontalLayout_7.addWidget(self.outfilename)
        self.browseoutfile = QtWidgets.QPushButton(tuflowqgis_increment)
        self.browseoutfile.setAutoDefault(False)
        self.browseoutfile.setObjectName("browseoutfile")
        self.horizontalLayout_7.addWidget(self.browseoutfile)
        self.verticalLayout_5.addLayout(self.horizontalLayout_7)
        self.twTables = QtWidgets.QTableWidget(tuflowqgis_increment)
        sizePolicy = QtWidgets.QSizePolicy(QT_SIZE_POLICY_EXPANDING, QT_SIZE_POLICY_PREFERRED)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.twTables.sizePolicy().hasHeightForWidth())
        self.twTables.setSizePolicy(sizePolicy)
        self.twTables.setColumnCount(2)
        self.twTables.setObjectName("twTables")
        self.twTables.setRowCount(0)
        self.twTables.horizontalHeader().setVisible(True)
        self.twTables.horizontalHeader().setCascadingSectionResizes(True)
        self.twTables.horizontalHeader().setHighlightSections(True)
        self.twTables.horizontalHeader().setStretchLastSection(True)
        self.twTables.verticalHeader().setVisible(False)
        self.verticalLayout_5.addWidget(self.twTables)
        self.verticalLayout.addLayout(self.verticalLayout_5)
        self.cbMoveToSS = QtWidgets.QCheckBox(tuflowqgis_increment)
        self.cbMoveToSS.setObjectName("cbMoveToSS")
        self.verticalLayout.addWidget(self.cbMoveToSS)
        self.rbRemoveSource = QtWidgets.QRadioButton(tuflowqgis_increment)
        self.rbRemoveSource.setChecked(True)
        self.rbRemoveSource.setObjectName("rbRemoveSource")
        self.buttonGroup = QtWidgets.QButtonGroup(tuflowqgis_increment)
        self.buttonGroup.setObjectName("buttonGroup")
        self.buttonGroup.addButton(self.rbRemoveSource)
        self.verticalLayout.addWidget(self.rbRemoveSource)
        self.rbKeepSource = QtWidgets.QRadioButton(tuflowqgis_increment)
        self.rbKeepSource.setObjectName("rbKeepSource")
        self.buttonGroup.addButton(self.rbKeepSource)
        self.verticalLayout.addWidget(self.rbKeepSource)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setSpacing(0)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.label_5 = QtWidgets.QLabel(tuflowqgis_increment)
        self.label_5.setOpenExternalLinks(True)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_6.addWidget(self.label_5)
        self.gbSpatialDatabaseOptions = QtWidgets.QGroupBox(tuflowqgis_increment)
        self.gbSpatialDatabaseOptions.setTitle("")
        self.gbSpatialDatabaseOptions.setObjectName("gbSpatialDatabaseOptions")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.gbSpatialDatabaseOptions)
        self.verticalLayout_3.setContentsMargins(-1, 0, -1, -1)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.rbDatabaseLayer = QtWidgets.QRadioButton(self.gbSpatialDatabaseOptions)
        self.rbDatabaseLayer.setChecked(True)
        self.rbDatabaseLayer.setObjectName("rbDatabaseLayer")
        self.buttonGroup_2 = QtWidgets.QButtonGroup(tuflowqgis_increment)
        self.buttonGroup_2.setObjectName("buttonGroup_2")
        self.buttonGroup_2.addButton(self.rbDatabaseLayer)
        self.horizontalLayout_3.addWidget(self.rbDatabaseLayer)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.rbDatabaseDbLayer = QtWidgets.QRadioButton(self.gbSpatialDatabaseOptions)
        self.rbDatabaseDbLayer.setChecked(False)
        self.rbDatabaseDbLayer.setObjectName("rbDatabaseDbLayer")
        self.buttonGroup_2.addButton(self.rbDatabaseDbLayer)
        self.horizontalLayout_2.addWidget(self.rbDatabaseDbLayer)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.rbSaveLayerOut = QtWidgets.QRadioButton(self.gbSpatialDatabaseOptions)
        self.rbSaveLayerOut.setObjectName("rbSaveLayerOut")
        self.buttonGroup_2.addButton(self.rbSaveLayerOut)
        self.horizontalLayout_4.addWidget(self.rbSaveLayerOut)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.gbSSSettings = QtWidgets.QGroupBox(self.gbSpatialDatabaseOptions)
        self.gbSSSettings.setAlignment(QT_ALIGN_LEADING|QT_ALIGN_LEFT|QT_ALIGN_TOP)
        self.gbSSSettings.setObjectName("gbSSSettings")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.gbSSSettings)
        self.verticalLayout_4.setContentsMargins(-1, 9, -1, -1)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_13 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        spacerItem = QtWidgets.QSpacerItem(10, 0, QT_SIZE_POLICY_FIXED, QT_SIZE_POLICY_MINIMUM)
        self.horizontalLayout_13.addItem(spacerItem)
        self.cbRenameLayer = QtWidgets.QCheckBox(self.gbSSSettings)
        self.cbRenameLayer.setObjectName("cbRenameLayer")
        self.horizontalLayout_13.addWidget(self.cbRenameLayer)
        self.verticalLayout_4.addLayout(self.horizontalLayout_13)
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        spacerItem1 = QtWidgets.QSpacerItem(10, 0, QT_SIZE_POLICY_FIXED, QT_SIZE_POLICY_MINIMUM)
        self.horizontalLayout_14.addItem(spacerItem1)
        self.leRenameLayer = QtWidgets.QLineEdit(self.gbSSSettings)
        self.leRenameLayer.setObjectName("leRenameLayer")
        self.horizontalLayout_14.addWidget(self.leRenameLayer)
        self.verticalLayout_4.addLayout(self.horizontalLayout_14)
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        spacerItem2 = QtWidgets.QSpacerItem(10, 20, QT_SIZE_POLICY_FIXED, QT_SIZE_POLICY_MINIMUM)
        self.horizontalLayout_11.addItem(spacerItem2)
        self.rbAutoSSLayer = QtWidgets.QRadioButton(self.gbSSSettings)
        self.rbAutoSSLayer.setChecked(True)
        self.rbAutoSSLayer.setObjectName("rbAutoSSLayer")
        self.buttonGroup_3 = QtWidgets.QButtonGroup(tuflowqgis_increment)
        self.buttonGroup_3.setObjectName("buttonGroup_3")
        self.buttonGroup_3.addButton(self.rbAutoSSLayer)
        self.horizontalLayout_11.addWidget(self.rbAutoSSLayer)
        self.verticalLayout_4.addLayout(self.horizontalLayout_11)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        spacerItem3 = QtWidgets.QSpacerItem(10, 20, QT_SIZE_POLICY_FIXED, QT_SIZE_POLICY_MINIMUM)
        self.horizontalLayout_12.addItem(spacerItem3)
        self.rbManualSSLayer = QtWidgets.QRadioButton(self.gbSSSettings)
        self.rbManualSSLayer.setObjectName("rbManualSSLayer")
        self.buttonGroup_3.addButton(self.rbManualSSLayer)
        self.horizontalLayout_12.addWidget(self.rbManualSSLayer)
        self.verticalLayout_4.addLayout(self.horizontalLayout_12)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        spacerItem4 = QtWidgets.QSpacerItem(25, 20, QT_SIZE_POLICY_FIXED, QT_SIZE_POLICY_MINIMUM)
        self.horizontalLayout_9.addItem(spacerItem4)
        self.label_3 = QtWidgets.QLabel(self.gbSSSettings)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_9.addWidget(self.label_3)
        self.verticalLayout_4.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        spacerItem5 = QtWidgets.QSpacerItem(25, 20, QT_SIZE_POLICY_FIXED, QT_SIZE_POLICY_MINIMUM)
        self.horizontalLayout_5.addItem(spacerItem5)
        self.leDiscardedDb = QtWidgets.QLineEdit(self.gbSSSettings)
        self.leDiscardedDb.setObjectName("leDiscardedDb")
        self.horizontalLayout_5.addWidget(self.leDiscardedDb)
        self.pbDiscardDb_browse = QtWidgets.QPushButton(self.gbSSSettings)
        self.pbDiscardDb_browse.setObjectName("pbDiscardDb_browse")
        self.horizontalLayout_5.addWidget(self.pbDiscardDb_browse)
        self.verticalLayout_4.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        spacerItem6 = QtWidgets.QSpacerItem(25, 20, QT_SIZE_POLICY_FIXED, QT_SIZE_POLICY_MINIMUM)
        self.horizontalLayout_10.addItem(spacerItem6)
        self.label_4 = QtWidgets.QLabel(self.gbSSSettings)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_10.addWidget(self.label_4)
        self.verticalLayout_4.addLayout(self.horizontalLayout_10)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        spacerItem7 = QtWidgets.QSpacerItem(25, 20, QT_SIZE_POLICY_FIXED, QT_SIZE_POLICY_MINIMUM)
        self.horizontalLayout_8.addItem(spacerItem7)
        self.leDiscardedLayer = QtWidgets.QLineEdit(self.gbSSSettings)
        self.leDiscardedLayer.setObjectName("leDiscardedLayer")
        self.horizontalLayout_8.addWidget(self.leDiscardedLayer)
        self.verticalLayout_4.addLayout(self.horizontalLayout_8)
        self.verticalLayout_3.addWidget(self.gbSSSettings)
        self.verticalLayout_6.addWidget(self.gbSpatialDatabaseOptions)
        self.verticalLayout.addLayout(self.verticalLayout_6)
        spacerItem8 = QtWidgets.QSpacerItem(20, 40, QT_SIZE_POLICY_MINIMUM, QT_SIZE_POLICY_EXPANDING)
        self.verticalLayout.addItem(spacerItem8)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem9 = QtWidgets.QSpacerItem(40, 20, QT_SIZE_POLICY_EXPANDING, QT_SIZE_POLICY_MINIMUM)
        self.horizontalLayout.addItem(spacerItem9)
        self.pbOk = QtWidgets.QPushButton(tuflowqgis_increment)
        self.pbOk.setObjectName("pbOk")
        self.horizontalLayout.addWidget(self.pbOk)
        self.pbCancel = QtWidgets.QPushButton(tuflowqgis_increment)
        self.pbCancel.setObjectName("pbCancel")
        self.horizontalLayout.addWidget(self.pbCancel)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2.addLayout(self.verticalLayout)

        self.retranslateUi(tuflowqgis_increment)
        QtCore.QMetaObject.connectSlotsByName(tuflowqgis_increment)
        tuflowqgis_increment.setTabOrder(self.pbOk, self.pbCancel)
        tuflowqgis_increment.setTabOrder(self.pbCancel, self.sourcelayer)
        tuflowqgis_increment.setTabOrder(self.sourcelayer, self.outfolder)
        tuflowqgis_increment.setTabOrder(self.outfolder, self.btnBrowseDatabase)
        tuflowqgis_increment.setTabOrder(self.btnBrowseDatabase, self.outfilename)
        tuflowqgis_increment.setTabOrder(self.outfilename, self.browseoutfile)
        tuflowqgis_increment.setTabOrder(self.browseoutfile, self.twTables)
        tuflowqgis_increment.setTabOrder(self.twTables, self.cbMoveToSS)
        tuflowqgis_increment.setTabOrder(self.cbMoveToSS, self.rbRemoveSource)
        tuflowqgis_increment.setTabOrder(self.rbRemoveSource, self.rbKeepSource)
        tuflowqgis_increment.setTabOrder(self.rbKeepSource, self.rbDatabaseLayer)
        tuflowqgis_increment.setTabOrder(self.rbDatabaseLayer, self.rbDatabaseDbLayer)
        tuflowqgis_increment.setTabOrder(self.rbDatabaseDbLayer, self.rbSaveLayerOut)
        tuflowqgis_increment.setTabOrder(self.rbSaveLayerOut, self.cbRenameLayer)
        tuflowqgis_increment.setTabOrder(self.cbRenameLayer, self.leRenameLayer)
        tuflowqgis_increment.setTabOrder(self.leRenameLayer, self.rbAutoSSLayer)
        tuflowqgis_increment.setTabOrder(self.rbAutoSSLayer, self.rbManualSSLayer)
        tuflowqgis_increment.setTabOrder(self.rbManualSSLayer, self.leDiscardedDb)
        tuflowqgis_increment.setTabOrder(self.leDiscardedDb, self.pbDiscardDb_browse)
        tuflowqgis_increment.setTabOrder(self.pbDiscardDb_browse, self.leDiscardedLayer)

    def retranslateUi(self, tuflowqgis_increment):
        _translate = QtCore.QCoreApplication.translate
        tuflowqgis_increment.setWindowTitle(_translate("tuflowqgis_increment", "Increment Selected Layer"))
        self.label_1.setText(_translate("tuflowqgis_increment", "Source Layer"))
        self.label_2.setText(_translate("tuflowqgis_increment", "Output Folder"))
        self.outfolder.setText(_translate("tuflowqgis_increment", "<outfolder>"))
        self.btnBrowseDatabase.setText(_translate("tuflowqgis_increment", "Browse..."))
        self.label.setText(_translate("tuflowqgis_increment", "Output File"))
        self.outfilename.setText(_translate("tuflowqgis_increment", "<filename.shp>"))
        self.browseoutfile.setText(_translate("tuflowqgis_increment", "Browse..."))
        self.cbMoveToSS.setText(_translate("tuflowqgis_increment", "Move Source Layer to Superseded (ss) folder"))
        self.rbRemoveSource.setText(_translate("tuflowqgis_increment", "Remove Source Layer from Workspace"))
        self.rbKeepSource.setText(_translate("tuflowqgis_increment", "Keep Source Layer in Workspace"))
        self.label_5.setText(_translate("tuflowqgis_increment", "<html><head/><body><p>Spatial Database Options (<a href=\"https://wiki.tuflow.com/index.php?title=QGIS_TUFLOW_Increment_Layer#Working_with_GPKG\"><span style=\" text-decoration: underline; color:#0000ff;\">What is this?</span></a>)</p></body></html>"))
        self.rbDatabaseLayer.setText(_translate("tuflowqgis_increment", "Increment layer only"))
        self.rbDatabaseDbLayer.setText(_translate("tuflowqgis_increment", "Increment layer and preserve database"))
        self.rbSaveLayerOut.setText(_translate("tuflowqgis_increment", "Save layer out into superseded folder"))
        self.gbSSSettings.setTitle(_translate("tuflowqgis_increment", "Supersede layer settings"))
        self.cbRenameLayer.setText(_translate("tuflowqgis_increment", "Increment Layer Name"))
        self.rbAutoSSLayer.setText(_translate("tuflowqgis_increment", "Auto supersede layer"))
        self.rbManualSSLayer.setText(_translate("tuflowqgis_increment", "Manually supersede layer"))
        self.label_3.setText(_translate("tuflowqgis_increment", "Output Database"))
        self.pbDiscardDb_browse.setText(_translate("tuflowqgis_increment", "Browse..."))
        self.label_4.setText(_translate("tuflowqgis_increment", "Output Layer Name"))
        self.pbOk.setText(_translate("tuflowqgis_increment", "OK"))
        self.pbCancel.setText(_translate("tuflowqgis_increment", "Cancel"))
