프로젝트

일반

사용자정보

개정판 4ca2299d

ID4ca2299dd9fd889b592ea97cd2a5cd2143e95d44
상위 e534f39d
하위 54021391

김연진이(가) 5년 이상 전에 추가함

issue #1054 : 스트림 데이타 입력 : Roughness 추가

Change-Id: I42eed74cb7f38842715c05601748c32b8f846418

차이점 보기:

HYTOS/HYTOS/AppDocData.py
921 921

  
922 922
        return res
923 923

  
924
    def getRoughness(self):
925
        res = []
926
        try:
927
            # Creates or opens a file called mydb with a SQLite3 DB
928
            dbPath = os.path.join(self.getCurrentProject().getDbFilePath(), AppDocData.DATABASE)
929
            db = sqlite3.connect(dbPath)
930
            db.row_factory = sqlite3.Row
931
            # Get a cursor object
932
            cursor = db.cursor()
933

  
934
            sql = "select UID, Material, Meter, Inch, Feet, Milimeter from Roughness" 
935
            cursor.execute(sql)
936
            rows = cursor.fetchall()
937
            for row in rows:                
938
                res.append((row[0], row[1], row[2], row[3], row[4], row[5]))
939
        # Catch the exception
940
        except Exception as ex:
941
            # Roll back any change if something goes wrong
942
            db.rollback()
943
            print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
944
        finally:
945
            # Close the db connection
946
            db.close()
947

  
948
        return res
949

  
950

  
951

  
952

  
953

  
924 954
    def getNominalDiameter(self):
925 955
        
926 956
        res = []
HYTOS/HYTOS/HMBTable.py
10 10
'''
11 11
class HMBData:
12 12
    def __init__(self, uid=None):
13
        self._uid = None
14
        self._components_uid = None        
15
        self._stream_no = None
16
        self._phase_type = None
17
        self.isDeleted = False
13
        self._uid                       = None
14
        self._components_uid            = None        
15
        self._stream_no                 = None
16
        self._phase_type                = None
17
        self._flowrate_mass             = None
18
        self._flowrate_volume           = None
19
        self._density                   = None
20
        self._viscosity                 = None
21
        self._temperature               = None
22
        self._molecular_weight          = None
23
        self._specific_heat_ratio       = None
24
        self._compress_factor           = None
25
        self._nominal_pipe_size         = None
26
        self._inside_pipe_size          = None
27
        self._schedul_no                = None
28
        self._straight_length           = None
29
        self._equivalent_length         = None
30
        self._roughness                 = None
31
        self._limitation_velocity       = None
32
        self._limitation_pressure_drop  = None
33
        self._velocity                  = None
34
        self._reynolds                  = None
35
        self._friction_factor           = None
36
        self._pressure_drop             = None
37
        self._pressure_drop_friction    = None
38
        self._pressure_drop_static      = None
39
        self._pressure_pipe_end_point   = None
40
        self._power                     = None
41
        self.isDeleted                  = False
18 42

  
19 43
    '''
20 44
        @author humkyung
......
73 97
    def phase_type(self, value):
74 98
        self._phase_type = value
75 99
    
100
    @property
101
    def flowrate_mass(self):
102
        return self._flowrate_mass
103

  
104
    @flowrate_mass.setter
105
    def flowrate_mass(self, value):
106
        self._flowrate_mass = value
107

  
108
    @property
109
    def flowrate_volume(self):
110
        return self._flowrate_volume
111

  
112
    @flowrate_volume.setter
113
    def flowrate_volume(self, value):
114
        self._flowrate_volume = value
115

  
116
    @property
117
    def density(self):
118
        return self._density
119

  
120
    @density.setter
121
    def density(self, value):
122
        self._density = value
123

  
124
    @property
125
    def viscosity(self):
126
        return self._viscosity
127

  
128
    @viscosity.setter
129
    def viscosity(self, value):
130
        self._viscosity = value
131

  
132
    @property
133
    def temperature(self):
134
        return self._temperature
135

  
136
    @temperature.setter
137
    def temperature(self, value):
138
        self._temperature = value
139

  
140
    @property
141
    def molecular_weight(self):
142
        return self._molecular_weight
143

  
144
    @molecular_weight.setter
145
    def molecular_weight(self, value):
146
        self._molecular_weight = value
147

  
148
    @property
149
    def specific_heat_ratio(self):
150
        return self._specific_heat_ratio
151

  
152
    @specific_heat_ratio.setter
153
    def specific_heat_ratio(self, value):
154
        self._specific_heat_ratio = value
155

  
156
    @property
157
    def compress_factor(self):
158
        return self._compress_factor
159

  
160
    @compress_factor.setter
161
    def compress_factor(self, value):
162
        self._compress_factor = value
163

  
164
    @property
165
    def nominal_pipe_size(self):
166
        return self._nominal_pipe_size
167

  
168
    @nominal_pipe_size.setter
169
    def nominal_pipe_size(self, value):
170
        self._nominal_pipe_size = value
171

  
172
    @property
173
    def inside_pipe_size(self):
174
        return self._inside_pipe_size
175

  
176
    @inside_pipe_size.setter
177
    def inside_pipe_size(self, value):
178
        self._inside_pipe_size = value
179

  
180
    @property
181
    def schedul_no(self):
182
        return self._schedul_no
183

  
184
    @schedul_no.setter
185
    def schedul_no(self, value):
186
        self._schedul_no = value
187

  
188
    @property
189
    def straight_length(self):
190
        return self._straight_length
191

  
192
    @straight_length.setter
193
    def straight_length(self, value):
194
        self._straight_length = value
195

  
196
    @property
197
    def equivalent_length(self):
198
        return self._equivalent_length
199

  
200
    @equivalent_length.setter
201
    def equivalent_length(self, value):
202
        self._equivalent_length = value
203

  
204
    @property
205
    def roughness(self):
206
        return self._roughness
207

  
208
    @roughness.setter
209
    def roughness(self, value):
210
        self._roughness = value
211

  
212
    @property
213
    def limitation_velocity(self):
214
        return self._limitation_velocity
215

  
216
    @limitation_velocity.setter
217
    def limitation_velocity(self, value):
218
        self._limitation_velocity = value
219

  
220
    @property
221
    def limitation_pressure_drop(self):
222
        return self._limitation_pressure_drop
223

  
224
    @limitation_pressure_drop.setter
225
    def limitation_pressure_drop(self, value):
226
        self._limitation_pressure_drop = value
227

  
228
    @property
229
    def velocity(self):
230
        return self._velocity
231

  
232
    @velocity.setter
233
    def velocity(self, value):
234
        self._velocity = value
235

  
236
    @property
237
    def reynolds(self):
238
        return self._reynolds
239

  
240
    @reynolds.setter
241
    def reynolds(self, value):
242
        self._reynolds = value
243

  
244
    @property
245
    def friction_factor(self):
246
        return self._friction_factor
247

  
248
    @friction_factor.setter
249
    def friction_factor(self, value):
250
        self._friction_factor = value
251

  
252
    @property
253
    def pressure_drop(self):
254
        return self._pressure_drop
255

  
256
    @pressure_drop.setter
257
    def pressure_drop(self, value):
258
        self._pressure_drop = value
259

  
260
    @property
261
    def pressure_drop_friction(self):
262
        return self._pressure_drop_friction
263

  
264
    @pressure_drop_friction.setter
265
    def pressure_drop_friction(self, value):
266
        self._pressure_drop_friction = value
267

  
268
    @property
269
    def pressure_drop_static(self):
270
        return self._pressure_drop_static
271

  
272
    @pressure_drop_static.setter
273
    def pressure_drop_static(self, value):
274
        self._pressure_drop_static = value
275

  
276
    @property
277
    def pressure_pipe_end_point(self):
278
        return self._pressure_pipe_end_point
279

  
280
    @pressure_pipe_end_point.setter
281
    def pressure_pipe_end_point(self, value):
282
        self._pressure_pipe_end_point = value
283

  
284
    @property
285
    def power(self):
286
        return self._power
287

  
288
    @power.setter
289
    def power(self, value):
290
        self._power = value
291

  
76 292

  
77 293
    def fromRow(row):
78 294
        hmb = HMBData()
79 295
        hmb._uid = row[0]
80 296
        hmb._components_uid = row[1]
81 297
        hmb._stream_no = row[2]
82
        
298
        hmb._phase_type = row[3]
299
        hmb._flowrate_mass = row[4]
300
        hmb._flowrate_volume = row[5]
301
        hmb._density = row[6]
302
        hmb._viscosity = row[7]
303
        hmb._temperature = row[8]
304
        hmb._molecular_weight = row[9]
305
        hmb._specific_heat_ratio = row[10]
306
        hmb._compress_factor = row[11]
307
        hmb._nominal_pipe_size = row[12]
308
        hmb._inside_pipe_size = row[13]
309
        hmb._schedul_no = row[14]
310
        hmb._straight_length = row[15]
311
        hmb._equivalent_length = row[16]
312
        hmb._roughness = row[17]
313
        hmb._limitation_velocity = row[18]
314
        hmb._limitation_pressure_drop = row[19]
315
        hmb._velocity = row[20]
316
        hmb._reynolds = row[21]
317
        hmb._friction_factor = row[22]
318
        hmb._pressure_drop = row[23]
319
        hmb._pressure_drop_friction = row[24]
320
        hmb._pressure_drop_static = row[25]
321
        hmb._pressure_pipe_end_point = row[26]
322
        hmb._power = row[27]
323

  
324

  
325

  
326

  
327

  
328

  
83 329

  
84 330
        return hmb
85 331
class HMBTable:
......
115 361
                    break
116 362

  
117 363

  
118
    def insert(self, components_uid, stream_no):
364
    def add(self, components_uid, stream_no):
119 365
        import uuid
120 366

  
121 367
        hmb = HMBData()
......
126 372

  
127 373
        self.append(hmb)
128 374

  
129
    def updateByUID(self, components_uid, phase_type):
375
    def updateByUID(self, components_uid, values):
130 376
        
131 377
        for hmb in self._hmbs:
132 378
            if hmb.components_uid == components_uid:
133
                hmb.phase_type = phase_type
379
                if 'Phase_Type' in values:
380
                    hmb.phase_type = values['Phase_Type']
381
                if 'Flowrate_Mass' in values:
382
                    hmb.flowrate_mass = values['Flowrate_Mass']
383
                if 'Flowrate_Volume' in values:
