-
Notifications
You must be signed in to change notification settings - Fork 5
/
ui_generalizer.py
477 lines (471 loc) · 29 KB
/
ui_generalizer.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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Documents and Settings\Pocisk\.qgis\python\plugins\generalizer\ui_generalizer.ui'
#
# Created: Tue Sep 13 17:03:23 2011
# by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_generalizer(object):
def setupUi(self, generalizer):
generalizer.setObjectName("generalizer")
generalizer.resize(493, 348)
self.gridLayout_20 = QtGui.QGridLayout(generalizer)
self.gridLayout_20.setObjectName("gridLayout_20")
self.cbBatch = QtGui.QCheckBox(generalizer)
self.cbBatch.setObjectName("cbBatch")
self.gridLayout_20.addWidget(self.cbBatch, 0, 0, 1, 1)
self.bHelp = QtGui.QPushButton(generalizer)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.bHelp.sizePolicy().hasHeightForWidth())
self.bHelp.setSizePolicy(sizePolicy)
self.bHelp.setFlat(True)
self.bHelp.setObjectName("bHelp")
self.gridLayout_20.addWidget(self.bHelp, 0, 2, 1, 1)
self.bOk = QtGui.QPushButton(generalizer)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.bOk.sizePolicy().hasHeightForWidth())
self.bOk.setSizePolicy(sizePolicy)
self.bOk.setObjectName("bOk")
self.gridLayout_20.addWidget(self.bOk, 2, 1, 1, 1)
self.bCancel = QtGui.QPushButton(generalizer)
self.bCancel.setObjectName("bCancel")
self.gridLayout_20.addWidget(self.bCancel, 2, 2, 1, 1)
self.stackBatch = QtGui.QStackedWidget(generalizer)
self.stackBatch.setObjectName("stackBatch")
self.page_6 = QtGui.QWidget()
self.page_6.setObjectName("page_6")
self.gridLayout_19 = QtGui.QGridLayout(self.page_6)
self.gridLayout_19.setObjectName("gridLayout_19")
self.label = QtGui.QLabel(self.page_6)
self.label.setObjectName("label")
self.gridLayout_19.addWidget(self.label, 0, 0, 1, 1)
self.cbInput = QtGui.QComboBox(self.page_6)
self.cbInput.setObjectName("cbInput")
self.gridLayout_19.addWidget(self.cbInput, 1, 0, 1, 2)
self.groupBox = QtGui.QGroupBox(self.page_6)
self.groupBox.setObjectName("groupBox")
self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
self.gridLayout_2.setObjectName("gridLayout_2")
self.label_3 = QtGui.QLabel(self.groupBox)
self.label_3.setObjectName("label_3")
self.gridLayout_2.addWidget(self.label_3, 0, 0, 1, 1)
self.cbAlgorithm = QtGui.QComboBox(self.groupBox)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cbAlgorithm.sizePolicy().hasHeightForWidth())
self.cbAlgorithm.setSizePolicy(sizePolicy)
self.cbAlgorithm.setObjectName("cbAlgorithm")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.cbAlgorithm.addItem("")
self.gridLayout_2.addWidget(self.cbAlgorithm, 0, 1, 1, 1)
self.stackOptions = QtGui.QStackedWidget(self.groupBox)
self.stackOptions.setObjectName("stackOptions")
self.page_11 = QtGui.QWidget()
self.page_11.setObjectName("page_11")
self.gridLayout_11 = QtGui.QGridLayout(self.page_11)
self.gridLayout_11.setObjectName("gridLayout_11")
self.label_12 = QtGui.QLabel(self.page_11)
self.label_12.setObjectName("label_12")
self.gridLayout_11.addWidget(self.label_12, 0, 0, 1, 1)
self.sbRemove_thresh = QtGui.QDoubleSpinBox(self.page_11)
self.sbRemove_thresh.setDecimals(4)
self.sbRemove_thresh.setMinimum(0.0001)
self.sbRemove_thresh.setMaximum(9999999.9999)
self.sbRemove_thresh.setProperty("value", 0.0001)
self.sbRemove_thresh.setObjectName("sbRemove_thresh")
self.gridLayout_11.addWidget(self.sbRemove_thresh, 0, 1, 1, 1)
self.stackOptions.addWidget(self.page_11)
self.page_12 = QtGui.QWidget()
self.page_12.setObjectName("page_12")
self.gridLayout_12 = QtGui.QGridLayout(self.page_12)
self.gridLayout_12.setObjectName("gridLayout_12")
self.label_18 = QtGui.QLabel(self.page_12)
self.label_18.setObjectName("label_18")
self.gridLayout_12.addWidget(self.label_18, 0, 0, 1, 1)
self.sbDP_thresh = QtGui.QDoubleSpinBox(self.page_12)
self.sbDP_thresh.setDecimals(4)
self.sbDP_thresh.setMinimum(0.0001)
self.sbDP_thresh.setMaximum(9999999.9999)
self.sbDP_thresh.setProperty("value", 0.0001)
self.sbDP_thresh.setObjectName("sbDP_thresh")
self.gridLayout_12.addWidget(self.sbDP_thresh, 0, 1, 1, 1)
self.stackOptions.addWidget(self.page_12)
self.page_2 = QtGui.QWidget()
self.page_2.setObjectName("page_2")
self.gridLayout_4 = QtGui.QGridLayout(self.page_2)
self.gridLayout_4.setObjectName("gridLayout_4")
self.label_7 = QtGui.QLabel(self.page_2)
self.label_7.setObjectName("label_7")
self.gridLayout_4.addWidget(self.label_7, 0, 0, 1, 1)
self.sbJenks_thresh = QtGui.QDoubleSpinBox(self.page_2)
self.sbJenks_thresh.setDecimals(4)
self.sbJenks_thresh.setMaximum(9999999.9999)
self.sbJenks_thresh.setProperty("value", 0.0001)
self.sbJenks_thresh.setObjectName("sbJenks_thresh")
self.gridLayout_4.addWidget(self.sbJenks_thresh, 0, 1, 1, 1)
self.label_8 = QtGui.QLabel(self.page_2)
self.label_8.setObjectName("label_8")
self.gridLayout_4.addWidget(self.label_8, 1, 0, 1, 1)
self.sbJenks_angle = QtGui.QDoubleSpinBox(self.page_2)
self.sbJenks_angle.setMaximum(180.0)
self.sbJenks_angle.setProperty("value", 3.0)
self.sbJenks_angle.setObjectName("sbJenks_angle")
self.gridLayout_4.addWidget(self.sbJenks_angle, 1, 1, 1, 1)
self.stackOptions.addWidget(self.page_2)
self.page_13 = QtGui.QWidget()
self.page_13.setObjectName("page_13")
self.gridLayout_3 = QtGui.QGridLayout(self.page_13)
self.gridLayout_3.setObjectName("gridLayout_3")
self.label_13 = QtGui.QLabel(self.page_13)
self.label_13.setObjectName("label_13")
self.gridLayout_3.addWidget(self.label_13, 0, 0, 1, 1)
self.sbLang_thresh = QtGui.QDoubleSpinBox(self.page_13)
self.sbLang_thresh.setDecimals(4)
self.sbLang_thresh.setMinimum(0.0001)
self.sbLang_thresh.setMaximum(9999999.9999)
self.sbLang_thresh.setProperty("value", 0.0001)
self.sbLang_thresh.setObjectName("sbLang_thresh")
self.gridLayout_3.addWidget(self.sbLang_thresh, 0, 1, 1, 1)
self.label_19 = QtGui.QLabel(self.page_13)
self.label_19.setObjectName("label_19")
self.gridLayout_3.addWidget(self.label_19, 1, 0, 1, 1)
self.sbLang_LA = QtGui.QSpinBox(self.page_13)
self.sbLang_LA.setMinimum(1)
self.sbLang_LA.setMaximum(9999)
self.sbLang_LA.setProperty("value", 8)
self.sbLang_LA.setObjectName("sbLang_LA")
self.gridLayout_3.addWidget(self.sbLang_LA, 1, 1, 1, 1)
self.stackOptions.addWidget(self.page_13)
self.page_4 = QtGui.QWidget()
self.page_4.setObjectName("page_4")
self.gridLayout_6 = QtGui.QGridLayout(self.page_4)
self.gridLayout_6.setObjectName("gridLayout_6")
self.label_11 = QtGui.QLabel(self.page_4)
self.label_11.setObjectName("label_11")
self.gridLayout_6.addWidget(self.label_11, 0, 0, 1, 1)
self.sbRW_thresh = QtGui.QDoubleSpinBox(self.page_4)
self.sbRW_thresh.setDecimals(4)
self.sbRW_thresh.setMaximum(9999999.9999)
self.sbRW_thresh.setProperty("value", 0.0001)
self.sbRW_thresh.setObjectName("sbRW_thresh")
self.gridLayout_6.addWidget(self.sbRW_thresh, 0, 1, 1, 1)
self.stackOptions.addWidget(self.page_4)
self.page_14 = QtGui.QWidget()
self.page_14.setObjectName("page_14")
self.gridLayout_14 = QtGui.QGridLayout(self.page_14)
self.gridLayout_14.setObjectName("gridLayout_14")
self.label_20 = QtGui.QLabel(self.page_14)
self.label_20.setObjectName("label_20")
self.gridLayout_14.addWidget(self.label_20, 0, 0, 1, 1)
self.sbReduction_thresh = QtGui.QDoubleSpinBox(self.page_14)
self.sbReduction_thresh.setDecimals(4)
self.sbReduction_thresh.setMinimum(0.0001)
self.sbReduction_thresh.setMaximum(9999999.9999)
self.sbReduction_thresh.setObjectName("sbReduction_thresh")
self.gridLayout_14.addWidget(self.sbReduction_thresh, 0, 1, 1, 1)
self.stackOptions.addWidget(self.page_14)
self.page_15 = QtGui.QWidget()
self.page_15.setObjectName("page_15")
self.gridLayout_15 = QtGui.QGridLayout(self.page_15)
self.gridLayout_15.setObjectName("gridLayout_15")
self.label_21 = QtGui.QLabel(self.page_15)
self.label_21.setObjectName("label_21")
self.gridLayout_15.addWidget(self.label_21, 0, 0, 1, 1)
self.sbBoyle_LA = QtGui.QSpinBox(self.page_15)
self.sbBoyle_LA.setMinimum(2)
self.sbBoyle_LA.setMaximum(999)
self.sbBoyle_LA.setProperty("value", 7)
self.sbBoyle_LA.setObjectName("sbBoyle_LA")
self.gridLayout_15.addWidget(self.sbBoyle_LA, 0, 1, 1, 1)
self.stackOptions.addWidget(self.page_15)
self.page_16 = QtGui.QWidget()
self.page_16.setObjectName("page_16")
self.gridLayout_16 = QtGui.QGridLayout(self.page_16)
self.gridLayout_16.setObjectName("gridLayout_16")
self.label_22 = QtGui.QLabel(self.page_16)
self.label_22.setObjectName("label_22")
self.gridLayout_16.addWidget(self.label_22, 0, 0, 1, 1)
self.sbChaiken_level = QtGui.QSpinBox(self.page_16)
self.sbChaiken_level.setMinimum(1)
self.sbChaiken_level.setMaximum(99)
self.sbChaiken_level.setObjectName("sbChaiken_level")
self.gridLayout_16.addWidget(self.sbChaiken_level, 0, 1, 1, 1)
self.label_23 = QtGui.QLabel(self.page_16)
self.label_23.setObjectName("label_23")
self.gridLayout_16.addWidget(self.label_23, 1, 0, 1, 1)
self.sbChaiken_weight = QtGui.QDoubleSpinBox(self.page_16)
self.sbChaiken_weight.setMinimum(1.0)
self.sbChaiken_weight.setProperty("value", 3.0)
self.sbChaiken_weight.setObjectName("sbChaiken_weight")
self.gridLayout_16.addWidget(self.sbChaiken_weight, 1, 1, 1, 1)
self.stackOptions.addWidget(self.page_16)
self.page = QtGui.QWidget()
self.page.setObjectName("page")
self.gridLayout = QtGui.QGridLayout(self.page)
self.gridLayout.setObjectName("gridLayout")
self.label_2 = QtGui.QLabel(self.page)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
self.label_4 = QtGui.QLabel(self.page)
self.label_4.setObjectName("label_4")
self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
self.sbHermite_tightness = QtGui.QDoubleSpinBox(self.page)
self.sbHermite_tightness.setProperty("value", 0.5)
self.sbHermite_tightness.setObjectName("sbHermite_tightness")
self.gridLayout.addWidget(self.sbHermite_tightness, 1, 1, 1, 1)
self.sbHermite_steps = QtGui.QDoubleSpinBox(self.page)
self.sbHermite_steps.setDecimals(4)
self.sbHermite_steps.setMaximum(9999999.9999)
self.sbHermite_steps.setProperty("value", 0.0001)
self.sbHermite_steps.setObjectName("sbHermite_steps")
self.gridLayout.addWidget(self.sbHermite_steps, 0, 1, 1, 1)
self.stackOptions.addWidget(self.page)
self.page_17 = QtGui.QWidget()
self.page_17.setObjectName("page_17")
self.gridLayout_17 = QtGui.QGridLayout(self.page_17)
self.gridLayout_17.setObjectName("gridLayout_17")
self.label_24 = QtGui.QLabel(self.page_17)
self.label_24.setObjectName("label_24")
self.gridLayout_17.addWidget(self.label_24, 0, 0, 1, 1)
self.sbDist_slide = QtGui.QDoubleSpinBox(self.page_17)
self.sbDist_slide.setSingleStep(0.1)
self.sbDist_slide.setProperty("value", 0.5)
self.sbDist_slide.setObjectName("sbDist_slide")
self.gridLayout_17.addWidget(self.sbDist_slide, 0, 1, 1, 1)
self.label_25 = QtGui.QLabel(self.page_17)
self.label_25.setObjectName("label_25")
self.gridLayout_17.addWidget(self.label_25, 1, 0, 1, 1)
self.sbDist_LA = QtGui.QSpinBox(self.page_17)
self.sbDist_LA.setMinimum(3)
self.sbDist_LA.setMaximum(999)
self.sbDist_LA.setSingleStep(2)
self.sbDist_LA.setProperty("value", 7)
self.sbDist_LA.setObjectName("sbDist_LA")
self.gridLayout_17.addWidget(self.sbDist_LA, 1, 1, 1, 1)
self.stackOptions.addWidget(self.page_17)
self.page_18 = QtGui.QWidget()
self.page_18.setObjectName("page_18")
self.gridLayout_18 = QtGui.QGridLayout(self.page_18)
self.gridLayout_18.setObjectName("gridLayout_18")
self.label_26 = QtGui.QLabel(self.page_18)
self.label_26.setObjectName("label_26")
self.gridLayout_18.addWidget(self.label_26, 0, 0, 1, 1)
self.sbSlide_slide = QtGui.QDoubleSpinBox(self.page_18)
self.sbSlide_slide.setSingleStep(0.1)
self.sbSlide_slide.setProperty("value", 0.5)
self.sbSlide_slide.setObjectName("sbSlide_slide")
self.gridLayout_18.addWidget(self.sbSlide_slide, 0, 1, 1, 1)
self.label_27 = QtGui.QLabel(self.page_18)
self.label_27.setObjectName("label_27")
self.gridLayout_18.addWidget(self.label_27, 1, 0, 1, 1)
self.sbSlide_LA = QtGui.QSpinBox(self.page_18)
self.sbSlide_LA.setMinimum(3)
self.sbSlide_LA.setMaximum(999)
self.sbSlide_LA.setSingleStep(2)
self.sbSlide_LA.setProperty("value", 7)
self.sbSlide_LA.setObjectName("sbSlide_LA")
self.gridLayout_18.addWidget(self.sbSlide_LA, 1, 1, 1, 1)
self.stackOptions.addWidget(self.page_18)
self.page_3 = QtGui.QWidget()
self.page_3.setObjectName("page_3")
self.gridLayout_5 = QtGui.QGridLayout(self.page_3)
self.gridLayout_5.setObjectName("gridLayout_5")
self.label_9 = QtGui.QLabel(self.page_3)
self.label_9.setObjectName("label_9")
self.gridLayout_5.addWidget(self.label_9, 0, 0, 1, 1)
self.sbSnakes_alpha = QtGui.QDoubleSpinBox(self.page_3)
self.sbSnakes_alpha.setMaximum(9999.99)
self.sbSnakes_alpha.setProperty("value", 1.0)
self.sbSnakes_alpha.setObjectName("sbSnakes_alpha")
self.gridLayout_5.addWidget(self.sbSnakes_alpha, 0, 1, 1, 1)
self.label_10 = QtGui.QLabel(self.page_3)
self.label_10.setObjectName("label_10")
self.gridLayout_5.addWidget(self.label_10, 1, 0, 1, 1)
self.sbSnakes_beta = QtGui.QDoubleSpinBox(self.page_3)
self.sbSnakes_beta.setMaximum(9999.99)
self.sbSnakes_beta.setProperty("value", 0.5)
self.sbSnakes_beta.setObjectName("sbSnakes_beta")
self.gridLayout_5.addWidget(self.sbSnakes_beta, 1, 1, 1, 1)
self.stackOptions.addWidget(self.page_3)
self.gridLayout_2.addWidget(self.stackOptions, 1, 0, 1, 2)
self.gridLayout_19.addWidget(self.groupBox, 2, 0, 1, 2)
self.eOutput = QtGui.QLineEdit(self.page_6)
self.eOutput.setEnabled(False)
self.eOutput.setObjectName("eOutput")
self.gridLayout_19.addWidget(self.eOutput, 4, 0, 1, 1)
self.bBrowse = QtGui.QPushButton(self.page_6)
self.bBrowse.setEnabled(False)
self.bBrowse.setObjectName("bBrowse")
self.gridLayout_19.addWidget(self.bBrowse, 4, 1, 1, 1)
self.cbOutFile = QtGui.QCheckBox(self.page_6)
self.cbOutFile.setObjectName("cbOutFile")
self.gridLayout_19.addWidget(self.cbOutFile, 3, 0, 1, 1)
self.stackBatch.addWidget(self.page_6)
self.page_10 = QtGui.QWidget()
self.page_10.setObjectName("page_10")
self.gridLayout_21 = QtGui.QGridLayout(self.page_10)
self.gridLayout_21.setObjectName("gridLayout_21")
self.lstLayers = QtGui.QListWidget(self.page_10)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lstLayers.sizePolicy().hasHeightForWidth())
self.lstLayers.setSizePolicy(sizePolicy)
self.lstLayers.setObjectName("lstLayers")
self.gridLayout_21.addWidget(self.lstLayers, 1, 0, 1, 1)
self.tblBatchAlg = QtGui.QTableWidget(self.page_10)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tblBatchAlg.sizePolicy().hasHeightForWidth())
self.tblBatchAlg.setSizePolicy(sizePolicy)
self.tblBatchAlg.setObjectName("tblBatchAlg")
self.tblBatchAlg.setColumnCount(3)
self.tblBatchAlg.setRowCount(0)
item = QtGui.QTableWidgetItem()
self.tblBatchAlg.setHorizontalHeaderItem(0, item)
item = QtGui.QTableWidgetItem()
self.tblBatchAlg.setHorizontalHeaderItem(1, item)
item = QtGui.QTableWidgetItem()
self.tblBatchAlg.setHorizontalHeaderItem(2, item)
self.gridLayout_21.addWidget(self.tblBatchAlg, 3, 0, 3, 1)
self.bAddAlg = QtGui.QPushButton(self.page_10)
self.bAddAlg.setObjectName("bAddAlg")
self.gridLayout_21.addWidget(self.bAddAlg, 3, 1, 1, 1)
self.bDelAlg = QtGui.QPushButton(self.page_10)
self.bDelAlg.setObjectName("bDelAlg")
self.gridLayout_21.addWidget(self.bDelAlg, 4, 1, 1, 1)
self.bEditAlg = QtGui.QPushButton(self.page_10)
self.bEditAlg.setObjectName("bEditAlg")
self.gridLayout_21.addWidget(self.bEditAlg, 5, 1, 1, 1)
self.eDir = QtGui.QLineEdit(self.page_10)
self.eDir.setEnabled(False)
self.eDir.setObjectName("eDir")
self.gridLayout_21.addWidget(self.eDir, 7, 0, 1, 1)
self.bBrowseDir = QtGui.QPushButton(self.page_10)
self.bBrowseDir.setEnabled(False)
self.bBrowseDir.setObjectName("bBrowseDir")
self.gridLayout_21.addWidget(self.bBrowseDir, 7, 1, 1, 1)
self.cbOutDir = QtGui.QCheckBox(self.page_10)
self.cbOutDir.setObjectName("cbOutDir")
self.gridLayout_21.addWidget(self.cbOutDir, 6, 0, 1, 1)
self.label_5 = QtGui.QLabel(self.page_10)
self.label_5.setObjectName("label_5")
self.gridLayout_21.addWidget(self.label_5, 2, 0, 1, 1)
self.label_6 = QtGui.QLabel(self.page_10)
self.label_6.setObjectName("label_6")
self.gridLayout_21.addWidget(self.label_6, 0, 0, 1, 1)
self.stackBatch.addWidget(self.page_10)
self.gridLayout_20.addWidget(self.stackBatch, 1, 0, 1, 3)
self.label.setBuddy(self.cbInput)
self.label_12.setBuddy(self.sbRemove_thresh)
self.retranslateUi(generalizer)
self.stackBatch.setCurrentIndex(0)
self.cbAlgorithm.setCurrentIndex(1)
self.stackOptions.setCurrentIndex(0)
self.bCancel.clicked.connect( generalizer.close )
QtCore.QMetaObject.connectSlotsByName(generalizer)
generalizer.setTabOrder(self.cbBatch, self.cbInput)
generalizer.setTabOrder(self.cbInput, self.cbAlgorithm)
generalizer.setTabOrder(self.cbAlgorithm, self.sbRemove_thresh)
generalizer.setTabOrder(self.sbRemove_thresh, self.cbOutFile)
generalizer.setTabOrder(self.cbOutFile, self.eOutput)
generalizer.setTabOrder(self.eOutput, self.bBrowse)
generalizer.setTabOrder(self.bBrowse, self.bOk)
generalizer.setTabOrder(self.bOk, self.bCancel)
generalizer.setTabOrder(self.bCancel, self.sbLang_LA)
generalizer.setTabOrder(self.sbLang_LA, self.sbReduction_thresh)
generalizer.setTabOrder(self.sbReduction_thresh, self.sbBoyle_LA)
generalizer.setTabOrder(self.sbBoyle_LA, self.sbChaiken_level)
generalizer.setTabOrder(self.sbChaiken_level, self.sbChaiken_weight)
generalizer.setTabOrder(self.sbChaiken_weight, self.sbHermite_steps)
generalizer.setTabOrder(self.sbHermite_steps, self.sbHermite_tightness)
generalizer.setTabOrder(self.sbHermite_tightness, self.sbDist_slide)
generalizer.setTabOrder(self.sbDist_slide, self.sbDist_LA)
generalizer.setTabOrder(self.sbDist_LA, self.sbSlide_slide)
generalizer.setTabOrder(self.sbSlide_slide, self.sbSlide_LA)
generalizer.setTabOrder(self.sbSlide_LA, self.bHelp)
generalizer.setTabOrder(self.bHelp, self.sbLang_thresh)
generalizer.setTabOrder(self.sbLang_thresh, self.sbDP_thresh)
generalizer.setTabOrder(self.sbDP_thresh, self.lstLayers)
generalizer.setTabOrder(self.lstLayers, self.tblBatchAlg)
generalizer.setTabOrder(self.tblBatchAlg, self.bAddAlg)
generalizer.setTabOrder(self.bAddAlg, self.bDelAlg)
generalizer.setTabOrder(self.bDelAlg, self.bEditAlg)
generalizer.setTabOrder(self.bEditAlg, self.eDir)
generalizer.setTabOrder(self.eDir, self.bBrowseDir)
generalizer.setTabOrder(self.bBrowseDir, self.cbOutDir)
def retranslateUi(self, generalizer):
generalizer.setWindowTitle(QtGui.QApplication.translate("generalizer", "Generalizer", None, QtGui.QApplication.UnicodeUTF8))
self.cbBatch.setText(QtGui.QApplication.translate("generalizer", "Batch mode", None, QtGui.QApplication.UnicodeUTF8))
self.bHelp.setText(QtGui.QApplication.translate("generalizer", "?", None, QtGui.QApplication.UnicodeUTF8))
self.bOk.setText(QtGui.QApplication.translate("generalizer", "OK", None, QtGui.QApplication.UnicodeUTF8))
self.bCancel.setText(QtGui.QApplication.translate("generalizer", "Close", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("generalizer", "Input line layer:", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setTitle(QtGui.QApplication.translate("generalizer", "Options", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("generalizer", "Alghoritm:", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(0, QtGui.QApplication.translate("generalizer", "-----Generalizing-----", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(1, QtGui.QApplication.translate("generalizer", "Remove small objects", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(2, QtGui.QApplication.translate("generalizer", "-----Simplifying-----", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(3, QtGui.QApplication.translate("generalizer", "Douglas-Peucker Algorithm", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(4, QtGui.QApplication.translate("generalizer", "Jenk\'s Algorithm", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(5, QtGui.QApplication.translate("generalizer", "Lang Algorithm", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(6, QtGui.QApplication.translate("generalizer", "Reumann-Witkam Algorithm", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(7, QtGui.QApplication.translate("generalizer", "Vertex Reduction", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(8, QtGui.QApplication.translate("generalizer", "-----Smoothing-----", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(9, QtGui.QApplication.translate("generalizer", "Boyle\'s Forward-Looking Algorithm", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(10, QtGui.QApplication.translate("generalizer", "Chaiken\'s Algorithm", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(11, QtGui.QApplication.translate("generalizer", "Hermite Spline Interpolation", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(12, QtGui.QApplication.translate("generalizer", "McMaster\'s Distance-Weighting Algorithm", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(13, QtGui.QApplication.translate("generalizer", "McMaster\'s Sliding Averaging Algorithm", None, QtGui.QApplication.UnicodeUTF8))
self.cbAlgorithm.setItemText(14, QtGui.QApplication.translate("generalizer", "Snakes Algorithm", None, QtGui.QApplication.UnicodeUTF8))
self.label_12.setText(QtGui.QApplication.translate("generalizer", "Threshold:", None, QtGui.QApplication.UnicodeUTF8))
self.label_18.setText(QtGui.QApplication.translate("generalizer", "Threshold:", None, QtGui.QApplication.UnicodeUTF8))
self.label_7.setText(QtGui.QApplication.translate("generalizer", "Threshold:", None, QtGui.QApplication.UnicodeUTF8))
self.label_8.setText(QtGui.QApplication.translate("generalizer", "Angle threshold:", None, QtGui.QApplication.UnicodeUTF8))
self.label_13.setText(QtGui.QApplication.translate("generalizer", "Threshold:", None, QtGui.QApplication.UnicodeUTF8))
self.label_19.setText(QtGui.QApplication.translate("generalizer", "Looka ahead:", None, QtGui.QApplication.UnicodeUTF8))
self.label_11.setText(QtGui.QApplication.translate("generalizer", "Threshold:", None, QtGui.QApplication.UnicodeUTF8))
self.label_20.setText(QtGui.QApplication.translate("generalizer", "Threshold:", None, QtGui.QApplication.UnicodeUTF8))
self.label_21.setText(QtGui.QApplication.translate("generalizer", "Look ahead:", None, QtGui.QApplication.UnicodeUTF8))
self.label_22.setText(QtGui.QApplication.translate("generalizer", "Level:", None, QtGui.QApplication.UnicodeUTF8))
self.label_23.setText(QtGui.QApplication.translate("generalizer", "Weight:", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("generalizer", "Threshold:", None, QtGui.QApplication.UnicodeUTF8))
self.label_4.setText(QtGui.QApplication.translate("generalizer", "Thightness:", None, QtGui.QApplication.UnicodeUTF8))
self.label_24.setText(QtGui.QApplication.translate("generalizer", "Slide:", None, QtGui.QApplication.UnicodeUTF8))
self.label_25.setText(QtGui.QApplication.translate("generalizer", "Look ahead:", None, QtGui.QApplication.UnicodeUTF8))
self.label_26.setText(QtGui.QApplication.translate("generalizer", "Slide:", None, QtGui.QApplication.UnicodeUTF8))
self.label_27.setText(QtGui.QApplication.translate("generalizer", "Look ahead:", None, QtGui.QApplication.UnicodeUTF8))
self.label_9.setText(QtGui.QApplication.translate("generalizer", "Alpha:", None, QtGui.QApplication.UnicodeUTF8))
self.label_10.setText(QtGui.QApplication.translate("generalizer", "Beta:", None, QtGui.QApplication.UnicodeUTF8))
self.bBrowse.setText(QtGui.QApplication.translate("generalizer", "Browse", None, QtGui.QApplication.UnicodeUTF8))
self.cbOutFile.setText(QtGui.QApplication.translate("generalizer", "Save output layer", None, QtGui.QApplication.UnicodeUTF8))
self.tblBatchAlg.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("generalizer", "Algorithm", None, QtGui.QApplication.UnicodeUTF8))
self.tblBatchAlg.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("generalizer", "Parameter 1", None, QtGui.QApplication.UnicodeUTF8))
self.tblBatchAlg.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("generalizer", "Parameter 2", None, QtGui.QApplication.UnicodeUTF8))
self.bAddAlg.setText(QtGui.QApplication.translate("generalizer", "Add", None, QtGui.QApplication.UnicodeUTF8))
self.bDelAlg.setText(QtGui.QApplication.translate("generalizer", "Delete", None, QtGui.QApplication.UnicodeUTF8))
self.bEditAlg.setText(QtGui.QApplication.translate("generalizer", "Edit", None, QtGui.QApplication.UnicodeUTF8))
self.bBrowseDir.setText(QtGui.QApplication.translate("generalizer", "Browse", None, QtGui.QApplication.UnicodeUTF8))
self.cbOutDir.setText(QtGui.QApplication.translate("generalizer", "Save output layer(s) to folder", None, QtGui.QApplication.UnicodeUTF8))
self.label_5.setText(QtGui.QApplication.translate("generalizer", "Algorithm(s)", None, QtGui.QApplication.UnicodeUTF8))
self.label_6.setText(QtGui.QApplication.translate("generalizer", "Choose layer(s)", None, QtGui.QApplication.UnicodeUTF8))