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

# Form implementation generated from reading ui file 'LDMP/gui\DlgDownload.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_DlgDownload(object):
    def setupUi(self, DlgDownload):
        DlgDownload.setObjectName("DlgDownload")
        DlgDownload.setWindowModality(QtCore.Qt.ApplicationModal)
        DlgDownload.resize(642, 337)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgDownload.sizePolicy().hasHeightForWidth())
        DlgDownload.setSizePolicy(sizePolicy)
        self.verticalLayout = QtWidgets.QVBoxLayout(DlgDownload)
        self.verticalLayout.setObjectName("verticalLayout")
        self.TabBox = QtWidgets.QTabWidget(DlgDownload)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        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.SelectData = QtWidgets.QWidget()
        self.SelectData.setObjectName("SelectData")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.SelectData)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.data_view = QtWidgets.QTableView(self.SelectData)
        self.data_view.setMinimumSize(QtCore.QSize(600, 200))
        self.data_view.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.data_view.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.data_view.setSortingEnabled(True)
        self.data_view.setObjectName("data_view")
        self.data_view.horizontalHeader().setVisible(True)
        self.data_view.horizontalHeader().setCascadingSectionResizes(True)
        self.data_view.horizontalHeader().setStretchLastSection(False)
        self.data_view.verticalHeader().setVisible(False)
        self.data_view.verticalHeader().setSortIndicatorShown(True)
        self.verticalLayout_2.addWidget(self.data_view)
        self.TabBox.addTab(self.SelectData, "")
        self.SelectTime = QtWidgets.QWidget()
        self.SelectTime.setObjectName("SelectTime")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.SelectTime)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.groupBox_esa_period = QtWidgets.QGroupBox(self.SelectTime)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_esa_period.sizePolicy().hasHeightForWidth())
        self.groupBox_esa_period.setSizePolicy(sizePolicy)
        self.groupBox_esa_period.setObjectName("groupBox_esa_period")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_esa_period)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.last_year = QtWidgets.QDateEdit(self.groupBox_esa_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.last_year.sizePolicy().hasHeightForWidth())
        self.last_year.setSizePolicy(sizePolicy)
        self.last_year.setMinimumSize(QtCore.QSize(0, 30))
        self.last_year.setMaximumSize(QtCore.QSize(120, 35))
        self.last_year.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(1992, 1, 1), QtCore.QTime(0, 0, 0)))
        self.last_year.setMaximumDate(QtCore.QDate(2030, 12, 31))
        self.last_year.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.last_year.setDisplayFormat("yyyy")
        self.last_year.setDate(QtCore.QDate(2015, 1, 1))
        self.last_year.setObjectName("last_year")
        self.gridLayout_8.addWidget(self.last_year, 1, 1, 1, 1)
        self.first_year = QtWidgets.QDateEdit(self.groupBox_esa_period)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.first_year.sizePolicy().hasHeightForWidth())
        self.first_year.setSizePolicy(sizePolicy)
        self.first_year.setMinimumSize(QtCore.QSize(0, 30))
        self.first_year.setMaximumSize(QtCore.QSize(120, 35))
        self.first_year.setMaximumDate(QtCore.QDate(2015, 12, 31))
        self.first_year.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.first_year.setDisplayFormat("yyyy")
        self.first_year.setDate(QtCore.QDate(2001, 1, 1))
        self.first_year.setObjectName("first_year")
        self.gridLayout_8.addWidget(self.first_year, 1, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_esa_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.label_10 = QtWidgets.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("label_10")
        self.gridLayout_8.addWidget(self.label_10, 0, 0, 1, 1)
        self.verticalLayout_3.addWidget(self.groupBox_esa_period)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.TabBox.addTab(self.SelectTime, "")
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.button_next = QtWidgets.QPushButton(DlgDownload)
        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, 30))
        self.button_next.setObjectName("button_next")
        self.gridLayout_3.addWidget(self.button_next, 0, 1, 1, 1)
        self.button_calculate = QtWidgets.QPushButton(DlgDownload)
        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, 30))
        self.button_calculate.setObjectName("button_calculate")
        self.gridLayout_3.addWidget(self.button_calculate, 1, 0, 1, 2)
        self.button_prev = QtWidgets.QPushButton(DlgDownload)
        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, 30))
        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(DlgDownload)
        self.TabBox.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(DlgDownload)
        DlgDownload.setTabOrder(self.TabBox, self.button_prev)
        DlgDownload.setTabOrder(self.button_prev, self.button_next)
        DlgDownload.setTabOrder(self.button_next, self.button_calculate)

    def retranslateUi(self, DlgDownload):
        _translate = QtCore.QCoreApplication.translate
        DlgDownload.setWindowTitle(_translate("DlgDownload", "Download raw data"))
        self.TabBox.setTabText(self.TabBox.indexOf(self.SelectData), _translate("DlgDownload", "Select Data"))
        self.groupBox_esa_period.setTitle(_translate("DlgDownload", "Period"))
        self.label_3.setText(_translate("DlgDownload", "Last year:"))
        self.label_10.setText(_translate("DlgDownload", "First year:"))
        self.TabBox.setTabText(self.TabBox.indexOf(self.SelectTime), _translate("DlgDownload", "Select Time Period"))
        self.button_next.setText(_translate("DlgDownload", "Next"))
        self.button_calculate.setText(_translate("DlgDownload", "Submit download request"))
        self.button_prev.setText(_translate("DlgDownload", "Previous"))


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