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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateTCData.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_DlgCalculateTCData(object):
    def setupUi(self, DlgCalculateTCData):
        DlgCalculateTCData.setObjectName("DlgCalculateTCData")
        DlgCalculateTCData.resize(996, 789)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateTCData.sizePolicy().hasHeightForWidth())
        DlgCalculateTCData.setSizePolicy(sizePolicy)
        self.verticalLayout = QtWidgets.QVBoxLayout(DlgCalculateTCData)
        self.verticalLayout.setObjectName("verticalLayout")
        self.splitter = QtWidgets.QSplitter(DlgCalculateTCData)
        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, 690, 996))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        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_hansen_period = QtWidgets.QGroupBox(self.setup_frame)
        self.groupBox_hansen_period.setObjectName("groupBox_hansen_period")
        self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox_hansen_period)
        self.gridLayout_9.setObjectName("gridLayout_9")
        self.label_4 = QtWidgets.QLabel(self.groupBox_hansen_period)
        self.label_4.setMinimumSize(QtCore.QSize(0, 30))
        self.label_4.setObjectName("label_4")
        self.gridLayout_9.addWidget(self.label_4, 1, 1, 1, 1)
        self.hansen_tg_year = QtWidgets.QDateEdit(self.groupBox_hansen_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.hansen_tg_year.sizePolicy().hasHeightForWidth())
        self.hansen_tg_year.setSizePolicy(sizePolicy)
        self.hansen_tg_year.setMinimumSize(QtCore.QSize(0, 30))
        self.hansen_tg_year.setMaximumSize(QtCore.QSize(120, 35))
        self.hansen_tg_year.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(1992, 1, 1), QtCore.QTime(0, 0, 0)))
        self.hansen_tg_year.setMaximumDate(QtCore.QDate(2030, 12, 31))
        self.hansen_tg_year.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.hansen_tg_year.setDisplayFormat("yyyy")
        self.hansen_tg_year.setDate(QtCore.QDate(2015, 1, 1))
        self.hansen_tg_year.setObjectName("hansen_tg_year")
        self.gridLayout_9.addWidget(self.hansen_tg_year, 2, 1, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.groupBox_hansen_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, 1, 0, 1, 1)
        self.use_hansen = QtWidgets.QRadioButton(self.groupBox_hansen_period)
        self.use_hansen.setChecked(True)
        self.use_hansen.setObjectName("use_hansen")
        self.gridLayout_9.addWidget(self.use_hansen, 0, 0, 1, 1)
        self.hansen_bl_year = QtWidgets.QDateEdit(self.groupBox_hansen_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.hansen_bl_year.sizePolicy().hasHeightForWidth())
        self.hansen_bl_year.setSizePolicy(sizePolicy)
        self.hansen_bl_year.setMinimumSize(QtCore.QSize(0, 30))
        self.hansen_bl_year.setMaximumSize(QtCore.QSize(120, 35))
        self.hansen_bl_year.setMaximumDate(QtCore.QDate(2015, 12, 31))
        self.hansen_bl_year.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.hansen_bl_year.setDisplayFormat("yyyy")
        self.hansen_bl_year.setDate(QtCore.QDate(2001, 1, 1))
        self.hansen_bl_year.setObjectName("hansen_bl_year")
        self.gridLayout_9.addWidget(self.hansen_bl_year, 2, 0, 1, 1)
        self.verticalLayout_4.addWidget(self.groupBox_hansen_period)
        self.groupBox_hansen_threshold = QtWidgets.QGroupBox(self.setup_frame)
        self.groupBox_hansen_threshold.setObjectName("groupBox_hansen_threshold")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_hansen_threshold)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.hansen_fc_threshold = QtWidgets.QSpinBox(self.groupBox_hansen_threshold)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.hansen_fc_threshold.sizePolicy().hasHeightForWidth())
        self.hansen_fc_threshold.setSizePolicy(sizePolicy)
        self.hansen_fc_threshold.setMinimumSize(QtCore.QSize(30, 30))
        self.hansen_fc_threshold.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.hansen_fc_threshold.setSpecialValueText("")
        self.hansen_fc_threshold.setMinimum(0)
        self.hansen_fc_threshold.setMaximum(100)
        self.hansen_fc_threshold.setProperty("value", 9)
        self.hansen_fc_threshold.setObjectName("hansen_fc_threshold")
        self.gridLayout_3.addWidget(self.hansen_fc_threshold, 0, 0, 1, 1)
        self.verticalLayout_4.addWidget(self.groupBox_hansen_threshold)
        self.use_custom = QtWidgets.QRadioButton(self.setup_frame)
        self.use_custom.setObjectName("use_custom")
        self.verticalLayout_4.addWidget(self.use_custom)
        self.groupBox_custom_bl = QtWidgets.QGroupBox(self.setup_frame)
        self.groupBox_custom_bl.setEnabled(True)
        self.groupBox_custom_bl.setObjectName("groupBox_custom_bl")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_custom_bl)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.use_custom_initial = WidgetDataIOSelectTELayerImport(self.groupBox_custom_bl)
        self.use_custom_initial.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.use_custom_initial.sizePolicy().hasHeightForWidth())
        self.use_custom_initial.setSizePolicy(sizePolicy)
        self.use_custom_initial.setMinimumSize(QtCore.QSize(0, 30))
        self.use_custom_initial.setProperty("layer_type", "Land cover (7 class)")
        self.use_custom_initial.setObjectName("use_custom_initial")
        self.gridLayout_5.addWidget(self.use_custom_initial, 0, 1, 1, 1)
        self.verticalLayout_4.addWidget(self.groupBox_custom_bl)
        self.groupBox_custom_tg = QtWidgets.QGroupBox(self.setup_frame)
        self.groupBox_custom_tg.setEnabled(True)
        self.groupBox_custom_tg.setObjectName("groupBox_custom_tg")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_custom_tg)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.use_custom_final = WidgetDataIOSelectTELayerImport(self.groupBox_custom_tg)
        self.use_custom_final.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.use_custom_final.sizePolicy().hasHeightForWidth())
        self.use_custom_final.setSizePolicy(sizePolicy)
        self.use_custom_final.setMinimumSize(QtCore.QSize(0, 30))
        self.use_custom_final.setProperty("layer_type", "Land cover (7 class)")
        self.use_custom_final.setObjectName("use_custom_final")
        self.gridLayout_7.addWidget(self.use_custom_final, 0, 1, 1, 1)
        self.verticalLayout_4.addWidget(self.groupBox_custom_tg)
        self.verticalLayout_6.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_6.addLayout(self.horizontalLayout)
        self.execution_name_la = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.execution_name_la.setObjectName("execution_name_la")
        self.verticalLayout_6.addWidget(self.execution_name_la)
        self.execution_name_le = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
        self.execution_name_le.setObjectName("execution_name_le")
        self.verticalLayout_6.addWidget(self.execution_name_le)
        self.task_notes_la = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.task_notes_la.setObjectName("task_notes_la")
        self.verticalLayout_6.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_6.addWidget(self.task_notes)
        self.advanced_configurations = QgsCollapsibleGroupBox(self.scrollAreaWidgetContents)
        self.advanced_configurations.setCollapsed(False)
        self.advanced_configurations.setObjectName("advanced_configurations")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.advanced_configurations)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.groupBox = QtWidgets.QGroupBox(self.advanced_configurations)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.radioButton_carbon_woods_hole = QtWidgets.QRadioButton(self.groupBox)
        self.radioButton_carbon_woods_hole.setChecked(True)
        self.radioButton_carbon_woods_hole.setObjectName("radioButton_carbon_woods_hole")
        self.verticalLayout_5.addWidget(self.radioButton_carbon_woods_hole)
        self.radioButton_carbon_geocarbon = QtWidgets.QRadioButton(self.groupBox)
        self.radioButton_carbon_geocarbon.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton_carbon_geocarbon.setChecked(False)
        self.radioButton_carbon_geocarbon.setObjectName("radioButton_carbon_geocarbon")
        self.verticalLayout_5.addWidget(self.radioButton_carbon_geocarbon)
        self.radioButton_carbon_custom = QtWidgets.QRadioButton(self.groupBox)
        self.radioButton_carbon_custom.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton_carbon_custom.setObjectName("radioButton_carbon_custom")
        self.verticalLayout_5.addWidget(self.radioButton_carbon_custom)
        self.combo_layer_traj = WidgetDataIOSelectTELayerExisting(self.groupBox)
        self.combo_layer_traj.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_layer_traj.sizePolicy().hasHeightForWidth())
        self.combo_layer_traj.setSizePolicy(sizePolicy)
        self.combo_layer_traj.setMinimumSize(QtCore.QSize(0, 30))
        self.combo_layer_traj.setProperty("layer_type", "Productivity trajectory (significance)")
        self.combo_layer_traj.setObjectName("combo_layer_traj")
        self.verticalLayout_5.addWidget(self.combo_layer_traj)
        self.verticalLayout_7.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.advanced_configurations)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.radioButton_rootshoot_mokany = QtWidgets.QRadioButton(self.groupBox_2)
        self.radioButton_rootshoot_mokany.setChecked(True)
        self.radioButton_rootshoot_mokany.setObjectName("radioButton_rootshoot_mokany")
        self.verticalLayout_2.addWidget(self.radioButton_rootshoot_mokany)
        self.radioButton_rootshoot_ipcc = QtWidgets.QRadioButton(self.groupBox_2)
        self.radioButton_rootshoot_ipcc.setEnabled(True)
        self.radioButton_rootshoot_ipcc.setChecked(False)
        self.radioButton_rootshoot_ipcc.setObjectName("radioButton_rootshoot_ipcc")
        self.verticalLayout_2.addWidget(self.radioButton_rootshoot_ipcc)
        self.verticalLayout_7.addWidget(self.groupBox_2)
        self.verticalLayout_6.addWidget(self.advanced_configurations)
        spacerItem = QtWidgets.QSpacerItem(20, 23, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_6.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(False)
        self.alg_help.setObjectName("alg_help")
        self.verticalLayout.addWidget(self.splitter)
        self.button_box = QtWidgets.QDialogButtonBox(DlgCalculateTCData)
        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.addWidget(self.button_box)

        self.retranslateUi(DlgCalculateTCData)
        QtCore.QMetaObject.connectSlotsByName(DlgCalculateTCData)

    def retranslateUi(self, DlgCalculateTCData):
        _translate = QtCore.QCoreApplication.translate
        DlgCalculateTCData.setWindowTitle(_translate("DlgCalculateTCData", "Carbon Change | Total Carbon"))
        self.groupBox_hansen_period.setTitle(_translate("DlgCalculateTCData", "Period"))
        self.label_4.setText(_translate("DlgCalculateTCData", "Target year:"))
        self.hansen_tg_year.setToolTip(_translate("DlgCalculateTCData", "Select the target year, should be great than the initial year"))
        self.label_11.setText(_translate("DlgCalculateTCData", "Initial year:"))
        self.use_hansen.setText(_translate("DlgCalculateTCData", "Hansen et. al. Global Forest Change product (30 m resolution)"))
        self.hansen_bl_year.setToolTip(_translate("DlgCalculateTCData", "Select the initial year, should be less than the final year."))
        self.groupBox_hansen_threshold.setTitle(_translate("DlgCalculateTCData", "Percent tree cover considered forest"))
        self.hansen_fc_threshold.setSuffix(_translate("DlgCalculateTCData", "%"))
        self.use_custom.setText(_translate("DlgCalculateTCData", "Custom tree cover dataset"))
        self.groupBox_custom_bl.setTitle(_translate("DlgCalculateTCData", "Initial layer (initial year)"))
        self.groupBox_custom_tg.setTitle(_translate("DlgCalculateTCData", "Final layer (target year)"))
        self.region_la.setToolTip(_translate("DlgCalculateTCData", "The current selected region of interest"))
        self.region_button.setToolTip(_translate("DlgCalculateTCData", "<html><head/><body><p>Opens settings dialog in order to change region of interest.</p></body></html>"))
        self.region_button.setText(_translate("DlgCalculateTCData", "Change region"))
        self.execution_name_la.setText(_translate("DlgCalculateTCData", "Execution name:"))
        self.execution_name_le.setToolTip(_translate("DlgCalculateTCData", "<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("DlgCalculateTCData", "Notes:"))
        self.task_notes.setToolTip(_translate("DlgCalculateTCData", "User notes associated with the executed task."))
        self.advanced_configurations.setTitle(_translate("DlgCalculateTCData", "Advanced configuration"))
        self.groupBox.setTitle(_translate("DlgCalculateTCData", "Aboveground biomass dataset"))
        self.radioButton_carbon_woods_hole.setText(_translate("DlgCalculateTCData", "Woods Hole Research Center (30 m resolution)"))
        self.radioButton_carbon_geocarbon.setText(_translate("DlgCalculateTCData", "GEOCARBON (1 km resolution, global)"))
        self.radioButton_carbon_custom.setText(_translate("DlgCalculateTCData", "Custom dataset - COMING SOON!"))
        self.groupBox_2.setTitle(_translate("DlgCalculateTCData", "Method for calculation of root to shoot ratio"))
        self.radioButton_rootshoot_mokany.setText(_translate("DlgCalculateTCData", "Mokany et al. 2006"))
        self.radioButton_rootshoot_ipcc.setText(_translate("DlgCalculateTCData", "IPCC"))
        self.alg_help.setHtml(_translate("DlgCalculateTCData", "<!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:\'Ubuntu\'; font-size:11pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Change in Total Carbon</span></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Algorithm for calculation above and below ground emissions from deforestation</p></body></html>"))
from LDMP.data_io import WidgetDataIOSelectTELayerExisting, WidgetDataIOSelectTELayerImport
from qgis.gui import QgsCollapsibleGroupBox


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