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

# Form implementation generated from reading ui file 'LDMP/gui\WidgetLCSetup.ui'
#
# Created: Sat Apr 07 22:23:46 2018
#      by: PyQt4 UI code generator 4.10.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_WidgetLCSetup(object):
    def setupUi(self, WidgetLCSetup):
        WidgetLCSetup.setObjectName(_fromUtf8("WidgetLCSetup"))
        WidgetLCSetup.resize(868, 382)
        self.verticalLayout = QtGui.QVBoxLayout(WidgetLCSetup)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.use_esa = QtGui.QRadioButton(WidgetLCSetup)
        self.use_esa.setChecked(True)
        self.use_esa.setObjectName(_fromUtf8("use_esa"))
        self.verticalLayout.addWidget(self.use_esa)
        self.groupBox_esa_period = QtGui.QGroupBox(WidgetLCSetup)
        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.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.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.verticalLayout.addWidget(self.groupBox_esa_period)
        self.groupBox_esa_agg = QtGui.QGroupBox(WidgetLCSetup)
        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.addWidget(self.groupBox_esa_agg)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Maximum)
        self.verticalLayout.addItem(spacerItem)
        self.use_custom = QtGui.QRadioButton(WidgetLCSetup)
        self.use_custom.setObjectName(_fromUtf8("use_custom"))
        self.verticalLayout.addWidget(self.use_custom)
        self.groupBox_custom_bl = QtGui.QGroupBox(WidgetLCSetup)
        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.setObjectName(_fromUtf8("use_custom_initial"))
        self.gridLayout_4.addWidget(self.use_custom_initial, 0, 1, 1, 1)
        self.verticalLayout.addWidget(self.groupBox_custom_bl)
        self.groupBox_custom_tg = QtGui.QGroupBox(WidgetLCSetup)
        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.addWidget(self.groupBox_custom_tg)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)

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

    def retranslateUi(self, WidgetLCSetup):
        WidgetLCSetup.setWindowTitle(_translate("WidgetLCSetup", "Form", None))
        self.use_esa.setText(_translate("WidgetLCSetup", "European Space Agency CCI-LC (default land cover dataset for UNCCD reporting)", None))
        self.groupBox_esa_period.setTitle(_translate("WidgetLCSetup", "Period", None))
        self.label_3.setText(_translate("WidgetLCSetup", "Target year:", None))
        self.label_10.setText(_translate("WidgetLCSetup", "Initial year:", None))
        self.groupBox_esa_agg.setTitle(_translate("WidgetLCSetup", "Customize land cover aggregation method", None))
        self.use_esa_agg_edit.setText(_translate("WidgetLCSetup", "Edit definition", None))
        self.use_custom.setText(_translate("WidgetLCSetup", "Custom land cover dataset", None))
        self.groupBox_custom_bl.setTitle(_translate("WidgetLCSetup", "Initial layer (initial year)", None))
        self.use_custom_initial.setProperty("layer_type", _translate("WidgetLCSetup", "Land cover (7 class)", None))
        self.groupBox_custom_tg.setTitle(_translate("WidgetLCSetup", "Final layer (target year)", None))
        self.use_custom_final.setProperty("layer_type", _translate("WidgetLCSetup", "Land cover (7 class)", None))

from LDMP.data_io import WidgetDataIOSelectTELayerImport

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    WidgetLCSetup = QtGui.QWidget()
    ui = Ui_WidgetLCSetup()
    ui.setupUi(WidgetLCSetup)
    WidgetLCSetup.show()
    sys.exit(app.exec_())

