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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateTCData.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_DlgCalculateTCData(object):
    def setupUi(self, DlgCalculateTCData):
        DlgCalculateTCData.setObjectName(_fromUtf8("DlgCalculateTCData"))
        DlgCalculateTCData.resize(645, 547)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateTCData.sizePolicy().hasHeightForWidth())
        DlgCalculateTCData.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgCalculateTCData)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgCalculateTCData)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TabBox.sizePolicy().hasHeightForWidth())
        self.TabBox.setSizePolicy(sizePolicy)
        self.TabBox.setTabShape(QtGui.QTabWidget.Rounded)
        self.TabBox.setObjectName(_fromUtf8("TabBox"))
        self.ForestDefinitionTab = QtGui.QWidget()
        self.ForestDefinitionTab.setObjectName(_fromUtf8("ForestDefinitionTab"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.ForestDefinitionTab)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.use_hansen = QtGui.QRadioButton(self.ForestDefinitionTab)
        self.use_hansen.setChecked(True)
        self.use_hansen.setObjectName(_fromUtf8("use_hansen"))
        self.verticalLayout_5.addWidget(self.use_hansen)
        self.groupBox_hansen_period = QtGui.QGroupBox(self.ForestDefinitionTab)
        self.groupBox_hansen_period.setObjectName(_fromUtf8("groupBox_hansen_period"))
        self.gridLayout_8 = QtGui.QGridLayout(self.groupBox_hansen_period)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.hansen_tg_year = QtGui.QDateEdit(self.groupBox_hansen_period)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.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.setDate(QtCore.QDate(2015, 1, 1))
        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(_fromUtf8("yyyy"))
        self.hansen_tg_year.setObjectName(_fromUtf8("hansen_tg_year"))
        self.gridLayout_8.addWidget(self.hansen_tg_year, 1, 1, 1, 1)
        self.hansen_bl_year = QtGui.QDateEdit(self.groupBox_hansen_period)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.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.setDate(QtCore.QDate(2001, 1, 1))
        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(_fromUtf8("yyyy"))
        self.hansen_bl_year.setObjectName(_fromUtf8("hansen_bl_year"))
        self.gridLayout_8.addWidget(self.hansen_bl_year, 1, 0, 1, 1)
        self.label_10 = QtGui.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(_fromUtf8("label_10"))
        self.gridLayout_8.addWidget(self.label_10, 0, 0, 1, 1)
        self.label_3 = QtGui.QLabel(self.groupBox_hansen_period)
        self.label_3.setMinimumSize(QtCore.QSize(0, 30))
        self.label_3.setObjectName(_fromUtf8("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 = QtGui.QGroupBox(self.ForestDefinitionTab)
        self.groupBox_hansen_threshold.setObjectName(_fromUtf8("groupBox_hansen_threshold"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_hansen_threshold)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.hansen_fc_threshold = QtGui.QSpinBox(self.groupBox_hansen_threshold)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        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(_fromUtf8(""))
        self.hansen_fc_threshold.setMinimum(0)
        self.hansen_fc_threshold.setMaximum(100)
        self.hansen_fc_threshold.setProperty("value", 9)
        self.hansen_fc_threshold.setObjectName(_fromUtf8("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 = QtGui.QRadioButton(self.ForestDefinitionTab)
        self.use_custom.setObjectName(_fromUtf8("use_custom"))
        self.verticalLayout_5.addWidget(self.use_custom)
        self.groupBox_custom_bl = QtGui.QGroupBox(self.ForestDefinitionTab)
        self.groupBox_custom_bl.setEnabled(True)
        self.groupBox_custom_bl.setObjectName(_fromUtf8("groupBox_custom_bl"))
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_custom_bl)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.use_custom_initial = WidgetDataIOSelectTELayerImport(self.groupBox_custom_bl)
        self.use_custom_initial.setEnabled(True)
        self.use_custom_initial.setMinimumSize(QtCore.QSize(0, 30))
        self.use_custom_initial.setProperty("layer_type", _fromUtf8("Land cover (7 class)"))
        self.use_custom_initial.setObjectName(_fromUtf8("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 = QtGui.QGroupBox(self.ForestDefinitionTab)
        self.groupBox_custom_tg.setEnabled(True)
        self.groupBox_custom_tg.setObjectName(_fromUtf8("groupBox_custom_tg"))
        self.gridLayout_6 = QtGui.QGridLayout(self.groupBox_custom_tg)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.use_custom_final = WidgetDataIOSelectTELayerImport(self.groupBox_custom_tg)
        self.use_custom_final.setEnabled(True)
        self.use_custom_final.setMinimumSize(QtCore.QSize(0, 30))
        self.use_custom_final.setProperty("layer_type", _fromUtf8("Land cover (7 class)"))
        self.use_custom_final.setObjectName(_fromUtf8("use_custom_final"))
        self.gridLayout_6.addWidget(self.use_custom_final, 0, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox_custom_tg)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.TabBox.addTab(self.ForestDefinitionTab, _fromUtf8(""))
        self.MethodTab = QtGui.QWidget()
        self.MethodTab.setObjectName(_fromUtf8("MethodTab"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.MethodTab)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.groupBox = QtGui.QGroupBox(self.MethodTab)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.radioButton_carbon_woods_hole = QtGui.QRadioButton(self.groupBox)
        self.radioButton_carbon_woods_hole.setChecked(True)
        self.radioButton_carbon_woods_hole.setObjectName(_fromUtf8("radioButton_carbon_woods_hole"))
        self.verticalLayout_3.addWidget(self.radioButton_carbon_woods_hole)
        self.radioButton_carbon_geocarbon = QtGui.QRadioButton(self.groupBox)
        self.radioButton_carbon_geocarbon.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton_carbon_geocarbon.setChecked(False)
        self.radioButton_carbon_geocarbon.setObjectName(_fromUtf8("radioButton_carbon_geocarbon"))
        self.verticalLayout_3.addWidget(self.radioButton_carbon_geocarbon)
        self.radioButton_carbon_custom = QtGui.QRadioButton(self.groupBox)
        self.radioButton_carbon_custom.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton_carbon_custom.setObjectName(_fromUtf8("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 = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        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", _fromUtf8("Productivity trajectory (significance)"))
        self.combo_layer_traj.setObjectName(_fromUtf8("combo_layer_traj"))
        self.verticalLayout_3.addWidget(self.combo_layer_traj)
        self.verticalLayout_4.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.MethodTab)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.radioButton_rootshoot_ipcc = QtGui.QRadioButton(self.groupBox_2)
        self.radioButton_rootshoot_ipcc.setEnabled(True)
        self.radioButton_rootshoot_ipcc.setChecked(True)
        self.radioButton_rootshoot_ipcc.setObjectName(_fromUtf8("radioButton_rootshoot_ipcc"))
        self.verticalLayout_2.addWidget(self.radioButton_rootshoot_ipcc)
        self.radioButton_rootshoot_mokany = QtGui.QRadioButton(self.groupBox_2)
        self.radioButton_rootshoot_mokany.setObjectName(_fromUtf8("radioButton_rootshoot_mokany"))
        self.verticalLayout_2.addWidget(self.radioButton_rootshoot_mokany)
        self.verticalLayout_4.addWidget(self.groupBox_2)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem1)
        self.TabBox.addTab(self.MethodTab, _fromUtf8(""))
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.button_calculate = QtGui.QPushButton(DlgCalculateTCData)
        self.button_calculate.setMinimumSize(QtCore.QSize(0, 30))
        self.button_calculate.setObjectName(_fromUtf8("button_calculate"))
        self.gridLayout_3.addWidget(self.button_calculate, 2, 0, 1, 2)
        self.button_prev = QtGui.QPushButton(DlgCalculateTCData)
        self.button_prev.setMinimumSize(QtCore.QSize(0, 30))
        self.button_prev.setObjectName(_fromUtf8("button_prev"))
        self.gridLayout_3.addWidget(self.button_prev, 1, 0, 1, 1)
        self.button_next = QtGui.QPushButton(DlgCalculateTCData)
        self.button_next.setMinimumSize(QtCore.QSize(0, 30))
        self.button_next.setObjectName(_fromUtf8("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(0)
        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):
        DlgCalculateTCData.setWindowTitle(_translate("DlgCalculateTCData", "Calculate Change in Total Carbon", None))
        self.use_hansen.setText(_translate("DlgCalculateTCData", "Hansen et. al. Global Forest Change product (30 m resolution)", None))
        self.groupBox_hansen_period.setTitle(_translate("DlgCalculateTCData", "Period", None))
        self.label_10.setText(_translate("DlgCalculateTCData", "Initial year:", None))
        self.label_3.setText(_translate("DlgCalculateTCData", "Target year:", None))
        self.groupBox_hansen_threshold.setTitle(_translate("DlgCalculateTCData", "Percent forest cover considered forest", None))
        self.hansen_fc_threshold.setSuffix(_translate("DlgCalculateTCData", "%", None))
        self.use_custom.setText(_translate("DlgCalculateTCData", "Custom forest cover dataset", None))
        self.groupBox_custom_bl.setTitle(_translate("DlgCalculateTCData", "Initial layer (initial year)", None))
        self.groupBox_custom_tg.setTitle(_translate("DlgCalculateTCData", "Final layer (target year)", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.ForestDefinitionTab), _translate("DlgCalculateTCData", "Forest Definition", None))
        self.groupBox.setTitle(_translate("DlgCalculateTCData", "Aboveground biomass dataset", None))
        self.radioButton_carbon_woods_hole.setText(_translate("DlgCalculateTCData", "Default Woods Hole Research Center (30 m resolution, tropics only)", None))
        self.radioButton_carbon_geocarbon.setText(_translate("DlgCalculateTCData", "GEOCARBON (1 km resolution, global)", None))
        self.radioButton_carbon_custom.setText(_translate("DlgCalculateTCData", "Custom dataset - COMING SOON!", None))
        self.groupBox_2.setTitle(_translate("DlgCalculateTCData", "Method for calculation of root to shoot ratio", None))
        self.radioButton_rootshoot_ipcc.setText(_translate("DlgCalculateTCData", "IPCC", None))
        self.radioButton_rootshoot_mokany.setText(_translate("DlgCalculateTCData", "Mokany et al. 2006", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.MethodTab), _translate("DlgCalculateTCData", "Method", None))
        self.button_calculate.setText(_translate("DlgCalculateTCData", "Calculate", None))
        self.button_prev.setText(_translate("DlgCalculateTCData", "Previous", None))
        self.button_next.setText(_translate("DlgCalculateTCData", "Next", None))

from LDMP.data_io import WidgetDataIOSelectTELayerExisting, WidgetDataIOSelectTELayerImport

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