384
                    hmb.flowrate_volume = values['Flowrate_Volume']
385
                if 'Density' in values:                    
386
                    hmb.density = values['Density']
387
                if 'Viscosity' in values:
388
                    hmb.viscosity = values['Viscosity']
389
                if 'Temperature' in values:                    
390
                    hmb.temperature = values['Temperature']
391
                if 'Molecular_Weight' in values:                    
392
                    hmb.molecular_weight = values['Molecular_Weight']
393
                if 'Specific_Heat_Ratio' in values:
394
                    hmb.specific_heat_ratio = values['Specific_Heat_Ratio']
395
                if 'Compress_Factor' in values:
396
                    hmb.compress_factor = values['Compress_Factor']
397
                if 'Nominal_Pipe_Size' in values:
398
                    hmb.nominal_pipe_size = values['Nominal_Pipe_Size']
399
                if 'Inside_Pipe_Size' in values:
400
                    hmb.inside_pipe_size = values['Inside_Pipe_Size']
401
                if 'Schedul_No' in values:
402
                    hmb.schedul_no = values['Schedul_No']
403
                if 'Straight_Length' in values:
404
                    hmb.straight_length = values['Straight_Length']
405
                if 'Equivalent_Length' in values:
406
                    hmb.equivalent_length = values['Equivalent_Length']
407
                if 'Roughness' in values:
408
                    hmb.roughness = values['Roughness']
409
                if 'Limitation_Velocity' in values:
410
                    hmb.limitation_velocity = values['Limitation_Velocity']
411
                if 'Limitation_Pressure_Drop' in values:
412
                    hmb.limitation_pressure_drop = values['Limitation_Pressure_Drop']
413
                if 'Velocity' in values:
414
                    hmb.velocity = values['Velocity']
415
                if 'Reynolds' in values:
416
                    hmb.reynolds = values['Reynolds']
417
                if 'Friction_Factor' in values:
418
                    hmb.friction_factor = values['Friction_Factor']
419
                if 'Pressure_Drop' in values:
420
                    hmb.pressure_drop = values['Pressure_Drop']
421
                if 'Pressure_Drop_Friction' in values:
422
                    hmb.pressure_drop_friction = values['Pressure_Drop_Friction']
423
                if 'Pressure_Drop_Static' in values:
424
                    hmb.pressure_drop_static = values['Pressure_Drop_Static']
425
                if 'Pressure_Pipe_End_Point' in values:                    
426
                    hmb.pressure_pipe_end_point = values['Pressure_Pipe_End_Point']
427
                if 'Power' in values:
428
                    hmb.power = values['Power']
134 429

  
135 430
                break
136 431
    '''
......
155 450
                sql = """select h.UID
156 451
                              , h.Components_UID
157 452
                              , h.Stream_No
453
                              , h.Phase_Type
454
                              , h.Flowrate_Mass
455
                              , h.Flowrate_Volume
456
                              , h.Density
457
                              , h.Viscosity
458
                              , h.Temperature
459
                              , h.Molecular_Weight
460
                              , h.Specific_Heat_Ratio
461
                              , h.Compress_Factor
462
                              , h.Nominal_Pipe_Size
463
                              , h.Inside_Pipe_Size
464
                              , h.Schedul_No
465
                              , h.Straight_Length
466
                              , h.Equivalent_Length
467
                              , h.Roughness
468
                              , h.Limitation_Velocity
469
                              , h.Limitation_Pressure_Drop
470
                              , h.Velocity
471
                              , h.Reynolds
472
                              , h.Friction_Factor
473
                              , h.Pressure_Drop
474
                              , h.Pressure_Drop_Friction
475
                              , h.Pressure_Drop_Static
476
                              , h.Pressure_Pipe_End_Point
477
                              , h.Power
158 478
                           from HMB h
159 479
                           left join Components c
160 480
                             on h.Components_UID = c.UID
......
200 520

  
201 521
            for data in self._hmbs:
202 522
                if data.isDeleted == False:
203
                    cols = ['UID', 'Components_UID', 'Stream_No']
204
                    values = ['?', '?', '?']
205
                    param = (str(data.uid), str(data.components_uid), data.stream_no)
523
                    cols = ['UID', 'Components_UID', 'Stream_No', 'Phase_Type', 'Flowrate_Mass', 'Flowrate_Volume', 'Density', 'Viscosity',
524
                            'Temperature', 'Molecular_Weight', 'Specific_Heat_Ratio', 'Compress_Factor', 'Nominal_Pipe_Size', 'Inside_Pipe_Size',
525
                            'Schedul_No', 'Straight_Length', 'Equivalent_Length', 'Roughness', 'Limitation_Velocity', 'Limitation_Pressure_Drop',
526
                            'Velocity', 'Reynolds', 'Friction_Factor', 'Pressure_Drop', 'Pressure_Drop_Friction', 'Pressure_Drop_Static', 'Pressure_Pipe_End_Point', 'Power']
527
                    values = ['?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?']
528
                    param = (str(data.uid), str(data.components_uid), data.stream_no, data.phase_type, data.flowrate_mass, data.flowrate_volume, data.density,
529
                             data.viscosity, data.temperature, data.molecular_weight, data.specific_heat_ratio, data.compress_factor, data.nominal_pipe_size,
530
                             data.inside_pipe_size, data.schedul_no, data.straight_length, data.equivalent_length, data.roughness, data.limitation_velocity,
531
                             data.limitation_pressure_drop, data.velocity, data.reynolds, data.friction_factor, data.pressure_drop, data.pressure_drop_friction,
532
                             data.pressure_drop_static, data.pressure_pipe_end_point, data.power)
206 533

  
207 534
                    sql = 'insert or replace into HMB({}) values({})'.format(','.join(cols), ','.join(values))                  
208 535
                    cursor.execute(sql, param)
HYTOS/HYTOS/MainWindow.py
830 830
        try:
831 831
            count = len(self.actionLine.tag.streamline._vertices)
832 832
            if count > 1:                            
833
                self.insert_HMB()
833
                self.add_HMB()
834 834
                self.load_HMB()
835 835

  
836 836
        finally:
837 837
            self.actionLine.tag.reset()
838 838

  
839
    def insert_HMB(self):
839
    def add_HMB(self):
840 840
        from HMBTable import HMBTable
841 841
        import uuid
842 842

  
......
845 845
            components_uid = self.actionLine.tag.streamline.uid
846 846
            stream_no = self.getNextStreamNo(drawing)
847 847

  
848
            drawing.hmbTable.insert(components_uid, stream_no)
849

  
850

  
851
            #hmb = HMBTable.new_data() 
852
            #hmb.uid = str(uuid.uuid4())        
853
            #hmb.components_uid = self.actionLine.tag.streamline.uid
854
            #hmb.stream_no = self.getNextStreamNo(drawing)        
855
            #drawing.hmbTable.append(hmb)
848
            drawing.hmbTable.add(components_uid, stream_no)
856 849

  
857 850
    def getNextStreamNo(self, drawing):
858 851

  
......
884 877
                self.tableWidgetHMB.setItem(1, columnCount, self.setTableWidgetItemProperties(hmb.components_uid, Qt.AlignHCenter | Qt.AlignVCenter))
885 878
                self.tableWidgetHMB.setItem(2, columnCount, self.setTableWidgetItemProperties(hmb.stream_no, Qt.AlignHCenter | Qt.AlignVCenter))
886 879
                self.tableWidgetHMB.setItem(3, columnCount, self.setTableWidgetItemProperties(hmb.phase_type, Qt.AlignHCenter | Qt.AlignVCenter))
880
                self.tableWidgetHMB.setItem(4, columnCount, self.setTableWidgetItemProperties(hmb.flowrate_mass, Qt.AlignHCenter | Qt.AlignVCenter))
881
                self.tableWidgetHMB.setItem(5, columnCount, self.setTableWidgetItemProperties(hmb.flowrate_volume, Qt.AlignHCenter | Qt.AlignVCenter))
882
                self.tableWidgetHMB.setItem(6, columnCount, self.setTableWidgetItemProperties(hmb.density, Qt.AlignHCenter | Qt.AlignVCenter))
883
                self.tableWidgetHMB.setItem(7, columnCount, self.setTableWidgetItemProperties(hmb.viscosity, Qt.AlignHCenter | Qt.AlignVCenter))
884
                self.tableWidgetHMB.setItem(8, columnCount, self.setTableWidgetItemProperties(hmb.temperature, Qt.AlignHCenter | Qt.AlignVCenter))
885
                self.tableWidgetHMB.setItem(9, columnCount, self.setTableWidgetItemProperties(hmb.molecular_weight, Qt.AlignHCenter | Qt.AlignVCenter))
886
                self.tableWidgetHMB.setItem(10, columnCount, self.setTableWidgetItemProperties(hmb.specific_heat_ratio, Qt.AlignHCenter | Qt.AlignVCenter))
887
                self.tableWidgetHMB.setItem(11, columnCount, self.setTableWidgetItemProperties(hmb.compress_factor, Qt.AlignHCenter | Qt.AlignVCenter))
888
                self.tableWidgetHMB.setItem(12, columnCount, self.setTableWidgetItemProperties(hmb.nominal_pipe_size, Qt.AlignHCenter | Qt.AlignVCenter))
889
                self.tableWidgetHMB.setItem(13, columnCount, self.setTableWidgetItemProperties(hmb.inside_pipe_size, Qt.AlignHCenter | Qt.AlignVCenter))
890
                self.tableWidgetHMB.setItem(14, columnCount, self.setTableWidgetItemProperties(hmb.schedul_no, Qt.AlignHCenter | Qt.AlignVCenter))
891
                self.tableWidgetHMB.setItem(15, columnCount, self.setTableWidgetItemProperties(hmb.straight_length, Qt.AlignHCenter | Qt.AlignVCenter))
892
                self.tableWidgetHMB.setItem(16, columnCount, self.setTableWidgetItemProperties(hmb.equivalent_length, Qt.AlignHCenter | Qt.AlignVCenter))
893
                self.tableWidgetHMB.setItem(17, columnCount, self.setTableWidgetItemProperties(hmb.roughness, Qt.AlignHCenter | Qt.AlignVCenter))
894
                self.tableWidgetHMB.setItem(18, columnCount, self.setTableWidgetItemProperties(hmb.limitation_velocity, Qt.AlignHCenter | Qt.AlignVCenter))
895
                self.tableWidgetHMB.setItem(19, columnCount, self.setTableWidgetItemProperties(hmb.limitation_pressure_drop, Qt.AlignHCenter | Qt.AlignVCenter))
896
                self.tableWidgetHMB.setItem(20, columnCount, self.setTableWidgetItemProperties(hmb.velocity, Qt.AlignHCenter | Qt.AlignVCenter))
897
                self.tableWidgetHMB.setItem(21, columnCount, self.setTableWidgetItemProperties(hmb.reynolds, Qt.AlignHCenter | Qt.AlignVCenter))
898
                self.tableWidgetHMB.setItem(22, columnCount, self.setTableWidgetItemProperties(hmb.friction_factor, Qt.AlignHCenter | Qt.AlignVCenter))
899
                self.tableWidgetHMB.setItem(23, columnCount, self.setTableWidgetItemProperties(hmb.pressure_drop, Qt.AlignHCenter | Qt.AlignVCenter))
900
                self.tableWidgetHMB.setItem(24, columnCount, self.setTableWidgetItemProperties(hmb.pressure_drop_friction, Qt.AlignHCenter | Qt.AlignVCenter))
901
                self.tableWidgetHMB.setItem(25, columnCount, self.setTableWidgetItemProperties(hmb.pressure_drop_static, Qt.AlignHCenter | Qt.AlignVCenter))
902
                self.tableWidgetHMB.setItem(26, columnCount, self.setTableWidgetItemProperties(hmb.pressure_pipe_end_point, Qt.AlignHCenter | Qt.AlignVCenter))
903
                self.tableWidgetHMB.setItem(27, columnCount, self.setTableWidgetItemProperties(hmb.power, Qt.AlignHCenter | Qt.AlignVCenter))
904

  
887 905

  
888 906

  
889 907
    '''
