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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateOneStep.ui'
#
# Created: Sat Apr 07 22:23:35 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_DlgCalculateOneStep(object):
    def setupUi(self, DlgCalculateOneStep):
        DlgCalculateOneStep.setObjectName(_fromUtf8("DlgCalculateOneStep"))
        DlgCalculateOneStep.resize(1216, 575)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateOneStep.sizePolicy().hasHeightForWidth())
        DlgCalculateOneStep.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgCalculateOneStep)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgCalculateOneStep)
        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.SetupTab = QtGui.QWidget()
        self.SetupTab.setObjectName(_fromUtf8("SetupTab"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.SetupTab)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.groupBox_period = QtGui.QGroupBox(self.SetupTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_period.sizePolicy().hasHeightForWidth())
        self.groupBox_period.setSizePolicy(sizePolicy)
        self.groupBox_period.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.groupBox_period.setObjectName(_fromUtf8("groupBox_period"))
        self.gridLayout_8 = QtGui.QGridLayout(self.groupBox_period)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.label_10 = QtGui.QLabel(self.groupBox_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_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.year_final = QtGui.QDateEdit(self.groupBox_period)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.year_final.sizePolicy().hasHeightForWidth())
        self.year_final.setSizePolicy(sizePolicy)
        self.year_final.setMinimumSize(QtCore.QSize(0, 30))
        self.year_final.setMaximumSize(QtCore.QSize(120, 35))
        self.year_final.setDate(QtCore.QDate(2015, 1, 1))
        self.year_final.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(1992, 1, 1), QtCore.QTime(0, 0, 0)))
        self.year_final.setMaximumDate(QtCore.QDate(2030, 12, 31))
        self.year_final.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.year_final.setDisplayFormat(_fromUtf8("yyyy"))
        self.year_final.setObjectName(_fromUtf8("year_final"))
        self.gridLayout_8.addWidget(self.year_final, 1, 1, 1, 1)
        self.year_initial = QtGui.QDateEdit(self.groupBox_period)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.year_initial.sizePolicy().hasHeightForWidth())
        self.year_initial.setSizePolicy(sizePolicy)
        self.year_initial.setMinimumSize(QtCore.QSize(0, 30))
        self.year_initial.setMaximumSize(QtCore.QSize(120, 35))
        self.year_initial.setDate(QtCore.QDate(2001, 1, 1))
        self.year_initial.setMaximumDate(QtCore.QDate(2015, 12, 31))
        self.year_initial.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.year_initial.setDisplayFormat(_fromUtf8("yyyy"))
        self.year_initial.setObjectName(_fromUtf8("year_initial"))
        self.gridLayout_8.addWidget(self.year_initial, 1, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_period)
        self.groupBox = QtGui.QGroupBox(self.SetupTab)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.mode_lpd_jrc = QtGui.QRadioButton(self.groupBox)
        self.mode_lpd_jrc.setChecked(True)
        self.mode_lpd_jrc.setObjectName(_fromUtf8("mode_lpd_jrc"))
        self.gridLayout.addWidget(self.mode_lpd_jrc, 0, 0, 1, 2)
        self.mode_te_prod = QtGui.QRadioButton(self.groupBox)
        self.mode_te_prod.setObjectName(_fromUtf8("mode_te_prod"))
        self.gridLayout.addWidget(self.mode_te_prod, 1, 0, 1, 2)
        self.verticalLayout_2.addWidget(self.groupBox)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.MinimumExpanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.TabBox.addTab(self.SetupTab, _fromUtf8(""))
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.button_next = QtGui.QPushButton(DlgCalculateOneStep)
        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.button_calculate = QtGui.QPushButton(DlgCalculateOneStep)
        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_prev = QtGui.QPushButton(DlgCalculateOneStep)
        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.verticalLayout.addLayout(self.gridLayout_3)

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

    def retranslateUi(self, DlgCalculateOneStep):
        DlgCalculateOneStep.setWindowTitle(_translate("DlgCalculateOneStep", "Calculate SDG 15.3.1 Indicator (one-step)", None))
        self.groupBox_period.setTitle(_translate("DlgCalculateOneStep", "Period", None))
        self.label_10.setText(_translate("DlgCalculateOneStep", "Initial year:", None))
        self.label_3.setText(_translate("DlgCalculateOneStep", "Final year:", None))
        self.groupBox.setTitle(_translate("DlgCalculateOneStep", "Land productivity dataset", None))
        self.mode_lpd_jrc.setText(_translate("DlgCalculateOneStep", "UNCCD default data (Land Productivity Dynamics (LPD) Product 1999-2013 from Joint Research Commission)", None))
        self.mode_te_prod.setText(_translate("DlgCalculateOneStep", "Trends.Earth land productivity", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.SetupTab), _translate("DlgCalculateOneStep", "Setup", None))
        self.button_next.setText(_translate("DlgCalculateOneStep", "Next", None))
        self.button_calculate.setText(_translate("DlgCalculateOneStep", "Calculate", None))
        self.button_prev.setText(_translate("DlgCalculateOneStep", "Previous", None))


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

