# -*- 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(368, 537)
        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.TabBox = QtWidgets.QTabWidget(DlgCalculateTCData)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TabBox.sizePolicy().hasHeightForWidth())
        self.TabBox.setSizePolicy(sizePolicy)
        self.TabBox.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.TabBox.setObjectName("TabBox")
        self.ForestDefinitionTab = QtWidgets.QWidget()
        self.ForestDefinitionTab.setObjectName("ForestDefinitionTab")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.ForestDefinitionTab)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.use_hansen = QtWidgets.QRadioButton(self.ForestDefinitionTab)
        self.use_hansen.setChecked(True)
        self.use_hansen.setObjectName("use_hansen")
        self.verticalLayout_5.addWidget(self.use_hansen)
        self.groupBox_hansen_period = QtWidgets.QGroupBox(self.ForestDefinitionTab)
        self.groupBox_hansen_period.setObjectName("groupBox_hansen_period")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_hansen_period)
        self.gridLayout_8.setObjectName("gridLayout_8")
        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_8.addWidget(self.hansen_tg_year, 1, 1, 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_8.addWidget(self.hansen_bl_year, 1, 0, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.groupBox_hansen_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_hansen_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.verticalLayout_5.addWidget(self.groupBox_hansen_period)
        self.groupBox_hansen_threshold = QtWidgets.QGroupBox(self.ForestDefinitionTab)
        self.groupBox_hansen_threshold.setObjectName("groupBox_hansen_threshold")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_hansen_threshold)
        self.gridLayout_2.setObjectName("gridLayout_2")
        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_2.addWidget(self.hansen_fc_threshold, 0, 0, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox_hansen_threshold)
        self.use_custom = QtWidgets.QRadioButton(self.ForestDefinitionTab)
        self.use_custom.setObjectName("use_custom")
        self.verticalLayout_5.addWidget(self.use_custom)
        self.groupBox_custom_bl = QtWidgets.QGroupBox(self.ForestDefinitionTab)
        self.groupBox_custom_bl.setEnabled(True)
        self.groupBox_custom_bl.setObjectName("groupBox_custom_bl")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_custom_bl)
        self.gridLayout_4.setObjectName("gridLayout_4")
        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_4.addWidget(self.use_custom_initial, 0, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox_custom_bl)
        self.groupBox_custom_tg = QtWidgets.QGroupBox(self.ForestDefinitionTab)
        self.groupBox_custom_tg.setEnabled(True)
        self.groupBox_custom_tg.setObjectName("groupBox_custom_tg")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_custom_tg)
        self.gridLayout_6.setObjectName("gridLayout_6")
        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_6.addWidget(self.use_custom_final, 0, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox_custom_tg)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.TabBox.addTab(self.ForestDefinitionTab, "")
        self.MethodTab = QtWidgets.QWidget()
        self.MethodTab.setObjectName("MethodTab")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.MethodTab)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.groupBox = QtWidgets.QGroupBox(self.MethodTab)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        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_3.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_3.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_3.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_3.addWidget(self.combo_layer_traj)
        self.verticalLayout_4.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.MethodTab)
        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_4.addWidget(self.groupBox_2)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem1)
        self.TabBox.addTab(self.MethodTab, "")
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.button_calculate = QtWidgets.QPushButton(DlgCalculateTCData)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.button_calculate.sizePolicy().hasHeightForWidth())
        self.button_calculate.setSizePolicy(sizePolicy)
        self.button_calculate.setMinimumSize(QtCore.QSize(0, 30))
        self.button_calculate.setObjectName("button_calculate")
        self.gridLayout_3.addWidget(self.button_calculate, 2, 0, 1, 2)
        self.button_prev = QtWidgets.QPushButton(DlgCalculateTCData)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.button_prev.sizePolicy().hasHeightForWidth())
        self.button_prev.setSizePolicy(sizePolicy)
        self.button_prev.setMinimumSize(QtCore.QSize(0, 30))
        self.button_prev.setObjectName("button_prev")
        self.gridLayout_3.addWidget(self.button_prev, 1, 0, 1, 1)
        self.button_next = QtWidgets.QPushButton(DlgCalculateTCData)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.button_next.sizePolicy().hasHeightForWidth())
        self.button_next.setSizePolicy(sizePolicy)
        self.button_next.setMinimumSize(QtCore.QSize(0, 30))
        self.button_next.setObjectName("button_next")
        self.gridLayout_3.addWidget(self.button_next, 1, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_3)

        self.retranslateUi(DlgCalculateTCData)
        self.TabBox.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(DlgCalculateTCData)
        DlgCalculateTCData.setTabOrder(self.TabBox, self.button_prev)
        DlgCalculateTCData.setTabOrder(self.button_prev, self.button_next)
        DlgCalculateTCData.setTabOrder(self.button_next, self.button_calculate)

    def retranslateUi(self, DlgCalculateTCData):
        _translate = QtCore.QCoreApplication.translate
        DlgCalculateTCData.setWindowTitle(_translate("DlgCalculateTCData", "Calculate Change in Total Carbon"))
        self.use_hansen.setText(_translate("DlgCalculateTCData", "Hansen et. al. Global Forest Change product (30 m resolution)"))
        self.groupBox_hansen_period.setTitle(_translate("DlgCalculateTCData", "Period"))
        self.label_10.setText(_translate("DlgCalculateTCData", "Initial year:"))
        self.label_3.setText(_translate("DlgCalculateTCData", "Target 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.TabBox.setTabText(self.TabBox.indexOf(self.ForestDefinitionTab), _translate("DlgCalculateTCData", "Forest Definition"))
        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.TabBox.setTabText(self.TabBox.indexOf(self.MethodTab), _translate("DlgCalculateTCData", "Method"))
        self.button_calculate.setText(_translate("DlgCalculateTCData", "Calculate"))
        self.button_prev.setText(_translate("DlgCalculateTCData", "Previous"))
        self.button_next.setText(_translate("DlgCalculateTCData", "Next"))
from LDMP.data_io import WidgetDataIOSelectTELayerExisting, WidgetDataIOSelectTELayerImport


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_())