......
1099 1117
        return itemList
1100 1118

  
1101 1119
    def setTableWidgetItemProperties(self, name, alignment, color = None):
1120
        if name is None:
1121
            name = ''
1102 1122

  
1103 1123
        item = QTableWidgetItem(str(name))
1104 1124
        item.setTextAlignment(alignment)
HYTOS/HYTOS/PhaseTypeDialog.py
25 25
        self.initPhaseType()
26 26
        
27 27
    def initPhaseType(self):
28
        self.ui.comboBoxPhaseType.clear()
28
        self.ui.comboBox_PhaseType.clear()
29 29

  
30
        self.ui.comboBoxPhaseType.addItem('Vapor (Compressible)', 'Vapor')
31
        self.ui.comboBoxPhaseType.addItem('Liquid (Incompressible)', 'Liquid')
32
        self.ui.comboBoxPhaseType.addItem('Mixed (Vapor + Liquid)', 'Mixed')
30
        self.ui.comboBox_PhaseType.addItem('Vapor (Compressible)', 'Vapor')
31
        self.ui.comboBox_PhaseType.addItem('Liquid (Incompressible)', 'Liquid')
32
        self.ui.comboBox_PhaseType.addItem('Mixed (Vapor + Liquid)', 'Mixed')
33 33
        
34
        self.ui.comboBoxPhaseType.setCurrentIndex(0)
34
        self.ui.comboBox_PhaseType.setCurrentIndex(0)
35 35
        
36 36
    def showDialog(self, item):
37
        self.components_uid = item.uid
37 38
        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint)
39

  
40
        self.load_data()
38 41
        self.exec_()
39 42

  
40 43
        return self.selectedPhaseType
41 44

  
45
    def load_data(self):
46
        from AppDocData import AppDocData
47

  
48
        drawing = AppDocData.instance().activeDrawing
49
        if drawing:    
50
            for hmb in drawing.hmbTable._hmbs:
51
                if hmb.components_uid == self.components_uid:
52
                    if hmb.phase_type == 'Vapor':
53
                        self.ui.lineEdit_CurrentType.setText('Vapor (Compressible)')
54
                    elif hmb.phase_type == 'Liquid':
55
                        self.ui.lineEdit_CurrentType.setText('Liquid (Incompressible)')
56
                    elif hmb.phase_type == 'Mixed':
57
                        self.ui.lineEdit_CurrentType.setText('Mixed (Vapor + Liquid)')
58
                    break
59

  
42 60
    def accept(self):
43
        index = self.ui.comboBoxPhaseType.currentIndex()
44
        phaseType = self.ui.comboBoxPhaseType.itemData(index)
61
        index = self.ui.comboBox_PhaseType.currentIndex()
62
        phaseType = self.ui.comboBox_PhaseType.itemData(index)
45 63
        self.selectedPhaseType = phaseType
46 64
        QDialog.accept(self)
47 65

  
HYTOS/HYTOS/PhaseType_UI.py
42 42
        self.StreamNo.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
43 43
        self.StreamNo.setObjectName("StreamNo")
44 44
        self.horizontalLayout.addWidget(self.StreamNo)
45
        self.lineEditSteamNo = QtWidgets.QLineEdit(PhaseTypeDialog)
46
        self.lineEditSteamNo.setEnabled(False)
45
        self.lineEdit_CurrentType = QtWidgets.QLineEdit(PhaseTypeDialog)
46
        self.lineEdit_CurrentType.setEnabled(False)
47 47
        font = QtGui.QFont()
48 48
        font.setBold(False)
49 49
        font.setWeight(50)
50
        self.lineEditSteamNo.setFont(font)
51
        self.lineEditSteamNo.setText("")
52
        self.lineEditSteamNo.setAlignment(QtCore.Qt.AlignCenter)
53
        self.lineEditSteamNo.setObjectName("lineEditSteamNo")
54
        self.horizontalLayout.addWidget(self.lineEditSteamNo)
50
        self.lineEdit_CurrentType.setFont(font)
51
        self.lineEdit_CurrentType.setText("")
52
        self.lineEdit_CurrentType.setAlignment(QtCore.Qt.AlignCenter)
53
        self.lineEdit_CurrentType.setObjectName("lineEdit_CurrentType")
54
        self.horizontalLayout.addWidget(self.lineEdit_CurrentType)
55 55
        self.verticalLayout_2.addLayout(self.horizontalLayout)
56 56
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
57 57
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
......
67 67
        self.PhaseType.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
68 68
        self.PhaseType.setObjectName("PhaseType")
69 69
        self.horizontalLayout_2.addWidget(self.PhaseType)
70
        self.comboBoxPhaseType = QtWidgets.QComboBox(PhaseTypeDialog)
70
        self.comboBox_PhaseType = QtWidgets.QComboBox(PhaseTypeDialog)
71 71
        font = QtGui.QFont()
72 72
        font.setBold(False)
73 73
        font.setWeight(50)
74
        self.comboBoxPhaseType.setFont(font)
75
        self.comboBoxPhaseType.setObjectName("comboBoxPhaseType")
76
        self.horizontalLayout_2.addWidget(self.comboBoxPhaseType)
74
        self.comboBox_PhaseType.setFont(font)
75
        self.comboBox_PhaseType.setObjectName("comboBox_PhaseType")
76
        self.horizontalLayout_2.addWidget(self.comboBox_PhaseType)
77 77
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
78 78
        self.verticalLayout.addLayout(self.verticalLayout_2)
79 79
        self.errorLabel = QtWidgets.QLabel(PhaseTypeDialog)
HYTOS/HYTOS/Phase_LiquidDialog.py
21 21

  
22 22
        self.ui = Phase_Liquid_UI.Ui_LiquidDialog()
23 23
        self.ui.setupUi(self)
24
        self.result = False
24 25

  
25
        self.ui.pushButton_Fitting.clicked.connect(self.show_FittingMethodDialog)
26
        #self.ui.pushButton_Roughness.setVisible(False)
26 27
    
28
        self.ui.radioButton_Flowrate_Mass.clicked.connect(self.clickedEvent)
29
        self.ui.radioButton_Flowrate_Volume.clicked.connect(self.clickedEvent)
30
        self.ui.radioButton_Equivalent_Length_Input.clicked.connect(self.clickedEvent)
31
        self.ui.radioButton_Equivalent_Length_Cal.clicked.connect(self.clickedEvent)
32
        self.ui.comboBox_Roughness.currentIndexChanged.connect(self.onRoughnessChanged)
33
        self.ui.pushButton_Roughness.clicked.connect(self.roughnessClickedEvent)
34
        self.ui.pushButton_Fitting.clicked.connect(self.show_FittingMethodDialog)
35
        
27 36
        self.initUnits()
28 37
        self.initNominalDiameter()
29 38
        self.initSchedule()
39
        self.initRoughness()
40

  
41
    def onRoughnessChanged(self, index):
42
        value = self.ui.comboBox_Roughness.itemData(index)        
43
        self.ui.lineEdit_Roughness.setText('{}'.format(value))
44

  
45
    def roughnessClickedEvent(self):
46
        from RoughnessDialog import QRoughnessDialog
47

  
48
        dialog = QRoughnessDialog()
49
        selectedRoughness = dialog.showDialog()
30 50

  
31 51
    def show_FittingMethodDialog(self):
32 52
        from FittingMethodDialog import QFittingMethodDialog
......
41 61
            elif selectedFittingMethod == '2K':
42 62
                self.show_2KDialog()
43 63

  
64
    def clickedEvent(self):
65
        if self.sender() == self.ui.radioButton_Flowrate_Mass:            
66
            self.ui.lineEdit_Flowrate_Mass.setEnabled(True)
67
            self.ui.lineEdit_Flowrate_Volume.setEnabled(False)
68
        elif self.sender() == self.ui.radioButton_Flowrate_Volume:
69
            self.ui.lineEdit_Flowrate_Mass.setEnabled(False)
70
            self.ui.lineEdit_Flowrate_Volume.setEnabled(True)
71
        elif self.sender() == self.ui.radioButton_Equivalent_Length_Input:
72
            self.ui.lineEdit_Equivalent_Length_Input.setEnabled(True)
73
            self.ui.pushButton_Fitting.setEnabled(False)
74
        elif self.sender() == self.ui.radioButton_Equivalent_Length_Cal:
75
            self.ui.lineEdit_Equivalent_Length_Input.setEnabled(False)            
76
            self.ui.pushButton_Fitting.setEnabled(True)
77

  
44 78
    def show_EquivalentLengthDialog(self):
45 79
        from Fitting_EquivalentLengthDialog import QFitting_EquivalentLengthDialog
46 80

  
......
59 93
        dialog = QFitting_2KDialog()
60 94
        dialog.showDialog(self)
