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

# Form implementation generated from reading ui file 'C:\Users\ellis.symons\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\tuflow\ui\ui_increment_layer_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.11
#
# 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_RICH_TEXT, QT_BUTTON_BOX_CANCEL, QT_SIZE_POLICY_EXPANDING, QT_SIZE_POLICY_FIXED, QT_SIZE_POLICY_MINIMUM, QT_BUTTON_BOX_OK, QT_HORIZONTAL

class Ui_IncrementLayerDialog(object):
    def setupUi(self, IncrementLayerDialog):
        IncrementLayerDialog.setObjectName("IncrementLayerDialog")
        IncrementLayerDialog.resize(536, 389)
        self.verticalLayout = QtWidgets.QVBoxLayout(IncrementLayerDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.scrollArea = QtWidgets.QScrollArea(IncrementLayerDialog)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 516, 340))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.splitter = QtWidgets.QSplitter(self.scrollAreaWidgetContents)
        self.splitter.setOrientation(QT_HORIZONTAL)
        self.splitter.setObjectName("splitter")
        self.main_widget = QtWidgets.QWidget(self.splitter)
        self.main_widget.setObjectName("main_widget")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.main_widget)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.increment_layer_name_cb = QtWidgets.QCheckBox(self.main_widget)
        self.increment_layer_name_cb.setObjectName("increment_layer_name_cb")
        self.verticalLayout_3.addWidget(self.increment_layer_name_cb)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem = QtWidgets.QSpacerItem(10, 20, QT_SIZE_POLICY_FIXED, QT_SIZE_POLICY_MINIMUM)
        self.horizontalLayout_2.addItem(spacerItem)
        self.cb_rename_layer = QtWidgets.QCheckBox(self.main_widget)
        self.cb_rename_layer.setObjectName("cb_rename_layer")
        self.horizontalLayout_2.addWidget(self.cb_rename_layer)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.output_name_err_txt = QtWidgets.QLabel(self.main_widget)
        self.output_name_err_txt.setTextFormat(QT_RICH_TEXT)
        self.output_name_err_txt.setWordWrap(True)
        self.output_name_err_txt.setObjectName("output_name_err_txt")
        self.verticalLayout_3.addWidget(self.output_name_err_txt)
        self.increment_layer_name_line_edit = QtWidgets.QLineEdit(self.main_widget)
        self.increment_layer_name_line_edit.setEnabled(False)
        self.increment_layer_name_line_edit.setObjectName("increment_layer_name_line_edit")
        self.verticalLayout_3.addWidget(self.increment_layer_name_line_edit)
        self.remove_old_layer_rb = QtWidgets.QRadioButton(self.main_widget)
        self.remove_old_layer_rb.setChecked(True)
        self.remove_old_layer_rb.setObjectName("remove_old_layer_rb")
        self.buttonGroup = QtWidgets.QButtonGroup(IncrementLayerDialog)
        self.buttonGroup.setObjectName("buttonGroup")
        self.buttonGroup.addButton(self.remove_old_layer_rb)
        self.verticalLayout_3.addWidget(self.remove_old_layer_rb)
        self.keep_old_layer_rb = QtWidgets.QRadioButton(self.main_widget)
        self.keep_old_layer_rb.setObjectName("keep_old_layer_rb")
        self.buttonGroup.addButton(self.keep_old_layer_rb)
        self.verticalLayout_3.addWidget(self.keep_old_layer_rb)
        self.supersede_src_cb = QtWidgets.QCheckBox(self.main_widget)
        self.supersede_src_cb.setChecked(True)
        self.supersede_src_cb.setObjectName("supersede_src_cb")
        self.verticalLayout_3.addWidget(self.supersede_src_cb)
        self.supersede_database_label = QtWidgets.QLabel(self.main_widget)
        self.supersede_database_label.setObjectName("supersede_database_label")
        self.verticalLayout_3.addWidget(self.supersede_database_label)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.supersede_database_line_edit = QtWidgets.QLineEdit(self.main_widget)
        self.supersede_database_line_edit.setObjectName("supersede_database_line_edit")
        self.horizontalLayout.addWidget(self.supersede_database_line_edit)
        self.supersede_database_browse_btn = QtWidgets.QToolButton(self.main_widget)
        self.supersede_database_browse_btn.setObjectName("supersede_database_browse_btn")
        self.horizontalLayout.addWidget(self.supersede_database_browse_btn)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.supersede_layer_label = QtWidgets.QLabel(self.main_widget)
        self.supersede_layer_label.setObjectName("supersede_layer_label")
        self.verticalLayout_3.addWidget(self.supersede_layer_label)
        self.output_folder_err_txt = QtWidgets.QLabel(self.main_widget)
        self.output_folder_err_txt.setTextFormat(QT_RICH_TEXT)
        self.output_folder_err_txt.setWordWrap(True)
        self.output_folder_err_txt.setObjectName("output_folder_err_txt")
        self.verticalLayout_3.addWidget(self.output_folder_err_txt)
        self.supersede_layer_line_edit = QtWidgets.QLineEdit(self.main_widget)
        self.supersede_layer_line_edit.setObjectName("supersede_layer_line_edit")
        self.verticalLayout_3.addWidget(self.supersede_layer_line_edit)
        spacerItem1 = QtWidgets.QSpacerItem(20, 106, QT_SIZE_POLICY_MINIMUM, QT_SIZE_POLICY_EXPANDING)
        self.verticalLayout_3.addItem(spacerItem1)
        self.html_help = QtWidgets.QTextBrowser(self.splitter)
        self.html_help.setObjectName("html_help")
        self.verticalLayout_2.addWidget(self.splitter)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout.addWidget(self.scrollArea)
        self.buttonBox = QtWidgets.QDialogButtonBox(IncrementLayerDialog)
        self.buttonBox.setOrientation(QT_HORIZONTAL)
        self.buttonBox.setStandardButtons(QT_BUTTON_BOX_CANCEL|QT_BUTTON_BOX_OK)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(IncrementLayerDialog)
        self.buttonBox.accepted.connect(IncrementLayerDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(IncrementLayerDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(IncrementLayerDialog)

    def retranslateUi(self, IncrementLayerDialog):
        _translate = QtCore.QCoreApplication.translate
        IncrementLayerDialog.setWindowTitle(_translate("IncrementLayerDialog", "Increment Layer"))
        self.increment_layer_name_cb.setText(_translate("IncrementLayerDialog", "Increment layer name"))
        self.cb_rename_layer.setText(_translate("IncrementLayerDialog", "Rename layer"))
        self.output_name_err_txt.setText(_translate("IncrementLayerDialog", "TextLabel"))
        self.increment_layer_name_line_edit.setPlaceholderText(_translate("IncrementLayerDialog", "[Layer Name]"))
        self.remove_old_layer_rb.setText(_translate("IncrementLayerDialog", "Remove old layer"))
        self.keep_old_layer_rb.setText(_translate("IncrementLayerDialog", "Keep old layer"))
        self.supersede_src_cb.setText(_translate("IncrementLayerDialog", "Supersede source layer"))
        self.supersede_database_label.setText(_translate("IncrementLayerDialog", "Database to supersede into"))
        self.supersede_database_line_edit.setToolTip(_translate("IncrementLayerDialog", "Output folder location"))
        self.supersede_database_line_edit.setPlaceholderText(_translate("IncrementLayerDialog", "[GPKG]"))
        self.supersede_database_browse_btn.setText(_translate("IncrementLayerDialog", "..."))
        self.supersede_layer_label.setText(_translate("IncrementLayerDialog", "Superseded Layer Name"))
        self.output_folder_err_txt.setText(_translate("IncrementLayerDialog", "TextLabel"))
        self.supersede_layer_line_edit.setToolTip(_translate("IncrementLayerDialog", "Name of output file - extension not required"))
        self.supersede_layer_line_edit.setPlaceholderText(_translate("IncrementLayerDialog", "[Layer Name]"))
