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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateOneStep.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_DlgCalculateOneStep(object):
    def setupUi(self, DlgCalculateOneStep):
        DlgCalculateOneStep.setObjectName("DlgCalculateOneStep")
        DlgCalculateOneStep.resize(615, 383)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateOneStep.sizePolicy().hasHeightForWidth())
        DlgCalculateOneStep.setSizePolicy(sizePolicy)
        self.verticalLayout = QtWidgets.QVBoxLayout(DlgCalculateOneStep)
        self.verticalLayout.setObjectName("verticalLayout")
        self.TabBox = QtWidgets.QTabWidget(DlgCalculateOneStep)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.MinimumExpanding)
        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.SetupTab = QtWidgets.QWidget()
        self.SetupTab.setObjectName("SetupTab")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.SetupTab)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox_period = QtWidgets.QGroupBox(self.SetupTab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("groupBox_period")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_period)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.label_10 = QtWidgets.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("label_10")
        self.gridLayout_8.addWidget(self.label_10, 0, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_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.year_final = QtWidgets.QDateEdit(self.groupBox_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        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.setDisplayFormat("yyyy")
        self.year_final.setDate(QtCore.QDate(2015, 1, 1))
        self.year_final.setObjectName("year_final")
        self.gridLayout_8.addWidget(self.year_final, 1, 1, 1, 1)
        self.year_initial = QtWidgets.QDateEdit(self.groupBox_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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.setDisplayFormat("yyyy")
        self.year_initial.setDate(QtCore.QDate(2001, 1, 1))
        self.year_initial.setObjectName("year_initial")
        self.gridLayout_8.addWidget(self.year_initial, 1, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_period)
        self.groupBox = QtWidgets.QGroupBox(self.SetupTab)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.mode_lpd_jrc = QtWidgets.QRadioButton(self.groupBox)
        self.mode_lpd_jrc.setChecked(False)
        self.mode_lpd_jrc.setObjectName("mode_lpd_jrc")
        self.gridLayout.addWidget(self.mode_lpd_jrc, 1, 0, 1, 2)
        self.mode_te_prod = QtWidgets.QRadioButton(self.groupBox)
        self.mode_te_prod.setChecked(True)
        self.mode_te_prod.setObjectName("mode_te_prod")
        self.gridLayout.addWidget(self.mode_te_prod, 0, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.MinimumExpanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.TabBox.addTab(self.SetupTab, "")
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.button_next = QtWidgets.QPushButton(DlgCalculateOneStep)
        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, 40))
        self.button_next.setObjectName("button_next")
        self.gridLayout_3.addWidget(self.button_next, 0, 1, 1, 1)
        self.button_calculate = QtWidgets.QPushButton(DlgCalculateOneStep)
        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, 40))
        self.button_calculate.setObjectName("button_calculate")
        self.gridLayout_3.addWidget(self.button_calculate, 1, 0, 1, 2)
        self.button_prev = QtWidgets.QPushButton(DlgCalculateOneStep)
        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, 40))
        self.button_prev.setObjectName("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):
        _translate = QtCore.QCoreApplication.translate
        DlgCalculateOneStep.setWindowTitle(_translate("DlgCalculateOneStep", "Calculate SDG 15.3.1 Indicator (one-step)"))
        self.groupBox_period.setTitle(_translate("DlgCalculateOneStep", "Period"))
        self.label_10.setText(_translate("DlgCalculateOneStep", "Initial year:"))
        self.label_3.setText(_translate("DlgCalculateOneStep", "Final year:"))
        self.groupBox.setTitle(_translate("DlgCalculateOneStep", "Land productivity dataset"))
        self.mode_lpd_jrc.setText(_translate("DlgCalculateOneStep", "UNCCD default data (Land Productivity Dynamics (LPD) Product 1999-2013 from Joint Research Commission)"))
        self.mode_te_prod.setText(_translate("DlgCalculateOneStep", "Trends.Earth land productivity"))
        self.TabBox.setTabText(self.TabBox.indexOf(self.SetupTab), _translate("DlgCalculateOneStep", "Setup"))
        self.button_next.setText(_translate("DlgCalculateOneStep", "Next"))
        self.button_calculate.setText(_translate("DlgCalculateOneStep", "Calculate"))
        self.button_prev.setText(_translate("DlgCalculateOneStep", "Previous"))


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