-
Notifications
You must be signed in to change notification settings - Fork 3
/
ui_oursins.py
308 lines (300 loc) · 17 KB
/
ui_oursins.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_oursins.ui'
#
# Created: Sun Feb 26 12:18:31 2017
# by: PyQt4 UI code generator 4.10.2
#
# 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_Oursins(object):
def setupUi(self, Oursins):
Oursins.setObjectName(_fromUtf8("Oursins"))
Oursins.resize(521, 539)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Oursins.sizePolicy().hasHeightForWidth())
Oursins.setSizePolicy(sizePolicy)
Oursins.setMinimumSize(QtCore.QSize(521, 539))
Oursins.setMaximumSize(QtCore.QSize(521, 600))
self.verticalLayout = QtGui.QVBoxLayout(Oursins)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.frame = QtGui.QFrame(Oursins)
self.frame.setFrameShape(QtGui.QFrame.Box)
self.frame.setFrameShadow(QtGui.QFrame.Sunken)
self.frame.setObjectName(_fromUtf8("frame"))
self.verticalLayout_13 = QtGui.QVBoxLayout(self.frame)
self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13"))
self.horizontalLayout_13 = QtGui.QHBoxLayout()
self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13"))
self.verticalLayout_8 = QtGui.QVBoxLayout()
self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
self.label_10 = QtGui.QLabel(self.frame)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_10.setFont(font)
self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_10.setObjectName(_fromUtf8("label_10"))
self.verticalLayout_8.addWidget(self.label_10)
self.label_11 = QtGui.QLabel(self.frame)
self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_11.setObjectName(_fromUtf8("label_11"))
self.verticalLayout_8.addWidget(self.label_11)
self.label_12 = QtGui.QLabel(self.frame)
self.label_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_12.setObjectName(_fromUtf8("label_12"))
self.verticalLayout_8.addWidget(self.label_12)
self.label_13 = QtGui.QLabel(self.frame)
self.label_13.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_13.setObjectName(_fromUtf8("label_13"))
self.verticalLayout_8.addWidget(self.label_13)
self.horizontalLayout_13.addLayout(self.verticalLayout_8)
self.verticalLayout_9 = QtGui.QVBoxLayout()
self.verticalLayout_9.setObjectName(_fromUtf8("verticalLayout_9"))
self.inputFlowTable = QtGui.QComboBox(self.frame)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.inputFlowTable.sizePolicy().hasHeightForWidth())
self.inputFlowTable.setSizePolicy(sizePolicy)
self.inputFlowTable.setObjectName(_fromUtf8("inputFlowTable"))
self.verticalLayout_9.addWidget(self.inputFlowTable)
self.originVar = QtGui.QComboBox(self.frame)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.originVar.sizePolicy().hasHeightForWidth())
self.originVar.setSizePolicy(sizePolicy)
self.originVar.setObjectName(_fromUtf8("originVar"))
self.verticalLayout_9.addWidget(self.originVar)
self.destinationVar = QtGui.QComboBox(self.frame)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.destinationVar.sizePolicy().hasHeightForWidth())
self.destinationVar.setSizePolicy(sizePolicy)
self.destinationVar.setObjectName(_fromUtf8("destinationVar"))
self.verticalLayout_9.addWidget(self.destinationVar)
self.flowValue = QtGui.QComboBox(self.frame)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.flowValue.sizePolicy().hasHeightForWidth())
self.flowValue.setSizePolicy(sizePolicy)
self.flowValue.setObjectName(_fromUtf8("flowValue"))
self.verticalLayout_9.addWidget(self.flowValue)
self.horizontalLayout_13.addLayout(self.verticalLayout_9)
self.verticalLayout_13.addLayout(self.horizontalLayout_13)
self.verticalLayout.addWidget(self.frame)
self.frame_2 = QtGui.QFrame(Oursins)
self.frame_2.setFrameShape(QtGui.QFrame.Box)
self.frame_2.setFrameShadow(QtGui.QFrame.Sunken)
self.frame_2.setObjectName(_fromUtf8("frame_2"))
self.verticalLayout_14 = QtGui.QVBoxLayout(self.frame_2)
self.verticalLayout_14.setObjectName(_fromUtf8("verticalLayout_14"))
self.verticalLayout_12 = QtGui.QVBoxLayout()
self.verticalLayout_12.setObjectName(_fromUtf8("verticalLayout_12"))
self.label_7 = QtGui.QLabel(self.frame_2)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_7.setFont(font)
self.label_7.setObjectName(_fromUtf8("label_7"))
self.verticalLayout_12.addWidget(self.label_7)
self.horizontalLayout_6 = QtGui.QHBoxLayout()
self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem)
self.verticalLayout_5 = QtGui.QVBoxLayout()
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.label = QtGui.QLabel(self.frame_2)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout_5.addWidget(self.label)
self.label_2 = QtGui.QLabel(self.frame_2)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.verticalLayout_5.addWidget(self.label_2)
self.horizontalLayout_6.addLayout(self.verticalLayout_5)
self.verticalLayout_11 = QtGui.QVBoxLayout()
self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
self.inputLayers = QtGui.QComboBox(self.frame_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.inputLayers.sizePolicy().hasHeightForWidth())
self.inputLayers.setSizePolicy(sizePolicy)
self.inputLayers.setObjectName(_fromUtf8("inputLayers"))
self.verticalLayout_11.addWidget(self.inputLayers)
self.geographicVar = QtGui.QComboBox(self.frame_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.geographicVar.sizePolicy().hasHeightForWidth())
self.geographicVar.setSizePolicy(sizePolicy)
self.geographicVar.setObjectName(_fromUtf8("geographicVar"))
self.verticalLayout_11.addWidget(self.geographicVar)
self.horizontalLayout_6.addLayout(self.verticalLayout_11)
self.verticalLayout_12.addLayout(self.horizontalLayout_6)
self.verticalLayout_14.addLayout(self.verticalLayout_12)
self.verticalLayout.addWidget(self.frame_2)
self.frame_5 = QtGui.QFrame(Oursins)
self.frame_5.setFrameShape(QtGui.QFrame.Box)
self.frame_5.setFrameShadow(QtGui.QFrame.Sunken)
self.frame_5.setObjectName(_fromUtf8("frame_5"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.frame_5)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.verticalLayout_7 = QtGui.QVBoxLayout()
self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
self.curved = QtGui.QCheckBox(self.frame_5)
self.curved.setEnabled(True)
self.curved.setLayoutDirection(QtCore.Qt.RightToLeft)
self.curved.setChecked(False)
self.curved.setObjectName(_fromUtf8("curved"))
self.verticalLayout_7.addWidget(self.curved)
self.label_3 = QtGui.QLabel(self.frame_5)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_3.setFont(font)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.verticalLayout_7.addWidget(self.label_3)
self.horizontalLayout_12 = QtGui.QHBoxLayout()
self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12"))
spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_12.addItem(spacerItem1)
self.label_17 = QtGui.QLabel(self.frame_5)
self.label_17.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_17.sizePolicy().hasHeightForWidth())
self.label_17.setSizePolicy(sizePolicy)
self.label_17.setObjectName(_fromUtf8("label_17"))
self.horizontalLayout_12.addWidget(self.label_17)
self.minValue = QtGui.QDoubleSpinBox(self.frame_5)
self.minValue.setEnabled(True)
self.minValue.setDecimals(3)
self.minValue.setMaximum(999999999.0)
self.minValue.setObjectName(_fromUtf8("minValue"))
self.horizontalLayout_12.addWidget(self.minValue)
self.label_18 = QtGui.QLabel(self.frame_5)
self.label_18.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_18.sizePolicy().hasHeightForWidth())
self.label_18.setSizePolicy(sizePolicy)
self.label_18.setObjectName(_fromUtf8("label_18"))
self.horizontalLayout_12.addWidget(self.label_18)
self.maxDist = QtGui.QSpinBox(self.frame_5)
self.maxDist.setEnabled(True)
self.maxDist.setMaximum(999999999)
self.maxDist.setObjectName(_fromUtf8("maxDist"))
self.horizontalLayout_12.addWidget(self.maxDist)
self.verticalLayout_7.addLayout(self.horizontalLayout_12)
self.verticalLayout_2.addLayout(self.verticalLayout_7)
self.verticalLayout.addWidget(self.frame_5)
self.frame_3 = QtGui.QFrame(Oursins)
self.frame_3.setFrameShape(QtGui.QFrame.Box)
self.frame_3.setFrameShadow(QtGui.QFrame.Sunken)
self.frame_3.setObjectName(_fromUtf8("frame_3"))
self.verticalLayout_6 = QtGui.QVBoxLayout(self.frame_3)
self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
self.verticalLayout_3 = QtGui.QVBoxLayout()
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.label_15 = QtGui.QLabel(self.frame_3)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_15.setFont(font)
self.label_15.setObjectName(_fromUtf8("label_15"))
self.verticalLayout_3.addWidget(self.label_15)
self.horizontalLayout_9 = QtGui.QHBoxLayout()
self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
self.memoryLayerOutput = QtGui.QRadioButton(self.frame_3)
self.memoryLayerOutput.setChecked(True)
self.memoryLayerOutput.setObjectName(_fromUtf8("memoryLayerOutput"))
self.horizontalLayout_9.addWidget(self.memoryLayerOutput)
self.shapefileOutput = QtGui.QRadioButton(self.frame_3)
self.shapefileOutput.setChecked(False)
self.shapefileOutput.setObjectName(_fromUtf8("shapefileOutput"))
self.horizontalLayout_9.addWidget(self.shapefileOutput)
spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_9.addItem(spacerItem2)
self.verticalLayout_3.addLayout(self.horizontalLayout_9)
self.horizontalLayout_10 = QtGui.QHBoxLayout()
self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10"))
self.verticalLayout_10 = QtGui.QVBoxLayout()
self.verticalLayout_10.setObjectName(_fromUtf8("verticalLayout_10"))
self.label_4 = QtGui.QLabel(self.frame_3)
self.label_4.setEnabled(False)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.verticalLayout_10.addWidget(self.label_4)
self.horizontalLayout_10.addLayout(self.verticalLayout_10)
self.horizontalLayout_11 = QtGui.QHBoxLayout()
self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11"))
self.verticalLayout_4 = QtGui.QVBoxLayout()
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.horizontalLayout_3 = QtGui.QHBoxLayout()
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.outputFilename = QtGui.QLineEdit(self.frame_3)
self.outputFilename.setEnabled(False)
self.outputFilename.setReadOnly(True)
self.outputFilename.setObjectName(_fromUtf8("outputFilename"))
self.horizontalLayout_3.addWidget(self.outputFilename)
self.selectFilename = QtGui.QToolButton(self.frame_3)
self.selectFilename.setEnabled(False)
self.selectFilename.setObjectName(_fromUtf8("selectFilename"))
self.horizontalLayout_3.addWidget(self.selectFilename)
self.verticalLayout_4.addLayout(self.horizontalLayout_3)
self.horizontalLayout_11.addLayout(self.verticalLayout_4)
self.horizontalLayout_10.addLayout(self.horizontalLayout_11)
self.verticalLayout_3.addLayout(self.horizontalLayout_10)
self.addToCanevas = QtGui.QCheckBox(self.frame_3)
self.addToCanevas.setEnabled(False)
self.addToCanevas.setLayoutDirection(QtCore.Qt.RightToLeft)
self.addToCanevas.setChecked(True)
self.addToCanevas.setObjectName(_fromUtf8("addToCanevas"))
self.verticalLayout_3.addWidget(self.addToCanevas)
self.verticalLayout_6.addLayout(self.verticalLayout_3)
self.verticalLayout.addWidget(self.frame_3)
self.buttonBox = QtGui.QDialogButtonBox(Oursins)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.verticalLayout.addWidget(self.buttonBox)
self.retranslateUi(Oursins)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Oursins.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Oursins.reject)
QtCore.QMetaObject.connectSlotsByName(Oursins)
def retranslateUi(self, Oursins):
Oursins.setWindowTitle(_translate("Oursins", "Flow map (Oursins)", None))
self.label_10.setText(_translate("Oursins", "Flow table", None))
self.label_11.setText(_translate("Oursins", "Origin", None))
self.label_12.setText(_translate("Oursins", "Destination", None))
self.label_13.setText(_translate("Oursins", "Value", None))
self.label_7.setText(_translate("Oursins", "Extract coordinates from a layer", None))
self.label.setText(_translate("Oursins", "layer", None))
self.label_2.setText(_translate("Oursins", "Geographic ID", None))
self.curved.setText(_translate("Oursins", "draw curved lines", None))
self.label_3.setText(_translate("Oursins", "Filters", None))
self.label_17.setText(_translate("Oursins", "Min value", None))
self.label_18.setText(_translate("Oursins", "Max distance (km)", None))
self.label_15.setText(_translate("Oursins", "Output :", None))
self.memoryLayerOutput.setText(_translate("Oursins", "Memory", None))
self.shapefileOutput.setText(_translate("Oursins", "Shapefile", None))
self.label_4.setText(_translate("Oursins", "File name", None))
self.selectFilename.setText(_translate("Oursins", "...", None))
self.addToCanevas.setText(_translate("Oursins", "add to the canvas", None))