개정판 3b44b5a7
issue #1254 : Diameter Estimation (Line Sizing) - Liquid
Change-Id: I50873f466ef00c22273c4ebe8da86cf4b1af94bd
HYTOS/HYTOS/DiameterEstimation_Vapor_UI.py | ||
---|---|---|
13 | 13 |
class Ui_Dialog(object): |
14 | 14 |
def setupUi(self, Dialog): |
15 | 15 |
Dialog.setObjectName("Dialog") |
16 |
Dialog.resize(564, 544)
|
|
16 |
Dialog.resize(656, 488)
|
|
17 | 17 |
font = QtGui.QFont() |
18 | 18 |
font.setFamily("굴림") |
19 | 19 |
Dialog.setFont(font) |
... | ... | |
24 | 24 |
self.gridLayout.setObjectName("gridLayout") |
25 | 25 |
self.verticalLayout = QtWidgets.QVBoxLayout() |
26 | 26 |
self.verticalLayout.setObjectName("verticalLayout") |
27 |
self.horizontalLayout_8 = QtWidgets.QHBoxLayout() |
|
28 |
self.horizontalLayout_8.setObjectName("horizontalLayout_8") |
|
27 | 29 |
self.groupBox_4 = QtWidgets.QGroupBox(Dialog) |
30 |
self.groupBox_4.setMinimumSize(QtCore.QSize(300, 150)) |
|
31 |
self.groupBox_4.setMaximumSize(QtCore.QSize(300, 150)) |
|
28 | 32 |
font = QtGui.QFont() |
29 | 33 |
font.setFamily("굴림") |
30 | 34 |
font.setBold(True) |
... | ... | |
33 | 37 |
self.groupBox_4.setObjectName("groupBox_4") |
34 | 38 |
self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_4) |
35 | 39 |
self.gridLayout_5.setObjectName("gridLayout_5") |
36 |
self.horizontalLayout_7 = QtWidgets.QHBoxLayout() |
|
37 |
self.horizontalLayout_7.setObjectName("horizontalLayout_7") |
|
38 | 40 |
self.label_6 = QtWidgets.QLabel(self.groupBox_4) |
39 |
self.label_6.setMinimumSize(QtCore.QSize(210, 0))
|
|
40 |
self.label_6.setMaximumSize(QtCore.QSize(210, 16777215))
|
|
41 |
self.label_6.setMinimumSize(QtCore.QSize(0, 0)) |
|
42 |
self.label_6.setMaximumSize(QtCore.QSize(16777215, 16777215))
|
|
41 | 43 |
font = QtGui.QFont() |
42 | 44 |
font.setBold(False) |
43 | 45 |
font.setWeight(50) |
44 | 46 |
self.label_6.setFont(font) |
45 | 47 |
self.label_6.setObjectName("label_6") |
46 |
self.horizontalLayout_7.addWidget(self.label_6)
|
|
47 |
self.label_5 = QtWidgets.QLabel(self.groupBox_4)
|
|
48 |
self.label_5.setMinimumSize(QtCore.QSize(150, 0))
|
|
49 |
self.label_5.setMaximumSize(QtCore.QSize(150, 16777215))
|
|
48 |
self.gridLayout_5.addWidget(self.label_6, 0, 0, 1, 1)
|
|
49 |
self.label_Outlet_Pressure_Unit = QtWidgets.QLabel(self.groupBox_4)
|
|
50 |
self.label_Outlet_Pressure_Unit.setMinimumSize(QtCore.QSize(98, 0))
|
|
51 |
self.label_Outlet_Pressure_Unit.setMaximumSize(QtCore.QSize(98, 16777215))
|
|
50 | 52 |
font = QtGui.QFont() |
51 | 53 |
font.setBold(False) |
52 | 54 |
font.setWeight(50) |
53 |
self.label_5.setFont(font) |
|
54 |
self.label_5.setObjectName("label_5") |
|
55 |
self.horizontalLayout_7.addWidget(self.label_5) |
|
56 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
57 |
self.horizontalLayout_7.addItem(spacerItem) |
|
58 |
self.gridLayout_5.addLayout(self.horizontalLayout_7, 0, 0, 1, 1) |
|
59 |
self.horizontalLayout_6 = QtWidgets.QHBoxLayout() |
|
60 |
self.horizontalLayout_6.setObjectName("horizontalLayout_6") |
|
61 |
self.lineEdit_Inlet_Pressure = QtWidgets.QLineEdit(self.groupBox_4) |
|
62 |
self.lineEdit_Inlet_Pressure.setMinimumSize(QtCore.QSize(100, 0)) |
|
63 |
self.lineEdit_Inlet_Pressure.setMaximumSize(QtCore.QSize(100, 16777215)) |
|
55 |
self.label_Outlet_Pressure_Unit.setFont(font) |
|
56 |
self.label_Outlet_Pressure_Unit.setAlignment(QtCore.Qt.AlignCenter) |
|
57 |
self.label_Outlet_Pressure_Unit.setObjectName("label_Outlet_Pressure_Unit") |
|
58 |
self.gridLayout_5.addWidget(self.label_Outlet_Pressure_Unit, 3, 2, 1, 1) |
|
59 |
self.label_5 = QtWidgets.QLabel(self.groupBox_4) |
|
60 |
self.label_5.setMinimumSize(QtCore.QSize(0, 0)) |
|
61 |
self.label_5.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
64 | 62 |
font = QtGui.QFont() |
65 | 63 |
font.setBold(False) |
66 | 64 |
font.setWeight(50) |
67 |
self.lineEdit_Inlet_Pressure.setFont(font) |
|
68 |
self.lineEdit_Inlet_Pressure.setAlignment(QtCore.Qt.AlignCenter) |
|
69 |
self.lineEdit_Inlet_Pressure.setReadOnly(False) |
|
70 |
self.lineEdit_Inlet_Pressure.setObjectName("lineEdit_Inlet_Pressure") |
|
71 |
self.horizontalLayout_6.addWidget(self.lineEdit_Inlet_Pressure) |
|
72 |
self.label_Inlet_Pressure_Unit = QtWidgets.QLabel(self.groupBox_4) |
|
73 |
self.label_Inlet_Pressure_Unit.setMinimumSize(QtCore.QSize(80, 0)) |
|
74 |
self.label_Inlet_Pressure_Unit.setMaximumSize(QtCore.QSize(80, 16777215)) |
|
65 |
self.label_5.setFont(font) |
|
66 |
self.label_5.setObjectName("label_5") |
|
67 |
self.gridLayout_5.addWidget(self.label_5, 0, 2, 1, 1) |
|
68 |
self.pushButton_Apply = QtWidgets.QPushButton(self.groupBox_4) |
|
75 | 69 |
font = QtGui.QFont() |
76 | 70 |
font.setBold(False) |
77 | 71 |
font.setWeight(50) |
78 |
self.label_Inlet_Pressure_Unit.setFont(font)
|
|
79 |
self.label_Inlet_Pressure_Unit.setObjectName("label_Inlet_Pressure_Unit")
|
|
80 |
self.horizontalLayout_6.addWidget(self.label_Inlet_Pressure_Unit)
|
|
72 |
self.pushButton_Apply.setFont(font)
|
|
73 |
self.pushButton_Apply.setObjectName("pushButton_Apply")
|
|
74 |
self.gridLayout_5.addWidget(self.pushButton_Apply, 2, 1, 1, 1)
|
|
81 | 75 |
self.lineEdit_Outlet_Pressure = QtWidgets.QLineEdit(self.groupBox_4) |
82 | 76 |
self.lineEdit_Outlet_Pressure.setMinimumSize(QtCore.QSize(100, 0)) |
83 | 77 |
self.lineEdit_Outlet_Pressure.setMaximumSize(QtCore.QSize(100, 16777215)) |
... | ... | |
88 | 82 |
self.lineEdit_Outlet_Pressure.setAlignment(QtCore.Qt.AlignCenter) |
89 | 83 |
self.lineEdit_Outlet_Pressure.setReadOnly(False) |
90 | 84 |
self.lineEdit_Outlet_Pressure.setObjectName("lineEdit_Outlet_Pressure") |
91 |
self.horizontalLayout_6.addWidget(self.lineEdit_Outlet_Pressure) |
|
92 |
self.label_Outlet_Pressure_Unit = QtWidgets.QLabel(self.groupBox_4) |
|
93 |
self.label_Outlet_Pressure_Unit.setMinimumSize(QtCore.QSize(80, 0)) |
|
94 |
self.label_Outlet_Pressure_Unit.setMaximumSize(QtCore.QSize(80, 16777215)) |
|
85 |
self.gridLayout_5.addWidget(self.lineEdit_Outlet_Pressure, 2, 2, 1, 1) |
|
86 |
self.label_7 = QtWidgets.QLabel(self.groupBox_4) |
|
87 |
self.label_7.setObjectName("label_7") |
|
88 |
self.gridLayout_5.addWidget(self.label_7, 1, 0, 1, 3) |
|
89 |
self.lineEdit_Inlet_Pressure = QtWidgets.QLineEdit(self.groupBox_4) |
|
90 |
self.lineEdit_Inlet_Pressure.setMinimumSize(QtCore.QSize(100, 0)) |
|
91 |
self.lineEdit_Inlet_Pressure.setMaximumSize(QtCore.QSize(100, 16777215)) |
|
95 | 92 |
font = QtGui.QFont() |
96 | 93 |
font.setBold(False) |
97 | 94 |
font.setWeight(50) |
98 |
self.label_Outlet_Pressure_Unit.setFont(font) |
|
99 |
self.label_Outlet_Pressure_Unit.setObjectName("label_Outlet_Pressure_Unit") |
|
100 |
self.horizontalLayout_6.addWidget(self.label_Outlet_Pressure_Unit) |
|
101 |
self.pushButton_Apply = QtWidgets.QPushButton(self.groupBox_4) |
|
95 |
self.lineEdit_Inlet_Pressure.setFont(font) |
|
96 |
self.lineEdit_Inlet_Pressure.setAlignment(QtCore.Qt.AlignCenter) |
|
97 |
self.lineEdit_Inlet_Pressure.setReadOnly(False) |
|
98 |
self.lineEdit_Inlet_Pressure.setObjectName("lineEdit_Inlet_Pressure") |
|
99 |
self.gridLayout_5.addWidget(self.lineEdit_Inlet_Pressure, 2, 0, 1, 1) |
|
100 |
self.label_Inlet_Pressure_Unit = QtWidgets.QLabel(self.groupBox_4) |
|
101 |
self.label_Inlet_Pressure_Unit.setMinimumSize(QtCore.QSize(98, 0)) |
|
102 |
self.label_Inlet_Pressure_Unit.setMaximumSize(QtCore.QSize(98, 16777215)) |
|
102 | 103 |
font = QtGui.QFont() |
103 | 104 |
font.setBold(False) |
104 | 105 |
font.setWeight(50) |
105 |
self.pushButton_Apply.setFont(font) |
|
106 |
self.pushButton_Apply.setObjectName("pushButton_Apply") |
|
107 |
self.horizontalLayout_6.addWidget(self.pushButton_Apply) |
|
108 |
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
109 |
self.horizontalLayout_6.addItem(spacerItem1) |
|
110 |
self.gridLayout_5.addLayout(self.horizontalLayout_6, 2, 0, 1, 1) |
|
111 |
self.label_7 = QtWidgets.QLabel(self.groupBox_4) |
|
112 |
self.label_7.setObjectName("label_7") |
|
113 |
self.gridLayout_5.addWidget(self.label_7, 1, 0, 1, 1) |
|
114 |
self.verticalLayout.addWidget(self.groupBox_4) |
|
106 |
self.label_Inlet_Pressure_Unit.setFont(font) |
|
107 |
self.label_Inlet_Pressure_Unit.setAlignment(QtCore.Qt.AlignCenter) |
|
108 |
self.label_Inlet_Pressure_Unit.setObjectName("label_Inlet_Pressure_Unit") |
|
109 |
self.gridLayout_5.addWidget(self.label_Inlet_Pressure_Unit, 3, 0, 1, 1) |
|
110 |
self.horizontalLayout_8.addWidget(self.groupBox_4) |
|
115 | 111 |
self.groupBox_3 = QtWidgets.QGroupBox(Dialog) |
116 | 112 |
font = QtGui.QFont() |
117 | 113 |
font.setFamily("굴림") |
... | ... | |
121 | 117 |
self.groupBox_3.setObjectName("groupBox_3") |
122 | 118 |
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3) |
123 | 119 |
self.gridLayout_4.setObjectName("gridLayout_4") |
120 |
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
|
121 |
self.gridLayout_4.addItem(spacerItem, 0, 0, 1, 1) |
|
124 | 122 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
125 | 123 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
126 | 124 |
self.label_3 = QtWidgets.QLabel(self.groupBox_3) |
... | ... | |
150 | 148 |
self.label_Flowrate_Volume_Unit.setFont(font) |
151 | 149 |
self.label_Flowrate_Volume_Unit.setObjectName("label_Flowrate_Volume_Unit") |
152 | 150 |
self.horizontalLayout_4.addWidget(self.label_Flowrate_Volume_Unit) |
153 |
self.gridLayout_4.addLayout(self.horizontalLayout_4, 1, 0, 1, 1)
|
|
151 |
self.gridLayout_4.addLayout(self.horizontalLayout_4, 2, 0, 1, 1)
|
|
154 | 152 |
self.horizontalLayout_5 = QtWidgets.QHBoxLayout() |
155 | 153 |
self.horizontalLayout_5.setObjectName("horizontalLayout_5") |
156 | 154 |
self.label_4 = QtWidgets.QLabel(self.groupBox_3) |
... | ... | |
180 | 178 |
self.label_Density_Unit.setFont(font) |
181 | 179 |
self.label_Density_Unit.setObjectName("label_Density_Unit") |
182 | 180 |
self.horizontalLayout_5.addWidget(self.label_Density_Unit) |
183 |
self.gridLayout_4.addLayout(self.horizontalLayout_5, 0, 0, 1, 1) |
|
184 |
self.verticalLayout.addWidget(self.groupBox_3) |
|
181 |
self.gridLayout_4.addLayout(self.horizontalLayout_5, 1, 0, 1, 1) |
|
182 |
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
|
183 |
self.gridLayout_4.addItem(spacerItem1, 3, 0, 1, 1) |
|
184 |
self.horizontalLayout_8.addWidget(self.groupBox_3) |
|
185 |
self.verticalLayout.addLayout(self.horizontalLayout_8) |
|
185 | 186 |
self.groupBox = QtWidgets.QGroupBox(Dialog) |
186 | 187 |
font = QtGui.QFont() |
187 | 188 |
font.setFamily("굴림") |
... | ... | |
295 | 296 |
_translate = QtCore.QCoreApplication.translate |
296 | 297 |
Dialog.setWindowTitle(_translate("Dialog", "Pipe Diameter Estimation")) |
297 | 298 |
self.groupBox_4.setTitle(_translate("Dialog", "Reference Pressure")) |
298 |
self.label_6.setText(_translate("Dialog", " Inlet P.")) |
|
299 |
self.label_5.setText(_translate("Dialog", "Outlet P.")) |
|
300 |
self.label_Inlet_Pressure_Unit.setText(_translate("Dialog", "-")) |
|
299 |
self.label_6.setText(_translate("Dialog", " Inlet P.")) |
|
301 | 300 |
self.label_Outlet_Pressure_Unit.setText(_translate("Dialog", "-")) |
301 |
self.label_5.setText(_translate("Dialog", " Outlet P.")) |
|
302 | 302 |
self.pushButton_Apply.setText(_translate("Dialog", "Apply")) |
303 | 303 |
self.label_7.setText(_translate("Dialog", "<html><head/><body><p><img src=\":/images/S_Out.png\"/></p></body></html>")) |
304 |
self.label_Inlet_Pressure_Unit.setText(_translate("Dialog", "-")) |
|
304 | 305 |
self.groupBox_3.setTitle(_translate("Dialog", "Calculated Property")) |
305 | 306 |
self.label_3.setText(_translate("Dialog", "- Normal Volume Flowrate")) |
306 | 307 |
self.label_Flowrate_Volume_Unit.setText(_translate("Dialog", "-")) |
내보내기 Unified diff