61 95

  
62

  
63 96
    def show_VaporDialog(self):
64 97
        from Phase_VaporDialog import QPhase_VaporDialog
65 98
        
......
95 128
    def initNominalDiameter(self):
96 129
        from AppDocData import AppDocData
97 130

  
98
        self.ui.comboBox_NominalDiameter.clear()
131
        self.ui.comboBox_Nominal_Pipe_Size.clear()
99 132

  
100 133
        nominalDiameterList = AppDocData.instance().getNominalDiameter()
101 134
        for nominalDiameter in nominalDiameterList:
102 135
            if self.ui.label_Nominal_Pipe_Size_Unit.text() == 'mm':
103
                self.ui.comboBox_NominalDiameter.addItem(str(nominalDiameter[1]), nominalDiameter[0])    
136
                self.ui.comboBox_Nominal_Pipe_Size.addItem(str(nominalDiameter[1]), nominalDiameter[0])    
104 137
            else:
105
                self.ui.comboBox_NominalDiameter.addItem(str(nominalDiameter[2]), nominalDiameter[0])    
106
        self.ui.comboBox_NominalDiameter.setCurrentIndex(-1)
138
                self.ui.comboBox_Nominal_Pipe_Size.addItem(str(nominalDiameter[2]), nominalDiameter[0])    
139
        self.ui.comboBox_Nominal_Pipe_Size.setCurrentIndex(-1)
107 140
        
108 141
    def initSchedule(self):
109
        self.ui.comboBox_Schedule.clear()
110

  
111
        self.ui.comboBox_Schedule.addItem('5S', '5S')
112
        self.ui.comboBox_Schedule.addItem('10S', '10S')
113
        self.ui.comboBox_Schedule.addItem('10', '10')
114
        self.ui.comboBox_Schedule.addItem('20', '20')
115
        self.ui.comboBox_Schedule.addItem('30', '30')
116
        self.ui.comboBox_Schedule.addItem('40S', '40S')
117
        self.ui.comboBox_Schedule.addItem('Std', 'Std')
118
        self.ui.comboBox_Schedule.addItem('40', '40')
119
        self.ui.comboBox_Schedule.addItem('60', '60')
120
        self.ui.comboBox_Schedule.addItem('80S', '80S')
121
        self.ui.comboBox_Schedule.addItem('XS', 'XS')
122
        self.ui.comboBox_Schedule.addItem('80', '80')
123
        self.ui.comboBox_Schedule.addItem('100', '100')
124
        self.ui.comboBox_Schedule.addItem('120', '120')
125
        self.ui.comboBox_Schedule.addItem('140', '140')
126
        self.ui.comboBox_Schedule.addItem('160', '160')
127
        self.ui.comboBox_Schedule.addItem('XXS', 'XXS')
128
        self.ui.comboBox_Schedule.addItem('User Sch.', 'User Sch.')
129

  
130
        self.ui.comboBox_Schedule.setCurrentIndex(-1)
142
        self.ui.comboBox_Schedul_No.clear()
143

  
144
        self.ui.comboBox_Schedul_No.addItem('5S', '5S')
145
        self.ui.comboBox_Schedul_No.addItem('10S', '10S')
146
        self.ui.comboBox_Schedul_No.addItem('10', '10')
147
        self.ui.comboBox_Schedul_No.addItem('20', '20')
148
        self.ui.comboBox_Schedul_No.addItem('30', '30')
149
        self.ui.comboBox_Schedul_No.addItem('40S', '40S')
150
        self.ui.comboBox_Schedul_No.addItem('Std', 'Std')
151
        self.ui.comboBox_Schedul_No.addItem('40', '40')
152
        self.ui.comboBox_Schedul_No.addItem('60', '60')
153
        self.ui.comboBox_Schedul_No.addItem('80S', '80S')
154
        self.ui.comboBox_Schedul_No.addItem('XS', 'XS')
155
        self.ui.comboBox_Schedul_No.addItem('80', '80')
156
        self.ui.comboBox_Schedul_No.addItem('100', '100')
157
        self.ui.comboBox_Schedul_No.addItem('120', '120')
158
        self.ui.comboBox_Schedul_No.addItem('140', '140')
159
        self.ui.comboBox_Schedul_No.addItem('160', '160')
160
        self.ui.comboBox_Schedul_No.addItem('XXS', 'XXS')
161
        self.ui.comboBox_Schedul_No.addItem('User Sch.', 'User Sch.')
162

  
163
        self.ui.comboBox_Schedul_No.setCurrentIndex(-1)
164

  
165

  
166
    def initRoughness(self):
167
        from AppDocData import AppDocData
168

  
169
        self.ui.comboBox_Roughness.clear()
170

  
171
        roughnessList = AppDocData.instance().getRoughness()
172
        for roughness in roughnessList:
173
            if self.ui.label_Roughness_Unit.text() == 'm':
174
                self.ui.comboBox_Roughness.addItem(roughness[1], roughness[2])  
175
            elif self.ui.label_Roughness_Unit.text() == 'in':
176
                self.ui.comboBox_Roughness.addItem(roughness[1], roughness[3])                    
177
            elif self.ui.label_Roughness_Unit.text() == 'ft':
178
                self.ui.comboBox_Roughness.addItem(roughness[1], roughness[4])                    
179
            elif self.ui.label_Roughness_Unit.text() == 'mm':
180
                self.ui.comboBox_Roughness.addItem(roughness[1], roughness[5])                    
181

  
182
        if self.ui.comboBox_Roughness.count() > 0:            
183
            self.ui.comboBox_Roughness.setCurrentIndex(0)
184

  
185

  
131 186
    def showDialog(self, item):
187
        self.components_uid = item.uid
132 188
        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint)
189

  
190
        self.load_data()
133 191
        self.exec_()
134 192

  
193
        return self.result
135 194

  
136
    def accept(self):
137
        
195
    def load_data(self):
196
        from AppDocData import AppDocData
197

  
198
        drawing = AppDocData.instance().activeDrawing
199
        if drawing:    
200
            for hmb in drawing.hmbTable._hmbs:
201
                if hmb.components_uid == self.components_uid:
202

  
203
                    self.ui.lineEdit_Flowrate_Mass.setText(str(hmb.flowrate_mass))
204
                    break
205

  
206

  
207
    def update_HMB(self):
208
        from AppDocData import AppDocData
209

  
210
        drawing = AppDocData.instance().activeDrawing
211
        if drawing:        
212
            values = {}
213
            values['Phase_Type'] = 'Liquid'
214

  
215
            if self.ui.radioButton_Flowrate_Mass.isChecked():
216
                values['Flowrate_Mass'] = self.ui.lineEdit_Flowrate_Mass.text()
217
            elif self.ui.radioButton_Flowrate_Volume.isChecked():
218
                values['Flowrate_Volume'] = self.ui.lineEdit_Flowrate_Volume.text()
219
            
220
            values['Density'] = self.ui.lineEdit_Density.text()
221
            values['Viscosity'] = self.ui.lineEdit_Viscosity.text()
222
            values['Limitation_Velocity'] = self.ui.lineEdit_Limitation_Velocity.text()
223
            values['Limitation_Pressure_Drop'] = self.ui.lineEdit_Limitation_Pressure_Drop.text()
224
            values['Nominal_Pipe_Size'] = self.ui.comboBox_Nominal_Pipe_Size.currentText()
225
            values['Inside_Pipe_Size'] = self.ui.lineEdit_Inside_Pipe_Size.text()
226
            values['Schedul_No'] = self.ui.comboBox_Schedul_No.currentText()
227
            values['Roughness'] = self.ui.lineEdit_Roughness.text()
228
            values['Straight_Length'] = self.ui.lineEdit_Straight_Length.text()
229

  
230
            if self.ui.radioButton_Equivalent_Length_Input.isChecked():
231
                values['Equivalent_Length'] = self.ui.lineEdit_Equivalent_Length_Input.text()
232
            elif self.ui.radioButton_Flowrate_Volume.isChecked():
233
                values['Equivalent_Length'] = self.ui.lineEdit_Equivalent_Length_Cal.text()
234

  
235
            drawing.hmbTable.updateByUID(self.components_uid, values)
236

  
237

  
238
    def accept(self):                
239
        self.update_HMB()
240

  
241
        self.result = True
138 242
        QDialog.accept(self)
139 243

  
140 244
    def reject(self):
245

  
246
        self.result = False
141 247
        QDialog.reject(self)
142 248

  
143 249
    if __name__ == '__main__':
HYTOS/HYTOS/Phase_Liquid_UI.py
13 13
class Ui_LiquidDialog(object):
14 14
    def setupUi(self, LiquidDialog):
15 15
        LiquidDialog.setObjectName("LiquidDialog")
16
        LiquidDialog.resize(678, 537)
16
        LiquidDialog.resize(680, 535)
17 17
        font = QtGui.QFont()
18 18
        font.setFamily("맑은 고딕")
19 19
        LiquidDialog.setFont(font)
......
48 48
        self.groupBox_3.setObjectName("groupBox_3")
49 49
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_3)
50 50
        self.verticalLayout_5.setObjectName("verticalLayout_5")
51
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
52
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
53
        self.label_11 = QtWidgets.QLabel(self.groupBox_3)
54
        self.label_11.setMinimumSize(QtCore.QSize(129, 0))
55
        self.label_11.setMaximumSize(QtCore.QSize(129, 16777215))
56
        font = QtGui.QFont()
57
        font.setBold(False)
58
        font.setWeight(50)
59
        self.label_11.setFont(font)
60
        self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
61
        self.label_11.setObjectName("label_11")
62
        self.horizontalLayout_14.addWidget(self.label_11)
63
        self.radioButton_Flowrate_Mass = QtWidgets.QRadioButton(self.groupBox_3)
64
        self.radioButton_Flowrate_Mass.setMinimumSize(QtCore.QSize(0, 0))
65
        self.radioButton_Flowrate_Mass.setMaximumSize(QtCore.QSize(16777215, 16777215))
66
        self.radioButton_Flowrate_Mass.setSizeIncrement(QtCore.QSize(0, 0))
67
        font = QtGui.QFont()
68
        font.setBold(False)
69
        font.setWeight(50)
70
        self.radioButton_Flowrate_Mass.setFont(font)
71
        self.radioButton_Flowrate_Mass.setChecked(True)
72
        self.radioButton_Flowrate_Mass.setObjectName("radioButton_Flowrate_Mass")
