-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_ui.py
574 lines (567 loc) · 34.5 KB
/
main_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
566
567
568
569
570
571
572
573
574
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Rocpy.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# 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_Rocpy(QtWidgets.QMainWindow):
def setupUi(self, Rocpy):
Rocpy.setObjectName("Rocpy")
Rocpy.resize(1376, 834)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Rocpy.sizePolicy().hasHeightForWidth())
Rocpy.setSizePolicy(sizePolicy)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("../icon/Rocpy.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Rocpy.setWindowIcon(icon)
self.main_window = QtWidgets.QWidget(Rocpy)
self.main_window.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.main_window.sizePolicy().hasHeightForWidth())
self.main_window.setSizePolicy(sizePolicy)
self.main_window.setObjectName("main_window")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.main_window)
self.verticalLayout_3.setSizeConstraint(QtWidgets.QLayout.SetNoConstraint)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.main_grid = QtWidgets.QWidget(self.main_window)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.main_grid.sizePolicy().hasHeightForWidth())
self.main_grid.setSizePolicy(sizePolicy)
self.main_grid.setObjectName("main_grid")
self.gridLayout = QtWidgets.QGridLayout(self.main_grid)
self.gridLayout.setSizeConstraint(QtWidgets.QLayout.SetNoConstraint)
self.gridLayout.setObjectName("gridLayout")
self.Plot = QtWidgets.QTabWidget(self.main_grid)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Plot.sizePolicy().hasHeightForWidth())
self.Plot.setSizePolicy(sizePolicy)
self.Plot.setMinimumSize(QtCore.QSize(622, 644))
self.Plot.setTabPosition(QtWidgets.QTabWidget.North)
self.Plot.setDocumentMode(False)
self.Plot.setTabBarAutoHide(False)
self.Plot.setObjectName("Plot")
self.PlotPage1 = QtWidgets.QWidget()
self.PlotPage1.setObjectName("PlotPage1")
self.Plot.addTab(self.PlotPage1, "")
self.PlotPage2 = QtWidgets.QWidget()
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.PlotPage2.sizePolicy().hasHeightForWidth())
self.PlotPage2.setSizePolicy(sizePolicy)
self.PlotPage2.setObjectName("PlotPage2")
self.Plot.addTab(self.PlotPage2, "")
self.gridLayout.addWidget(self.Plot, 0, 1, 1, 1)
self.outpu_param = QtWidgets.QWidget(self.main_grid)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.outpu_param.sizePolicy().hasHeightForWidth())
self.outpu_param.setSizePolicy(sizePolicy)
self.outpu_param.setObjectName("outpu_param")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.outpu_param)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.HB_crit = QtWidgets.QLabel(self.outpu_param)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.HB_crit.sizePolicy().hasHeightForWidth())
self.HB_crit.setSizePolicy(sizePolicy)
self.HB_crit.setObjectName("HB_crit")
self.verticalLayout_2.addWidget(self.HB_crit, 0, QtCore.Qt.AlignHCenter)
self.frame_HBcrit = QtWidgets.QFrame(self.outpu_param)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_HBcrit.sizePolicy().hasHeightForWidth())
self.frame_HBcrit.setSizePolicy(sizePolicy)
self.frame_HBcrit.setFrameShape(QtWidgets.QFrame.Box)
self.frame_HBcrit.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_HBcrit.setObjectName("frame_HBcrit")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame_HBcrit)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.form_HBcrit = QtWidgets.QWidget(self.frame_HBcrit)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.form_HBcrit.sizePolicy().hasHeightForWidth())
self.form_HBcrit.setSizePolicy(sizePolicy)
self.form_HBcrit.setObjectName("form_HBcrit")
self.formLayout_8 = QtWidgets.QFormLayout(self.form_HBcrit)
self.formLayout_8.setLabelAlignment(QtCore.Qt.AlignCenter)
self.formLayout_8.setObjectName("formLayout_8")
self.label_mb = QtWidgets.QLabel(self.form_HBcrit)
self.label_mb.setObjectName("label_mb")
self.formLayout_8.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_mb)
self.label_s = QtWidgets.QLabel(self.form_HBcrit)
self.label_s.setObjectName("label_s")
self.formLayout_8.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_s)
self.label_a = QtWidgets.QLabel(self.form_HBcrit)
self.label_a.setObjectName("label_a")
self.formLayout_8.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_a)
self.value_mb = QtWidgets.QLabel(self.form_HBcrit)
self.value_mb.setObjectName("value_mb")
self.formLayout_8.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.value_mb)
self.value_s = QtWidgets.QLabel(self.form_HBcrit)
self.value_s.setObjectName("value_s")
self.formLayout_8.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.value_s)
self.value_a = QtWidgets.QLabel(self.form_HBcrit)
self.value_a.setObjectName("value_a")
self.formLayout_8.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.value_a)
self.verticalLayout_4.addWidget(self.form_HBcrit)
self.verticalLayout_2.addWidget(self.frame_HBcrit, 0, QtCore.Qt.AlignHCenter)
self.MC_fit_2 = QtWidgets.QLabel(self.outpu_param)
self.MC_fit_2.setObjectName("MC_fit_2")
self.verticalLayout_2.addWidget(self.MC_fit_2, 0, QtCore.Qt.AlignHCenter)
self.frame_MCfit = QtWidgets.QFrame(self.outpu_param)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_MCfit.sizePolicy().hasHeightForWidth())
self.frame_MCfit.setSizePolicy(sizePolicy)
self.frame_MCfit.setFrameShape(QtWidgets.QFrame.Box)
self.frame_MCfit.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_MCfit.setObjectName("frame_MCfit")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame_MCfit)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.Form_MCfit = QtWidgets.QWidget(self.frame_MCfit)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Form_MCfit.sizePolicy().hasHeightForWidth())
self.Form_MCfit.setSizePolicy(sizePolicy)
self.Form_MCfit.setObjectName("Form_MCfit")
self.formLayout_9 = QtWidgets.QFormLayout(self.Form_MCfit)
self.formLayout_9.setLabelAlignment(QtCore.Qt.AlignCenter)
self.formLayout_9.setObjectName("formLayout_9")
self.label_c = QtWidgets.QLabel(self.Form_MCfit)
self.label_c.setObjectName("label_c")
self.formLayout_9.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_c)
self.value_c = QtWidgets.QLabel(self.Form_MCfit)
self.value_c.setObjectName("value_c")
self.formLayout_9.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.value_c)
self.label_phi = QtWidgets.QLabel(self.Form_MCfit)
self.label_phi.setObjectName("label_phi")
self.formLayout_9.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_phi)
self.value_phi = QtWidgets.QLabel(self.Form_MCfit)
self.value_phi.setObjectName("value_phi")
self.formLayout_9.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.value_phi)
self.value_s1max = QtWidgets.QLabel(self.Form_MCfit)
self.value_s1max.setObjectName("value_s1max")
self.formLayout_9.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.value_s1max)
self.label_s1max = QtWidgets.QLabel(self.Form_MCfit)
self.label_s1max.setObjectName("label_s1max")
self.formLayout_9.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_s1max)
self.label_deviatoric = QtWidgets.QLabel(self.Form_MCfit)
self.label_deviatoric.setObjectName("label_deviatoric")
self.formLayout_9.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_deviatoric)
self.value_deviatoric = QtWidgets.QLabel(self.Form_MCfit)
self.value_deviatoric.setObjectName("value_deviatoric")
self.formLayout_9.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.value_deviatoric)
self.label_fail = QtWidgets.QLabel(self.Form_MCfit)
self.label_fail.setObjectName("label_fail")
self.formLayout_9.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_fail)
self.value_fail = QtWidgets.QLabel(self.Form_MCfit)
self.value_fail.setObjectName("value_fail")
self.formLayout_9.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.value_fail)
self.verticalLayout_5.addWidget(self.Form_MCfit, 0, QtCore.Qt.AlignHCenter)
self.verticalLayout_2.addWidget(self.frame_MCfit, 0, QtCore.Qt.AlignHCenter)
self.rock_mass = QtWidgets.QLabel(self.outpu_param)
self.rock_mass.setObjectName("rock_mass")
self.verticalLayout_2.addWidget(self.rock_mass, 0, QtCore.Qt.AlignHCenter)
self.frame_rockmass = QtWidgets.QFrame(self.outpu_param)
self.frame_rockmass.setFrameShape(QtWidgets.QFrame.Box)
self.frame_rockmass.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_rockmass.setObjectName("frame_rockmass")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.frame_rockmass)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.Form_rockmass = QtWidgets.QWidget(self.frame_rockmass)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Form_rockmass.sizePolicy().hasHeightForWidth())
self.Form_rockmass.setSizePolicy(sizePolicy)
self.Form_rockmass.setAutoFillBackground(False)
self.Form_rockmass.setObjectName("Form_rockmass")
self.formLayout_10 = QtWidgets.QFormLayout(self.Form_rockmass)
self.formLayout_10.setLabelAlignment(QtCore.Qt.AlignCenter)
self.formLayout_10.setObjectName("formLayout_10")
self.label_st = QtWidgets.QLabel(self.Form_rockmass)
self.label_st.setObjectName("label_st")
self.formLayout_10.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_st)
self.label_su = QtWidgets.QLabel(self.Form_rockmass)
self.label_su.setObjectName("label_su")
self.formLayout_10.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_su)
self.label_scm = QtWidgets.QLabel(self.Form_rockmass)
self.label_scm.setObjectName("label_scm")
self.formLayout_10.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_scm)
self.value_st = QtWidgets.QLabel(self.Form_rockmass)
self.value_st.setObjectName("value_st")
self.formLayout_10.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.value_st)
self.value_su = QtWidgets.QLabel(self.Form_rockmass)
self.value_su.setObjectName("value_su")
self.formLayout_10.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.value_su)
self.value_scm = QtWidgets.QLabel(self.Form_rockmass)
self.value_scm.setObjectName("value_scm")
self.formLayout_10.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.value_scm)
self.label_erm = QtWidgets.QLabel(self.Form_rockmass)
self.label_erm.setObjectName("label_erm")
self.formLayout_10.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_erm)
self.value_erm = QtWidgets.QLabel(self.Form_rockmass)
self.value_erm.setObjectName("value_erm")
self.formLayout_10.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.value_erm)
self.verticalLayout_6.addWidget(self.Form_rockmass)
self.verticalLayout_2.addWidget(self.frame_rockmass, 0, QtCore.Qt.AlignHCenter)
self.gridLayout.addWidget(self.outpu_param, 0, 2, 1, 1)
self.input_param = QtWidgets.QWidget(self.main_grid)
self.input_param.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.input_param.sizePolicy().hasHeightForWidth())
self.input_param.setSizePolicy(sizePolicy)
self.input_param.setObjectName("input_param")
self.verticalLayout = QtWidgets.QVBoxLayout(self.input_param)
self.verticalLayout.setObjectName("verticalLayout")
self.HB_class_2 = QtWidgets.QLabel(self.input_param)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.HB_class_2.sizePolicy().hasHeightForWidth())
self.HB_class_2.setSizePolicy(sizePolicy)
self.HB_class_2.setWordWrap(True)
self.HB_class_2.setObjectName("HB_class_2")
self.verticalLayout.addWidget(self.HB_class_2, 0, QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter)
self.frame_HBclass = QtWidgets.QFrame(self.input_param)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_HBclass.sizePolicy().hasHeightForWidth())
self.frame_HBclass.setSizePolicy(sizePolicy)
self.frame_HBclass.setFrameShape(QtWidgets.QFrame.Box)
self.frame_HBclass.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_HBclass.setObjectName("frame_HBclass")
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.frame_HBclass)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.HB_class = QtWidgets.QWidget(self.frame_HBclass)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.HB_class.sizePolicy().hasHeightForWidth())
self.HB_class.setSizePolicy(sizePolicy)
self.HB_class.setObjectName("HB_class")
self.gridLayout_3 = QtWidgets.QGridLayout(self.HB_class)
self.gridLayout_3.setObjectName("gridLayout_3")
self.value_GSI = QtWidgets.QLineEdit(self.HB_class)
self.value_GSI.setObjectName("value_GSI")
self.gridLayout_3.addWidget(self.value_GSI, 3, 1, 1, 1)
self.value_mi = QtWidgets.QLineEdit(self.HB_class)
self.value_mi.setObjectName("value_mi")
self.gridLayout_3.addWidget(self.value_mi, 1, 1, 1, 1)
self.label_Ei = QtWidgets.QLabel(self.HB_class)
self.label_Ei.setObjectName("label_Ei")
self.gridLayout_3.addWidget(self.label_Ei, 5, 0, 1, 1)
self.form_MR = QtWidgets.QFormLayout()
self.form_MR.setLabelAlignment(QtCore.Qt.AlignCenter)
self.form_MR.setObjectName("form_MR")
self.value_MR = QtWidgets.QLineEdit(self.HB_class)
self.value_MR.setObjectName("value_MR")
self.form_MR.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.value_MR)
self.calc_MR = QtWidgets.QCheckBox(self.HB_class)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.calc_MR.sizePolicy().hasHeightForWidth())
self.calc_MR.setSizePolicy(sizePolicy)
self.calc_MR.setText("")
self.calc_MR.setIconSize(QtCore.QSize(16, 16))
self.calc_MR.setChecked(True)
self.calc_MR.setObjectName("calc_MR")
self.form_MR.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.calc_MR)
self.gridLayout_3.addLayout(self.form_MR, 6, 1, 1, 1)
self.value_sci = QtWidgets.QLineEdit(self.HB_class)
self.value_sci.setObjectName("value_sci")
self.gridLayout_3.addWidget(self.value_sci, 0, 1, 1, 1)
self.label_MR = QtWidgets.QLabel(self.HB_class)
self.label_MR.setObjectName("label_MR")
self.gridLayout_3.addWidget(self.label_MR, 6, 0, 1, 1)
self.value_D = QtWidgets.QLineEdit(self.HB_class)
self.value_D.setObjectName("value_D")
self.gridLayout_3.addWidget(self.value_D, 4, 1, 1, 1)
self.form_Ei = QtWidgets.QFormLayout()
self.form_Ei.setLabelAlignment(QtCore.Qt.AlignCenter)
self.form_Ei.setObjectName("form_Ei")
self.value_Ei = QtWidgets.QLineEdit(self.HB_class)
self.value_Ei.setEnabled(False)
self.value_Ei.setObjectName("value_Ei")
self.form_Ei.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.value_Ei)
self.calc_Ei = QtWidgets.QCheckBox(self.HB_class)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.calc_Ei.sizePolicy().hasHeightForWidth())
self.calc_Ei.setSizePolicy(sizePolicy)
self.calc_Ei.setText("")
self.calc_Ei.setIconSize(QtCore.QSize(16, 16))
self.calc_Ei.setObjectName("calc_Ei")
self.form_Ei.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.calc_Ei)
self.gridLayout_3.addLayout(self.form_Ei, 5, 1, 1, 1)
self.label_mi = QtWidgets.QLabel(self.HB_class)
self.label_mi.setObjectName("label_mi")
self.gridLayout_3.addWidget(self.label_mi, 1, 0, 1, 1)
self.label_GSI = QtWidgets.QLabel(self.HB_class)
self.label_GSI.setObjectName("label_GSI")
self.gridLayout_3.addWidget(self.label_GSI, 3, 0, 1, 1)
self.label_sci = QtWidgets.QLabel(self.HB_class)
self.label_sci.setObjectName("label_sci")
self.gridLayout_3.addWidget(self.label_sci, 0, 0, 1, 1)
self.label_D = QtWidgets.QLabel(self.HB_class)
self.label_D.setObjectName("label_D")
self.gridLayout_3.addWidget(self.label_D, 4, 0, 1, 1)
self.selectMi = QtWidgets.QPushButton(self.HB_class)
self.selectMi.setObjectName("selectMi")
self.gridLayout_3.addWidget(self.selectMi, 1, 2, 1, 1)
self.selectSci = QtWidgets.QPushButton(self.HB_class)
self.selectSci.setObjectName("selectSci")
self.gridLayout_3.addWidget(self.selectSci, 0, 2, 1, 1)
self.selectGSI = QtWidgets.QPushButton(self.HB_class)
self.selectGSI.setObjectName("selectGSI")
self.gridLayout_3.addWidget(self.selectGSI, 3, 2, 1, 1)
self.selectD = QtWidgets.QPushButton(self.HB_class)
self.selectD.setObjectName("selectD")
self.gridLayout_3.addWidget(self.selectD, 4, 2, 1, 1)
self.verticalLayout_7.addWidget(self.HB_class)
self.verticalLayout.addWidget(self.frame_HBclass)
self.fail_env = QtWidgets.QLabel(self.input_param)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.fail_env.sizePolicy().hasHeightForWidth())
self.fail_env.setSizePolicy(sizePolicy)
self.fail_env.setWordWrap(True)
self.fail_env.setObjectName("fail_env")
self.verticalLayout.addWidget(self.fail_env, 0, QtCore.Qt.AlignHCenter)
self.frame_5 = QtWidgets.QFrame(self.input_param)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_5.sizePolicy().hasHeightForWidth())
self.frame_5.setSizePolicy(sizePolicy)
self.frame_5.setFrameShape(QtWidgets.QFrame.Box)
self.frame_5.setFrameShadow(QtWidgets.QFrame.Plain)
self.frame_5.setObjectName("frame_5")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_5)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.fenv = QtWidgets.QWidget(self.frame_5)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.fenv.sizePolicy().hasHeightForWidth())
self.fenv.setSizePolicy(sizePolicy)
self.fenv.setObjectName("fenv")
self.formLayout_2 = QtWidgets.QFormLayout(self.fenv)
self.formLayout_2.setObjectName("formLayout_2")
self.label_app = QtWidgets.QLabel(self.fenv)
self.label_app.setObjectName("label_app")
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_app)
self.value_application = QtWidgets.QComboBox(self.fenv)
self.value_application.setObjectName("value_application")
self.value_application.addItem("")
self.value_application.addItem("")
self.value_application.addItem("")
self.value_application.addItem("")
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.value_application)
self.label_gamma = QtWidgets.QLabel(self.fenv)
self.label_gamma.setObjectName("label_gamma")
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_gamma)
self.value_gamma = QtWidgets.QLineEdit(self.fenv)
self.value_gamma.setEnabled(False)
self.value_gamma.setObjectName("value_gamma")
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.value_gamma)
self.label_H = QtWidgets.QLabel(self.fenv)
self.label_H.setObjectName("label_H")
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_H)
self.value_H = QtWidgets.QLineEdit(self.fenv)
self.value_H.setEnabled(False)
self.value_H.setObjectName("value_H")
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.value_H)
self.label_s3max = QtWidgets.QLabel(self.fenv)
self.label_s3max.setObjectName("label_s3max")
self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_s3max)
self.value_s3max = QtWidgets.QLineEdit(self.fenv)
self.value_s3max.setEnabled(False)
self.value_s3max.setObjectName("value_s3max")
self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.value_s3max)
self.horizontalLayout_2.addWidget(self.fenv)
self.verticalLayout.addWidget(self.frame_5)
self.Graph_options = QtWidgets.QLabel(self.input_param)
self.Graph_options.setObjectName("Graph_options")
self.verticalLayout.addWidget(self.Graph_options, 0, QtCore.Qt.AlignHCenter)
self.graph_options = QtWidgets.QFrame(self.input_param)
self.graph_options.setFrameShape(QtWidgets.QFrame.Box)
self.graph_options.setFrameShadow(QtWidgets.QFrame.Plain)
self.graph_options.setObjectName("graph_options")
self.formLayout_3 = QtWidgets.QFormLayout(self.graph_options)
self.formLayout_3.setObjectName("formLayout_3")
self.label_xres = QtWidgets.QLabel(self.graph_options)
self.label_xres.setObjectName("label_xres")
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_xres)
self.show_HB = QtWidgets.QCheckBox(self.graph_options)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.show_HB.sizePolicy().hasHeightForWidth())
self.show_HB.setSizePolicy(sizePolicy)
self.show_HB.setChecked(True)
self.show_HB.setAutoExclusive(False)
self.show_HB.setObjectName("show_HB")
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.show_HB)
self.show_MC = QtWidgets.QCheckBox(self.graph_options)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.show_MC.sizePolicy().hasHeightForWidth())
self.show_MC.setSizePolicy(sizePolicy)
self.show_MC.setObjectName("show_MC")
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.show_MC)
self.value_xres = QtWidgets.QDoubleSpinBox(self.graph_options)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.value_xres.sizePolicy().hasHeightForWidth())
self.value_xres.setSizePolicy(sizePolicy)
self.value_xres.setMinimum(1.0)
# self.value_xres.setStepType(QtWidgets.QAbstractSpinBox.DefaultStepType)
self.value_xres.setProperty("value", 5.0)
self.value_xres.setObjectName("value_xres")
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.value_xres)
self.show_grid = QtWidgets.QCheckBox(self.graph_options)
self.show_grid.setChecked(True)
self.show_grid.setObjectName("show_grid")
self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.show_grid)
self.verticalLayout.addWidget(self.graph_options)
self.gridLayout.addWidget(self.input_param, 0, 0, 1, 1)
self.verticalLayout_3.addWidget(self.main_grid)
Rocpy.setCentralWidget(self.main_window)
self.menu_bar = QtWidgets.QMenuBar(Rocpy)
self.menu_bar.setGeometry(QtCore.QRect(0, 0, 1376, 26))
self.menu_bar.setObjectName("menu_bar")
self.menu_Import = QtWidgets.QMenu(self.menu_bar)
self.menu_Import.setObjectName("menu_Import")
self.menu_Export = QtWidgets.QMenu(self.menu_bar)
self.menu_Export.setObjectName("menu_Export")
self.menuExport_data_2 = QtWidgets.QMenu(self.menu_Export)
self.menuExport_data_2.setObjectName("menuExport_data_2")
Rocpy.setMenuBar(self.menu_bar)
self.actionExport_graph = QtWidgets.QAction(Rocpy)
self.actionExport_graph.setObjectName("actionExport_graph")
self.actionGraph_options = QtWidgets.QAction(Rocpy)
self.actionGraph_options.setObjectName("actionGraph_options")
self.actionExport_to_excel = QtWidgets.QAction(Rocpy)
self.actionExport_to_excel.setObjectName("actionExport_to_excel")
self.actionExport_to_excel_2 = QtWidgets.QAction(Rocpy)
self.actionExport_to_excel_2.setObjectName("actionExport_to_excel_2")
self.actionExport_as_textable = QtWidgets.QAction(Rocpy)
self.actionExport_as_textable.setObjectName("actionExport_as_textable")
self.actionExport_as_CSV = QtWidgets.QAction(Rocpy)
self.actionExport_as_CSV.setObjectName("actionExport_as_CSV")
self.actionExport_as_XLS = QtWidgets.QAction(Rocpy)
self.actionExport_as_XLS.setObjectName("actionExport_as_XLS")
self.actionExport_as_TexTable = QtWidgets.QAction(Rocpy)
self.actionExport_as_TexTable.setObjectName("actionExport_as_TexTable")
self.actionImport_Lab_data = QtWidgets.QAction(Rocpy)
self.actionImport_Lab_data.setObjectName("actionImport_Lab_data")
self.actionImport_HB_data = QtWidgets.QAction(Rocpy)
self.actionImport_HB_data.setObjectName("actionImport_HB_data")
self.menu_Import.addAction(self.actionImport_Lab_data)
self.menu_Import.addAction(self.actionImport_HB_data)
self.menuExport_data_2.addAction(self.actionExport_as_CSV)
self.menuExport_data_2.addAction(self.actionExport_as_XLS)
self.menuExport_data_2.addAction(self.actionExport_as_TexTable)
self.menu_Export.addSeparator()
self.menu_Export.addAction(self.menuExport_data_2.menuAction())
self.menu_bar.addAction(self.menu_Import.menuAction())
self.menu_bar.addAction(self.menu_Export.menuAction())
self.retranslateUi(Rocpy)
self.Plot.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(Rocpy)
def retranslateUi(self, Rocpy):
_translate = QtCore.QCoreApplication.translate
Rocpy.setWindowTitle(_translate("Rocpy", "Rocpy"))
self.Plot.setTabText(self.Plot.indexOf(self.PlotPage1), _translate("Rocpy", "H-B criterion"))
self.Plot.setTabText(self.Plot.indexOf(self.PlotPage2), _translate("Rocpy", "M-C circle"))
self.HB_crit.setText(_translate("Rocpy", "H-B criterion"))
self.label_mb.setText(_translate("Rocpy", "mb:"))
self.label_s.setText(_translate("Rocpy", "s:"))
self.label_a.setText(_translate("Rocpy", "a:"))
self.value_mb.setText(_translate("Rocpy", "TextLabel"))
self.value_s.setText(_translate("Rocpy", "TextLabel"))
self.value_a.setText(_translate("Rocpy", "TextLabel"))
self.MC_fit_2.setText(_translate("Rocpy", "M-C fit"))
self.label_c.setText(_translate("Rocpy", "c:"))
self.value_c.setText(_translate("Rocpy", "TextLabel"))
self.label_phi.setText(_translate("Rocpy", "phi:"))
self.value_phi.setText(_translate("Rocpy", "TextLabel"))
self.value_s1max.setText(_translate("Rocpy", "TextLabel"))
self.label_s1max.setText(_translate("Rocpy", "s_1max:"))
self.label_deviatoric.setText(_translate("Rocpy", "Deviatoric"))
self.value_deviatoric.setText(_translate("Rocpy", "TextLabel"))
self.label_fail.setText(_translate("Rocpy", "Failure values"))
self.value_fail.setText(_translate("Rocpy", "TextLabel"))
self.rock_mass.setText(_translate("Rocpy", "Rock mass parameters"))
self.label_st.setText(_translate("Rocpy", "s_t:"))
self.label_su.setText(_translate("Rocpy", "s_u:"))
self.label_scm.setText(_translate("Rocpy", "s_cm:"))
self.value_st.setText(_translate("Rocpy", "TextLabel"))
self.value_su.setText(_translate("Rocpy", "TextLabel"))
self.value_scm.setText(_translate("Rocpy", "TextLabel"))
self.label_erm.setText(_translate("Rocpy", "E_rm:"))
self.value_erm.setText(_translate("Rocpy", "TextLabel"))
self.HB_class_2.setText(_translate("Rocpy", "H-B classification"))
self.label_Ei.setText(_translate("Rocpy", "E_i"))
self.label_MR.setText(_translate("Rocpy", "MR"))
self.label_mi.setText(_translate("Rocpy", "mi"))
self.label_GSI.setText(_translate("Rocpy", "GSI"))
self.label_sci.setText(_translate("Rocpy", "s_ci"))
self.label_D.setText(_translate("Rocpy", "D"))
self.selectMi.setText(_translate("Rocpy", "Select"))
self.selectSci.setText(_translate("Rocpy", "Select"))
self.selectGSI.setText(_translate("Rocpy", "Select"))
self.selectD.setText(_translate("Rocpy", "Select"))
self.fail_env.setText(_translate("Rocpy", "Failure envelope"))
self.label_app.setText(_translate("Rocpy", "application"))
self.value_application.setItemText(0, _translate("Rocpy", "general"))
self.value_application.setItemText(1, _translate("Rocpy", "tunnel"))
self.value_application.setItemText(2, _translate("Rocpy", "slope"))
self.value_application.setItemText(3, _translate("Rocpy", "custom"))
self.label_gamma.setText(_translate("Rocpy", "gamma"))
self.label_H.setText(_translate("Rocpy", "H"))
self.label_s3max.setText(_translate("Rocpy", "s_3max"))
self.Graph_options.setText(_translate("Rocpy", "Graph options"))
self.label_xres.setText(_translate("Rocpy", "x_res"))
self.show_HB.setText(_translate("Rocpy", "Show H-B criterion"))
self.show_MC.setText(_translate("Rocpy", "Show M-C criterion"))
self.show_grid.setText(_translate("Rocpy", "Show grid"))
self.menu_Import.setTitle(_translate("Rocpy", "Import"))
self.menu_Export.setTitle(_translate("Rocpy", "Export"))
self.menuExport_data_2.setTitle(_translate("Rocpy", "Export data"))
self.actionExport_graph.setText(_translate("Rocpy", "Export graph"))
self.actionGraph_options.setText(_translate("Rocpy", "Graph options"))
self.actionExport_to_excel.setText(_translate("Rocpy", "Export to excel"))
self.actionExport_to_excel_2.setText(_translate("Rocpy", "Export to excel"))
self.actionExport_as_textable.setText(_translate("Rocpy", "Export as textable"))
self.actionExport_as_CSV.setText(_translate("Rocpy", "Export as CSV"))
self.actionExport_as_XLS.setText(_translate("Rocpy", "Export as XLS"))
self.actionExport_as_TexTable.setText(_translate("Rocpy", "Export as TexTable"))
self.actionImport_Lab_data.setText(_translate("Rocpy", "Import Lab data"))
self.actionImport_HB_data.setText(_translate("Rocpy", "Import HB data"))