-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_window_ui.py
565 lines (558 loc) · 34.3 KB
/
main_window_ui.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
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main_window_collapse.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1100, 720)
MainWindow.setMinimumSize(QtCore.QSize(1100, 720))
MainWindow.setAnimated(True)
MainWindow.setDockNestingEnabled(False)
self.centralwidget = QtWidgets.QWidget(MainWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_4 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_4.setObjectName("gridLayout_4")
self.toolGroup = QtWidgets.QToolBox(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.toolGroup.sizePolicy().hasHeightForWidth())
self.toolGroup.setSizePolicy(sizePolicy)
self.toolGroup.setMinimumSize(QtCore.QSize(430, 0))
self.toolGroup.setMaximumSize(QtCore.QSize(430, 580))
self.toolGroup.setFrameShape(QtWidgets.QFrame.NoFrame)
self.toolGroup.setFrameShadow(QtWidgets.QFrame.Plain)
self.toolGroup.setObjectName("toolGroup")
self.page1 = QtWidgets.QWidget()
self.page1.setGeometry(QtCore.QRect(0, 0, 430, 499))
self.page1.setObjectName("page1")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.page1)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.inputBeamDeg = QtWidgets.QSpinBox(self.page1)
self.inputBeamDeg.setEnabled(False)
self.inputBeamDeg.setMinimumSize(QtCore.QSize(0, 27))
self.inputBeamDeg.setMaximumSize(QtCore.QSize(16777215, 27))
self.inputBeamDeg.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.inputBeamDeg.setMaximum(120)
self.inputBeamDeg.setSingleStep(5)
self.inputBeamDeg.setProperty("value", 45)
self.inputBeamDeg.setObjectName("inputBeamDeg")
self.gridLayout.addWidget(self.inputBeamDeg, 4, 1, 1, 1)
self.label = QtWidgets.QLabel(self.page1)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
self.beamBox = QtWidgets.QComboBox(self.page1)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.beamBox.sizePolicy().hasHeightForWidth())
self.beamBox.setSizePolicy(sizePolicy)
self.beamBox.setMinimumSize(QtCore.QSize(125, 27))
self.beamBox.setMaximumSize(QtCore.QSize(16777215, 27))
self.beamBox.setObjectName("beamBox")
self.beamBox.addItem("")
self.beamBox.addItem("")
self.beamBox.addItem("")
self.gridLayout.addWidget(self.beamBox, 4, 2, 1, 1)
self.inputDiag = QtWidgets.QSpinBox(self.page1)
self.inputDiag.setMinimumSize(QtCore.QSize(0, 27))
self.inputDiag.setMaximumSize(QtCore.QSize(16777215, 27))
self.inputDiag.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.inputDiag.setMinimum(500)
self.inputDiag.setMaximum(50000)
self.inputDiag.setSingleStep(1000)
self.inputDiag.setProperty("value", 1000)
self.inputDiag.setObjectName("inputDiag")
self.gridLayout.addWidget(self.inputDiag, 5, 2, 1, 1)
self.label_3 = QtWidgets.QLabel(self.page1)
self.label_3.setObjectName("label_3")
self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
self.inputDirBrowseButton = QtWidgets.QPushButton(self.page1)
self.inputDirBrowseButton.setMinimumSize(QtCore.QSize(75, 27))
self.inputDirBrowseButton.setMaximumSize(QtCore.QSize(75, 27))
self.inputDirBrowseButton.setObjectName("inputDirBrowseButton")
self.gridLayout.addWidget(self.inputDirBrowseButton, 0, 1, 1, 1, QtCore.Qt.AlignRight)
self.label_7 = QtWidgets.QLabel(self.page1)
self.label_7.setToolTip("")
self.label_7.setObjectName("label_7")
self.gridLayout.addWidget(self.label_7, 5, 0, 1, 1)
self.label_8 = QtWidgets.QLabel(self.page1)
self.label_8.setObjectName("label_8")
self.gridLayout.addWidget(self.label_8, 3, 0, 1, 1)
self.label_2 = QtWidgets.QLabel(self.page1)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.label_10 = QtWidgets.QLabel(self.page1)
self.label_10.setObjectName("label_10")
self.gridLayout.addWidget(self.label_10, 4, 0, 1, 1)
self.inputDensity = QtWidgets.QSpinBox(self.page1)
self.inputDensity.setMinimumSize(QtCore.QSize(0, 27))
self.inputDensity.setMaximumSize(QtCore.QSize(16777215, 27))
self.inputDensity.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.inputDensity.setMinimum(1)
self.inputDensity.setMaximum(1000)
self.inputDensity.setObjectName("inputDensity")
self.gridLayout.addWidget(self.inputDensity, 3, 2, 1, 1)
self.inputName = QtWidgets.QLineEdit(self.page1)
self.inputName.setMinimumSize(QtCore.QSize(0, 27))
self.inputName.setMaximumSize(QtCore.QSize(16777215, 27))
self.inputName.setObjectName("inputName")
self.gridLayout.addWidget(self.inputName, 1, 2, 1, 1)
self.inputFeature = QtWidgets.QDoubleSpinBox(self.page1)
self.inputFeature.setMinimumSize(QtCore.QSize(0, 27))
self.inputFeature.setMaximumSize(QtCore.QSize(16777215, 27))
self.inputFeature.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.inputFeature.setMinimum(0.1)
self.inputFeature.setMaximum(1000.0)
self.inputFeature.setSingleStep(0.1)
self.inputFeature.setProperty("value", 1.0)
self.inputFeature.setObjectName("inputFeature")
self.gridLayout.addWidget(self.inputFeature, 2, 2, 1, 1)
self.inputDir = QtWidgets.QLineEdit(self.page1)
self.inputDir.setMinimumSize(QtCore.QSize(0, 27))
self.inputDir.setMaximumSize(QtCore.QSize(16777215, 27))
self.inputDir.setPlaceholderText("")
self.inputDir.setObjectName("inputDir")
self.gridLayout.addWidget(self.inputDir, 0, 2, 1, 1)
self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 2)
spacerItem = QtWidgets.QSpacerItem(297, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem, 1, 0, 1, 1)
self.runButton = QtWidgets.QPushButton(self.page1)
self.runButton.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.runButton.sizePolicy().hasHeightForWidth())
self.runButton.setSizePolicy(sizePolicy)
self.runButton.setMinimumSize(QtCore.QSize(120, 27))
self.runButton.setMaximumSize(QtCore.QSize(120, 27))
self.runButton.setAutoDefault(False)
self.runButton.setDefault(False)
self.runButton.setFlat(False)
self.runButton.setObjectName("runButton")
self.gridLayout_2.addWidget(self.runButton, 1, 1, 1, 1)
self.verticalLayout_6.addLayout(self.gridLayout_2)
spacerItem1 = QtWidgets.QSpacerItem(20, 232, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_6.addItem(spacerItem1)
self.toolGroup.addItem(self.page1, "")
self.page2 = QtWidgets.QWidget()
self.page2.setGeometry(QtCore.QRect(0, 0, 430, 499))
self.page2.setObjectName("page2")
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.page2)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.bounGroup = QtWidgets.QGroupBox(self.page2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.bounGroup.sizePolicy().hasHeightForWidth())
self.bounGroup.setSizePolicy(sizePolicy)
self.bounGroup.setMinimumSize(QtCore.QSize(380, 140))
self.bounGroup.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.bounGroup.setFlat(False)
self.bounGroup.setCheckable(True)
self.bounGroup.setObjectName("bounGroup")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.bounGroup)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.ginputRadio = QtWidgets.QRadioButton(self.bounGroup)
self.ginputRadio.setStatusTip("")
self.ginputRadio.setWhatsThis("")
self.ginputRadio.setObjectName("ginputRadio")
self.verticalLayout_5.addWidget(self.ginputRadio)
self.gridLayout_3 = QtWidgets.QGridLayout()
self.gridLayout_3.setObjectName("gridLayout_3")
self.bounRadio = QtWidgets.QRadioButton(self.bounGroup)
self.bounRadio.setEnabled(True)
self.bounRadio.setChecked(True)
self.bounRadio.setObjectName("bounRadio")
self.gridLayout_3.addWidget(self.bounRadio, 0, 0, 1, 1)
self.label_5 = QtWidgets.QLabel(self.bounGroup)
self.label_5.setObjectName("label_5")
self.gridLayout_3.addWidget(self.label_5, 0, 1, 1, 1, QtCore.Qt.AlignRight)
self.bounFileRadio = QtWidgets.QRadioButton(self.bounGroup)
self.bounFileRadio.setEnabled(True)
self.bounFileRadio.setMinimumSize(QtCore.QSize(0, 0))
self.bounFileRadio.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.bounFileRadio.setObjectName("bounFileRadio")
self.gridLayout_3.addWidget(self.bounFileRadio, 1, 0, 1, 1)
self.bounFileBrowseButton = QtWidgets.QPushButton(self.bounGroup)
self.bounFileBrowseButton.setEnabled(False)
self.bounFileBrowseButton.setMinimumSize(QtCore.QSize(75, 27))
self.bounFileBrowseButton.setMaximumSize(QtCore.QSize(75, 27))
self.bounFileBrowseButton.setObjectName("bounFileBrowseButton")
self.gridLayout_3.addWidget(self.bounFileBrowseButton, 1, 1, 1, 1)
self.bounFileInput = QtWidgets.QLineEdit(self.bounGroup)
self.bounFileInput.setEnabled(False)
self.bounFileInput.setMinimumSize(QtCore.QSize(0, 27))
self.bounFileInput.setMaximumSize(QtCore.QSize(16777215, 27))
self.bounFileInput.setObjectName("bounFileInput")
self.gridLayout_3.addWidget(self.bounFileInput, 1, 2, 1, 1)
self.bounSpinbox = QtWidgets.QDoubleSpinBox(self.bounGroup)
self.bounSpinbox.setMinimumSize(QtCore.QSize(0, 27))
self.bounSpinbox.setMaximumSize(QtCore.QSize(16777215, 27))
self.bounSpinbox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.bounSpinbox.setDecimals(1)
self.bounSpinbox.setMinimum(0.5)
self.bounSpinbox.setMaximum(99.0)
self.bounSpinbox.setSingleStep(0.5)
self.bounSpinbox.setProperty("value", 1.0)
self.bounSpinbox.setObjectName("bounSpinbox")
self.gridLayout_3.addWidget(self.bounSpinbox, 0, 2, 1, 1)
self.verticalLayout_5.addLayout(self.gridLayout_3)
self.verticalLayout_7.addWidget(self.bounGroup)
self.failGroup = QtWidgets.QGroupBox(self.page2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.failGroup.sizePolicy().hasHeightForWidth())
self.failGroup.setSizePolicy(sizePolicy)
self.failGroup.setMinimumSize(QtCore.QSize(380, 110))
self.failGroup.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.failGroup.setCheckable(True)
self.failGroup.setObjectName("failGroup")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.failGroup)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.gridLayout_5 = QtWidgets.QGridLayout()
self.gridLayout_5.setObjectName("gridLayout_5")
self.label_4 = QtWidgets.QLabel(self.failGroup)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
self.label_4.setSizePolicy(sizePolicy)
self.label_4.setMinimumSize(QtCore.QSize(0, 27))
self.label_4.setMaximumSize(QtCore.QSize(16777215, 27))
self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_4.setObjectName("label_4")
self.gridLayout_5.addWidget(self.label_4, 0, 0, 1, 2, QtCore.Qt.AlignLeft)
self.failOutCheckbox = QtWidgets.QCheckBox(self.failGroup)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.failOutCheckbox.sizePolicy().hasHeightForWidth())
self.failOutCheckbox.setSizePolicy(sizePolicy)
self.failOutCheckbox.setMinimumSize(QtCore.QSize(0, 27))
self.failOutCheckbox.setMaximumSize(QtCore.QSize(16777215, 27))
self.failOutCheckbox.setObjectName("failOutCheckbox")
self.gridLayout_5.addWidget(self.failOutCheckbox, 1, 0, 1, 1)
self.failDirBrowseButton = QtWidgets.QPushButton(self.failGroup)
self.failDirBrowseButton.setEnabled(False)
self.failDirBrowseButton.setMinimumSize(QtCore.QSize(75, 27))
self.failDirBrowseButton.setMaximumSize(QtCore.QSize(75, 27))
self.failDirBrowseButton.setObjectName("failDirBrowseButton")
self.gridLayout_5.addWidget(self.failDirBrowseButton, 1, 1, 1, 1)
self.horizontalLayout_2.addLayout(self.gridLayout_5)
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.inputCoverage = QtWidgets.QDoubleSpinBox(self.failGroup)
self.inputCoverage.setMinimumSize(QtCore.QSize(0, 27))
self.inputCoverage.setMaximumSize(QtCore.QSize(16777215, 27))
self.inputCoverage.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.inputCoverage.setDecimals(1)
self.inputCoverage.setMinimum(0.5)
self.inputCoverage.setMaximum(99.0)
self.inputCoverage.setSingleStep(0.5)
self.inputCoverage.setProperty("value", 1.0)
self.inputCoverage.setObjectName("inputCoverage")
self.verticalLayout_3.addWidget(self.inputCoverage)
self.failDir = QtWidgets.QLineEdit(self.failGroup)
self.failDir.setEnabled(False)
self.failDir.setMinimumSize(QtCore.QSize(0, 27))
self.failDir.setMaximumSize(QtCore.QSize(16777215, 27))
self.failDir.setObjectName("failDir")
self.verticalLayout_3.addWidget(self.failDir)
self.horizontalLayout_2.addLayout(self.verticalLayout_3)
self.verticalLayout_7.addWidget(self.failGroup)
self.ppGroup = QtWidgets.QGroupBox(self.page2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ppGroup.sizePolicy().hasHeightForWidth())
self.ppGroup.setSizePolicy(sizePolicy)
self.ppGroup.setMinimumSize(QtCore.QSize(380, 140))
self.ppGroup.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.ppGroup.setFlat(False)
self.ppGroup.setCheckable(True)
self.ppGroup.setChecked(False)
self.ppGroup.setObjectName("ppGroup")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.ppGroup)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.gridLayout_8 = QtWidgets.QGridLayout()
self.gridLayout_8.setObjectName("gridLayout_8")
self.ppDirBrowseButton = QtWidgets.QPushButton(self.ppGroup)
self.ppDirBrowseButton.setEnabled(False)
self.ppDirBrowseButton.setMinimumSize(QtCore.QSize(75, 27))
self.ppDirBrowseButton.setMaximumSize(QtCore.QSize(75, 27))
self.ppDirBrowseButton.setObjectName("ppDirBrowseButton")
self.gridLayout_8.addWidget(self.ppDirBrowseButton, 2, 1, 1, 1)
self.ppOutCheckbox = QtWidgets.QCheckBox(self.ppGroup)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ppOutCheckbox.sizePolicy().hasHeightForWidth())
self.ppOutCheckbox.setSizePolicy(sizePolicy)
self.ppOutCheckbox.setMinimumSize(QtCore.QSize(0, 27))
self.ppOutCheckbox.setMaximumSize(QtCore.QSize(16777215, 27))
self.ppOutCheckbox.setObjectName("ppOutCheckbox")
self.gridLayout_8.addWidget(self.ppOutCheckbox, 2, 0, 1, 1)
self.label_9 = QtWidgets.QLabel(self.ppGroup)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth())
self.label_9.setSizePolicy(sizePolicy)
self.label_9.setMinimumSize(QtCore.QSize(0, 27))
self.label_9.setMaximumSize(QtCore.QSize(16777215, 27))
self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_9.setObjectName("label_9")
self.gridLayout_8.addWidget(self.label_9, 1, 0, 1, 2, QtCore.Qt.AlignLeft)
self.label_6 = QtWidgets.QLabel(self.ppGroup)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth())
self.label_6.setSizePolicy(sizePolicy)
self.label_6.setMinimumSize(QtCore.QSize(0, 27))
self.label_6.setMaximumSize(QtCore.QSize(16777215, 27))
self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_6.setObjectName("label_6")
self.gridLayout_8.addWidget(self.label_6, 0, 0, 1, 2, QtCore.Qt.AlignLeft)
self.horizontalLayout_3.addLayout(self.gridLayout_8)
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.swathSpinbox = QtWidgets.QSpinBox(self.ppGroup)
self.swathSpinbox.setMinimumSize(QtCore.QSize(0, 27))
self.swathSpinbox.setMaximumSize(QtCore.QSize(16777215, 27))
self.swathSpinbox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.swathSpinbox.setMinimum(30)
self.swathSpinbox.setMaximum(180)
self.swathSpinbox.setSingleStep(10)
self.swathSpinbox.setProperty("value", 110)
self.swathSpinbox.setObjectName("swathSpinbox")
self.verticalLayout_4.addWidget(self.swathSpinbox)
self.ppSpinBox = QtWidgets.QSpinBox(self.ppGroup)
self.ppSpinBox.setMinimumSize(QtCore.QSize(0, 27))
self.ppSpinBox.setMaximumSize(QtCore.QSize(16777215, 27))
self.ppSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.ppSpinBox.setMinimum(5)
self.ppSpinBox.setMaximum(100)
self.ppSpinBox.setSingleStep(5)
self.ppSpinBox.setProperty("value", 10)
self.ppSpinBox.setObjectName("ppSpinBox")
self.verticalLayout_4.addWidget(self.ppSpinBox)
self.ppDir = QtWidgets.QLineEdit(self.ppGroup)
self.ppDir.setEnabled(False)
self.ppDir.setMinimumSize(QtCore.QSize(0, 27))
self.ppDir.setMaximumSize(QtCore.QSize(16777215, 27))
self.ppDir.setObjectName("ppDir")
self.verticalLayout_4.addWidget(self.ppDir)
self.horizontalLayout_3.addLayout(self.verticalLayout_4)
self.verticalLayout_7.addWidget(self.ppGroup)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
spacerItem2 = QtWidgets.QSpacerItem(218, 38, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem2)
self.execButton = QtWidgets.QPushButton(self.page2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.execButton.sizePolicy().hasHeightForWidth())
self.execButton.setSizePolicy(sizePolicy)
self.execButton.setMinimumSize(QtCore.QSize(120, 27))
self.execButton.setMaximumSize(QtCore.QSize(120, 27))
self.execButton.setObjectName("execButton")
self.horizontalLayout_4.addWidget(self.execButton)
self.verticalLayout_7.addLayout(self.horizontalLayout_4)
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_7.addItem(spacerItem3)
self.toolGroup.addItem(self.page2, "")
self.page3 = QtWidgets.QWidget()
self.page3.setGeometry(QtCore.QRect(0, 0, 430, 499))
self.page3.setObjectName("page3")
self.verticalLayout = QtWidgets.QVBoxLayout(self.page3)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.reportButton = QtWidgets.QPushButton(self.page3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.reportButton.sizePolicy().hasHeightForWidth())
self.reportButton.setSizePolicy(sizePolicy)
self.reportButton.setMinimumSize(QtCore.QSize(140, 27))
self.reportButton.setMaximumSize(QtCore.QSize(140, 27))
self.reportButton.setObjectName("reportButton")
self.horizontalLayout_5.addWidget(self.reportButton)
self.reportDirBrowseButton = QtWidgets.QPushButton(self.page3)
self.reportDirBrowseButton.setMinimumSize(QtCore.QSize(75, 27))
self.reportDirBrowseButton.setMaximumSize(QtCore.QSize(75, 27))
self.reportDirBrowseButton.setObjectName("reportDirBrowseButton")
self.horizontalLayout_5.addWidget(self.reportDirBrowseButton)
self.reportDir = QtWidgets.QLineEdit(self.page3)
self.reportDir.setMinimumSize(QtCore.QSize(0, 27))
self.reportDir.setMaximumSize(QtCore.QSize(16777215, 27))
self.reportDir.setPlaceholderText("")
self.reportDir.setObjectName("reportDir")
self.horizontalLayout_5.addWidget(self.reportDir)
self.verticalLayout.addLayout(self.horizontalLayout_5)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem4)
self.exitButton = QtWidgets.QPushButton(self.page3)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.exitButton.sizePolicy().hasHeightForWidth())
self.exitButton.setSizePolicy(sizePolicy)
self.exitButton.setMinimumSize(QtCore.QSize(120, 27))
self.exitButton.setMaximumSize(QtCore.QSize(120, 27))
self.exitButton.setObjectName("exitButton")
self.horizontalLayout.addWidget(self.exitButton)
self.verticalLayout.addLayout(self.horizontalLayout)
spacerItem5 = QtWidgets.QSpacerItem(20, 402, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem5)
self.toolGroup.addItem(self.page3, "")
self.gridLayout_4.addWidget(self.toolGroup, 0, 0, 1, 1)
self.plotLayout1 = QtWidgets.QVBoxLayout()
self.plotLayout1.setObjectName("plotLayout1")
self.plotBox1 = QtWidgets.QWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.plotBox1.sizePolicy().hasHeightForWidth())
self.plotBox1.setSizePolicy(sizePolicy)
self.plotBox1.setMinimumSize(QtCore.QSize(100, 0))
self.plotBox1.setMaximumSize(QtCore.QSize(16777215, 0))
self.plotBox1.setObjectName("plotBox1")
self.plotLayout1.addWidget(self.plotBox1)
self.gridLayout_4.addLayout(self.plotLayout1, 0, 1, 2, 1)
self.plotLayout2 = QtWidgets.QVBoxLayout()
self.plotLayout2.setObjectName("plotLayout2")
self.plotBox2 = QtWidgets.QWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.plotBox2.sizePolicy().hasHeightForWidth())
self.plotBox2.setSizePolicy(sizePolicy)
self.plotBox2.setMinimumSize(QtCore.QSize(100, 0))
self.plotBox2.setMaximumSize(QtCore.QSize(16777215, 0))
self.plotBox2.setObjectName("plotBox2")
self.plotLayout2.addWidget(self.plotBox2)
self.gridLayout_4.addLayout(self.plotLayout2, 0, 2, 2, 1)
self.spaceLayout = QtWidgets.QVBoxLayout()
self.spaceLayout.setObjectName("spaceLayout")
self.gridLayout_4.addLayout(self.spaceLayout, 1, 0, 1, 1)
self.consoleBox = QtWidgets.QPlainTextEdit(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.consoleBox.sizePolicy().hasHeightForWidth())
self.consoleBox.setSizePolicy(sizePolicy)
self.consoleBox.setMaximumSize(QtCore.QSize(16777215, 80))
self.consoleBox.setUndoRedoEnabled(False)
self.consoleBox.setReadOnly(True)
self.consoleBox.setObjectName("consoleBox")
self.gridLayout_4.addWidget(self.consoleBox, 2, 0, 1, 3)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.toolGroup.setCurrentIndex(0)
self.toolGroup.layout().setSpacing(3)
self.exitButton.clicked['bool'].connect(MainWindow.close)
self.bounFileRadio.toggled['bool'].connect(self.bounFileBrowseButton.setEnabled)
self.bounRadio.toggled['bool'].connect(self.bounSpinbox.setEnabled)
self.bounFileRadio.toggled['bool'].connect(self.bounFileInput.setEnabled)
self.failOutCheckbox.toggled['bool'].connect(self.failDirBrowseButton.setEnabled)
self.failOutCheckbox.toggled['bool'].connect(self.failDir.setEnabled)
self.ppOutCheckbox.toggled['bool'].connect(self.ppDirBrowseButton.setEnabled)
self.ppOutCheckbox.toggled['bool'].connect(self.ppDir.setEnabled)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.inputDirBrowseButton, self.inputDir)
MainWindow.setTabOrder(self.inputDir, self.inputName)
MainWindow.setTabOrder(self.inputName, self.inputFeature)
MainWindow.setTabOrder(self.inputFeature, self.inputDensity)
MainWindow.setTabOrder(self.inputDensity, self.beamBox)
MainWindow.setTabOrder(self.beamBox, self.inputBeamDeg)
MainWindow.setTabOrder(self.inputBeamDeg, self.inputDiag)
MainWindow.setTabOrder(self.inputDiag, self.runButton)
MainWindow.setTabOrder(self.runButton, self.bounGroup)
MainWindow.setTabOrder(self.bounGroup, self.ginputRadio)
MainWindow.setTabOrder(self.ginputRadio, self.bounRadio)
MainWindow.setTabOrder(self.bounRadio, self.bounSpinbox)
MainWindow.setTabOrder(self.bounSpinbox, self.bounFileRadio)
MainWindow.setTabOrder(self.bounFileRadio, self.bounFileBrowseButton)
MainWindow.setTabOrder(self.bounFileBrowseButton, self.bounFileInput)
MainWindow.setTabOrder(self.bounFileInput, self.failGroup)
MainWindow.setTabOrder(self.failGroup, self.inputCoverage)
MainWindow.setTabOrder(self.inputCoverage, self.failOutCheckbox)
MainWindow.setTabOrder(self.failOutCheckbox, self.failDirBrowseButton)
MainWindow.setTabOrder(self.failDirBrowseButton, self.failDir)
MainWindow.setTabOrder(self.failDir, self.ppGroup)
MainWindow.setTabOrder(self.ppGroup, self.swathSpinbox)
MainWindow.setTabOrder(self.swathSpinbox, self.ppSpinBox)
MainWindow.setTabOrder(self.ppSpinBox, self.ppOutCheckbox)
MainWindow.setTabOrder(self.ppOutCheckbox, self.ppDirBrowseButton)
MainWindow.setTabOrder(self.ppDirBrowseButton, self.ppDir)
MainWindow.setTabOrder(self.ppDir, self.execButton)
MainWindow.setTabOrder(self.execButton, self.reportButton)
MainWindow.setTabOrder(self.reportButton, self.reportDirBrowseButton)
MainWindow.setTabOrder(self.reportDirBrowseButton, self.reportDir)
MainWindow.setTabOrder(self.reportDir, self.exitButton)
MainWindow.setTabOrder(self.exitButton, self.consoleBox)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Coverage Test"))
self.inputBeamDeg.setToolTip(_translate("MainWindow", "<html><head/><body><p>Max Beam Angle of Good Data</p></body></html>"))
self.label.setText(_translate("MainWindow", "Line File Directory "))
self.beamBox.setItemText(0, _translate("MainWindow", "N/A"))
self.beamBox.setItemText(1, _translate("MainWindow", "Status-based"))
self.beamBox.setItemText(2, _translate("MainWindow", "Angle-based (°)"))
self.inputDiag.setToolTip(_translate("MainWindow", "<html><head/><body><p>Approximated Max Diagonal Size of Survey Area</p></body></html>"))
self.label_3.setText(_translate("MainWindow", "Feature Size (m)"))
self.inputDirBrowseButton.setText(_translate("MainWindow", "Browse"))
self.label_7.setText(_translate("MainWindow", "Max. Diagonal (m)"))
self.label_8.setText(_translate("MainWindow", "Min. Data Density"))
self.label_2.setText(_translate("MainWindow", "Job Name"))
self.label_10.setText(_translate("MainWindow", "Beam Quality"))
self.runButton.setText(_translate("MainWindow", "Run Program"))
self.toolGroup.setItemText(self.toolGroup.indexOf(self.page1), _translate("MainWindow", "Configurations"))
self.bounGroup.setTitle(_translate("MainWindow", "Build Boundary"))
self.ginputRadio.setToolTip(_translate("MainWindow", "Click in Sequence on Coverage Map: Left-click to Select, Right-click to Deselect, Mid-click to Confirm"))
self.ginputRadio.setText(_translate("MainWindow", "Manual Graphical Input"))
self.bounRadio.setText(_translate("MainWindow", "From Data "))
self.label_5.setText(_translate("MainWindow", " Coverage"))
self.bounFileRadio.setToolTip(_translate("MainWindow", "Two-column Text File, Header Row: Easting, Northing"))
self.bounFileRadio.setText(_translate("MainWindow", "Input File"))
self.bounFileBrowseButton.setToolTip(_translate("MainWindow", "<html><head/><body><p>Two-column Text File, Header Row: Easting, Northing</p></body></html>"))
self.bounFileBrowseButton.setText(_translate("MainWindow", "Browse"))
self.bounFileInput.setToolTip(_translate("MainWindow", "<html><head/><body><p>Two-column Text File, Header Row: Easting, Northing</p></body></html>"))
self.bounSpinbox.setToolTip(_translate("MainWindow", "Minimum Coverage for Building Boundary"))
self.failGroup.setTitle(_translate("MainWindow", "Check Compliance"))
self.label_4.setText(_translate("MainWindow", " Minimum Coverage"))
self.failOutCheckbox.setText(_translate("MainWindow", "Output File"))
self.failDirBrowseButton.setText(_translate("MainWindow", "Browse"))
self.ppGroup.setTitle(_translate("MainWindow", "Path Planning"))
self.ppDirBrowseButton.setText(_translate("MainWindow", "Browse"))
self.ppOutCheckbox.setText(_translate("MainWindow", "Output File"))
self.label_9.setText(_translate("MainWindow", " Iterations"))
self.label_6.setText(_translate("MainWindow", " Swath Angle (°)"))
self.execButton.setText(_translate("MainWindow", "Execute Task"))
self.toolGroup.setItemText(self.toolGroup.indexOf(self.page2), _translate("MainWindow", "Data Analysis"))
self.reportButton.setToolTip(_translate("MainWindow", "Generate Report After Checking Compliance"))
self.reportButton.setText(_translate("MainWindow", "Generate Report"))
self.reportDirBrowseButton.setText(_translate("MainWindow", "Browse"))
self.exitButton.setText(_translate("MainWindow", "Exit Program"))
self.toolGroup.setItemText(self.toolGroup.indexOf(self.page3), _translate("MainWindow", "Closure"))