73
        self.horizontalLayout_14.addWidget(self.radioButton_Flowrate_Mass)
74
        self.radioButton_Flowrate_Volume = QtWidgets.QRadioButton(self.groupBox_3)
75
        self.radioButton_Flowrate_Volume.setMinimumSize(QtCore.QSize(0, 0))
76
        font = QtGui.QFont()
77
        font.setBold(False)
78
        font.setWeight(50)
79
        self.radioButton_Flowrate_Volume.setFont(font)
80
        self.radioButton_Flowrate_Volume.setLayoutDirection(QtCore.Qt.LeftToRight)
81
        self.radioButton_Flowrate_Volume.setObjectName("radioButton_Flowrate_Volume")
82
        self.horizontalLayout_14.addWidget(self.radioButton_Flowrate_Volume)
83
        self.verticalLayout_5.addLayout(self.horizontalLayout_14)
51 84
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
52 85
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
53
        self.label_14 = QtWidgets.QLabel(self.groupBox_3)
54
        self.label_14.setMinimumSize(QtCore.QSize(130, 0))
86
        self.label = QtWidgets.QLabel(self.groupBox_3)
87
        self.label.setMinimumSize(QtCore.QSize(129, 0))
88
        self.label.setMaximumSize(QtCore.QSize(129, 16777215))
55 89
        font = QtGui.QFont()
56 90
        font.setBold(False)
57 91
        font.setWeight(50)
58
        self.label_14.setFont(font)
59
        self.label_14.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
60
        self.label_14.setObjectName("label_14")
61
        self.horizontalLayout_8.addWidget(self.label_14)
62
        self.lineEdit_4 = QtWidgets.QLineEdit(self.groupBox_3)
63
        self.lineEdit_4.setMinimumSize(QtCore.QSize(80, 0))
64
        self.lineEdit_4.setMaximumSize(QtCore.QSize(80, 16777215))
92
        self.label.setFont(font)
93
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
94
        self.label.setObjectName("label")
95
        self.horizontalLayout_8.addWidget(self.label)
96
        self.lineEdit_Flowrate_Mass = QtWidgets.QLineEdit(self.groupBox_3)
97
        self.lineEdit_Flowrate_Mass.setMinimumSize(QtCore.QSize(80, 0))
98
        self.lineEdit_Flowrate_Mass.setMaximumSize(QtCore.QSize(80, 16777215))
65 99
        font = QtGui.QFont()
66 100
        font.setBold(False)
67 101
        font.setWeight(50)
68
        self.lineEdit_4.setFont(font)
69
        self.lineEdit_4.setObjectName("lineEdit_4")
70
        self.horizontalLayout_8.addWidget(self.lineEdit_4)
102
        self.lineEdit_Flowrate_Mass.setFont(font)
103
        self.lineEdit_Flowrate_Mass.setObjectName("lineEdit_Flowrate_Mass")
104
        self.horizontalLayout_8.addWidget(self.lineEdit_Flowrate_Mass)
71 105
        self.label_Flowrate_Mass_Unit = QtWidgets.QLabel(self.groupBox_3)
72 106
        font = QtGui.QFont()
73 107
        font.setBold(False)
......
78 112
        self.verticalLayout_5.addLayout(self.horizontalLayout_8)
79 113
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
80 114
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
81
        self.label_16 = QtWidgets.QLabel(self.groupBox_3)
82
        self.label_16.setMinimumSize(QtCore.QSize(130, 0))
115
        self.label_2 = QtWidgets.QLabel(self.groupBox_3)
116
        self.label_2.setMinimumSize(QtCore.QSize(129, 0))
117
        self.label_2.setMaximumSize(QtCore.QSize(129, 16777215))
83 118
        font = QtGui.QFont()
84 119
        font.setBold(False)
85 120
        font.setWeight(50)
86
        self.label_16.setFont(font)
87
        self.label_16.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
88
        self.label_16.setObjectName("label_16")
89
        self.horizontalLayout_10.addWidget(self.label_16)
90
        self.lineEdit_5 = QtWidgets.QLineEdit(self.groupBox_3)
91
        self.lineEdit_5.setMinimumSize(QtCore.QSize(80, 0))
92
        self.lineEdit_5.setMaximumSize(QtCore.QSize(80, 16777215))
121
        self.label_2.setFont(font)
122
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
123
        self.label_2.setObjectName("label_2")
124
        self.horizontalLayout_10.addWidget(self.label_2)
125
        self.lineEdit_Flowrate_Volume = QtWidgets.QLineEdit(self.groupBox_3)
126
        self.lineEdit_Flowrate_Volume.setEnabled(False)
127
        self.lineEdit_Flowrate_Volume.setMinimumSize(QtCore.QSize(80, 0))
128
        self.lineEdit_Flowrate_Volume.setMaximumSize(QtCore.QSize(80, 16777215))
93 129
        font = QtGui.QFont()
94 130
        font.setBold(False)
95 131
        font.setWeight(50)
96
        self.lineEdit_5.setFont(font)
97
        self.lineEdit_5.setObjectName("lineEdit_5")
98
        self.horizontalLayout_10.addWidget(self.lineEdit_5)
132
        self.lineEdit_Flowrate_Volume.setFont(font)
133
        self.lineEdit_Flowrate_Volume.setObjectName("lineEdit_Flowrate_Volume")
134
        self.horizontalLayout_10.addWidget(self.lineEdit_Flowrate_Volume)
99 135
        self.label_Flowrate_Volume_Unit = QtWidgets.QLabel(self.groupBox_3)
100 136
        font = QtGui.QFont()
101 137
        font.setBold(False)
......
107 143
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
108 144
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
109 145
        self.label_18 = QtWidgets.QLabel(self.groupBox_3)
110
        self.label_18.setMinimumSize(QtCore.QSize(130, 0))
146
        self.label_18.setMinimumSize(QtCore.QSize(129, 0))
147
        self.label_18.setMaximumSize(QtCore.QSize(129, 16777215))
111 148
        font = QtGui.QFont()
112 149
        font.setBold(False)
113 150
        font.setWeight(50)
......
115 152
        self.label_18.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
116 153
        self.label_18.setObjectName("label_18")
117 154
        self.horizontalLayout_11.addWidget(self.label_18)
118
        self.lineEdit_6 = QtWidgets.QLineEdit(self.groupBox_3)
119
        self.lineEdit_6.setMinimumSize(QtCore.QSize(80, 0))
120
        self.lineEdit_6.setMaximumSize(QtCore.QSize(80, 16777215))
155
        self.lineEdit_Density = QtWidgets.QLineEdit(self.groupBox_3)
156
        self.lineEdit_Density.setMinimumSize(QtCore.QSize(80, 0))
157
        self.lineEdit_Density.setMaximumSize(QtCore.QSize(80, 16777215))
121 158
        font = QtGui.QFont()
122 159
        font.setBold(False)
123 160
        font.setWeight(50)
124
        self.lineEdit_6.setFont(font)
125
        self.lineEdit_6.setObjectName("lineEdit_6")
126
        self.horizontalLayout_11.addWidget(self.lineEdit_6)
161
        self.lineEdit_Density.setFont(font)
162
        self.lineEdit_Density.setObjectName("lineEdit_Density")
163
        self.horizontalLayout_11.addWidget(self.lineEdit_Density)
127 164
        self.label_Density_Unit = QtWidgets.QLabel(self.groupBox_3)
128 165
        font = QtGui.QFont()
129 166
        font.setBold(False)
......
135 172
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
136 173
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
137 174
        self.label_20 = QtWidgets.QLabel(self.groupBox_3)
138
        self.label_20.setMinimumSize(QtCore.QSize(130, 0))
175
        self.label_20.setMinimumSize(QtCore.QSize(129, 0))
176
        self.label_20.setMaximumSize(QtCore.QSize(129, 16777215))
139 177
        font = QtGui.QFont()
140 178
        font.setBold(False)
141 179
        font.setWeight(50)
......
143 181
        self.label_20.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
144 182
        self.label_20.setObjectName("label_20")
145 183
        self.horizontalLayout_12.addWidget(self.label_20)
146
        self.lineEdit_7 = QtWidgets.QLineEdit(self.groupBox_3)
147
        self.lineEdit_7.setMinimumSize(QtCore.QSize(80, 0))
148
        self.lineEdit_7.setMaximumSize(QtCore.QSize(80, 16777215))
184
        self.lineEdit_Viscosity = QtWidgets.QLineEdit(self.groupBox_3)
185
        self.lineEdit_Viscosity.setMinimumSize(QtCore.QSize(80, 0))
186
        self.lineEdit_Viscosity.setMaximumSize(QtCore.QSize(80, 16777215))
149 187
        font = QtGui.QFont()
150 188
        font.setBold(False)
151 189
        font.setWeight(50)
152
        self.lineEdit_7.setFont(font)
153
        self.lineEdit_7.setObjectName("lineEdit_7")
154
        self.horizontalLayout_12.addWidget(self.lineEdit_7)
190
        self.lineEdit_Viscosity.setFont(font)
191
        self.lineEdit_Viscosity.setObjectName("lineEdit_Viscosity")
192
        self.horizontalLayout_12.addWidget(self.lineEdit_Viscosity)
155 193
        self.label_Viscosity_Unit = QtWidgets.QLabel(self.groupBox_3)
156 194
        font = QtGui.QFont()
157 195
        font.setBold(False)
......
174 212
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
175 213
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
176 214
        self.label_4 = QtWidgets.QLabel(self.groupBox_2)
177
        self.label_4.setMinimumSize(QtCore.QSize(130, 0))
215
        self.label_4.setMinimumSize(QtCore.QSize(129, 0))
216
        self.label_4.setMaximumSize(QtCore.QSize(129, 16777215))
178 217
        font = QtGui.QFont()
179 218
        font.setBold(False)
180 219
        font.setWeight(50)
......
182 221
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
183 222
        self.label_4.setObjectName("label_4")
184 223
        self.horizontalLayout_4.addWidget(self.label_4)
185
        self.lineEdit = QtWidgets.QLineEdit(self.groupBox_2)
186
        self.lineEdit.setMinimumSize(QtCore.QSize(80, 0))
187
        self.lineEdit.setMaximumSize(QtCore.QSize(80, 16777215))
224
        self.lineEdit_Limitation_Velocity = QtWidgets.QLineEdit(self.groupBox_2)
225
        self.lineEdit_Limitation_Velocity.setMinimumSize(QtCore.QSize(80, 0))
