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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateTC.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_DlgCalculateSOC(object):
    def setupUi(self, DlgCalculateSOC):
        DlgCalculateSOC.setObjectName(_fromUtf8("DlgCalculateSOC"))
        DlgCalculateSOC.resize(605, 643)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateSOC.sizePolicy().hasHeightForWidth())
        DlgCalculateSOC.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgCalculateSOC)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgCalculateSOC)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        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.BiomassTab = QtGui.QWidget()
        self.BiomassTab.setObjectName(_fromUtf8("BiomassTab"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.BiomassTab)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.radioButton = QtGui.QRadioButton(self.BiomassTab)
        self.radioButton.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton.setChecked(True)
        self.radioButton.setObjectName(_fromUtf8("radioButton"))
        self.verticalLayout_4.addWidget(self.radioButton)
        self.radioButton_2 = QtGui.QRadioButton(self.BiomassTab)
        self.radioButton_2.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton_2.setObjectName(_fromUtf8("radioButton_2"))
        self.verticalLayout_4.addWidget(self.radioButton_2)
        self.combo_layer_traj = WidgetDataIOSelectTELayerExisting(self.BiomassTab)
        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.setObjectName(_fromUtf8("combo_layer_traj"))
        self.verticalLayout_4.addWidget(self.combo_layer_traj)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem)
        self.TabBox.addTab(self.BiomassTab, _fromUtf8(""))
        self.ForestTab = QtGui.QWidget()
        self.ForestTab.setObjectName(_fromUtf8("ForestTab"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.ForestTab)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.radioButton_3 = QtGui.QRadioButton(self.ForestTab)
        self.radioButton_3.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton_3.setChecked(True)
        self.radioButton_3.setObjectName(_fromUtf8("radioButton_3"))
        self.verticalLayout_6.addWidget(self.radioButton_3)
        self.label = QtGui.QLabel(self.ForestTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMinimumSize(QtCore.QSize(0, 30))
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout_6.addWidget(self.label, QtCore.Qt.AlignHCenter)
        self.spinBox = QtGui.QSpinBox(self.ForestTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spinBox.sizePolicy().hasHeightForWidth())
        self.spinBox.setSizePolicy(sizePolicy)
        self.spinBox.setMinimumSize(QtCore.QSize(30, 30))
        self.spinBox.setMaximum(100)
        self.spinBox.setProperty("value", 10)
        self.spinBox.setObjectName(_fromUtf8("spinBox"))
        self.verticalLayout_6.addWidget(self.spinBox, QtCore.Qt.AlignHCenter)
        self.use_esa = QtGui.QRadioButton(self.ForestTab)
        self.use_esa.setChecked(False)
        self.use_esa.setObjectName(_fromUtf8("use_esa"))
        self.verticalLayout_6.addWidget(self.use_esa)
        self.groupBox_esa_period = QtGui.QGroupBox(self.ForestTab)
        self.groupBox_esa_period.setObjectName(_fromUtf8("groupBox_esa_period"))
        self.gridLayout_8 = QtGui.QGridLayout(self.groupBox_esa_period)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.use_esa_tg_year = QtGui.QDateEdit(self.groupBox_esa_period)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.use_esa_tg_year.sizePolicy().hasHeightForWidth())
        self.use_esa_tg_year.setSizePolicy(sizePolicy)
        self.use_esa_tg_year.setMinimumSize(QtCore.QSize(0, 30))
        self.use_esa_tg_year.setMaximumSize(QtCore.QSize(120, 35))
        self.use_esa_tg_year.setDate(QtCore.QDate(2015, 1, 1))
        self.use_esa_tg_year.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(1992, 1, 1), QtCore.QTime(0, 0, 0)))
        self.use_esa_tg_year.setMaximumDate(QtCore.QDate(2030, 12, 31))
        self.use_esa_tg_year.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.use_esa_tg_year.setDisplayFormat(_fromUtf8("yyyy"))
        self.use_esa_tg_year.setObjectName(_fromUtf8("use_esa_tg_year"))
        self.gridLayout_8.addWidget(self.use_esa_tg_year, 1, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.groupBox_esa_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.label_10 = QtGui.QLabel(self.groupBox_esa_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.use_esa_bl_year = QtGui.QDateEdit(self.groupBox_esa_period)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.use_esa_bl_year.sizePolicy().hasHeightForWidth())
        self.use_esa_bl_year.setSizePolicy(sizePolicy)
        self.use_esa_bl_year.setMinimumSize(QtCore.QSize(0, 30))
        self.use_esa_bl_year.setMaximumSize(QtCore.QSize(120, 35))
        self.use_esa_bl_year.setDate(QtCore.QDate(2001, 1, 1))
        self.use_esa_bl_year.setMaximumDate(QtCore.QDate(2015, 12, 31))
        self.use_esa_bl_year.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.use_esa_bl_year.setDisplayFormat(_fromUtf8("yyyy"))
        self.use_esa_bl_year.setObjectName(_fromUtf8("use_esa_bl_year"))
        self.gridLayout_8.addWidget(self.use_esa_bl_year, 1, 0, 1, 1)
        self.verticalLayout_6.addWidget(self.groupBox_esa_period)
        self.groupBox_esa_agg = QtGui.QGroupBox(self.ForestTab)
        self.groupBox_esa_agg.setCheckable(False)
        self.groupBox_esa_agg.setChecked(False)
        self.groupBox_esa_agg.setObjectName(_fromUtf8("groupBox_esa_agg"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox_esa_agg)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.use_esa_agg_edit = QtGui.QPushButton(self.groupBox_esa_agg)
        self.use_esa_agg_edit.setEnabled(True)
        self.use_esa_agg_edit.setMinimumSize(QtCore.QSize(100, 30))
        self.use_esa_agg_edit.setMaximumSize(QtCore.QSize(150, 16777215))
        self.use_esa_agg_edit.setCheckable(False)
        self.use_esa_agg_edit.setObjectName(_fromUtf8("use_esa_agg_edit"))
        self.gridLayout.addWidget(self.use_esa_agg_edit, 1, 0, 1, 1)
        self.verticalLayout_6.addWidget(self.groupBox_esa_agg)
        self.use_custom = QtGui.QRadioButton(self.ForestTab)
        self.use_custom.setObjectName(_fromUtf8("use_custom"))
        self.verticalLayout_6.addWidget(self.use_custom)
        self.groupBox_custom_bl = QtGui.QGroupBox(self.ForestTab)
        self.groupBox_custom_bl.setEnabled(True)
        self.groupBox_custom_bl.setObjectName(_fromUtf8("groupBox_custom_bl"))
        self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_custom_bl)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        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.setObjectName(_fromUtf8("use_custom_initial"))
        self.gridLayout_5.addWidget(self.use_custom_initial, 0, 1, 1, 1)
        self.verticalLayout_6.addWidget(self.groupBox_custom_bl)
        self.groupBox_custom_tg = QtGui.QGroupBox(self.ForestTab)
        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.setObjectName(_fromUtf8("use_custom_final"))
        self.gridLayout_6.addWidget(self.use_custom_final, 0, 1, 1, 1)
        self.verticalLayout_6.addWidget(self.groupBox_custom_tg)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem1)
        self.TabBox.addTab(self.ForestTab, _fromUtf8(""))
        self.AdvancedTab = QtGui.QWidget()
        self.AdvancedTab.setObjectName(_fromUtf8("AdvancedTab"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.AdvancedTab)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.groupBox = QtGui.QGroupBox(self.AdvancedTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.fl_radio_default = QtGui.QRadioButton(self.groupBox)
        self.fl_radio_default.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_radio_default.setChecked(True)
        self.fl_radio_default.setObjectName(_fromUtf8("fl_radio_default"))
        self.gridLayout_2.addWidget(self.fl_radio_default, 0, 0, 1, 2)
        self.fl_chooseRegime_comboBox = QtGui.QComboBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fl_chooseRegime_comboBox.sizePolicy().hasHeightForWidth())
        self.fl_chooseRegime_comboBox.setSizePolicy(sizePolicy)
        self.fl_chooseRegime_comboBox.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_chooseRegime_comboBox.setObjectName(_fromUtf8("fl_chooseRegime_comboBox"))
        self.gridLayout_2.addWidget(self.fl_chooseRegime_comboBox, 1, 1, 1, 1)
        self.fl_radio_chooseRegime = QtGui.QRadioButton(self.groupBox)
        self.fl_radio_chooseRegime.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_radio_chooseRegime.setObjectName(_fromUtf8("fl_radio_chooseRegime"))
        self.gridLayout_2.addWidget(self.fl_radio_chooseRegime, 1, 0, 1, 1)
        self.verticalLayout_3.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.AdvancedTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.download_annual_lc = QtGui.QCheckBox(self.groupBox_2)
        self.download_annual_lc.setMinimumSize(QtCore.QSize(0, 30))
        self.download_annual_lc.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.download_annual_lc.setObjectName(_fromUtf8("download_annual_lc"))
        self.gridLayout_4.addWidget(self.download_annual_lc, 1, 0, 1, 1)
        self.verticalLayout_3.addWidget(self.groupBox_2)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem2)
        self.TabBox.addTab(self.AdvancedTab, _fromUtf8(""))
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.button_prev = QtGui.QPushButton(DlgCalculateSOC)
        self.button_prev.setMinimumSize(QtCore.QSize(0, 30))
        self.button_prev.setObjectName(_fromUtf8("button_prev"))
        self.gridLayout_3.addWidget(self.button_prev, 0, 0, 1, 1)
        self.button_calculate = QtGui.QPushButton(DlgCalculateSOC)
        self.button_calculate.setMinimumSize(QtCore.QSize(0, 30))
        self.button_calculate.setObjectName(_fromUtf8("button_calculate"))
        self.gridLayout_3.addWidget(self.button_calculate, 1, 0, 1, 2)
        self.button_next = QtGui.QPushButton(DlgCalculateSOC)
        self.button_next.setMinimumSize(QtCore.QSize(0, 30))
        self.button_next.setObjectName(_fromUtf8("button_next"))
        self.gridLayout_3.addWidget(self.button_next, 0, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_3)

        self.retranslateUi(DlgCalculateSOC)
        self.TabBox.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(DlgCalculateSOC)
        DlgCalculateSOC.setTabOrder(self.TabBox, self.button_prev)
        DlgCalculateSOC.setTabOrder(self.button_prev, self.button_next)
        DlgCalculateSOC.setTabOrder(self.button_next, self.button_calculate)

    def retranslateUi(self, DlgCalculateSOC):
        DlgCalculateSOC.setWindowTitle(_translate("DlgCalculateSOC", "Calculate Soil Organic Carbon", None))
        self.radioButton.setText(_translate("DlgCalculateSOC", "Default aboveground biomass dataset (Woods Hole Research Center, 30 m resolution)", None))
        self.radioButton_2.setText(_translate("DlgCalculateSOC", "Custom aboveground biomass dataset", None))
        self.combo_layer_traj.setProperty("layer_type", _translate("DlgCalculateSOC", "Productivity trajectory (significance)", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.BiomassTab), _translate("DlgCalculateSOC", "Biomass data", None))
        self.radioButton_3.setText(_translate("DlgCalculateSOC", "Default (Hansen et al. 2013, 30 m resolution)", None))
        self.label.setText(_translate("DlgCalculateSOC", "Forest threshold:", None))
        self.spinBox.setSuffix(_translate("DlgCalculateSOC", "%", None))
        self.use_esa.setText(_translate("DlgCalculateSOC", "European Space Agency CCI-LC (default land cover dataset for UNCCD reporting)", None))
        self.groupBox_esa_period.setTitle(_translate("DlgCalculateSOC", "Period", None))
        self.label_3.setText(_translate("DlgCalculateSOC", "Target year:", None))
        self.label_10.setText(_translate("DlgCalculateSOC", "Initial year:", None))
        self.groupBox_esa_agg.setTitle(_translate("DlgCalculateSOC", "Customize land cover aggregation method", None))
        self.use_esa_agg_edit.setText(_translate("DlgCalculateSOC", "Edit definition", None))
        self.use_custom.setText(_translate("DlgCalculateSOC", "Custom land cover dataset", None))
        self.groupBox_custom_bl.setTitle(_translate("DlgCalculateSOC", "Initial layer (initial year)", None))
        self.use_custom_initial.setProperty("layer_type", _translate("DlgCalculateSOC", "Land cover (7 class)", None))
        self.groupBox_custom_tg.setTitle(_translate("DlgCalculateSOC", "Final layer (target year)", None))
        self.use_custom_final.setProperty("layer_type", _translate("DlgCalculateSOC", "Land cover (7 class)", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.ForestTab), _translate("DlgCalculateSOC", "Forest data", None))
        self.groupBox.setTitle(_translate("DlgCalculateSOC", "Climate regime", None))
        self.fl_radio_default.setText(_translate("DlgCalculateSOC", "Default (determined per-pixel using global climate data)", None))
        self.fl_radio_chooseRegime.setText(_translate("DlgCalculateSOC", "Specify regime", None))
        self.groupBox_2.setTitle(_translate("DlgCalculateSOC", "Additional files to download", None))
        self.download_annual_lc.setText(_translate("DlgCalculateSOC", "Download annual forest cover change layers (only first and last land cover layer are downloaded by default)", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.AdvancedTab), _translate("DlgCalculateSOC", "Advanced", None))
        self.button_prev.setText(_translate("DlgCalculateSOC", "Previous", None))
        self.button_calculate.setText(_translate("DlgCalculateSOC", "Calculate", None))
        self.button_next.setText(_translate("DlgCalculateSOC", "Next", None))

from LDMP.data_io import WidgetDataIOSelectTELayerExisting, WidgetDataIOSelectTELayerImport

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

