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

# Form implementation generated from reading ui file 'LDMP/gui\DlgDownload.ui'
#
# Created: Sat Apr 07 22:23:39 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_DlgDownload(object):
    def setupUi(self, DlgDownload):
        DlgDownload.setObjectName(_fromUtf8("DlgDownload"))
        DlgDownload.setWindowModality(QtCore.Qt.ApplicationModal)
        DlgDownload.resize(900, 487)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgDownload.sizePolicy().hasHeightForWidth())
        DlgDownload.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgDownload)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgDownload)
        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.SelectData = QtGui.QWidget()
        self.SelectData.setObjectName(_fromUtf8("SelectData"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.SelectData)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.data_view = QtGui.QTableView(self.SelectData)
        self.data_view.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.data_view.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.data_view.setSortingEnabled(True)
        self.data_view.setObjectName(_fromUtf8("data_view"))
        self.data_view.horizontalHeader().setVisible(True)
        self.data_view.horizontalHeader().setCascadingSectionResizes(True)
        self.data_view.horizontalHeader().setStretchLastSection(True)
        self.data_view.verticalHeader().setVisible(False)
        self.data_view.verticalHeader().setSortIndicatorShown(True)
        self.verticalLayout_2.addWidget(self.data_view)
        self.TabBox.addTab(self.SelectData, _fromUtf8(""))
        self.SelectTime = QtGui.QWidget()
        self.SelectTime.setObjectName(_fromUtf8("SelectTime"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.SelectTime)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.groupBox_esa_period = QtGui.QGroupBox(self.SelectTime)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.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(_fromUtf8("groupBox_esa_period"))
        self.gridLayout_8 = QtGui.QGridLayout(self.groupBox_esa_period)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.last_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.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.setDate(QtCore.QDate(2015, 1, 1))
        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(_fromUtf8("yyyy"))
        self.last_year.setObjectName(_fromUtf8("last_year"))
        self.gridLayout_8.addWidget(self.last_year, 1, 1, 1, 1)
        self.first_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.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.setDate(QtCore.QDate(2001, 1, 1))
        self.first_year.setMaximumDate(QtCore.QDate(2015, 12, 31))
        self.first_year.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.first_year.setDisplayFormat(_fromUtf8("yyyy"))
        self.first_year.setObjectName(_fromUtf8("first_year"))
        self.gridLayout_8.addWidget(self.first_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_3.addWidget(self.groupBox_esa_period)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.TabBox.addTab(self.SelectTime, _fromUtf8(""))
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.button_next = QtGui.QPushButton(DlgDownload)
        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(DlgDownload)
        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(DlgDownload)
        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(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):
        DlgDownload.setWindowTitle(_translate("DlgDownload", "Download raw data", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.SelectData), _translate("DlgDownload", "Select Data", None))
        self.groupBox_esa_period.setTitle(_translate("DlgDownload", "Period", None))
        self.label_3.setText(_translate("DlgDownload", "Last year:", None))
        self.label_10.setText(_translate("DlgDownload", "First year:", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.SelectTime), _translate("DlgDownload", "Select Time Period", None))
        self.button_next.setText(_translate("DlgDownload", "Next", None))
        self.button_calculate.setText(_translate("DlgDownload", "Submit download request", None))
        self.button_prev.setText(_translate("DlgDownload", "Previous", None))


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