226
        self.lineEdit_Limitation_Velocity.setMaximumSize(QtCore.QSize(80, 16777215))
188 227
        font = QtGui.QFont()
189 228
        font.setBold(False)
190 229
        font.setWeight(50)
191
        self.lineEdit.setFont(font)
192
        self.lineEdit.setObjectName("lineEdit")
193
        self.horizontalLayout_4.addWidget(self.lineEdit)
230
        self.lineEdit_Limitation_Velocity.setFont(font)
231
        self.lineEdit_Limitation_Velocity.setObjectName("lineEdit_Limitation_Velocity")
232
        self.horizontalLayout_4.addWidget(self.lineEdit_Limitation_Velocity)
194 233
        self.label_Velocity_Unit = QtWidgets.QLabel(self.groupBox_2)
195 234
        font = QtGui.QFont()
196 235
        font.setBold(False)
......
202 241
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
203 242
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
204 243
        self.label_6 = QtWidgets.QLabel(self.groupBox_2)
205
        self.label_6.setMinimumSize(QtCore.QSize(130, 0))
244
        self.label_6.setMinimumSize(QtCore.QSize(129, 0))
245
        self.label_6.setMaximumSize(QtCore.QSize(129, 16777215))
206 246
        font = QtGui.QFont()
207 247
        font.setBold(False)
208 248
        font.setWeight(50)
......
210 250
        self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
211 251
        self.label_6.setObjectName("label_6")
212 252
        self.horizontalLayout_3.addWidget(self.label_6)
213
        self.lineEdit_2 = QtWidgets.QLineEdit(self.groupBox_2)
214
        self.lineEdit_2.setMinimumSize(QtCore.QSize(80, 0))
215
        self.lineEdit_2.setMaximumSize(QtCore.QSize(80, 16777215))
253
        self.lineEdit_Limitation_Pressure_Drop = QtWidgets.QLineEdit(self.groupBox_2)
254
        self.lineEdit_Limitation_Pressure_Drop.setMinimumSize(QtCore.QSize(80, 0))
255
        self.lineEdit_Limitation_Pressure_Drop.setMaximumSize(QtCore.QSize(80, 16777215))
216 256
        font = QtGui.QFont()
217 257
        font.setBold(False)
218 258
        font.setWeight(50)
219
        self.lineEdit_2.setFont(font)
220
        self.lineEdit_2.setObjectName("lineEdit_2")
221
        self.horizontalLayout_3.addWidget(self.lineEdit_2)
259
        self.lineEdit_Limitation_Pressure_Drop.setFont(font)
260
        self.lineEdit_Limitation_Pressure_Drop.setObjectName("lineEdit_Limitation_Pressure_Drop")
261
        self.horizontalLayout_3.addWidget(self.lineEdit_Limitation_Pressure_Drop)
222 262
        self.label_DropPressure_Unit = QtWidgets.QLabel(self.groupBox_2)
223 263
        font = QtGui.QFont()
224 264
        font.setBold(False)
......
241 281
        self.groupBox.setObjectName("groupBox")
242 282
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox)
243 283
        self.verticalLayout_4.setObjectName("verticalLayout_4")
284
        self.horizontalLayout_15 = QtWidgets.QHBoxLayout()
285
        self.horizontalLayout_15.setObjectName("horizontalLayout_15")
286
        self.label_13 = QtWidgets.QLabel(self.groupBox)
287
        self.label_13.setMinimumSize(QtCore.QSize(129, 0))
288
        self.label_13.setMaximumSize(QtCore.QSize(129, 16777215))
289
        font = QtGui.QFont()
290
        font.setBold(False)
291
        font.setWeight(50)
292
        self.label_13.setFont(font)
293
        self.label_13.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
294
        self.label_13.setObjectName("label_13")
295
        self.horizontalLayout_15.addWidget(self.label_13)
296
        self.radioButton_Equivalent_Length_Input = QtWidgets.QRadioButton(self.groupBox)
297
        font = QtGui.QFont()
298
        font.setBold(False)
299
        font.setWeight(50)
300
        self.radioButton_Equivalent_Length_Input.setFont(font)
301
        self.radioButton_Equivalent_Length_Input.setChecked(True)
302
        self.radioButton_Equivalent_Length_Input.setObjectName("radioButton_Equivalent_Length_Input")
303
        self.horizontalLayout_15.addWidget(self.radioButton_Equivalent_Length_Input)
304
        self.radioButton_Equivalent_Length_Cal = QtWidgets.QRadioButton(self.groupBox)
305
        font = QtGui.QFont()
306
        font.setBold(False)
307
        font.setWeight(50)
308
        self.radioButton_Equivalent_Length_Cal.setFont(font)
309
        self.radioButton_Equivalent_Length_Cal.setObjectName("radioButton_Equivalent_Length_Cal")
310
        self.horizontalLayout_15.addWidget(self.radioButton_Equivalent_Length_Cal)
311
        self.verticalLayout_4.addLayout(self.horizontalLayout_15)
244 312
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
245 313
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
246 314
        self.label_8 = QtWidgets.QLabel(self.groupBox)
247
        self.label_8.setMinimumSize(QtCore.QSize(130, 0))
315
        self.label_8.setMinimumSize(QtCore.QSize(129, 0))
316
        self.label_8.setMaximumSize(QtCore.QSize(129, 16777215))
248 317
        font = QtGui.QFont()
249 318
        font.setBold(False)
250 319
        font.setWeight(50)
......
252 321
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
253 322
        self.label_8.setObjectName("label_8")
254 323
        self.horizontalLayout_7.addWidget(self.label_8)
255
        self.comboBox_NominalDiameter = QtWidgets.QComboBox(self.groupBox)
256
        self.comboBox_NominalDiameter.setMinimumSize(QtCore.QSize(80, 0))
257
        self.comboBox_NominalDiameter.setMaximumSize(QtCore.QSize(80, 16777215))
324
        self.comboBox_Nominal_Pipe_Size = QtWidgets.QComboBox(self.groupBox)
325
        self.comboBox_Nominal_Pipe_Size.setMinimumSize(QtCore.QSize(80, 0))
326
        self.comboBox_Nominal_Pipe_Size.setMaximumSize(QtCore.QSize(80, 16777215))
258 327
        font = QtGui.QFont()
259 328
        font.setBold(False)
260 329
        font.setWeight(50)
261
        self.comboBox_NominalDiameter.setFont(font)
262
        self.comboBox_NominalDiameter.setObjectName("comboBox_NominalDiameter")
263
        self.horizontalLayout_7.addWidget(self.comboBox_NominalDiameter)
330
        self.comboBox_Nominal_Pipe_Size.setFont(font)
331
        self.comboBox_Nominal_Pipe_Size.setObjectName("comboBox_Nominal_Pipe_Size")
332
        self.horizontalLayout_7.addWidget(self.comboBox_Nominal_Pipe_Size)
264 333
        self.label_Nominal_Pipe_Size_Unit = QtWidgets.QLabel(self.groupBox)
265 334
        font = QtGui.QFont()
266 335
        font.setBold(False)
......
272 341
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
273 342
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
274 343
        self.label_10 = QtWidgets.QLabel(self.groupBox)
275
        self.label_10.setMinimumSize(QtCore.QSize(130, 0))
344
        self.label_10.setMinimumSize(QtCore.QSize(129, 0))
345
        self.label_10.setMaximumSize(QtCore.QSize(129, 16777215))
276 346
        font = QtGui.QFont()
277 347
        font.setBold(False)
278 348
        font.setWeight(50)
......
280 350
        self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
281 351
        self.label_10.setObjectName("label_10")
282 352
        self.horizontalLayout_6.addWidget(self.label_10)
283
        self.comboBox_Schedule = QtWidgets.QComboBox(self.groupBox)
284
        self.comboBox_Schedule.setMinimumSize(QtCore.QSize(80, 0))
285
        self.comboBox_Schedule.setMaximumSize(QtCore.QSize(80, 16777215))
353
        self.comboBox_Schedul_No = QtWidgets.QComboBox(self.groupBox)
354
        self.comboBox_Schedul_No.setMinimumSize(QtCore.QSize(80, 0))
355
        self.comboBox_Schedul_No.setMaximumSize(QtCore.QSize(80, 16777215))
286 356
        font = QtGui.QFont()
287 357
        font.setBold(False)
288 358
        font.setWeight(50)
289
        self.comboBox_Schedule.setFont(font)
290
        self.comboBox_Schedule.setObjectName("comboBox_Schedule")
291
        self.horizontalLayout_6.addWidget(self.comboBox_Schedule)
359
        self.comboBox_Schedul_No.setFont(font)
360
        self.comboBox_Schedul_No.setObjectName("comboBox_Schedul_No")
361
        self.horizontalLayout_6.addWidget(self.comboBox_Schedul_No)
292 362
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
293 363
        self.horizontalLayout_6.addItem(spacerItem2)
294 364
        self.verticalLayout_4.addLayout(self.horizontalLayout_6)
295 365
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
296 366
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
297 367
        self.label_12 = QtWidgets.QLabel(self.groupBox)
298
        self.label_12.setMinimumSize(QtCore.QSize(130, 0))
368
        self.label_12.setMinimumSize(QtCore.QSize(129, 0))
369
        self.label_12.setMaximumSize(QtCore.QSize(129, 16777215))
299 370
        font = QtGui.QFont()
300 371
        font.setBold(False)
301 372
        font.setWeight(50)
......
303 374
        self.label_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
304 375
        self.label_12.setObjectName("label_12")
305 376
        self.horizontalLayout_5.addWidget(self.label_12)
306
        self.lineEdit_3 = QtWidgets.QLineEdit(self.groupBox)
307
        self.lineEdit_3.setMinimumSize(QtCore.QSize(80, 0))
308
        self.lineEdit_3.setMaximumSize(QtCore.QSize(80, 16777215))
377
        self.lineEdit_Inside_Pipe_Size = QtWidgets.QLineEdit(self.groupBox)
378
        self.lineEdit_Inside_Pipe_Size.setEnabled(True)
379
        self.lineEdit_Inside_Pipe_Size.setMinimumSize(QtCore.QSize(80, 0))
380
        self.lineEdit_Inside_Pipe_Size.setMaximumSize(QtCore.QSize(80, 16777215))
309 381
        font = QtGui.QFont()
310 382
        font.setBold(False)
311 383
        font.setWeight(50)
312
        self.lineEdit_3.setFont(font)
