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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateOneStep.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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 PyQt5 import QtCore, QtGui, QtWidgets


class Ui_DlgCalculateOneStep(object):
    def setupUi(self, DlgCalculateOneStep):
        DlgCalculateOneStep.setObjectName("DlgCalculateOneStep")
        DlgCalculateOneStep.resize(961, 662)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateOneStep.sizePolicy().hasHeightForWidth())
        DlgCalculateOneStep.setSizePolicy(sizePolicy)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(DlgCalculateOneStep)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.splitter = QtWidgets.QSplitter(DlgCalculateOneStep)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setHandleWidth(16)
        self.splitter.setObjectName("splitter")
        self.configurations = QtWidgets.QFrame(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.configurations.sizePolicy().hasHeightForWidth())
        self.configurations.setSizePolicy(sizePolicy)
        self.configurations.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.configurations.setFrameShadow(QtWidgets.QFrame.Raised)
        self.configurations.setObjectName("configurations")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.configurations)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.scrollArea = QtWidgets.QScrollArea(self.configurations)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 669, 613))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.setup_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents)
        self.setup_frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.setup_frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.setup_frame.setObjectName("setup_frame")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.setup_frame)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.groupBox_baseline_period = QtWidgets.QGroupBox(self.setup_frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_baseline_period.sizePolicy().hasHeightForWidth())
        self.groupBox_baseline_period.setSizePolicy(sizePolicy)
        self.groupBox_baseline_period.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.groupBox_baseline_period.setObjectName("groupBox_baseline_period")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_baseline_period)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.label_10 = QtWidgets.QLabel(self.groupBox_baseline_period)
        self.label_10.setMinimumSize(QtCore.QSize(0, 30))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_10.setFont(font)
        self.label_10.setObjectName("label_10")
        self.gridLayout_8.addWidget(self.label_10, 0, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_baseline_period)
        self.label_3.setMinimumSize(QtCore.QSize(0, 30))
        self.label_3.setObjectName("label_3")
        self.gridLayout_8.addWidget(self.label_3, 0, 1, 1, 1)
        self.year_final_baseline = QtWidgets.QDateEdit(self.groupBox_baseline_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.year_final_baseline.sizePolicy().hasHeightForWidth())
        self.year_final_baseline.setSizePolicy(sizePolicy)
        self.year_final_baseline.setMinimumSize(QtCore.QSize(0, 30))
        self.year_final_baseline.setMaximumSize(QtCore.QSize(120, 35))
        self.year_final_baseline.setDisplayFormat("yyyy")
        self.year_final_baseline.setDate(QtCore.QDate(2015, 1, 1))
        self.year_final_baseline.setObjectName("year_final_baseline")
        self.gridLayout_8.addWidget(self.year_final_baseline, 1, 1, 1, 1)
        self.year_initial_baseline = QtWidgets.QDateEdit(self.groupBox_baseline_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.year_initial_baseline.sizePolicy().hasHeightForWidth())
        self.year_initial_baseline.setSizePolicy(sizePolicy)
        self.year_initial_baseline.setMinimumSize(QtCore.QSize(0, 30))
        self.year_initial_baseline.setMaximumSize(QtCore.QSize(120, 35))
        self.year_initial_baseline.setDisplayFormat("yyyy")
        self.year_initial_baseline.setDate(QtCore.QDate(2001, 1, 1))
        self.year_initial_baseline.setObjectName("year_initial_baseline")
        self.gridLayout_8.addWidget(self.year_initial_baseline, 1, 0, 1, 1)
        self.verticalLayout_4.addWidget(self.groupBox_baseline_period)
        self.checkBox_progress_period = QtWidgets.QCheckBox(self.setup_frame)
        self.checkBox_progress_period.setObjectName("checkBox_progress_period")
        self.verticalLayout_4.addWidget(self.checkBox_progress_period)
        self.groupBox_progress_period = QtWidgets.QGroupBox(self.setup_frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_progress_period.sizePolicy().hasHeightForWidth())
        self.groupBox_progress_period.setSizePolicy(sizePolicy)
        self.groupBox_progress_period.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.groupBox_progress_period.setObjectName("groupBox_progress_period")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox_progress_period)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.label_11 = QtWidgets.QLabel(self.groupBox_progress_period)
        self.label_11.setMinimumSize(QtCore.QSize(0, 30))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_11.setFont(font)
        self.label_11.setObjectName("label_11")
        self.gridLayout_9.addWidget(self.label_11, 0, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox_progress_period)
        self.label_4.setMinimumSize(QtCore.QSize(0, 30))
        self.label_4.setObjectName("label_4")
        self.gridLayout_9.addWidget(self.label_4, 0, 1, 1, 1)
        self.year_final_progress = QtWidgets.QDateEdit(self.groupBox_progress_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.year_final_progress.sizePolicy().hasHeightForWidth())
        self.year_final_progress.setSizePolicy(sizePolicy)
        self.year_final_progress.setMinimumSize(QtCore.QSize(0, 30))
        self.year_final_progress.setMaximumSize(QtCore.QSize(120, 35))
        self.year_final_progress.setDisplayFormat("yyyy")
        self.year_final_progress.setDate(QtCore.QDate(2019, 1, 1))
        self.year_final_progress.setObjectName("year_final_progress")
        self.gridLayout_9.addWidget(self.year_final_progress, 1, 1, 1, 1)
        self.year_initial_progress = QtWidgets.QDateEdit(self.groupBox_progress_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.year_initial_progress.sizePolicy().hasHeightForWidth())
        self.year_initial_progress.setSizePolicy(sizePolicy)
        self.year_initial_progress.setMinimumSize(QtCore.QSize(0, 30))
        self.year_initial_progress.setMaximumSize(QtCore.QSize(120, 35))
        self.year_initial_progress.setDisplayFormat("yyyy")
        self.year_initial_progress.setDate(QtCore.QDate(2005, 1, 1))
        self.year_initial_progress.setObjectName("year_initial_progress")
        self.gridLayout_9.addWidget(self.year_initial_progress, 1, 0, 1, 1)
        self.verticalLayout_4.addWidget(self.groupBox_progress_period)
        self.groupBox_3 = QtWidgets.QGroupBox(self.setup_frame)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout.setObjectName("gridLayout")
        self.radio_lpd_jrc = QtWidgets.QRadioButton(self.groupBox_3)
        self.radio_lpd_jrc.setChecked(False)
        self.radio_lpd_jrc.setObjectName("radio_lpd_jrc")
        self.gridLayout.addWidget(self.radio_lpd_jrc, 1, 0, 1, 2)
        self.radio_te_prod = QtWidgets.QRadioButton(self.groupBox_3)
        self.radio_te_prod.setChecked(True)
        self.radio_te_prod.setObjectName("radio_te_prod")
        self.gridLayout.addWidget(self.radio_te_prod, 0, 0, 1, 1)
        self.verticalLayout_4.addWidget(self.groupBox_3)
        self.verticalLayout_7.addWidget(self.setup_frame)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(5, -1, 9, 4)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.region_la = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.region_la.setText("")
        self.region_la.setWordWrap(True)
        self.region_la.setObjectName("region_la")
        self.horizontalLayout.addWidget(self.region_la)
        self.region_button = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
        self.region_button.setObjectName("region_button")
        self.horizontalLayout.addWidget(self.region_button)
        self.verticalLayout_7.addLayout(self.horizontalLayout)
        self.execution_name_la = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.execution_name_la.setObjectName("execution_name_la")
        self.verticalLayout_7.addWidget(self.execution_name_la)
        self.execution_name_le = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
        self.execution_name_le.setObjectName("execution_name_le")
        self.verticalLayout_7.addWidget(self.execution_name_le)
        self.task_notes_la = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.task_notes_la.setObjectName("task_notes_la")
        self.verticalLayout_7.addWidget(self.task_notes_la)
        self.task_notes = QtWidgets.QTextEdit(self.scrollAreaWidgetContents)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.task_notes.sizePolicy().hasHeightForWidth())
        self.task_notes.setSizePolicy(sizePolicy)
        self.task_notes.setMinimumSize(QtCore.QSize(0, 0))
        self.task_notes.setMaximumSize(QtCore.QSize(16777215, 100))
        self.task_notes.setObjectName("task_notes")
        self.verticalLayout_7.addWidget(self.task_notes)
        self.advance_configurations = QgsCollapsibleGroupBox(self.scrollAreaWidgetContents)
        self.advance_configurations.setCollapsed(True)
        self.advance_configurations.setObjectName("advance_configurations")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.advance_configurations)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.land_cover = QtWidgets.QGroupBox(self.advance_configurations)
        self.land_cover.setObjectName("land_cover")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.land_cover)
        self.verticalLayout.setContentsMargins(1, 1, 1, 1)
        self.verticalLayout.setObjectName("verticalLayout")
        self.land_cover_content = QtWidgets.QFrame(self.land_cover)
        self.land_cover_content.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.land_cover_content.setFrameShadow(QtWidgets.QFrame.Raised)
        self.land_cover_content.setObjectName("land_cover_content")
        self.verticalLayout.addWidget(self.land_cover_content)
        self.verticalLayout_5.addWidget(self.land_cover)
        self.land_cover_effects = QtWidgets.QGroupBox(self.advance_configurations)
        self.land_cover_effects.setObjectName("land_cover_effects")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.land_cover_effects)
        self.verticalLayout_2.setContentsMargins(1, 1, 1, 1)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.effects_content = QtWidgets.QFrame(self.land_cover_effects)
        self.effects_content.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.effects_content.setFrameShadow(QtWidgets.QFrame.Raised)
        self.effects_content.setObjectName("effects_content")
        self.verticalLayout_2.addWidget(self.effects_content)
        self.verticalLayout_5.addWidget(self.land_cover_effects)
        self.verticalLayout_7.addWidget(self.advance_configurations)
        spacerItem = QtWidgets.QSpacerItem(20, 81, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout_3.addWidget(self.scrollArea)
        self.alg_help = QtWidgets.QTextBrowser(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.alg_help.sizePolicy().hasHeightForWidth())
        self.alg_help.setSizePolicy(sizePolicy)
        self.alg_help.setAccessibleName("")
        self.alg_help.setOpenExternalLinks(True)
        self.alg_help.setOpenLinks(True)
        self.alg_help.setObjectName("alg_help")
        self.verticalLayout_6.addWidget(self.splitter)
        self.button_box = QtWidgets.QDialogButtonBox(DlgCalculateOneStep)
        self.button_box.setOrientation(QtCore.Qt.Horizontal)
        self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Help|QtWidgets.QDialogButtonBox.Ok)
        self.button_box.setObjectName("button_box")
        self.verticalLayout_6.addWidget(self.button_box)

        self.retranslateUi(DlgCalculateOneStep)
        self.button_box.accepted.connect(DlgCalculateOneStep.accept)
        self.button_box.rejected.connect(DlgCalculateOneStep.reject)
        QtCore.QMetaObject.connectSlotsByName(DlgCalculateOneStep)

    def retranslateUi(self, DlgCalculateOneStep):
        _translate = QtCore.QCoreApplication.translate
        DlgCalculateOneStep.setWindowTitle(_translate("DlgCalculateOneStep", "SDG 15.3.1 Indicator (one-step) | Land Degradation"))
        DlgCalculateOneStep.setToolTip(_translate("DlgCalculateOneStep", "User notes associated with the executed task."))
        self.groupBox_baseline_period.setTitle(_translate("DlgCalculateOneStep", "Baseline period"))
        self.label_10.setText(_translate("DlgCalculateOneStep", "Initial year:"))
        self.label_3.setText(_translate("DlgCalculateOneStep", "Final year:"))
        self.year_final_baseline.setToolTip(_translate("DlgCalculateOneStep", "Select the final year, should be great than the initial year"))
        self.year_initial_baseline.setToolTip(_translate("DlgCalculateOneStep", "Select the initial year, should be less than the final year."))
        self.checkBox_progress_period.setText(_translate("DlgCalculateOneStep", "Include progress period (for comparison to baseline)"))
        self.groupBox_progress_period.setTitle(_translate("DlgCalculateOneStep", "Progress period"))
        self.label_11.setText(_translate("DlgCalculateOneStep", "Initial year:"))
        self.label_4.setText(_translate("DlgCalculateOneStep", "Final year:"))
        self.year_final_progress.setToolTip(_translate("DlgCalculateOneStep", "Select the final year, should be great than the initial year"))
        self.year_initial_progress.setToolTip(_translate("DlgCalculateOneStep", "Select the initial year, should be less than the final year."))
        self.groupBox_3.setTitle(_translate("DlgCalculateOneStep", "Land productivity dataset"))
        self.radio_lpd_jrc.setText(_translate("DlgCalculateOneStep", "UNCCD default data (Land Productivity Dynamics (LPD) Product 1999-2013 from Joint Research Commission)"))
        self.radio_te_prod.setText(_translate("DlgCalculateOneStep", "Trends.Earth land productivity"))
        self.region_la.setToolTip(_translate("DlgCalculateOneStep", "The current selected region of interest"))
        self.region_button.setToolTip(_translate("DlgCalculateOneStep", "<html><head/><body><p>Opens settings dialog in order to change region of interest.</p></body></html>"))
        self.region_button.setText(_translate("DlgCalculateOneStep", "Change region"))
        self.execution_name_la.setText(_translate("DlgCalculateOneStep", "Execution name:"))
        self.execution_name_le.setToolTip(_translate("DlgCalculateOneStep", "<html><head/><body><p>Input for the name that will be assigned to the execution task, if not filled the algorithm name will be used as the task name.</p></body></html>"))
        self.task_notes_la.setText(_translate("DlgCalculateOneStep", "Notes:"))
        self.task_notes.setToolTip(_translate("DlgCalculateOneStep", "User notes associated with the executed task."))
        self.advance_configurations.setTitle(_translate("DlgCalculateOneStep", "Advanced configuration"))
        self.land_cover.setTitle(_translate("DlgCalculateOneStep", "Land Cover Setup"))
        self.land_cover_effects.setTitle(_translate("DlgCalculateOneStep", "Define Effects of Land Cover Change"))
        self.alg_help.setHtml(_translate("DlgCalculateOneStep", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:16px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Ubuntu\'; font-size:11pt; font-weight:600;\">Calculate all SDG 15.3.1 sub-indicators in a single step</span></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Ubuntu\'; font-size:11pt;\">This algorithm enables the simultaneous calculation of the three SDG 15.3.1 sub-indicators (Productivity, Land Cover and Soil Organic Carbon) in a single step. This is done using the remote Trends.Earth datasets described in each of the individual sub-indicator\'s sections.</span></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:11pt;\"><br /></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"http://trends.earth/docs/en/background/understanding_indicators15.html#\"><span style=\" font-family:\'Ubuntu\'; font-size:11pt; text-decoration: underline; color:#0000ff;\">More information</span></a></p></body></html>"))
from qgis.gui import QgsCollapsibleGroupBox


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    DlgCalculateOneStep = QtWidgets.QDialog()
    ui = Ui_DlgCalculateOneStep()
    ui.setupUi(DlgCalculateOneStep)
    DlgCalculateOneStep.show()
    sys.exit(app.exec_())
