-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui_seaicedata.py
153 lines (145 loc) · 8.42 KB
/
ui_seaicedata.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_seaicedata.ui'
#
# Created: Thu Nov 20 13:06:16 2014
# 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_SeaIceData(object):
def setupUi(self, SeaIceData):
SeaIceData.setObjectName(_fromUtf8("SeaIceData"))
SeaIceData.resize(425, 424)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(SeaIceData.sizePolicy().hasHeightForWidth())
SeaIceData.setSizePolicy(sizePolicy)
SeaIceData.setWindowTitle(_fromUtf8(""))
SeaIceData.setSizeGripEnabled(False)
self.layoutWidget = QtGui.QWidget(SeaIceData)
self.layoutWidget.setGeometry(QtCore.QRect(10, 10, 406, 403))
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.gridLayout_2 = QtGui.QGridLayout(self.layoutWidget)
self.gridLayout_2.setMargin(0)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.label_3 = QtGui.QLabel(self.layoutWidget)
font = QtGui.QFont()
font.setPointSize(16)
font.setBold(True)
font.setWeight(75)
self.label_3.setFont(font)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.gridLayout_2.addWidget(self.label_3, 0, 0, 1, 1)
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.label_2 = QtGui.QLabel(self.layoutWidget)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.horizontalLayout.addWidget(self.label_2)
self.startDate = QtGui.QDateEdit(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.startDate.sizePolicy().hasHeightForWidth())
self.startDate.setSizePolicy(sizePolicy)
self.startDate.setDateTime(QtCore.QDateTime(QtCore.QDate(1978, 10, 26), QtCore.QTime(0, 0, 0)))
self.startDate.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(1978, 10, 26), QtCore.QTime(0, 0, 0)))
self.startDate.setMaximumDate(QtCore.QDate(2013, 12, 31))
self.startDate.setMinimumDate(QtCore.QDate(1978, 10, 26))
self.startDate.setCurrentSection(QtGui.QDateTimeEdit.YearSection)
self.startDate.setCalendarPopup(True)
self.startDate.setDate(QtCore.QDate(1978, 10, 26))
self.startDate.setObjectName(_fromUtf8("startDate"))
self.horizontalLayout.addWidget(self.startDate)
self.endDate = QtGui.QDateEdit(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.endDate.sizePolicy().hasHeightForWidth())
self.endDate.setSizePolicy(sizePolicy)
self.endDate.setCalendarPopup(True)
self.endDate.setDate(QtCore.QDate(2013, 12, 31))
self.endDate.setObjectName(_fromUtf8("endDate"))
self.horizontalLayout.addWidget(self.endDate)
self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 1)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.label = QtGui.QLabel(self.layoutWidget)
self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout_2.addWidget(self.label)
self.txtPath = QtGui.QLineEdit(self.layoutWidget)
self.txtPath.setEnabled(True)
self.txtPath.setText(_fromUtf8(""))
self.txtPath.setReadOnly(True)
self.txtPath.setObjectName(_fromUtf8("txtPath"))
self.horizontalLayout_2.addWidget(self.txtPath)
self.toolButton = QtGui.QToolButton(self.layoutWidget)
self.toolButton.setObjectName(_fromUtf8("toolButton"))
self.horizontalLayout_2.addWidget(self.toolButton)
self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 1)
self.checkBoxComposite = QtGui.QCheckBox(self.layoutWidget)
self.checkBoxComposite.setObjectName(_fromUtf8("checkBoxComposite"))
self.gridLayout.addWidget(self.checkBoxComposite, 3, 0, 1, 1)
self.checkBoxCanvas = QtGui.QCheckBox(self.layoutWidget)
self.checkBoxCanvas.setObjectName(_fromUtf8("checkBoxCanvas"))
self.gridLayout.addWidget(self.checkBoxCanvas, 4, 0, 1, 1)
self.datasetBox = QtGui.QComboBox(self.layoutWidget)
self.datasetBox.setObjectName(_fromUtf8("datasetBox"))
self.datasetBox.addItem(_fromUtf8(""))
self.datasetBox.addItem(_fromUtf8(""))
self.gridLayout.addWidget(self.datasetBox, 0, 0, 1, 1)
self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 1, 1)
self.plainTextEdit = QtGui.QPlainTextEdit(self.layoutWidget)
self.plainTextEdit.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(2)
sizePolicy.setVerticalStretch(2)
sizePolicy.setHeightForWidth(self.plainTextEdit.sizePolicy().hasHeightForWidth())
self.plainTextEdit.setSizePolicy(sizePolicy)
self.plainTextEdit.setMinimumSize(QtCore.QSize(0, 180))
self.plainTextEdit.setBaseSize(QtCore.QSize(0, 0))
self.plainTextEdit.setAutoFillBackground(False)
self.plainTextEdit.setFrameShape(QtGui.QFrame.Box)
self.plainTextEdit.setFrameShadow(QtGui.QFrame.Plain)
self.plainTextEdit.setUndoRedoEnabled(False)
self.plainTextEdit.setReadOnly(True)
self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit"))
self.gridLayout_2.addWidget(self.plainTextEdit, 2, 0, 1, 1)
self.btnDownload = QtGui.QPushButton(self.layoutWidget)
self.btnDownload.setEnabled(True)
self.btnDownload.setObjectName(_fromUtf8("btnDownload"))
self.gridLayout_2.addWidget(self.btnDownload, 3, 0, 1, 1)
self.retranslateUi(SeaIceData)
QtCore.QObject.connect(self.btnDownload, QtCore.SIGNAL(_fromUtf8("clicked()")), SeaIceData.accept)
QtCore.QObject.connect(self.toolButton, QtCore.SIGNAL(_fromUtf8("clicked()")), SeaIceData.open)
QtCore.QObject.connect(self.checkBoxComposite, QtCore.SIGNAL(_fromUtf8("stateChanged(int)")), SeaIceData.update)
QtCore.QObject.connect(self.checkBoxCanvas, QtCore.SIGNAL(_fromUtf8("stateChanged(int)")), SeaIceData.show)
QtCore.QMetaObject.connectSlotsByName(SeaIceData)
def retranslateUi(self, SeaIceData):
self.label_3.setText(_translate("SeaIceData", "Sea Ice Concentration Downloader", None))
self.label_2.setText(_translate("SeaIceData", "Date range: ", None))
self.startDate.setDisplayFormat(_translate("SeaIceData", "yyyy/MM/dd", None))
self.endDate.setDisplayFormat(_translate("SeaIceData", "yyyy/MM/dd", None))
self.label.setText(_translate("SeaIceData", "Download to:", None))
self.toolButton.setText(_translate("SeaIceData", "...", None))
self.checkBoxComposite.setText(_translate("SeaIceData", "Create composite", None))
self.checkBoxCanvas.setText(_translate("SeaIceData", "Add data to canvas", None))
self.datasetBox.setItemText(0, _translate("SeaIceData", "Antarctic", None))
self.datasetBox.setItemText(1, _translate("SeaIceData", "Arctic", None))
self.plainTextEdit.setPlainText(_translate("SeaIceData", "This plugin provides access to sea ice concentration data from NSIDC (National Snow and Ice Data Centre), for both Arctic and Antarctic. For full details, refer to the official documentation at http://nsidc.org/data/nsidc-0051.\n"
"", None))
self.btnDownload.setText(_translate("SeaIceData", "Download", None))