313
        self.lineEdit_3.setObjectName("lineEdit_3")
314
        self.horizontalLayout_5.addWidget(self.lineEdit_3)
384
        self.lineEdit_Inside_Pipe_Size.setFont(font)
385
        self.lineEdit_Inside_Pipe_Size.setObjectName("lineEdit_Inside_Pipe_Size")
386
        self.horizontalLayout_5.addWidget(self.lineEdit_Inside_Pipe_Size)
315 387
        self.label_Inside_Pipe_Size_Unit = QtWidgets.QLabel(self.groupBox)
316 388
        font = QtGui.QFont()
317 389
        font.setBold(False)
......
322 394
        self.verticalLayout_4.addLayout(self.horizontalLayout_5)
323 395
        self.horizontalLayout_19 = QtWidgets.QHBoxLayout()
324 396
        self.horizontalLayout_19.setObjectName("horizontalLayout_19")
325
        spacerItem3 = QtWidgets.QSpacerItem(50, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
326
        self.horizontalLayout_19.addItem(spacerItem3)
327
        self.pushButton = QtWidgets.QPushButton(self.groupBox)
328
        font = QtGui.QFont()
329
        font.setBold(False)
330
        font.setWeight(50)
331
        self.pushButton.setFont(font)
332
        self.pushButton.setObjectName("pushButton")
333
        self.horizontalLayout_19.addWidget(self.pushButton)
334
        self.lineEdit_10 = QtWidgets.QLineEdit(self.groupBox)
335
        self.lineEdit_10.setMinimumSize(QtCore.QSize(80, 0))
336
        self.lineEdit_10.setMaximumSize(QtCore.QSize(80, 16777215))
337
        font = QtGui.QFont()
338
        font.setBold(False)
339
        font.setWeight(50)
340
        self.lineEdit_10.setFont(font)
341
        self.lineEdit_10.setObjectName("lineEdit_10")
342
        self.horizontalLayout_19.addWidget(self.lineEdit_10)
397
        self.comboBox_Roughness = QtWidgets.QComboBox(self.groupBox)
398
        self.comboBox_Roughness.setMinimumSize(QtCore.QSize(129, 0))
399
        self.comboBox_Roughness.setMaximumSize(QtCore.QSize(129, 16777215))
400
        self.comboBox_Roughness.setObjectName("comboBox_Roughness")
401
        self.horizontalLayout_19.addWidget(self.comboBox_Roughness)
402
        self.lineEdit_Roughness = QtWidgets.QLineEdit(self.groupBox)
403
        self.lineEdit_Roughness.setMinimumSize(QtCore.QSize(80, 0))
404
        self.lineEdit_Roughness.setMaximumSize(QtCore.QSize(80, 16777215))
405
        self.lineEdit_Roughness.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
406
        self.lineEdit_Roughness.setObjectName("lineEdit_Roughness")
407
        self.horizontalLayout_19.addWidget(self.lineEdit_Roughness)
343 408
        self.label_Roughness_Unit = QtWidgets.QLabel(self.groupBox)
409
        self.label_Roughness_Unit.setMinimumSize(QtCore.QSize(0, 0))
344 410
        font = QtGui.QFont()
345 411
        font.setBold(False)
346 412
        font.setWeight(50)
347 413
        self.label_Roughness_Unit.setFont(font)
348 414
        self.label_Roughness_Unit.setObjectName("label_Roughness_Unit")
349 415
        self.horizontalLayout_19.addWidget(self.label_Roughness_Unit)
416
        self.pushButton_Roughness = QtWidgets.QPushButton(self.groupBox)
417
        self.pushButton_Roughness.setMinimumSize(QtCore.QSize(64, 0))
418
        self.pushButton_Roughness.setMaximumSize(QtCore.QSize(64, 16777215))
419
        font = QtGui.QFont()
420
        font.setBold(False)
421
        font.setWeight(50)
422
        self.pushButton_Roughness.setFont(font)
423
        self.pushButton_Roughness.setObjectName("pushButton_Roughness")
424
        self.horizontalLayout_19.addWidget(self.pushButton_Roughness)
350 425
        self.verticalLayout_4.addLayout(self.horizontalLayout_19)
351 426
        self.horizontalLayout_17 = QtWidgets.QHBoxLayout()
352 427
        self.horizontalLayout_17.setObjectName("horizontalLayout_17")
353 428
        self.label_27 = QtWidgets.QLabel(self.groupBox)
354
        self.label_27.setMinimumSize(QtCore.QSize(130, 0))
429
        self.label_27.setMinimumSize(QtCore.QSize(129, 0))
430
        self.label_27.setMaximumSize(QtCore.QSize(129, 16777215))
355 431
        font = QtGui.QFont()
356 432
        font.setBold(False)
357 433
        font.setWeight(50)
......
359 435
        self.label_27.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
360 436
        self.label_27.setObjectName("label_27")
361 437
        self.horizontalLayout_17.addWidget(self.label_27)
362
        self.lineEdit_11 = QtWidgets.QLineEdit(self.groupBox)
363
        self.lineEdit_11.setMinimumSize(QtCore.QSize(80, 0))
364
        self.lineEdit_11.setMaximumSize(QtCore.QSize(80, 16777215))
438
        self.lineEdit_Straight_Length = QtWidgets.QLineEdit(self.groupBox)
439
        self.lineEdit_Straight_Length.setMinimumSize(QtCore.QSize(80, 0))
440
        self.lineEdit_Straight_Length.setMaximumSize(QtCore.QSize(80, 16777215))
365 441
        font = QtGui.QFont()
366 442
        font.setBold(False)
367 443
        font.setWeight(50)
368
        self.lineEdit_11.setFont(font)
369
        self.lineEdit_11.setObjectName("lineEdit_11")
370
        self.horizontalLayout_17.addWidget(self.lineEdit_11)
444
        self.lineEdit_Straight_Length.setFont(font)
445
        self.lineEdit_Straight_Length.setObjectName("lineEdit_Straight_Length")
446
        self.horizontalLayout_17.addWidget(self.lineEdit_Straight_Length)
371 447
        self.label_Straight_Lengh_Unit = QtWidgets.QLabel(self.groupBox)
372 448
        font = QtGui.QFont()
373 449
        font.setBold(False)
......
378 454
        self.verticalLayout_4.addLayout(self.horizontalLayout_17)
379 455
        self.horizontalLayout_18 = QtWidgets.QHBoxLayout()
380 456
        self.horizontalLayout_18.setObjectName("horizontalLayout_18")
381
        self.label_29 = QtWidgets.QLabel(self.groupBox)
382
        self.label_29.setMinimumSize(QtCore.QSize(130, 0))
457
        self.label_7 = QtWidgets.QLabel(self.groupBox)
458
        self.label_7.setMinimumSize(QtCore.QSize(129, 0))
459
        self.label_7.setMaximumSize(QtCore.QSize(129, 16777215))
383 460
        font = QtGui.QFont()
384 461
        font.setBold(False)
385 462
        font.setWeight(50)
386
        self.label_29.setFont(font)
387
        self.label_29.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
388
        self.label_29.setObjectName("label_29")
389
        self.horizontalLayout_18.addWidget(self.label_29)
390
        self.lineEdit_12 = QtWidgets.QLineEdit(self.groupBox)
391
        self.lineEdit_12.setMinimumSize(QtCore.QSize(80, 0))
392
        self.lineEdit_12.setMaximumSize(QtCore.QSize(80, 16777215))
463
        self.label_7.setFont(font)
464
        self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
465
        self.label_7.setObjectName("label_7")
466
        self.horizontalLayout_18.addWidget(self.label_7)
467
        self.lineEdit_Equivalent_Length_Input = QtWidgets.QLineEdit(self.groupBox)
468
        self.lineEdit_Equivalent_Length_Input.setMinimumSize(QtCore.QSize(80, 0))
469
        self.lineEdit_Equivalent_Length_Input.setMaximumSize(QtCore.QSize(80, 16777215))
393 470
        font = QtGui.QFont()
394 471
        font.setBold(False)
395 472
        font.setWeight(50)
396
        self.lineEdit_12.setFont(font)
397
        self.lineEdit_12.setObjectName("lineEdit_12")
398
        self.horizontalLayout_18.addWidget(self.lineEdit_12)
473
        self.lineEdit_Equivalent_Length_Input.setFont(font)
474
        self.lineEdit_Equivalent_Length_Input.setObjectName("lineEdit_Equivalent_Length_Input")
475
        self.horizontalLayout_18.addWidget(self.lineEdit_Equivalent_Length_Input)
399 476
        self.label_Equivalent_Lenght_Input_Unit = QtWidgets.QLabel(self.groupBox)
400 477
        font = QtGui.QFont()
401 478
        font.setBold(False)
......
406 483
        self.verticalLayout_4.addLayout(self.horizontalLayout_18)
407 484
        self.horizontalLayout_16 = QtWidgets.QHBoxLayout()
408 485
        self.horizontalLayout_16.setObjectName("horizontalLayout_16")
409
        spacerItem4 = QtWidgets.QSpacerItem(50, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
410
        self.horizontalLayout_16.addItem(spacerItem4)
486
        spacerItem3 = QtWidgets.QSpacerItem(54, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
487
        self.horizontalLayout_16.addItem(spacerItem3)
411 488
        self.pushButton_Fitting = QtWidgets.QPushButton(self.groupBox)
489
        self.pushButton_Fitting.setMinimumSize(QtCore.QSize(75, 0))
490
        self.pushButton_Fitting.setMaximumSize(QtCore.QSize(75, 16777215))
412 491
        font = QtGui.QFont()
413 492
        font.setBold(False)
414 493
        font.setWeight(50)
415 494
        self.pushButton_Fitting.setFont(font)
416 495
        self.pushButton_Fitting.setObjectName("pushButton_Fitting")
417 496
        self.horizontalLayout_16.addWidget(self.pushButton_Fitting)
418
        self.lineEdit_13 = QtWidgets.QLineEdit(self.groupBox)
419
        self.lineEdit_13.setMinimumSize(QtCore.QSize(80, 0))
420
        self.lineEdit_13.setMaximumSize(QtCore.QSize(80, 16777215))
497
        self.lineEdit_Fitting = QtWidgets.QLineEdit(self.groupBox)
498
        self.lineEdit_Fitting.setEnabled(False)
499
        self.lineEdit_Fitting.setMinimumSize(QtCore.QSize(80, 0))
500
        self.lineEdit_Fitting.setMaximumSize(QtCore.QSize(80, 16777215))
421 501
        font = QtGui.QFont()
422 502
        font.setBold(False)
423 503
        font.setWeight(50)
424
        self.lineEdit_13.setFont(font)
425
        self.lineEdit_13.setObjectName("lineEdit_13")
426
        self.horizontalLayout_16.addWidget(self.lineEdit_13)
504
        self.lineEdit_Fitting.setFont(font)
505
        self.lineEdit_Fitting.setObjectName("lineEdit_Fitting")
506
        self.horizontalLayout_16.addWidget(self.lineEdit_Fitting)
427 507
        self.label_Fitting_Length_Unit = QtWidgets.QLabel(self.groupBox)
428 508
        font = QtGui.QFont()
429 509
        font.setBold(False)
......
434 514
        self.verticalLayout_4.addLayout(self.horizontalLayout_16)
435 515
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
436 516
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
437
        self.label = QtWidgets.QLabel(self.groupBox)
438
        self.label.setMinimumSize(QtCore.QSize(130, 0))
517
        self.label_9 = QtWidgets.QLabel(self.groupBox)
518
        self.label_9.setMinimumSize(QtCore.QSize(129, 0))
519
        self.label_9.setMaximumSize(QtCore.QSize(129, 16777215))
439 520
        font = QtGui.QFont()
440 521
        font.setBold(False)
441 522
        font.setWeight(50)
442
        self.label.setFont(font)
443
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
444
        self.label.setObjectName("label")
445
        self.horizontalLayout_9.addWidget(self.label)
446
        self.lineEdit_8 = QtWidgets.QLineEdit(self.groupBox)
447
        self.lineEdit_8.setMinimumSize(QtCore.QSize(80, 0))
448
        self.lineEdit_8.setMaximumSize(QtCore.QSize(80, 16777215))
523
        self.label_9.setFont(font)
524
        self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
525
        self.label_9.setObjectName("label_9")
526
        self.horizontalLayout_9.addWidget(self.label_9)
527
        self.lineEdit_Equivalent_Length_Cal = QtWidgets.QLineEdit(self.groupBox)
528
        self.lineEdit_Equivalent_Length_Cal.setEnabled(False)
529
        self.lineEdit_Equivalent_Length_Cal.setMinimumSize(QtCore.QSize(80, 0))
530
        self.lineEdit_Equivalent_Length_Cal.setMaximumSize(QtCore.QSize(80, 16777215))
449 531
        font = QtGui.QFont()
450 532
        font.setBold(False)
451 533
        font.setWeight(50)
452
        self.lineEdit_8.setFont(font)
453
        self.lineEdit_8.setObjectName("lineEdit_8")
454
        self.horizontalLayout_9.addWidget(self.lineEdit_8)
534
        self.lineEdit_Equivalent_Length_Cal.setFont(font)
535
        self.lineEdit_Equivalent_Length_Cal.setObjectName("lineEdit_Equivalent_Length_Cal")
536
        self.horizontalLayout_9.addWidget(self.lineEdit_Equivalent_Length_Cal)
455 537
        self.label_Equivalent_Lenght_Cal_Unit = QtWidgets.QLabel(self.groupBox)
456 538
        font = QtGui.QFont()
457 539
        font.setBold(False)
......
460 542
        self.label_Equivalent_Lenght_Cal_Unit.setObjectName("label_Equivalent_Lenght_Cal_Unit")
461 543
        self.horizontalLayout_9.addWidget(self.label_Equivalent_Lenght_Cal_Unit)
462 544
        self.verticalLayout_4.addLayout(self.horizontalLayout_9)
463
        spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
464
        self.verticalLayout_4.addItem(spacerItem5)
545
        spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
546
        self.verticalLayout_4.addItem(spacerItem4)
465 547
        self.verticalLayout_2.addWidget(self.groupBox)
466 548
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
467 549
        self.gridLayout.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)
......
528 610
        self.lineEdit_DisplayNo.setObjectName("lineEdit_DisplayNo")
529 611
        self.horizontalLayout_13.addWidget(self.lineEdit_DisplayNo)
530 612
        self.horizontalLayout_20.addLayout(self.horizontalLayout_13)
531
        spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
532
        self.horizontalLayout_20.addItem(spacerItem6)
613
        spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
614
        self.horizontalLayout_20.addItem(spacerItem5)
533 615
        self.buttonBox = QtWidgets.QDialogButtonBox(self.groupBox_StreamNo)
534 616
        font = QtGui.QFont()
535 617
        font.setBold(False)
......
548 630
        self.buttonBox.rejected.connect(LiquidDialog.reject)
549 631
        QtCore.QMetaObject.connectSlotsByName(LiquidDialog)
550 632
        LiquidDialog.setTabOrder(self.lineEdit_9, self.lineEdit_DisplayNo)
551
        LiquidDialog.setTabOrder(self.lineEdit_DisplayNo, self.lineEdit_4)
552
        LiquidDialog.setTabOrder(self.lineEdit_4, self.lineEdit_5)
553
        LiquidDialog.setTabOrder(self.lineEdit_5, self.lineEdit_6)
554
        LiquidDialog.setTabOrder(self.lineEdit_6, self.lineEdit_7)
555
        LiquidDialog.setTabOrder(self.lineEdit_7, self.lineEdit)
556
        LiquidDialog.setTabOrder(self.lineEdit, self.lineEdit_2)
557
        LiquidDialog.setTabOrder(self.lineEdit_2, self.comboBox_NominalDiameter)
558
        LiquidDialog.setTabOrder(self.comboBox_NominalDiameter, self.comboBox_Schedule)
559
        LiquidDialog.setTabOrder(self.comboBox_Schedule, self.lineEdit_3)
560
        LiquidDialog.setTabOrder(self.lineEdit_3, self.pushButton)
561
        LiquidDialog.setTabOrder(self.pushButton, self.lineEdit_10)
562
        LiquidDialog.setTabOrder(self.lineEdit_10, self.lineEdit_11)
563
        LiquidDialog.setTabOrder(self.lineEdit_11, self.lineEdit_12)
564
        LiquidDialog.setTabOrder(self.lineEdit_12, self.pushButton_Fitting)
565
        LiquidDialog.setTabOrder(self.pushButton_Fitting, self.lineEdit_13)
566
        LiquidDialog.setTabOrder(self.lineEdit_13, self.lineEdit_8)
567
        LiquidDialog.setTabOrder(self.lineEdit_8, self.textEdit)
633
        LiquidDialog.setTabOrder(self.lineEdit_DisplayNo, self.radioButton_Flowrate_Mass)
634
        LiquidDialog.setTabOrder(self.radioButton_Flowrate_Mass, self.radioButton_Flowrate_Volume)
635
        LiquidDialog.setTabOrder(self.radioButton_Flowrate_Volume, self.lineEdit_Flowrate_Mass)
636
        LiquidDialog.setTabOrder(self.lineEdit_Flowrate_Mass, self.lineEdit_Flowrate_Volume)
637
        LiquidDialog.setTabOrder(self.lineEdit_Flowrate_Volume, self.lineEdit_Density)
638
        LiquidDialog.setTabOrder(self.lineEdit_Density, self.lineEdit_Viscosity)
639
        LiquidDialog.setTabOrder(self.lineEdit_Viscosity, self.lineEdit_Limitation_Velocity)
640
        LiquidDialog.setTabOrder(self.lineEdit_Limitation_Velocity, self.lineEdit_Limitation_Pressure_Drop)
641
        LiquidDialog.setTabOrder(self.lineEdit_Limitation_Pressure_Drop, self.radioButton_Equivalent_Length_Input)
642
        LiquidDialog.setTabOrder(self.radioButton_Equivalent_Length_Input, self.radioButton_Equivalent_Length_Cal)
643
        LiquidDialog.setTabOrder(self.radioButton_Equivalent_Length_Cal, self.comboBox_Nominal_Pipe_Size)
644
        LiquidDialog.setTabOrder(self.comboBox_Nominal_Pipe_Size, self.comboBox_Schedul_No)
645
        LiquidDialog.setTabOrder(self.comboBox_Schedul_No, self.lineEdit_Inside_Pipe_Size)
646
        LiquidDialog.setTabOrder(self.lineEdit_Inside_Pipe_Size, self.comboBox_Roughness)
647
        LiquidDialog.setTabOrder(self.comboBox_Roughness, self.lineEdit_Roughness)
648
        LiquidDialog.setTabOrder(self.lineEdit_Roughness, self.pushButton_Roughness)
649
        LiquidDialog.setTabOrder(self.pushButton_Roughness, self.lineEdit_Straight_Length)
650
        LiquidDialog.setTabOrder(self.lineEdit_Straight_Length, self.lineEdit_Equivalent_Length_Input)
651
        LiquidDialog.setTabOrder(self.lineEdit_Equivalent_Length_Input, self.pushButton_Fitting)
652
        LiquidDialog.setTabOrder(self.pushButton_Fitting, self.lineEdit_Fitting)
653
        LiquidDialog.setTabOrder(self.lineEdit_Fitting, self.lineEdit_Equivalent_Length_Cal)
654
        LiquidDialog.setTabOrder(self.lineEdit_Equivalent_Length_Cal, self.textEdit)
568 655
        LiquidDialog.setTabOrder(self.textEdit, self.pushButton_5)
569 656
        LiquidDialog.setTabOrder(self.pushButton_5, self.pushButton_6)
570 657
        LiquidDialog.setTabOrder(self.pushButton_6, self.pushButton_4)
......
576 663
        self.pushButton_6.setText(_translate("LiquidDialog", "Diameter Estimation (Line Sizing)"))
577 664
        self.pushButton_4.setText(_translate("LiquidDialog", "Detail Loop Information"))
578 665
        self.groupBox_3.setTitle(_translate("LiquidDialog", "Process Data"))
579
        self.label_14.setText(_translate("LiquidDialog", "Flowrate (Mass) :"))
666
        self.label_11.setText(_translate("LiquidDialog", "Use Flowrate :"))
667
        self.radioButton_Flowrate_Mass.setText(_translate("LiquidDialog", "Mass"))
668
        self.radioButton_Flowrate_Volume.setText(_translate("LiquidDialog", "Volume"))
669
        self.label.setText(_translate("LiquidDialog", "Flowrate (Mass) :"))
... 이 차이점은 표시할 수 있는 최대 줄수를 초과해서 이 차이점은 잘렸습니다.

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)