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

# Form implementation generated from reading ui file 'LDMP/gui\DlgJobs.ui'
#
# Created by: PyQt4 UI code generator 4.11.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_DlgJobs(object):
    def setupUi(self, DlgJobs):
        DlgJobs.setObjectName(_fromUtf8("DlgJobs"))
        DlgJobs.setWindowModality(QtCore.Qt.ApplicationModal)
        DlgJobs.resize(1000, 400)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgJobs.sizePolicy().hasHeightForWidth())
        DlgJobs.setSizePolicy(sizePolicy)
        DlgJobs.setMinimumSize(QtCore.QSize(0, 0))
        self.gridLayout = QtGui.QGridLayout(DlgJobs)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.jobs_view = QtGui.QTableView(DlgJobs)
        self.jobs_view.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.jobs_view.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.jobs_view.setSortingEnabled(True)
        self.jobs_view.setObjectName(_fromUtf8("jobs_view"))
        self.jobs_view.horizontalHeader().setVisible(True)
        self.jobs_view.horizontalHeader().setCascadingSectionResizes(True)
        self.jobs_view.horizontalHeader().setStretchLastSection(True)
        self.jobs_view.verticalHeader().setVisible(False)
        self.jobs_view.verticalHeader().setSortIndicatorShown(True)
        self.gridLayout.addWidget(self.jobs_view, 1, 0, 1, 1)
        self.download = QtGui.QPushButton(DlgJobs)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.download.sizePolicy().hasHeightForWidth())
        self.download.setSizePolicy(sizePolicy)
        self.download.setMinimumSize(QtCore.QSize(0, 30))
        self.download.setObjectName(_fromUtf8("download"))
        self.gridLayout.addWidget(self.download, 3, 0, 1, 1)
        self.refresh = QtGui.QPushButton(DlgJobs)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.refresh.sizePolicy().hasHeightForWidth())
        self.refresh.setSizePolicy(sizePolicy)
        self.refresh.setMinimumSize(QtCore.QSize(0, 30))
        self.refresh.setObjectName(_fromUtf8("refresh"))
        self.gridLayout.addWidget(self.refresh, 2, 0, 1, 1)
        self.label = QtGui.QLabel(DlgJobs)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)

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

    def retranslateUi(self, DlgJobs):
        DlgJobs.setWindowTitle(_translate("DlgJobs", "Download results from Earth Engine", None))
        self.download.setText(_translate("DlgJobs", "Download results", None))
        self.refresh.setText(_translate("DlgJobs", "Refresh list", None))
        self.label.setText(_translate("DlgJobs", "Jobs expire 14 days after they are submitted. After a job has expired, it will no longer appear in this list.", None))


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

