프로젝트

일반

사용자정보

개정판 8d2b3c9c

ID8d2b3c9c62ea676cf2c2987d1cda8b1b2c6a4f7f
상위 6ab5da4a
하위 e57bdb6e

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

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

Change-Id: Ia7791e36a7ad366bddff49cb31bd7d6c96392827

차이점 보기:

HYTOS/HYTOS/FittingsDialog.py
58 58
                self.pipe_diameter_unit = attr[1]['Pipe_Diameter']
59 59

  
60 60
    def initialize_equivalent_length(self):
61
        self.ui.lineEdit_Equivalent_Length_Gate_Ball_Plug_Count.setValidator(
62
            QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Gate_Ball_Plug_Count))
63
        self.ui.lineEdit_Equivalent_Length_Butterfly_Count.setValidator(
64
            QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Butterfly_Count))
65
        self.ui.lineEdit_Equivalent_Length_90_Elbow_Count.setValidator(
66
            QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_90_Elbow_Count))
67
        self.ui.lineEdit_Equivalent_Length_Tee_Branch_Count.setValidator(
68
            QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Tee_Branch_Count))
69
        self.ui.lineEdit_Equivalent_Length_Miter_Count.setValidator(
70
            QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Miter_Count))
71
        self.ui.lineEdit_Equivalent_Length_Globe_Count.setValidator(
72
            QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Globe_Count))
73
        self.ui.lineEdit_Equivalent_Length_Check_Count.setValidator(
74
            QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Check_Count))
75
        self.ui.lineEdit_Equivalent_Length_45_Elbow_Count.setValidator(
76
            QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_45_Elbow_Count))
77
        self.ui.lineEdit_Equivalent_Length_Tee_Through_Count.setValidator(
78
            QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Tee_Through_Count))
79

  
80
        self.ui.comboBox_Equivalent_Length_Miter_Degree.clear()
81

  
82
        self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('0˚', 0)
83
        self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('15˚', 15)
84
        self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('30˚', 30)
85
        self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('45˚', 45)
86
        self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('60˚', 60)
87
        self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('75˚', 75)
88
        self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('90˚', 90)
89

  
90
        self.ui.comboBox_Equivalent_Length_Miter_Degree.setCurrentIndex(0)
91

  
92
        self.controls_equivalent_length_set_names()
61
        try:
62
            self.initialize_equivalent_length_selected_fitting()
63

  
64
            self.ui.lineEdit_Equivalent_Length_Gate_Ball_Plug_Count.setValidator(
65
                QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Gate_Ball_Plug_Count))
66
            self.ui.lineEdit_Equivalent_Length_Butterfly_Count.setValidator(
67
                QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Butterfly_Count))
68
            self.ui.lineEdit_Equivalent_Length_90_Elbow_Count.setValidator(
69
                QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_90_Elbow_Count))
70
            self.ui.lineEdit_Equivalent_Length_Tee_Branch_Count.setValidator(
71
                QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Tee_Branch_Count))
72
            self.ui.lineEdit_Equivalent_Length_Miter_Count.setValidator(
73
                QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Miter_Count))
74
            self.ui.lineEdit_Equivalent_Length_Globe_Count.setValidator(
75
                QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Globe_Count))
76
            self.ui.lineEdit_Equivalent_Length_Check_Count.setValidator(
77
                QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Check_Count))
78
            self.ui.lineEdit_Equivalent_Length_45_Elbow_Count.setValidator(
79
                QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_45_Elbow_Count))
80
            self.ui.lineEdit_Equivalent_Length_Tee_Through_Count.setValidator(
81
                QtGui.QIntValidator(self.ui.lineEdit_Equivalent_Length_Tee_Through_Count))
82

  
83
            self.ui.comboBox_Equivalent_Length_Miter_Degree.clear()
84

  
85
            self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('0', 0)
86
            self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('15', 15)
87
            self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('30', 30)
88
            self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('45', 45)
89
            self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('60', 60)
90
            self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('75', 75)
91
            self.ui.comboBox_Equivalent_Length_Miter_Degree.addItem('90', 90)
92

  
93
            self.ui.comboBox_Equivalent_Length_Miter_Degree.setCurrentIndex(0)
94

  
95
            self.controls_equivalent_length_set_names()
96

  
97
            # Elbow
98
            self.ui.pushButton_Add_Equivalent_Length_90_Elbow.clicked.connect(self.add_equivalent_length)
99
            self.ui.pushButton_Add_Equivalent_Length_45_Elbow.clicked.connect(self.add_equivalent_length)
100
            self.ui.pushButton_Add_Equivalent_Length_Miter.clicked.connect(self.add_equivalent_length)
101

  
102
            # Tees
103
            self.ui.pushButton_Add_Equivalent_Length_Tee_Branch.clicked.connect(self.add_equivalent_length)
104
            self.ui.pushButton_Add_Equivalent_Length_Tee_Through.clicked.connect(self.add_equivalent_length)
105

  
106
            # Valves
107
            self.ui.pushButton_Add_Equivalent_Length_Gate_Ball_Plug.clicked.connect(self.add_equivalent_length)
108
            self.ui.pushButton_Add_Equivalent_Length_Globe.clicked.connect(self.add_equivalent_length)
109
            self.ui.pushButton_Add_Equivalent_Length_Butterfly.clicked.connect(self.add_equivalent_length)
110
            self.ui.pushButton_Add_Equivalent_Length_Check.clicked.connect(self.add_equivalent_length)
93 111

  
112
            # Nozzles
113
            self.ui.pushButton_Add_Equivalent_Length_Nozzle_In.clicked.connect(self.add_equivalent_length)
114
            self.ui.pushButton_Add_Equivalent_Length_Nozzle_Out.clicked.connect(self.add_equivalent_length)
115

  
116
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.setContextMenuPolicy(Qt.CustomContextMenu)
117
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.customContextMenuRequested.connect(
118
                self.del_equivalent_length)
119

  
120
        except Exception as ex:
121
            from App import App
122
            from AppDocData import MessageType
123

  
124
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
125
                                                           sys.exc_info()[-1].tb_lineno)
126
            App.mainWnd().addMessage.emit(MessageType.Error, message)
94 127

  
95 128
    def initialize_crane_k(self):
96 129
        try:
......
233 266
                                                           sys.exc_info()[-1].tb_lineno)
234 267
            App.mainWnd().addMessage.emit(MessageType.Error, message)
235 268

  
269
    def del_equivalent_length(self, position):
270
        try:
271
            menu = QMenu()
272
            delete_equivalent_length = menu.addAction(self.tr("Delete"))
273
            delete_equivalent_length.triggered.connect(lambda: self.delete_equivalent_length_click_event())
274
            menu.addAction(delete_equivalent_length)
275

  
276
            menu.exec_(self.ui.tableWidget_Equivalent_Length_SelectedFitting.viewport().mapToGlobal(position))
277
        except Exception as ex:
278
            from App import App
279
            from AppDocData import MessageType
280

  
281
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
282
                                                           sys.exc_info()[-1].tb_lineno)
283
            App.mainWnd().addMessage.emit(MessageType.Error, message)
284

  
236 285
    def del_crane_k(self, position):
237 286
        try:
238 287
            menu = QMenu()
......
264 313
                                                           sys.exc_info()[-1].tb_lineno)
265 314
            App.mainWnd().addMessage.emit(MessageType.Error, message)
266 315

  
316
    def delete_equivalent_length_click_event(self):
317
        try:
318
            row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.currentRow()
319
            uid = self.ui.tableWidget_Equivalent_Length_SelectedFitting.item(row, 0).text()
320
            find_row = self.find_equivalent_length_data(uid)
321
            if find_row is not None:
322
                self.del_equivalent_length_data(find_row)
323
        except Exception as ex:
324
            from App import App
325
            from AppDocData import MessageType
326

  
327
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
328
                                                           sys.exc_info()[-1].tb_lineno)
329
            App.mainWnd().addMessage.emit(MessageType.Error, message)
330

  
267 331
    def delete_crane_k_click_event(self):
268 332
        try:
269 333
            row = self.ui.tableWidget_CraneK_SelectedFitting.currentRow()
......
671 735
                                                           sys.exc_info()[-1].tb_lineno)
672 736
            App.mainWnd().addMessage.emit(MessageType.Error, message)
673 737

  
738
    def add_equivalent_length(self):
739
        try:
740
            # Elbow
741
            if self.sender() == self.ui.pushButton_Add_Equivalent_Length_90_Elbow:
742
                count = self.ui.lineEdit_Equivalent_Length_90_Elbow_Count.text()
743
                if count.isdigit():
744
                    data = self.ui.comboBox_Equivalent_Length_90_Elbow.currentData()
745
                    find_row = self.find_equivalent_length_data(data[0])
746
                    if find_row is None:
747
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
748
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
749
                        self.add_equivalent_length_data(row, data, count)
750
                    else:
751
                        self.update_equivalent_length_data(find_row, count)
752
            elif self.sender() == self.ui.pushButton_Add_Equivalent_Length_45_Elbow:
753
                count = self.ui.lineEdit_Equivalent_Length_45_Elbow_Count.text()
754
                if count.isdigit():
755
                    data = self.ui.comboBox_Equivalent_Length_45_Elbow.currentData()
756
                    find_row = self.find_equivalent_length_data(data[0])
757
                    if find_row is None:
758
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
759
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
760
                        self.add_equivalent_length_data(row, data, count)
761
                    else:
762
                        self.update_equivalent_length_data(find_row, count)
763
            elif self.sender() == self.ui.pushButton_Add_Equivalent_Length_Miter:
764
                count = self.ui.lineEdit_Equivalent_Length_Miter_Count.text()
765
                angle = self.ui.comboBox_Equivalent_Length_Miter_Degree.currentText()
766
                if count.isdigit():
767
                    data = self.ui.comboBox_Equivalent_Length_Miter.currentData()
768
                    find_row = self.find_equivalent_length_data(data[0])
769
                    if find_row is None:
770
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
771
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
772
                        self.add_equivalent_length_data(row, data, count, angle)
773
                    else:
774
                        self.update_equivalent_length_data(find_row, count, angle)
775
            # Tees
776
            elif self.sender() == self.ui.pushButton_Add_Equivalent_Length_Tee_Branch:
777
                count = self.ui.lineEdit_Equivalent_Length_Tee_Branch_Count.text()
778
                if count.isdigit():
779
                    data = self.ui.comboBox_Equivalent_Length_Tee_Branch.currentData()
780
                    find_row = self.find_equivalent_length_data(data[0])
781
                    if find_row is None:
782
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
783
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
784
                        self.add_equivalent_length_data(row, data, count)
785
                    else:
786
                        self.update_equivalent_length_data(find_row, count)
787
            elif self.sender() == self.ui.pushButton_Add_Equivalent_Length_Tee_Through:
788
                count = self.ui.lineEdit_Equivalent_Length_Tee_Through_Count.text()
789
                if count.isdigit():
790
                    data = self.ui.comboBox_Equivalent_Length_Tee_Through.currentData()
791
                    find_row = self.find_equivalent_length_data(data[0])
792
                    if find_row is None:
793
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
794
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
795
                        self.add_equivalent_length_data(row, data, count)
796
                    else:
797
                        self.update_equivalent_length_data(find_row, count)
798
            # Valves
799
            elif self.sender() == self.ui.pushButton_Add_Equivalent_Length_Gate_Ball_Plug:
800
                count = self.ui.lineEdit_Equivalent_Length_Gate_Ball_Plug_Count.text()
801
                if count.isdigit():
802
                    data = self.ui.comboBox_Equivalent_Length_Gate_Ball_Plug.currentData()
803
                    find_row = self.find_equivalent_length_data(data[0])
804
                    if find_row is None:
805
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
806
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
807
                        self.add_equivalent_length_data(row, data, count)
808
                    else:
809
                        self.update_equivalent_length_data(find_row, count)
810
            elif self.sender() == self.ui.pushButton_Add_Equivalent_Length_Globe:
811
                count = self.ui.lineEdit_Equivalent_Length_Globe_Count.text()
812
                if count.isdigit():
813
                    data = self.ui.comboBox_Equivalent_Length_Globe.currentData()
814
                    find_row = self.find_equivalent_length_data(data[0])
815
                    if find_row is None:
816
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
817
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
818
                        self.add_equivalent_length_data(row, data, count)
819
                    else:
820
                        self.update_equivalent_length_data(find_row, count)
821
            elif self.sender() == self.ui.pushButton_Add_Equivalent_Length_Butterfly:
822
                count = self.ui.lineEdit_Equivalent_Length_Butterfly_Count.text()
823
                if count.isdigit():
824
                    data = self.ui.comboBox_Equivalent_Length_Butterfly.currentData()
825
                    find_row = self.find_equivalent_length_data(data[0])
826
                    if find_row is None:
827
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
828
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
829
                        self.add_equivalent_length_data(row, data, count)
830
                    else:
831
                        self.update_equivalent_length_data(find_row, count)
832
            elif self.sender() == self.ui.pushButton_Add_Equivalent_Length_Check:
833
                count = self.ui.lineEdit_Equivalent_Length_Check_Count.text()
834
                if count.isdigit():
835
                    data = self.ui.comboBox_Equivalent_Length_Check.currentData()
836
                    find_row = self.find_equivalent_length_data(data[0])
837
                    if find_row is None:
838
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
839
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
840
                        self.add_equivalent_length_data(row, data, count)
841
                    else:
842
                        self.update_equivalent_length_data(find_row, count)
843
            # Nozzles
844
            elif self.sender() == self.ui.pushButton_Add_Equivalent_Length_Nozzle_In:
845
                count = self.ui.lineEdit_Equivalent_Length_Nozzle_In_Count.text()
846
                if count.isdigit():
847
                    data = self.ui.comboBox_Equivalent_Length_Nozzle_In.currentData()
848
                    find_row = self.find_equivalent_length_data(data[0])
849
                    if find_row is None:
850
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
851
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
852
                        self.add_equivalent_length_data(row, data, count)
853
                    else:
854
                        self.update_equivalent_length_data(find_row, count)
855
            elif self.sender() == self.ui.pushButton_Add_Equivalent_Length_Nozzle_Out:
856
                count = self.ui.lineEdit_Equivalent_Length_Nozzle_Out_Count.text()
857
                if count.isdigit():
858
                    data = self.ui.comboBox_Equivalent_Length_Nozzle_Out.currentData()
859
                    find_row = self.find_equivalent_length_data(data[0])
860
                    if find_row is None:
861
                        row = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
862
                        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(row + 1)
863
                        self.add_equivalent_length_data(row, data, count)
864
                    else:
865
                        self.update_equivalent_length_data(find_row, count)
866
        except Exception as ex:
867
            from App import App
868
            from AppDocData import MessageType
869

  
870
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
871
                                                           sys.exc_info()[-1].tb_lineno)
872
            App.mainWnd().addMessage.emit(MessageType.Error, message)
873

  
674 874
    def add_crane_k(self):
675 875
        try:
676 876
            # 90 Elbow
......
941 1141
                        self.update_crane_k_data(find_row, count)
942 1142

  
943 1143
            # self.ui.tableWidget_CraneK_SelectedFitting.resizeColumnsToContents()
944
            self.ui.tableWidget_CraneK_SelectedFitting.resizeRowsToContents()
1144
            # self.ui.tableWidget_CraneK_SelectedFitting.resizeRowsToContents()
945 1145
            # self.ui.tableWidget_CraneK_SelectedFitting.horizontalHeader().setStretchLastSection(True)
946 1146
        except Exception as ex:
947 1147
            from App import App
......
961 1161

  
962 1162
        return find_row
963 1163

  
1164
    def find_equivalent_length_data(self, uid):
1165
        find_row = None
1166

  
1167
        row_count = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
1168
        for row in range(row_count):
1169
            if self.ui.tableWidget_Equivalent_Length_SelectedFitting.item(row, 0).text() == uid:
1170
                return row
1171

  
1172
        return find_row
1173

  
964 1174
    def find_crane_k_data(self, uid):
965 1175
        find_row = None
966 1176

  
......
990 1200
                                                           sys.exc_info()[-1].tb_lineno)
991 1201
            App.mainWnd().addMessage.emit(MessageType.Error, message)
992 1202

  
1203
    def update_equivalent_length_data(self, row, count, angle=None):
1204
        try:
1205
            name = self.ui.tableWidget_Equivalent_Length_SelectedFitting.item(row, 4).text()
1206
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 5,
1207
                                                                          set_table_widget_item_properties(count,
1208
                                                                                                           Qt.AlignHCenter | Qt.AlignVCenter))
1209
            if angle:
1210
                self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 6,
1211
                                                                              set_table_widget_item_properties(angle,
1212
                                                                                                               Qt.AlignHCenter | Qt.AlignVCenter))
1213
            selected_fitting = '{} x {}'.format(name, count)
1214
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 7,
1215
                                                                          set_table_widget_item_properties(
1216
                                                                              selected_fitting,
1217
                                                                              Qt.AlignLeft | Qt.AlignVCenter))
1218
        except Exception as ex:
1219
            from App import App
1220
            from AppDocData import MessageType
1221

  
1222
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
1223
                                                           sys.exc_info()[-1].tb_lineno)
1224
            App.mainWnd().addMessage.emit(MessageType.Error, message)
1225

  
993 1226
    def update_crane_k_data(self, row, count, sub_size=None, angle=None):
994 1227
        try:
995 1228
            name = self.ui.tableWidget_CraneK_SelectedFitting.item(row, 4).text()
......
1029 1262
                                                           sys.exc_info()[-1].tb_lineno)
1030 1263
            App.mainWnd().addMessage.emit(MessageType.Error, message)
1031 1264

  
1265
    def del_equivalent_length_data(self, row):
1266
        try:
1267
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.removeRow(row)
1268
        except Exception as ex:
1269
            from App import App
1270
            from AppDocData import MessageType
1271

  
1272
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
1273
                                                           sys.exc_info()[-1].tb_lineno)
1274
            App.mainWnd().addMessage.emit(MessageType.Error, message)
1275

  
1032 1276
    def del_crane_k_data(self, row):
1033 1277
        try:
1034 1278
            self.ui.tableWidget_CraneK_SelectedFitting.removeRow(row)
......
1042 1286

  
1043 1287
    def add_2_k_data(self, row, data, count):
1044 1288
        # data[0] = uid
1045
        # data[1] = method CraneK, 2-K
1289
        # data[1] = method Equivalent_Length, CraneK, 2-K
1046 1290
        # data[2] = category
1047 1291
        # data[3] = type
1048 1292
        # data[4] = name
......
1077 1321
                                                           sys.exc_info()[-1].tb_lineno)
1078 1322
            App.mainWnd().addMessage.emit(MessageType.Error, message)
1079 1323

  
1324
    def add_equivalent_length_data(self, row, data, count, angle=None):
1325
        # data[0] = uid
1326
        # data[1] = method Equivalent_Length, CraneK, 2-K
1327
        # data[2] = category
1328
        # data[3] = type
1329
        # data[4] = name
1330

  
1331
        try:
1332
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 0,
1333
                                                                          set_table_widget_item_properties(data[0],
1334
                                                                                                           Qt.AlignLeft | Qt.AlignVCenter))
1335
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 1,
1336
                                                                          set_table_widget_item_properties(data[1],
1337
                                                                                                           Qt.AlignLeft | Qt.AlignVCenter))
1338
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 2,
1339
                                                                          set_table_widget_item_properties(data[2],
1340
                                                                                                           Qt.AlignLeft | Qt.AlignVCenter))
1341
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 3,
1342
                                                                          set_table_widget_item_properties(data[3],
1343
                                                                                                           Qt.AlignLeft | Qt.AlignVCenter))
1344
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 4,
1345
                                                                          set_table_widget_item_properties(data[4],
1346
                                                                                                           Qt.AlignLeft | Qt.AlignVCenter))
1347
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 5,
1348
                                                                          set_table_widget_item_properties(count,
1349
                                                                                                           Qt.AlignHCenter | Qt.AlignVCenter))
1350
            if angle:
1351
                self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 6,
1352
                                                                              set_table_widget_item_properties(angle,
1353
                                                                                                               Qt.AlignHCenter | Qt.AlignVCenter))
1354

  
1355
            selected_fitting = '{} x {}'.format(data[4], count)
1356
            self.ui.tableWidget_Equivalent_Length_SelectedFitting.setItem(row, 7, set_table_widget_item_properties(
1357
                selected_fitting,
1358
                Qt.AlignLeft | Qt.AlignVCenter))
1359
        except Exception as ex:
1360
            from App import App
1361
            from AppDocData import MessageType
1362

  
1363
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
1364
                                                           sys.exc_info()[-1].tb_lineno)
1365
            App.mainWnd().addMessage.emit(MessageType.Error, message)
1366

  
1080 1367
    def add_crane_k_data(self, row, data, count, sub_size=None, angle=None):
1081 1368
        # data[0] = uid
1082
        # data[1] = method CraneK, 2-K
1369
        # data[1] = method Equivalent_Length, CraneK, 2-K
1083 1370
        # data[2] = category
1084 1371
        # data[3] = type
1085 1372
        # data[4] = name
......
1153 1440
            # K203 = angle
1154 1441
            # =IF(K203 <= 45, 0.8 * SIN(RADIANS(K203 / 2)) * (1 - (J203 / I128) ^ 2) / (J203 / I128) ^ 4,
1155 1442
            #    0.5 * (1 - (J203 / I128) ^ 2) * POWER(SIN(RADIANS(K203 / 2)), 0.5) / (J203 / I128) ^ 4)
1156
            pass
1443
            return 1
1157 1444
        elif name == 'Expander':
1158 1445
            # I128 = self.selected_dia_in
1159 1446
            # J128 = self.friction_factor
......
1161 1448
            # K204 = angle
1162 1449
            # =IF(K204 <= 45, 2.6 * SIN(RADIANS(K204 / 2)) * (1 - (I128 / J204) ^ 2) ^ 2 / (I128 / J204) ^ 4,
1163 1450
            #    (1 - (I128 / J204) ^ 2) ^ 2 / (I128 / J204) ^ 4)
1164
            pass
1451
            return 1
1165 1452
        else:
1166 1453
            return k * self.friction_factor
1167 1454

  
1168 1455
    def initialize_2_k_selected_fitting(self):
1169 1456
        self.ui.tableWidget_2K_SelectedFitting.setColumnCount(8)
1170
        # self.ui.tableWidget_2K_SelectedFitting.hideColumn(0)  # uid
1171
        # self.ui.tableWidget_2K_SelectedFitting.hideColumn(1)  # method
1172
        # self.ui.tableWidget_2K_SelectedFitting.hideColumn(2)  # category
1173
        # self.ui.tableWidget_2K_SelectedFitting.hideColumn(3)  # type
1457
        self.ui.tableWidget_2K_SelectedFitting.hideColumn(0)  # uid
1458
        self.ui.tableWidget_2K_SelectedFitting.hideColumn(1)  # method
1459
        self.ui.tableWidget_2K_SelectedFitting.hideColumn(2)  # category
1460
        self.ui.tableWidget_2K_SelectedFitting.hideColumn(3)  # type
1461
        self.ui.tableWidget_2K_SelectedFitting.hideColumn(4)  # Name
1462
        self.ui.tableWidget_2K_SelectedFitting.hideColumn(5)  # Count
1463
        self.ui.tableWidget_2K_SelectedFitting.hideColumn(6)  # K
1464
        # self.ui.tableWidget_2K_SelectedFitting.hideColumn(7)  # Selected Fitting
1465

  
1174 1466
        self.ui.tableWidget_2K_SelectedFitting.setEditTriggers(QAbstractItemView.NoEditTriggers)
1175 1467

  
1176 1468
        col_names = ['UID', 'Method', 'Category', 'Type', 'Name', 'Count', 'K', 'Selected Fitting']
......
1187 1479
        self.ui.tableWidget_2K_SelectedFitting.horizontalHeader().setSectionResizeMode(6, QHeaderView.ResizeToContents)
1188 1480
        self.ui.tableWidget_2K_SelectedFitting.horizontalHeader().setSectionResizeMode(7, QHeaderView.ResizeToContents)
1189 1481

  
1482
    def initialize_equivalent_length_selected_fitting(self):
1483

  
1484
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setColumnCount(8)
1485
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.hideColumn(0)  # uid
1486
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.hideColumn(1)  # method
1487
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.hideColumn(2)  # category
1488
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.hideColumn(3)  # type
1489
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.hideColumn(4)  # Name
1490
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.hideColumn(5)  # Count
1491
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.hideColumn(6)  # Angle
1492
        # self.ui.tableWidget_Equivalent_Length_SelectedFitting.hideColumn(7)  # Selected Fitting
1493

  
1494
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setEditTriggers(QAbstractItemView.NoEditTriggers)
1495

  
1496
        col_names = ['UID', 'Method', 'Category', 'Type', 'Name', 'Count', 'Angle', 'Selected Fitting']
1497
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.setHorizontalHeaderLabels(col_names)
1498
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.verticalHeader().setVisible(False)
1499

  
1500
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.horizontalHeader().setStretchLastSection(True)
1501
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.horizontalHeader().setSectionResizeMode(0,
1502
                                                                                                      QHeaderView.ResizeToContents)
1503
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.horizontalHeader().setSectionResizeMode(1,
1504
                                                                                                      QHeaderView.ResizeToContents)
1505
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.horizontalHeader().setSectionResizeMode(2,
1506
                                                                                                      QHeaderView.ResizeToContents)
1507
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.horizontalHeader().setSectionResizeMode(3,
1508
                                                                                                      QHeaderView.ResizeToContents)
1509
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.horizontalHeader().setSectionResizeMode(4,
1510
                                                                                                      QHeaderView.ResizeToContents)
1511
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.horizontalHeader().setSectionResizeMode(5,
1512
                                                                                                      QHeaderView.ResizeToContents)
1513
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.horizontalHeader().setSectionResizeMode(6,
1514
                                                                                                      QHeaderView.ResizeToContents)
1515
        self.ui.tableWidget_Equivalent_Length_SelectedFitting.horizontalHeader().setSectionResizeMode(7,
1516
                                                                                                      QHeaderView.ResizeToContents)
1517

  
1190 1518
    def initialize_crane_k_selected_fitting(self):
1191 1519
        self.ui.tableWidget_CraneK_SelectedFitting.setColumnCount(11)
1192
        # self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(0)  # uid
1193
        # self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(1)  # method
1194
        # self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(2)  # category
1195
        # self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(3)  # type
1520
        self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(0)  # uid
1521
        self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(1)  # method
1522
        self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(2)  # category
1523
        self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(3)  # type
1524
        self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(4)  # Name
1525
        self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(5)  # Count
1526
        self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(6)  # Size(M)
1527
        self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(7)  # Size(S)
1528
        self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(8)  # Angle
1529
        self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(9)  # K
1530
        # self.ui.tableWidget_CraneK_SelectedFitting.hideColumn(10)  # Selected Fitting
1531

  
1196 1532
        self.ui.tableWidget_CraneK_SelectedFitting.setEditTriggers(QAbstractItemView.NoEditTriggers)
1197 1533

  
1198 1534
        col_names = ['UID', 'Method', 'Category', 'Type', 'Name', 'Count', 'Size(M)', 'Size(S)', 'Angle', 'K',
......
1473 1809
                                                           sys.exc_info()[-1].tb_lineno)
1474 1810
            App.mainWnd().addMessage.emit(MessageType.Error, message)
1475 1811

  
1812
    def get_equivalent_length_item_angle(self, name):
1813
        try:
1814
            count = 0
1815

  
1816
            row_count = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
1817
            for row in range(row_count):
1818
                if self.ui.tableWidget_Equivalent_Length_SelectedFitting.item(row, 4).text() == name:
1819
                    return int(self.ui.tableWidget_Equivalent_Length_SelectedFitting.item(row, 6).text())
1820

  
1821
            return count
1822

  
1823
        except Exception as ex:
1824
            from App import App
1825
            from AppDocData import MessageType
1826

  
1827
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
1828
                                                           sys.exc_info()[-1].tb_lineno)
1829
            App.mainWnd().addMessage.emit(MessageType.Error, message)
1830

  
1831
    def get_equivalent_length_item_count(self, name):
1832
        try:
1833
            count = 0
1834

  
1835
            row_count = self.ui.tableWidget_Equivalent_Length_SelectedFitting.rowCount()
1836
            for row in range(row_count):
1837
                if self.ui.tableWidget_Equivalent_Length_SelectedFitting.item(row, 4).text() == name:
1838
                    return int(self.ui.tableWidget_Equivalent_Length_SelectedFitting.item(row, 5).text())
1839

  
1840
            return count
1841

  
1842
        except Exception as ex:
1843
            from App import App
1844
            from AppDocData import MessageType
1845

  
1846
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
1847
                                                           sys.exc_info()[-1].tb_lineno)
1848
            App.mainWnd().addMessage.emit(MessageType.Error, message)
1849

  
1476 1850
    def get_equivalent_length(self):
1477 1851
        try:
1478 1852
            di = float(self.nps)
......
1625 1999
                no = 0.5 / 0.012 * di * 0.0254
1626 2000

  
1627 2001
            # miter
1628
            degree = self.ui.comboBox_EquivalentLength_Miter_Degree.currentData()
2002
            degree = self.get_equivalent_length_item_angle('Miter')
1629 2003
            if degree == 0:
1630 2004
                g = 2 * di * 0.0254
1631 2005
            elif degree == 15:
......
1642 2016
                g = 60 * di * 0.0254
1643 2017

  
1644 2018
            # noz
1645
            if not self.ui.checkBox_EquivalentLength_Nozzle_In.isChecked():
2019
            if self.get_equivalent_length_item_count('Nozzle in') == 0:
1646 2020
                ni = 0
1647
            if not self.ui.checkBox_EquivalentLength_Nozzle_Out.isChecked():
2021
            if self.get_equivalent_length_item_count('Nozzle out') == 0:
1648 2022
                no = 0
1649 2023

  
1650
            gate_ball_plug = self.ui.lineEdit_EquivalentLength_Gate_Ball_Plug_Count.text()
1651
            if gate_ball_plug:
1652
                gate_ball_plug_count = float(gate_ball_plug)
1653
            else:
1654
                gate_ball_plug_count = 0
1655

  
1656
            butterfly = self.ui.lineEdit_EquivalentLength_Butterfly_Count.text()
1657
            if butterfly:
1658
                butterfly_count = float(butterfly)
1659
            else:
1660
                butterfly_count = 0
1661

  
1662
            elbow_90 = self.ui.lineEdit_EquivalentLength_90_Elbow_Count.text()
1663
            if elbow_90:
1664
                elbow_90_count = float(elbow_90)
1665
            else:
1666
                elbow_90_count = 0
1667

  
1668
            tee_branch = self.ui.lineEdit_EquivalentLength_Tee_Branch_Count.text()
1669
            if tee_branch:
1670
                tee_branch_count = float(tee_branch)
1671
            else:
1672
                tee_branch_count = 0
1673

  
1674
            globe = self.ui.lineEdit_EquivalentLength_Globe_Count.text()
1675
            if globe:
1676
                globe_count = float(globe)
1677
            else:
1678
                globe_count = 0
1679

  
1680
            check = self.ui.lineEdit_EquivalentLength_Check_Count.text()
1681
            if check:
1682
                check_count = float(check)
1683
            else:
1684
                check_count = 0
1685

  
1686
            elbow_45 = self.ui.lineEdit_EquivalentLength_45_Elbow_Count.text()
1687
            if elbow_45:
1688
                elbow_45_count = float(elbow_45)
1689
            else:
1690
                elbow_45_count = 0
1691

  
1692
            tee_through = self.ui.lineEdit_EquivalentLength_Tee_Through_Count.text()
1693
            if tee_through:
1694
                tee_through_count = float(tee_through)
1695
            else:
1696
                tee_through_count = 0
1697

  
1698
            miter = self.ui.lineEdit_EquivalentLength_Miter_Count.text()
1699
            if miter:
1700
                miter_count = float(miter)
1701
            else:
1702
                miter_count = 0
2024
            gate_ball_plug_count = self.get_equivalent_length_item_count('Gate / Ball / Plug')
2025
            butterfly_count = self.get_equivalent_length_item_count('Butterfly')
2026
            elbow_90_count = self.get_equivalent_length_item_count('90 Elbow')
2027
            tee_branch_count = self.get_equivalent_length_item_count('Tee branch')
2028
            globe_count = self.get_equivalent_length_item_count('Globe')
2029
            check_count = self.get_equivalent_length_item_count('Check')
2030
            elbow_45_count = self.get_equivalent_length_item_count('45 Elbow')
2031
            tee_through_count = self.get_equivalent_length_item_count('Tee through')
2032
            miter_count = self.get_equivalent_length_item_count('Miter')
1703 2033

  
1704 2034
            elength = gate_ball_plug_count * a + (
1705 2035
                    butterfly_count + elbow_90_count + tee_through_count) * b + globe_count * c + check_count * d + elbow_45_count * e + tee_branch_count * f + miter_count * g + ni + no
HYTOS/HYTOS/Fittings_UI.py
13 13
class Ui_Dialog(object):
14 14
    def setupUi(self, Dialog):
15 15
        Dialog.setObjectName("Dialog")
16
        Dialog.resize(863, 781)
16
        Dialog.resize(831, 519)
17 17
        font = QtGui.QFont()
18 18
        font.setFamily("맑은 고딕")
19 19
        Dialog.setFont(font)
......
38 38
        self.groupBox_27.setObjectName("groupBox_27")
39 39
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_27)
40 40
        self.gridLayout_4.setObjectName("gridLayout_4")
41
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
42
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
43
        self.label_19 = QtWidgets.QLabel(self.groupBox_27)
44
        self.label_19.setMinimumSize(QtCore.QSize(120, 0))
45
        self.label_19.setMaximumSize(QtCore.QSize(120, 16777215))
46
        self.label_19.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
47
        self.label_19.setObjectName("label_19")
48
        self.horizontalLayout_3.addWidget(self.label_19)
49
        self.lineEdit_EquivalentLength_Miter_Count = QtWidgets.QLineEdit(self.groupBox_27)
50
        self.lineEdit_EquivalentLength_Miter_Count.setMinimumSize(QtCore.QSize(72, 0))
51
        self.lineEdit_EquivalentLength_Miter_Count.setMaximumSize(QtCore.QSize(72, 16777215))
52
        self.lineEdit_EquivalentLength_Miter_Count.setAlignment(QtCore.Qt.AlignCenter)
53
        self.lineEdit_EquivalentLength_Miter_Count.setObjectName("lineEdit_EquivalentLength_Miter_Count")
54
        self.horizontalLayout_3.addWidget(self.lineEdit_EquivalentLength_Miter_Count)
55
        self.label_12 = QtWidgets.QLabel(self.groupBox_27)
56
        self.label_12.setObjectName("label_12")
57
        self.horizontalLayout_3.addWidget(self.label_12)
58
        self.comboBox_EquivalentLength_Miter_Degree = QtWidgets.QComboBox(self.groupBox_27)
59
        self.comboBox_EquivalentLength_Miter_Degree.setMinimumSize(QtCore.QSize(50, 0))
60
        self.comboBox_EquivalentLength_Miter_Degree.setMaximumSize(QtCore.QSize(50, 16777215))
61
        self.comboBox_EquivalentLength_Miter_Degree.setObjectName("comboBox_EquivalentLength_Miter_Degree")
62
        self.horizontalLayout_3.addWidget(self.comboBox_EquivalentLength_Miter_Degree)
63
        self.label_21 = QtWidgets.QLabel(self.groupBox_27)
64
        self.label_21.setObjectName("label_21")
65
        self.horizontalLayout_3.addWidget(self.label_21)
66
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
67
        self.horizontalLayout_3.addItem(spacerItem)
68
        self.gridLayout_4.addLayout(self.horizontalLayout_3, 5, 0, 1, 1)
69
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
70
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
71
        self.label_2 = QtWidgets.QLabel(self.groupBox_27)
72
        self.label_2.setMinimumSize(QtCore.QSize(120, 0))
73
        self.label_2.setMaximumSize(QtCore.QSize(120, 16777215))
74
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
75
        self.label_2.setObjectName("label_2")
76
        self.horizontalLayout_4.addWidget(self.label_2)
77
        self.lineEdit_EquivalentLength_Gate_Ball_Plug_Count = QtWidgets.QLineEdit(self.groupBox_27)
78
        self.lineEdit_EquivalentLength_Gate_Ball_Plug_Count.setMinimumSize(QtCore.QSize(72, 0))
79
        self.lineEdit_EquivalentLength_Gate_Ball_Plug_Count.setMaximumSize(QtCore.QSize(72, 16777215))
80
        self.lineEdit_EquivalentLength_Gate_Ball_Plug_Count.setAlignment(QtCore.Qt.AlignCenter)
81
        self.lineEdit_EquivalentLength_Gate_Ball_Plug_Count.setObjectName("lineEdit_EquivalentLength_Gate_Ball_Plug_Count")
82
        self.horizontalLayout_4.addWidget(self.lineEdit_EquivalentLength_Gate_Ball_Plug_Count)
83
        self.label_5 = QtWidgets.QLabel(self.groupBox_27)
84
        self.label_5.setObjectName("label_5")
85
        self.horizontalLayout_4.addWidget(self.label_5)
86
        self.label_13 = QtWidgets.QLabel(self.groupBox_27)
87
        self.label_13.setMinimumSize(QtCore.QSize(120, 0))
88
        self.label_13.setMaximumSize(QtCore.QSize(120, 16777215))
89
        self.label_13.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
90
        self.label_13.setObjectName("label_13")
91
        self.horizontalLayout_4.addWidget(self.label_13)
92
        self.lineEdit_EquivalentLength_Globe_Count = QtWidgets.QLineEdit(self.groupBox_27)
93
        self.lineEdit_EquivalentLength_Globe_Count.setMaximumSize(QtCore.QSize(72, 16777215))
94
        self.lineEdit_EquivalentLength_Globe_Count.setAlignment(QtCore.Qt.AlignCenter)
95
        self.lineEdit_EquivalentLength_Globe_Count.setObjectName("lineEdit_EquivalentLength_Globe_Count")
96
        self.horizontalLayout_4.addWidget(self.lineEdit_EquivalentLength_Globe_Count)
97
        self.label_14 = QtWidgets.QLabel(self.groupBox_27)
98
        self.label_14.setMinimumSize(QtCore.QSize(100, 0))
99
        self.label_14.setMaximumSize(QtCore.QSize(100, 16777215))
100
        self.label_14.setObjectName("label_14")
101
        self.horizontalLayout_4.addWidget(self.label_14)
102
        self.gridLayout_4.addLayout(self.horizontalLayout_4, 1, 0, 1, 1)
103
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
104
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
105
        self.label_8 = QtWidgets.QLabel(self.groupBox_27)
106
        self.label_8.setMinimumSize(QtCore.QSize(120, 0))
107
        self.label_8.setMaximumSize(QtCore.QSize(120, 16777215))
108
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
109
        self.label_8.setObjectName("label_8")
110
        self.horizontalLayout_7.addWidget(self.label_8)
111
        self.lineEdit_EquivalentLength_90_Elbow_Count = QtWidgets.QLineEdit(self.groupBox_27)
112
        self.lineEdit_EquivalentLength_90_Elbow_Count.setMinimumSize(QtCore.QSize(72, 0))
113
        self.lineEdit_EquivalentLength_90_Elbow_Count.setMaximumSize(QtCore.QSize(72, 16777215))
114
        self.lineEdit_EquivalentLength_90_Elbow_Count.setAlignment(QtCore.Qt.AlignCenter)
115
        self.lineEdit_EquivalentLength_90_Elbow_Count.setObjectName("lineEdit_EquivalentLength_90_Elbow_Count")
116
        self.horizontalLayout_7.addWidget(self.lineEdit_EquivalentLength_90_Elbow_Count)
117
        self.label_9 = QtWidgets.QLabel(self.groupBox_27)
118
        self.label_9.setObjectName("label_9")
119
        self.horizontalLayout_7.addWidget(self.label_9)
120
        self.label_3 = QtWidgets.QLabel(self.groupBox_27)
121
        self.label_3.setMinimumSize(QtCore.QSize(120, 0))
122
        self.label_3.setMaximumSize(QtCore.QSize(120, 16777215))
123
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
124
        self.label_3.setObjectName("label_3")
125
        self.horizontalLayout_7.addWidget(self.label_3)
126
        self.lineEdit_EquivalentLength_45_Elbow_Count = QtWidgets.QLineEdit(self.groupBox_27)
127
        self.lineEdit_EquivalentLength_45_Elbow_Count.setMaximumSize(QtCore.QSize(72, 16777215))
128
        self.lineEdit_EquivalentLength_45_Elbow_Count.setAlignment(QtCore.Qt.AlignCenter)
129
        self.lineEdit_EquivalentLength_45_Elbow_Count.setObjectName("lineEdit_EquivalentLength_45_Elbow_Count")
130
        self.horizontalLayout_7.addWidget(self.lineEdit_EquivalentLength_45_Elbow_Count)
131
        self.label_4 = QtWidgets.QLabel(self.groupBox_27)
132
        self.label_4.setMinimumSize(QtCore.QSize(100, 0))
133
        self.label_4.setMaximumSize(QtCore.QSize(100, 16777215))
134
        self.label_4.setObjectName("label_4")
135
        self.horizontalLayout_7.addWidget(self.label_4)
136
        self.gridLayout_4.addLayout(self.horizontalLayout_7, 3, 0, 1, 1)
137
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
138
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
139
        self.label_10 = QtWidgets.QLabel(self.groupBox_27)
140
        self.label_10.setMinimumSize(QtCore.QSize(120, 0))
141
        self.label_10.setMaximumSize(QtCore.QSize(120, 16777215))
142
        self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
143
        self.label_10.setObjectName("label_10")
144
        self.horizontalLayout_10.addWidget(self.label_10)
145
        self.lineEdit_EquivalentLength_Tee_Branch_Count = QtWidgets.QLineEdit(self.groupBox_27)
146
        self.lineEdit_EquivalentLength_Tee_Branch_Count.setMinimumSize(QtCore.QSize(72, 0))
147
        self.lineEdit_EquivalentLength_Tee_Branch_Count.setMaximumSize(QtCore.QSize(72, 16777215))
148
        self.lineEdit_EquivalentLength_Tee_Branch_Count.setAlignment(QtCore.Qt.AlignCenter)
149
        self.lineEdit_EquivalentLength_Tee_Branch_Count.setObjectName("lineEdit_EquivalentLength_Tee_Branch_Count")
150
        self.horizontalLayout_10.addWidget(self.lineEdit_EquivalentLength_Tee_Branch_Count)
151
        self.label_11 = QtWidgets.QLabel(self.groupBox_27)
152
        self.label_11.setObjectName("label_11")
153
        self.horizontalLayout_10.addWidget(self.label_11)
154
        self.label_17 = QtWidgets.QLabel(self.groupBox_27)
155
        self.label_17.setMinimumSize(QtCore.QSize(120, 0))
156
        self.label_17.setMaximumSize(QtCore.QSize(120, 16777215))
157
        self.label_17.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
158
        self.label_17.setObjectName("label_17")
159
        self.horizontalLayout_10.addWidget(self.label_17)
160
        self.lineEdit_EquivalentLength_Tee_Through_Count = QtWidgets.QLineEdit(self.groupBox_27)
161
        self.lineEdit_EquivalentLength_Tee_Through_Count.setMaximumSize(QtCore.QSize(72, 16777215))
162
        self.lineEdit_EquivalentLength_Tee_Through_Count.setAlignment(QtCore.Qt.AlignCenter)
163
        self.lineEdit_EquivalentLength_Tee_Through_Count.setObjectName("lineEdit_EquivalentLength_Tee_Through_Count")
164
        self.horizontalLayout_10.addWidget(self.lineEdit_EquivalentLength_Tee_Through_Count)
165
        self.label_18 = QtWidgets.QLabel(self.groupBox_27)
166
        self.label_18.setMinimumSize(QtCore.QSize(100, 0))
167
        self.label_18.setMaximumSize(QtCore.QSize(100, 16777215))
168
        self.label_18.setObjectName("label_18")
169
        self.horizontalLayout_10.addWidget(self.label_18)
170
        self.gridLayout_4.addLayout(self.horizontalLayout_10, 4, 0, 1, 1)
171
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
172
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
173
        spacerItem1 = QtWidgets.QSpacerItem(120, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
174
        self.horizontalLayout_12.addItem(spacerItem1)
175
        self.checkBox_EquivalentLength_Nozzle_Out = QtWidgets.QCheckBox(self.groupBox_27)
176
        self.checkBox_EquivalentLength_Nozzle_Out.setObjectName("checkBox_EquivalentLength_Nozzle_Out")
177
        self.horizontalLayout_12.addWidget(self.checkBox_EquivalentLength_Nozzle_Out)
178
        self.gridLayout_4.addLayout(self.horizontalLayout_12, 7, 0, 1, 1)
179
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
180
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
181
        self.label_6 = QtWidgets.QLabel(self.groupBox_27)
182
        self.label_6.setMinimumSize(QtCore.QSize(120, 0))
183
        self.label_6.setMaximumSize(QtCore.QSize(120, 16777215))
184
        self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
185
        self.label_6.setObjectName("label_6")
186
        self.horizontalLayout_6.addWidget(self.label_6)
187
        self.lineEdit_EquivalentLength_Butterfly_Count = QtWidgets.QLineEdit(self.groupBox_27)
188
        self.lineEdit_EquivalentLength_Butterfly_Count.setMinimumSize(QtCore.QSize(72, 0))
189
        self.lineEdit_EquivalentLength_Butterfly_Count.setMaximumSize(QtCore.QSize(72, 16777215))
190
        self.lineEdit_EquivalentLength_Butterfly_Count.setAlignment(QtCore.Qt.AlignCenter)
191
        self.lineEdit_EquivalentLength_Butterfly_Count.setObjectName("lineEdit_EquivalentLength_Butterfly_Count")
192
        self.horizontalLayout_6.addWidget(self.lineEdit_EquivalentLength_Butterfly_Count)
193
        self.label_7 = QtWidgets.QLabel(self.groupBox_27)
194
        self.label_7.setObjectName("label_7")
195
        self.horizontalLayout_6.addWidget(self.label_7)
196
        self.label_15 = QtWidgets.QLabel(self.groupBox_27)
197
        self.label_15.setMinimumSize(QtCore.QSize(120, 0))
198
        self.label_15.setMaximumSize(QtCore.QSize(120, 16777215))
199
        self.label_15.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
200
        self.label_15.setObjectName("label_15")
201
        self.horizontalLayout_6.addWidget(self.label_15)
202
        self.lineEdit_EquivalentLength_Check_Count = QtWidgets.QLineEdit(self.groupBox_27)
203
        self.lineEdit_EquivalentLength_Check_Count.setMaximumSize(QtCore.QSize(72, 16777215))
204
        self.lineEdit_EquivalentLength_Check_Count.setAlignment(QtCore.Qt.AlignCenter)
205
        self.lineEdit_EquivalentLength_Check_Count.setObjectName("lineEdit_EquivalentLength_Check_Count")
206
        self.horizontalLayout_6.addWidget(self.lineEdit_EquivalentLength_Check_Count)
207
        self.label_16 = QtWidgets.QLabel(self.groupBox_27)
208
        self.label_16.setMinimumSize(QtCore.QSize(100, 0))
209
        self.label_16.setMaximumSize(QtCore.QSize(100, 16777215))
210
        self.label_16.setObjectName("label_16")
211
        self.horizontalLayout_6.addWidget(self.label_16)
212
        self.gridLayout_4.addLayout(self.horizontalLayout_6, 2, 0, 1, 1)
213
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
214
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
215
        spacerItem2 = QtWidgets.QSpacerItem(120, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
216
        self.horizontalLayout_5.addItem(spacerItem2)
217
        self.checkBox_EquivalentLength_Nozzle_In = QtWidgets.QCheckBox(self.groupBox_27)
218
        self.checkBox_EquivalentLength_Nozzle_In.setObjectName("checkBox_EquivalentLength_Nozzle_In")
219
        self.horizontalLayout_5.addWidget(self.checkBox_EquivalentLength_Nozzle_In)
220
        self.gridLayout_4.addLayout(self.horizontalLayout_5, 6, 0, 1, 1)
41
        self.tableWidget_Equivalent_Length_SelectedFitting = QtWidgets.QTableWidget(self.groupBox_27)
42
        self.tableWidget_Equivalent_Length_SelectedFitting.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
43
        self.tableWidget_Equivalent_Length_SelectedFitting.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
44
        self.tableWidget_Equivalent_Length_SelectedFitting.setObjectName("tableWidget_Equivalent_Length_SelectedFitting")
45
        self.tableWidget_Equivalent_Length_SelectedFitting.setColumnCount(0)
46
        self.tableWidget_Equivalent_Length_SelectedFitting.setRowCount(0)
47
        self.gridLayout_4.addWidget(self.tableWidget_Equivalent_Length_SelectedFitting, 0, 0, 1, 1)
221 48
        self.gridLayout_2.addWidget(self.groupBox_27, 1, 1, 1, 1)
222 49
        self.tabWidget_4 = QtWidgets.QTabWidget(self.tab_EquivalentLength)
223 50
        self.tabWidget_4.setMinimumSize(QtCore.QSize(0, 230))
......
300 127
        self.comboBox_Equivalent_Length_Miter = QtWidgets.QComboBox(self.scrollAreaWidgetContents_34)
301 128
        self.comboBox_Equivalent_Length_Miter.setObjectName("comboBox_Equivalent_Length_Miter")
302 129
        self.horizontalLayout_54.addWidget(self.comboBox_Equivalent_Length_Miter)
130
        self.label_70 = QtWidgets.QLabel(self.scrollAreaWidgetContents_34)
131
        self.label_70.setMinimumSize(QtCore.QSize(50, 0))
132
        self.label_70.setMaximumSize(QtCore.QSize(50, 16777215))
133
        self.label_70.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
134
        self.label_70.setObjectName("label_70")
135
        self.horizontalLayout_54.addWidget(self.label_70)
303 136
        self.comboBox_Equivalent_Length_Miter_Degree = QtWidgets.QComboBox(self.scrollAreaWidgetContents_34)
304 137
        self.comboBox_Equivalent_Length_Miter_Degree.setMinimumSize(QtCore.QSize(50, 0))
305 138
        self.comboBox_Equivalent_Length_Miter_Degree.setMaximumSize(QtCore.QSize(50, 16777215))
......
319 152
        self.pushButton_Add_Equivalent_Length_Miter.setObjectName("pushButton_Add_Equivalent_Length_Miter")
320 153
        self.horizontalLayout_54.addWidget(self.pushButton_Add_Equivalent_Length_Miter)
321 154
        self.gridLayout_59.addLayout(self.horizontalLayout_54, 2, 0, 1, 1)
322
        spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
323
        self.gridLayout_59.addItem(spacerItem3, 3, 0, 1, 1)
155
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
156
        self.gridLayout_59.addItem(spacerItem, 3, 0, 1, 1)
324 157
        self.scrollArea_25.setWidget(self.scrollAreaWidgetContents_34)
325 158
        self.gridLayout_57.addWidget(self.scrollArea_25, 0, 0, 1, 1)
326
        spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
327
        self.gridLayout_57.addItem(spacerItem4, 0, 1, 1, 1)
159
        self.scrollArea_24 = QtWidgets.QScrollArea(self.tab_17)
160
        self.scrollArea_24.setWidgetResizable(True)
161
        self.scrollArea_24.setObjectName("scrollArea_24")
162
        self.scrollAreaWidgetContents_33 = QtWidgets.QWidget()
163
        self.scrollAreaWidgetContents_33.setGeometry(QtCore.QRect(0, 0, 207, 182))
164
        self.scrollAreaWidgetContents_33.setObjectName("scrollAreaWidgetContents_33")
165
        self.scrollArea_24.setWidget(self.scrollAreaWidgetContents_33)
166
        self.gridLayout_57.addWidget(self.scrollArea_24, 0, 1, 1, 1)
328 167
        self.tabWidget_4.addTab(self.tab_17, "")
329 168
        self.tab_18 = QtWidgets.QWidget()
330 169
        self.tab_18.setObjectName("tab_18")
......
390 229
        self.pushButton_Add_Equivalent_Length_Tee_Through.setObjectName("pushButton_Add_Equivalent_Length_Tee_Through")
391 230
        self.horizontalLayout_52.addWidget(self.pushButton_Add_Equivalent_Length_Tee_Through)
392 231
        self.gridLayout_60.addLayout(self.horizontalLayout_52, 1, 0, 1, 1)
393
        spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
394
        self.gridLayout_60.addItem(spacerItem5, 2, 0, 1, 1)
232
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
233
        self.gridLayout_60.addItem(spacerItem1, 2, 0, 1, 1)
395 234
        self.scrollArea_26.setWidget(self.scrollAreaWidgetContents_35)
396 235
        self.gridLayout_58.addWidget(self.scrollArea_26, 0, 0, 1, 1)
397
        spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
398
        self.gridLayout_58.addItem(spacerItem6, 0, 1, 1, 1)
236
        self.scrollArea_29 = QtWidgets.QScrollArea(self.tab_18)
237
        self.scrollArea_29.setWidgetResizable(True)
238
        self.scrollArea_29.setObjectName("scrollArea_29")
239
        self.scrollAreaWidgetContents_38 = QtWidgets.QWidget()
240
        self.scrollAreaWidgetContents_38.setGeometry(QtCore.QRect(0, 0, 207, 182))
241
        self.scrollAreaWidgetContents_38.setObjectName("scrollAreaWidgetContents_38")
242
        self.scrollArea_29.setWidget(self.scrollAreaWidgetContents_38)
243
        self.gridLayout_58.addWidget(self.scrollArea_29, 0, 1, 1, 1)
399 244
        self.tabWidget_4.addTab(self.tab_18, "")
400 245
        self.tab_19 = QtWidgets.QWidget()
401 246
        self.tab_19.setObjectName("tab_19")
......
511 356
        self.pushButton_Add_Equivalent_Length_Butterfly.setObjectName("pushButton_Add_Equivalent_Length_Butterfly")
512 357
        self.horizontalLayout_47.addWidget(self.pushButton_Add_Equivalent_Length_Butterfly)
513 358
        self.gridLayout_62.addLayout(self.horizontalLayout_47, 2, 0, 1, 1)
514
        spacerItem7 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
515
        self.gridLayout_62.addItem(spacerItem7, 4, 0, 1, 1)
359
        spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
360
        self.gridLayout_62.addItem(spacerItem2, 4, 0, 1, 1)
516 361
        self.scrollArea_27.setWidget(self.scrollAreaWidgetContents_36)
517 362
        self.gridLayout_61.addWidget(self.scrollArea_27, 0, 0, 1, 1)
518
        spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
519
        self.gridLayout_61.addItem(spacerItem8, 0, 1, 1, 1)
363
        self.scrollArea_30 = QtWidgets.QScrollArea(self.tab_19)
364
        self.scrollArea_30.setWidgetResizable(True)
365
        self.scrollArea_30.setObjectName("scrollArea_30")
366
        self.scrollAreaWidgetContents_39 = QtWidgets.QWidget()
367
        self.scrollAreaWidgetContents_39.setGeometry(QtCore.QRect(0, 0, 207, 182))
368
        self.scrollAreaWidgetContents_39.setObjectName("scrollAreaWidgetContents_39")
369
        self.scrollArea_30.setWidget(self.scrollAreaWidgetContents_39)
370
        self.gridLayout_61.addWidget(self.scrollArea_30, 0, 1, 1, 1)
520 371
        self.tabWidget_4.addTab(self.tab_19, "")
521 372
        self.tab_20 = QtWidgets.QWidget()
522 373
        self.tab_20.setObjectName("tab_20")
......
543 394
        self.comboBox_Equivalent_Length_Nozzle_In = QtWidgets.QComboBox(self.scrollAreaWidgetContents_37)
544 395
        self.comboBox_Equivalent_Length_Nozzle_In.setObjectName("comboBox_Equivalent_Length_Nozzle_In")
545 396
        self.horizontalLayout_55.addWidget(self.comboBox_Equivalent_Length_Nozzle_In)
397
        self.lineEdit_Equivalent_Length_Nozzle_In_Count = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_37)
398
        self.lineEdit_Equivalent_Length_Nozzle_In_Count.setMinimumSize(QtCore.QSize(40, 0))
399
        self.lineEdit_Equivalent_Length_Nozzle_In_Count.setMaximumSize(QtCore.QSize(40, 16777215))
400
        self.lineEdit_Equivalent_Length_Nozzle_In_Count.setAlignment(QtCore.Qt.AlignCenter)
401
        self.lineEdit_Equivalent_Length_Nozzle_In_Count.setReadOnly(True)
402
        self.lineEdit_Equivalent_Length_Nozzle_In_Count.setObjectName("lineEdit_Equivalent_Length_Nozzle_In_Count")
403
        self.horizontalLayout_55.addWidget(self.lineEdit_Equivalent_Length_Nozzle_In_Count)
546 404
        self.pushButton_Add_Equivalent_Length_Nozzle_In = QtWidgets.QPushButton(self.scrollAreaWidgetContents_37)
547 405
        self.pushButton_Add_Equivalent_Length_Nozzle_In.setMinimumSize(QtCore.QSize(24, 24))
548 406
        self.pushButton_Add_Equivalent_Length_Nozzle_In.setMaximumSize(QtCore.QSize(24, 24))
......
562 420
        self.comboBox_Equivalent_Length_Nozzle_Out = QtWidgets.QComboBox(self.scrollAreaWidgetContents_37)
563 421
        self.comboBox_Equivalent_Length_Nozzle_Out.setObjectName("comboBox_Equivalent_Length_Nozzle_Out")
564 422
        self.horizontalLayout_57.addWidget(self.comboBox_Equivalent_Length_Nozzle_Out)
423
        self.lineEdit_Equivalent_Length_Nozzle_Out_Count = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_37)
424
        self.lineEdit_Equivalent_Length_Nozzle_Out_Count.setMinimumSize(QtCore.QSize(40, 0))
425
        self.lineEdit_Equivalent_Length_Nozzle_Out_Count.setMaximumSize(QtCore.QSize(40, 16777215))
426
        self.lineEdit_Equivalent_Length_Nozzle_Out_Count.setAlignment(QtCore.Qt.AlignCenter)
427
        self.lineEdit_Equivalent_Length_Nozzle_Out_Count.setReadOnly(True)
428
        self.lineEdit_Equivalent_Length_Nozzle_Out_Count.setObjectName("lineEdit_Equivalent_Length_Nozzle_Out_Count")
429
        self.horizontalLayout_57.addWidget(self.lineEdit_Equivalent_Length_Nozzle_Out_Count)
565 430
        self.pushButton_Add_Equivalent_Length_Nozzle_Out = QtWidgets.QPushButton(self.scrollAreaWidgetContents_37)
566 431
        self.pushButton_Add_Equivalent_Length_Nozzle_Out.setMinimumSize(QtCore.QSize(24, 24))
567 432
        self.pushButton_Add_Equivalent_Length_Nozzle_Out.setMaximumSize(QtCore.QSize(24, 24))
......
570 435
        self.pushButton_Add_Equivalent_Length_Nozzle_Out.setObjectName("pushButton_Add_Equivalent_Length_Nozzle_Out")
571 436
        self.horizontalLayout_57.addWidget(self.pushButton_Add_Equivalent_Length_Nozzle_Out)
572 437
        self.gridLayout_64.addLayout(self.horizontalLayout_57, 1, 0, 1, 1)
573
        spacerItem9 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
574
        self.gridLayout_64.addItem(spacerItem9, 2, 0, 1, 1)
438
        spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
439
        self.gridLayout_64.addItem(spacerItem3, 2, 0, 1, 1)
575 440
        self.scrollArea_28.setWidget(self.scrollAreaWidgetContents_37)
576 441
        self.gridLayout_63.addWidget(self.scrollArea_28, 0, 0, 1, 1)
577
        spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
578
        self.gridLayout_63.addItem(spacerItem10, 0, 1, 1, 1)
442
        self.scrollArea_31 = QtWidgets.QScrollArea(self.tab_20)
443
        self.scrollArea_31.setWidgetResizable(True)
444
        self.scrollArea_31.setObjectName("scrollArea_31")
445
        self.scrollAreaWidgetContents_40 = QtWidgets.QWidget()
446
        self.scrollAreaWidgetContents_40.setGeometry(QtCore.QRect(0, 0, 207, 182))
447
        self.scrollAreaWidgetContents_40.setObjectName("scrollAreaWidgetContents_40")
448
        self.scrollArea_31.setWidget(self.scrollAreaWidgetContents_40)
449
        self.gridLayout_63.addWidget(self.scrollArea_31, 0, 1, 1, 1)
579 450
        self.tabWidget_4.addTab(self.tab_20, "")
580 451
        self.gridLayout_2.addWidget(self.tabWidget_4, 0, 1, 1, 1)
581 452
        self.tabWidget.addTab(self.tab_EquivalentLength, "")
......
699 570
        self.pushButton_View_CraneK_90_Elbow_Bend.setObjectName("pushButton_View_CraneK_90_Elbow_Bend")
700 571
        self.horizontalLayout.addWidget(self.pushButton_View_CraneK_90_Elbow_Bend)
701 572
        self.gridLayout_20.addLayout(self.horizontalLayout, 2, 0, 1, 1)
702
        spacerItem11 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
703
        self.gridLayout_20.addItem(spacerItem11, 4, 0, 1, 1)
573
        spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
574
        self.gridLayout_20.addItem(spacerItem4, 4, 0, 1, 1)
704 575
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
705 576
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
706 577
        self.label_22 = QtWidgets.QLabel(self.scrollAreaWidgetContents_8)
......
756 627
        self.scrollArea.setWidgetResizable(True)
757 628
        self.scrollArea.setObjectName("scrollArea")
758 629
        self.scrollAreaWidgetContents_10 = QtWidgets.QWidget()
759
        self.scrollAreaWidgetContents_10.setGeometry(QtCore.QRect(0, 0, 429, 181))
630
        self.scrollAreaWidgetContents_10.setGeometry(QtCore.QRect(0, 0, 207, 181))
760 631
        self.scrollAreaWidgetContents_10.setObjectName("scrollAreaWidgetContents_10")
761 632
        self.gridLayout_17 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_10)
762 633
        self.gridLayout_17.setObjectName("gridLayout_17")
......
789 660
        self.scrollAreaWidgetContents_4.setObjectName("scrollAreaWidgetContents_4")
790 661
        self.gridLayout_12 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_4)
791 662
        self.gridLayout_12.setObjectName("gridLayout_12")
792
        spacerItem12 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
793
        self.gridLayout_12.addItem(spacerItem12, 2, 0, 1, 1)
663
        spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
664
        self.gridLayout_12.addItem(spacerItem5, 2, 0, 1, 1)
794 665
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
795 666
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
796 667
        self.label_23 = QtWidgets.QLabel(self.scrollAreaWidgetContents_4)
......
921 792
        self.scrollArea_CraneK_180_Elbow.setWidgetResizable(True)
922 793
        self.scrollArea_CraneK_180_Elbow.setObjectName("scrollArea_CraneK_180_Elbow")
923 794
        self.scrollAreaWidgetContents_9 = QtWidgets.QWidget()
924
        self.scrollAreaWidgetContents_9.setGeometry(QtCore.QRect(0, 0, 548, 181))
795
        self.scrollAreaWidgetContents_9.setGeometry(QtCore.QRect(0, 0, 301, 114))
925 796
        self.scrollAreaWidgetContents_9.setObjectName("scrollAreaWidgetContents_9")
926 797
        self.gridLayout_22 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_9)
927 798
        self.gridLayout_22.setObjectName("gridLayout_22")
......
1066 937
        self.pushButton_View_CraneK_180_Elbow_Bend.setObjectName("pushButton_View_CraneK_180_Elbow_Bend")
1067 938
        self.horizontalLayout_14.addWidget(self.pushButton_View_CraneK_180_Elbow_Bend)
1068 939
        self.gridLayout_22.addLayout(self.horizontalLayout_14, 1, 0, 1, 1)
1069
        spacerItem13 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1070
        self.gridLayout_22.addItem(spacerItem13, 3, 0, 1, 1)
940
        spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
941
        self.gridLayout_22.addItem(spacerItem6, 3, 0, 1, 1)
1071 942
        self.scrollArea_CraneK_180_Elbow.setWidget(self.scrollAreaWidgetContents_9)
1072 943
        self.gridLayout_26.addWidget(self.scrollArea_CraneK_180_Elbow, 1, 0, 1, 1)
1073 944
        self.scrollArea_3 = QtWidgets.QScrollArea(self.tab_4)
......
1076 947
        self.scrollArea_3.setWidgetResizable(True)
1077 948
        self.scrollArea_3.setObjectName("scrollArea_3")
1078 949
        self.scrollAreaWidgetContents_12 = QtWidgets.QWidget()
1079
        self.scrollAreaWidgetContents_12.setGeometry(QtCore.QRect(0, 0, 204, 181))
950
        self.scrollAreaWidgetContents_12.setGeometry(QtCore.QRect(0, 0, 98, 33))
1080 951
        self.scrollAreaWidgetContents_12.setObjectName("scrollAreaWidgetContents_12")
1081 952
        self.gridLayout = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_12)
1082 953
        self.gridLayout.setObjectName("gridLayout")
......
1100 971
        self.scrollArea_CraneK_Tees.setWidgetResizable(True)
1101 972
        self.scrollArea_CraneK_Tees.setObjectName("scrollArea_CraneK_Tees")
1102 973
        self.scrollAreaWidgetContents_5 = QtWidgets.QWidget()
1103
        self.scrollAreaWidgetContents_5.setGeometry(QtCore.QRect(0, 0, 531, 50))
974
        self.scrollAreaWidgetContents_5.setGeometry(QtCore.QRect(0, 0, 301, 50))
1104 975
        self.scrollAreaWidgetContents_5.setObjectName("scrollAreaWidgetContents_5")
1105 976
        self.gridLayout_14 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_5)
1106 977
        self.gridLayout_14.setObjectName("gridLayout_14")
......
1151 1022
        self.pushButton_View_CraneK_Tees.setObjectName("pushButton_View_CraneK_Tees")
1152 1023
        self.horizontalLayout_16.addWidget(self.pushButton_View_CraneK_Tees)
1153 1024
        self.gridLayout_14.addLayout(self.horizontalLayout_16, 0, 0, 1, 1)
1154
        spacerItem14 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1155
        self.gridLayout_14.addItem(spacerItem14, 1, 0, 1, 1)
1025
        spacerItem7 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1026
        self.gridLayout_14.addItem(spacerItem7, 1, 0, 1, 1)
1156 1027
        self.scrollArea_CraneK_Tees.setWidget(self.scrollAreaWidgetContents_5)
1157 1028
        self.gridLayout_11.addWidget(self.scrollArea_CraneK_Tees, 0, 0, 1, 1)
1158 1029
        self.scrollArea_4 = QtWidgets.QScrollArea(self.tab_5)
......
1161 1032
        self.scrollArea_4.setWidgetResizable(True)
1162 1033
        self.scrollArea_4.setObjectName("scrollArea_4")
1163 1034
        self.scrollAreaWidgetContents_13 = QtWidgets.QWidget()
1164
        self.scrollAreaWidgetContents_13.setGeometry(QtCore.QRect(0, 0, 24, 33))
1035
        self.scrollAreaWidgetContents_13.setGeometry(QtCore.QRect(0, 0, 98, 33))
1165 1036
        self.scrollAreaWidgetContents_13.setObjectName("scrollAreaWidgetContents_13")
1166 1037
        self.gridLayout_28 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_13)
1167 1038
        self.gridLayout_28.setObjectName("gridLayout_28")
......
1254 1125
        self.label_46.setObjectName("label_46")
1255 1126
        self.horizontalLayout_32.addWidget(self.label_46)
1256 1127
        self.gridLayout_10.addLayout(self.horizontalLayout_32, 5, 0, 1, 1)
1257
        spacerItem15 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1258
        self.gridLayout_10.addItem(spacerItem15, 6, 0, 1, 1)
1128
        spacerItem8 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1129
        self.gridLayout_10.addItem(spacerItem8, 6, 0, 1, 1)
1259 1130
        self.horizontalLayout_17 = QtWidgets.QHBoxLayout()
1260 1131
        self.horizontalLayout_17.setObjectName("horizontalLayout_17")
1261 1132
        self.label_29 = QtWidgets.QLabel(self.scrollAreaWidgetContents_3)
......
1322 1193
        self.label_CraneK_Main_Size_Unit.setText("")
1323 1194
        self.label_CraneK_Main_Size_Unit.setObjectName("label_CraneK_Main_Size_Unit")
1324 1195
        self.horizontalLayout_31.addWidget(self.label_CraneK_Main_Size_Unit)
1325
        spacerItem16 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
1326
        self.horizontalLayout_31.addItem(spacerItem16)
1196
        spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
1197
        self.horizontalLayout_31.addItem(spacerItem9)
1327 1198
        self.gridLayout_10.addLayout(self.horizontalLayout_31, 3, 0, 1, 1)
1328 1199
        self.horizontalLayout_33 = QtWidgets.QHBoxLayout()
1329 1200
        self.horizontalLayout_33.setObjectName("horizontalLayout_33")
......
1343 1214
        self.label_CraneK_Sub_Size_Unit.setText("")
1344 1215
        self.label_CraneK_Sub_Size_Unit.setObjectName("label_CraneK_Sub_Size_Unit")
1345 1216
        self.horizontalLayout_33.addWidget(self.label_CraneK_Sub_Size_Unit)
1346
        spacerItem17 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
1347
        self.horizontalLayout_33.addItem(spacerItem17)
1217
        spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
1218
        self.horizontalLayout_33.addItem(spacerItem10)
1348 1219
        self.gridLayout_10.addLayout(self.horizontalLayout_33, 4, 0, 1, 1)
1349 1220
        self.scrollArea_CraneK_RE.setWidget(self.scrollAreaWidgetContents_3)
1350 1221
        self.gridLayout_13.addWidget(self.scrollArea_CraneK_RE, 0, 0, 1, 1)
......
1354 1225
        self.scrollArea_5.setWidgetResizable(True)
1355 1226
        self.scrollArea_5.setObjectName("scrollArea_5")
1356 1227
        self.scrollAreaWidgetContents_14 = QtWidgets.QWidget()
1357
        self.scrollAreaWidgetContents_14.setGeometry(QtCore.QRect(0, 0, 429, 181))
1228
        self.scrollAreaWidgetContents_14.setGeometry(QtCore.QRect(0, 0, 239, 181))
1358 1229
        self.scrollAreaWidgetContents_14.setObjectName("scrollAreaWidgetContents_14")
1359 1230
        self.gridLayout_30 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_14)
1360 1231
        self.gridLayout_30.setObjectName("gridLayout_30")
......
1378 1249
        self.scrollArea_CraneK_Valves.setWidgetResizable(True)
1379 1250
        self.scrollArea_CraneK_Valves.setObjectName("scrollArea_CraneK_Valves")
1380 1251
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
1381
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 548, 181))
1252
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 301, 146))
1382 1253
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
1383 1254
        self.gridLayout_6 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents)
1384 1255
        self.gridLayout_6.setObjectName("gridLayout_6")
......
1478 1349
        self.pushButton_View_CraneK_Valves_Foot.setObjectName("pushButton_View_CraneK_Valves_Foot")
1479 1350
        self.horizontalLayout_21.addWidget(self.pushButton_View_CraneK_Valves_Foot)
1480 1351
        self.gridLayout_6.addLayout(self.horizontalLayout_21, 2, 0, 1, 1)
1481
        spacerItem18 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1482
        self.gridLayout_6.addItem(spacerItem18, 4, 0, 1, 1)
1352
        spacerItem11 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1353
        self.gridLayout_6.addItem(spacerItem11, 4, 0, 1, 1)
1483 1354
        self.horizontalLayout_22 = QtWidgets.QHBoxLayout()
1484 1355
        self.horizontalLayout_22.setObjectName("horizontalLayout_22")
1485 1356
        self.label_34 = QtWidgets.QLabel(self.scrollAreaWidgetContents)
......
1584 1455
        self.scrollArea_6.setWidgetResizable(True)
1585 1456
        self.scrollArea_6.setObjectName("scrollArea_6")
1586 1457
        self.scrollAreaWidgetContents_15 = QtWidgets.QWidget()
1587
        self.scrollAreaWidgetContents_15.setGeometry(QtCore.QRect(0, 0, 429, 181))
1458
        self.scrollAreaWidgetContents_15.setGeometry(QtCore.QRect(0, 0, 98, 33))
1588 1459
        self.scrollAreaWidgetContents_15.setObjectName("scrollAreaWidgetContents_15")
1589 1460
        self.gridLayout_32 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_15)
1590 1461
        self.gridLayout_32.setObjectName("gridLayout_32")
......
1608 1479
        self.scrollArea_CraneK_Pipe.setWidgetResizable(True)
1609 1480
        self.scrollArea_CraneK_Pipe.setObjectName("scrollArea_CraneK_Pipe")
1610 1481
        self.scrollAreaWidgetContents_6 = QtWidgets.QWidget()
1611
        self.scrollAreaWidgetContents_6.setGeometry(QtCore.QRect(0, 0, 548, 181))
1482
        self.scrollAreaWidgetContents_6.setGeometry(QtCore.QRect(0, 0, 301, 82))
1612 1483
        self.scrollAreaWidgetContents_6.setObjectName("scrollAreaWidgetContents_6")
1613 1484
        self.gridLayout_16 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_6)
1614 1485
        self.gridLayout_16.setObjectName("gridLayout_16")
......
1706 1577
        self.pushButton_View_CraneK_Pipe_Exit.setObjectName("pushButton_View_CraneK_Pipe_Exit")
1707 1578
        self.horizontalLayout_24.addWidget(self.pushButton_View_CraneK_Pipe_Exit)
1708 1579
        self.gridLayout_16.addLayout(self.horizontalLayout_24, 1, 0, 1, 1)
1709
        spacerItem19 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1710
        self.gridLayout_16.addItem(spacerItem19, 2, 0, 1, 1)
1580
        spacerItem12 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1581
        self.gridLayout_16.addItem(spacerItem12, 2, 0, 1, 1)
1711 1582
        self.scrollArea_CraneK_Pipe.setWidget(self.scrollAreaWidgetContents_6)
1712 1583
        self.gridLayout_15.addWidget(self.scrollArea_CraneK_Pipe, 0, 0, 1, 1)
1713 1584
        self.scrollArea_7 = QtWidgets.QScrollArea(self.tab_8)
......
1716 1587
        self.scrollArea_7.setWidgetResizable(True)
1717 1588
        self.scrollArea_7.setObjectName("scrollArea_7")
1718 1589
        self.scrollAreaWidgetContents_16 = QtWidgets.QWidget()
1719
        self.scrollAreaWidgetContents_16.setGeometry(QtCore.QRect(0, 0, 429, 181))
1590
        self.scrollAreaWidgetContents_16.setGeometry(QtCore.QRect(0, 0, 98, 33))
1720 1591
        self.scrollAreaWidgetContents_16.setObjectName("scrollAreaWidgetContents_16")
1721 1592
        self.gridLayout_34 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_16)
1722 1593
        self.gridLayout_34.setObjectName("gridLayout_34")
......
1740 1611
        self.scrollArea_CraneK_Check_Valves.setWidgetResizable(True)
1741 1612
        self.scrollArea_CraneK_Check_Valves.setObjectName("scrollArea_CraneK_Check_Valves")
1742 1613
        self.scrollAreaWidgetContents_7 = QtWidgets.QWidget()
1743
        self.scrollAreaWidgetContents_7.setGeometry(QtCore.QRect(0, 0, 548, 181))
1614
        self.scrollAreaWidgetContents_7.setGeometry(QtCore.QRect(0, 0, 301, 178))
1744 1615
        self.scrollAreaWidgetContents_7.setObjectName("scrollAreaWidgetContents_7")
1745 1616
        self.gridLayout_18 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_7)
1746 1617
        self.gridLayout_18.setObjectName("gridLayout_18")
......
1885 1756
        self.pushButton_View_CraneK_Check_Valves_Globe_Stop.setObjectName("pushButton_View_CraneK_Check_Valves_Globe_Stop")
1886 1757
        self.horizontalLayout_28.addWidget(self.pushButton_View_CraneK_Check_Valves_Globe_Stop)
1887 1758
        self.gridLayout_18.addLayout(self.horizontalLayout_28, 3, 0, 1, 1)
1888
        spacerItem20 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1889
        self.gridLayout_18.addItem(spacerItem20, 5, 0, 1, 1)
1759
        spacerItem13 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1760
        self.gridLayout_18.addItem(spacerItem13, 5, 0, 1, 1)
1890 1761
        self.horizontalLayout_29 = QtWidgets.QHBoxLayout()
1891 1762
        self.horizontalLayout_29.setObjectName("horizontalLayout_29")
1892 1763
        self.label_41 = QtWidgets.QLabel(self.scrollAreaWidgetContents_7)
......
1989 1860
        self.scrollArea_8.setWidgetResizable(True)
1990 1861
        self.scrollArea_8.setObjectName("scrollArea_8")
1991 1862
        self.scrollAreaWidgetContents_17 = QtWidgets.QWidget()
1992
        self.scrollAreaWidgetContents_17.setGeometry(QtCore.QRect(0, 0, 429, 181))
1863
        self.scrollAreaWidgetContents_17.setGeometry(QtCore.QRect(0, 0, 98, 33))
1993 1864
        self.scrollAreaWidgetContents_17.setObjectName("scrollAreaWidgetContents_17")
1994 1865
        self.gridLayout_36 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_17)
1995 1866
        self.gridLayout_36.setObjectName("gridLayout_36")
......
2013 1884
        self.scrollArea_CraneK_Manual.setWidgetResizable(True)
2014 1885
        self.scrollArea_CraneK_Manual.setObjectName("scrollArea_CraneK_Manual")
2015 1886
        self.scrollAreaWidgetContents_2 = QtWidgets.QWidget()
2016
        self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 531, 50))
1887
        self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 301, 50))
2017 1888
        self.scrollAreaWidgetContents_2.setObjectName("scrollAreaWidgetContents_2")
2018 1889
        self.gridLayout_8 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_2)
2019 1890
        self.gridLayout_8.setObjectName("gridLayout_8")
2020
        spacerItem21 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2021
        self.gridLayout_8.addItem(spacerItem21, 1, 0, 1, 1)
1891
        spacerItem14 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
1892
        self.gridLayout_8.addItem(spacerItem14, 1, 0, 1, 1)
2022 1893
        self.horizontalLayout_30 = QtWidgets.QHBoxLayout()
2023 1894
        self.horizontalLayout_30.setObjectName("horizontalLayout_30")
2024 1895
        self.label_42 = QtWidgets.QLabel(self.scrollAreaWidgetContents_2)
......
2074 1945
        self.scrollArea_9.setWidgetResizable(True)
2075 1946
        self.scrollArea_9.setObjectName("scrollArea_9")
2076 1947
        self.scrollAreaWidgetContents_18 = QtWidgets.QWidget()
2077
        self.scrollAreaWidgetContents_18.setGeometry(QtCore.QRect(0, 0, 24, 33))
1948
        self.scrollAreaWidgetContents_18.setGeometry(QtCore.QRect(0, 0, 98, 33))
2078 1949
        self.scrollAreaWidgetContents_18.setObjectName("scrollAreaWidgetContents_18")
2079 1950
        self.gridLayout_37 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_18)
2080 1951
        self.gridLayout_37.setObjectName("gridLayout_37")
......
2229 2100
        self.pushButton_View_2K_90_Elbow_Bend.setObjectName("pushButton_View_2K_90_Elbow_Bend")
2230 2101
        self.horizontalLayout_34.addWidget(self.pushButton_View_2K_90_Elbow_Bend)
2231 2102
        self.gridLayout_3.addLayout(self.horizontalLayout_34, 0, 0, 1, 1)
2232
        spacerItem22 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2233
        self.gridLayout_3.addItem(spacerItem22, 2, 0, 1, 1)
2103
        spacerItem15 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2104
        self.gridLayout_3.addItem(spacerItem15, 2, 0, 1, 1)
2234 2105
        self.scrollArea_10.setWidget(self.scrollAreaWidgetContents_19)
2235 2106
        self.gridLayout_44.addWidget(self.scrollArea_10, 0, 1, 1, 1)
2236 2107
        self.scrollArea_20 = QtWidgets.QScrollArea(self.tab_10)
2237 2108
        self.scrollArea_20.setWidgetResizable(True)
2238 2109
        self.scrollArea_20.setObjectName("scrollArea_20")
2239 2110
        self.scrollAreaWidgetContents_29 = QtWidgets.QWidget()
2240
        self.scrollAreaWidgetContents_29.setGeometry(QtCore.QRect(0, 0, 429, 181))
2111
        self.scrollAreaWidgetContents_29.setGeometry(QtCore.QRect(0, 0, 207, 181))
2241 2112
        self.scrollAreaWidgetContents_29.setObjectName("scrollAreaWidgetContents_29")
2242 2113
        self.gridLayout_39 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_29)
2243 2114
        self.gridLayout_39.setObjectName("gridLayout_39")
......
2261 2132
        self.scrollArea_11.setWidgetResizable(True)
2262 2133
        self.scrollArea_11.setObjectName("scrollArea_11")
2263 2134
        self.scrollAreaWidgetContents_20 = QtWidgets.QWidget()
2264
        self.scrollAreaWidgetContents_20.setGeometry(QtCore.QRect(0, 0, 548, 181))
2135
        self.scrollAreaWidgetContents_20.setGeometry(QtCore.QRect(0, 0, 301, 82))
2265 2136
        self.scrollAreaWidgetContents_20.setObjectName("scrollAreaWidgetContents_20")
2266 2137
        self.gridLayout_27 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_20)
2267 2138
        self.gridLayout_27.setObjectName("gridLayout_27")
......
2341 2212
        self.pushButton_View_2K_45_Elbow_Miter.setObjectName("pushButton_View_2K_45_Elbow_Miter")
2342 2213
        self.horizontalLayout_37.addWidget(self.pushButton_View_2K_45_Elbow_Miter)
2343 2214
        self.gridLayout_27.addLayout(self.horizontalLayout_37, 1, 0, 1, 1)
2344
        spacerItem23 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2345
        self.gridLayout_27.addItem(spacerItem23, 2, 0, 1, 1)
2215
        spacerItem16 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2216
        self.gridLayout_27.addItem(spacerItem16, 2, 0, 1, 1)
2346 2217
        self.scrollArea_11.setWidget(self.scrollAreaWidgetContents_20)
2347 2218
        self.gridLayout_42.addWidget(self.scrollArea_11, 0, 0, 1, 1)
2348 2219
        self.scrollArea_18 = QtWidgets.QScrollArea(self.tab_11)
2349 2220
        self.scrollArea_18.setWidgetResizable(True)
2350 2221
        self.scrollArea_18.setObjectName("scrollArea_18")
2351 2222
        self.scrollAreaWidgetContents_27 = QtWidgets.QWidget()
2352
        self.scrollAreaWidgetContents_27.setGeometry(QtCore.QRect(0, 0, 204, 181))
2223
        self.scrollAreaWidgetContents_27.setGeometry(QtCore.QRect(0, 0, 98, 33))
2353 2224
        self.scrollAreaWidgetContents_27.setObjectName("scrollAreaWidgetContents_27")
2354 2225
        self.gridLayout_47 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_27)
2355 2226
        self.gridLayout_47.setObjectName("gridLayout_47")
......
2373 2244
        self.scrollArea_12.setWidgetResizable(True)
2374 2245
        self.scrollArea_12.setObjectName("scrollArea_12")
2375 2246
        self.scrollAreaWidgetContents_21 = QtWidgets.QWidget()
2376
        self.scrollAreaWidgetContents_21.setGeometry(QtCore.QRect(0, 0, 531, 50))
2247
        self.scrollAreaWidgetContents_21.setGeometry(QtCore.QRect(0, 0, 301, 50))
2377 2248
        self.scrollAreaWidgetContents_21.setObjectName("scrollAreaWidgetContents_21")
2378 2249
        self.gridLayout_50 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_21)
2379 2250
        self.gridLayout_50.setObjectName("gridLayout_50")
......
2414 2285
        self.pushButton_View_2K_180_Elbow_Bend.setObjectName("pushButton_View_2K_180_Elbow_Bend")
2415 2286
        self.horizontalLayout_38.addWidget(self.pushButton_View_2K_180_Elbow_Bend)
2416 2287
        self.gridLayout_50.addLayout(self.horizontalLayout_38, 0, 0, 1, 1)
2417
        spacerItem24 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2418
        self.gridLayout_50.addItem(spacerItem24, 1, 0, 1, 1)
2288
        spacerItem17 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2289
        self.gridLayout_50.addItem(spacerItem17, 1, 0, 1, 1)
2419 2290
        self.scrollArea_12.setWidget(self.scrollAreaWidgetContents_21)
2420 2291
        self.gridLayout_40.addWidget(self.scrollArea_12, 0, 0, 1, 1)
2421 2292
        self.scrollArea_17 = QtWidgets.QScrollArea(self.tab_12)
2422 2293
        self.scrollArea_17.setWidgetResizable(True)
2423 2294
        self.scrollArea_17.setObjectName("scrollArea_17")
2424 2295
        self.scrollAreaWidgetContents_26 = QtWidgets.QWidget()
2425
        self.scrollAreaWidgetContents_26.setGeometry(QtCore.QRect(0, 0, 24, 33))
2296
        self.scrollAreaWidgetContents_26.setGeometry(QtCore.QRect(0, 0, 98, 33))
2426 2297
        self.scrollAreaWidgetContents_26.setObjectName("scrollAreaWidgetContents_26")
2427 2298
        self.gridLayout_49 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_26)
2428 2299
        self.gridLayout_49.setObjectName("gridLayout_49")
......
2446 2317
        self.scrollArea_13.setWidgetResizable(True)
2447 2318
        self.scrollArea_13.setObjectName("scrollArea_13")
2448 2319
        self.scrollAreaWidgetContents_22 = QtWidgets.QWidget()
2449
        self.scrollAreaWidgetContents_22.setGeometry(QtCore.QRect(0, 0, 531, 82))
2320
        self.scrollAreaWidgetContents_22.setGeometry(QtCore.QRect(0, 0, 301, 82))
2450 2321
        self.scrollAreaWidgetContents_22.setObjectName("scrollAreaWidgetContents_22")
2451 2322
        self.gridLayout_33 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_22)
2452 2323
        self.gridLayout_33.setObjectName("gridLayout_33")
......
2524 2395
        self.pushButton_View_2K_Tees_Through.setObjectName("pushButton_View_2K_Tees_Through")
2525 2396
        self.horizontalLayout_40.addWidget(self.pushButton_View_2K_Tees_Through)
2526 2397
        self.gridLayout_33.addLayout(self.horizontalLayout_40, 1, 0, 1, 1)
2527
        spacerItem25 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2528
        self.gridLayout_33.addItem(spacerItem25, 2, 0, 1, 1)
2398
        spacerItem18 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2399
        self.gridLayout_33.addItem(spacerItem18, 2, 0, 1, 1)
2529 2400
        self.scrollArea_13.setWidget(self.scrollAreaWidgetContents_22)
2530 2401
        self.gridLayout_41.addWidget(self.scrollArea_13, 0, 0, 1, 1)
2531 2402
        self.scrollArea_19 = QtWidgets.QScrollArea(self.tab_13)
2532 2403
        self.scrollArea_19.setWidgetResizable(True)
2533 2404
        self.scrollArea_19.setObjectName("scrollArea_19")
2534 2405
        self.scrollAreaWidgetContents_28 = QtWidgets.QWidget()
2535
        self.scrollAreaWidgetContents_28.setGeometry(QtCore.QRect(0, 0, 24, 33))
2406
        self.scrollAreaWidgetContents_28.setGeometry(QtCore.QRect(0, 0, 98, 33))
2536 2407
        self.scrollAreaWidgetContents_28.setObjectName("scrollAreaWidgetContents_28")
2537 2408
        self.gridLayout_51 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_28)
2538 2409
        self.gridLayout_51.setObjectName("gridLayout_51")
......
2671 2542
        self.pushButton_View_2K_Valves_Globe.setObjectName("pushButton_View_2K_Valves_Globe")
2672 2543
        self.horizontalLayout_42.addWidget(self.pushButton_View_2K_Valves_Globe)
2673 2544
        self.gridLayout_35.addLayout(self.horizontalLayout_42, 1, 0, 1, 1)
2674
        spacerItem26 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2675
        self.gridLayout_35.addItem(spacerItem26, 3, 0, 1, 1)
2545
        spacerItem19 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2546
        self.gridLayout_35.addItem(spacerItem19, 3, 0, 1, 1)
2676 2547
        self.scrollArea_14.setWidget(self.scrollAreaWidgetContents_23)
2677 2548
        self.gridLayout_43.addWidget(self.scrollArea_14, 0, 0, 1, 1)
2678 2549
        self.scrollArea_21 = QtWidgets.QScrollArea(self.tab_14)
......
2703 2574
        self.scrollArea_15.setWidgetResizable(True)
2704 2575
        self.scrollArea_15.setObjectName("scrollArea_15")
2705 2576
        self.scrollAreaWidgetContents_24 = QtWidgets.QWidget()
2706
        self.scrollAreaWidgetContents_24.setGeometry(QtCore.QRect(0, 0, 531, 50))
2577
        self.scrollAreaWidgetContents_24.setGeometry(QtCore.QRect(0, 0, 301, 50))
2707 2578
        self.scrollAreaWidgetContents_24.setObjectName("scrollAreaWidgetContents_24")
2708 2579
        self.gridLayout_38 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_24)
2709 2580
        self.gridLayout_38.setObjectName("gridLayout_38")
......
2744 2615
        self.pushButton_View_2K_Pipe.setObjectName("pushButton_View_2K_Pipe")
2745 2616
        self.horizontalLayout_44.addWidget(self.pushButton_View_2K_Pipe)
2746 2617
        self.gridLayout_38.addLayout(self.horizontalLayout_44, 0, 0, 1, 1)
2747
        spacerItem27 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2748
        self.gridLayout_38.addItem(spacerItem27, 1, 0, 1, 1)
2618
        spacerItem20 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2619
        self.gridLayout_38.addItem(spacerItem20, 1, 0, 1, 1)
2749 2620
        self.scrollArea_15.setWidget(self.scrollAreaWidgetContents_24)
2750 2621
        self.gridLayout_46.addWidget(self.scrollArea_15, 0, 0, 1, 1)
2751 2622
        self.scrollArea_22 = QtWidgets.QScrollArea(self.tab_15)
2752 2623
        self.scrollArea_22.setWidgetResizable(True)
2753 2624
        self.scrollArea_22.setObjectName("scrollArea_22")
2754 2625
        self.scrollAreaWidgetContents_31 = QtWidgets.QWidget()
2755
        self.scrollAreaWidgetContents_31.setGeometry(QtCore.QRect(0, 0, 24, 33))
2626
        self.scrollAreaWidgetContents_31.setGeometry(QtCore.QRect(0, 0, 98, 33))
2756 2627
        self.scrollAreaWidgetContents_31.setObjectName("scrollAreaWidgetContents_31")
2757 2628
        self.gridLayout_53 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_31)
2758 2629
        self.gridLayout_53.setObjectName("gridLayout_53")
......
2777 2648
        self.scrollArea_16.setWidgetResizable(True)
2778 2649
        self.scrollArea_16.setObjectName("scrollArea_16")
2779 2650
        self.scrollAreaWidgetContents_25 = QtWidgets.QWidget()
2780
        self.scrollAreaWidgetContents_25.setGeometry(QtCore.QRect(0, 0, 531, 50))
2651
        self.scrollAreaWidgetContents_25.setGeometry(QtCore.QRect(0, 0, 301, 50))
2781 2652
        self.scrollAreaWidgetContents_25.setObjectName("scrollAreaWidgetContents_25")
2782 2653
        self.gridLayout_45 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_25)
2783 2654
        self.gridLayout_45.setObjectName("gridLayout_45")
......
2818 2689
        self.pushButton_View_2K_Check_Valves.setObjectName("pushButton_View_2K_Check_Valves")
2819 2690
        self.horizontalLayout_45.addWidget(self.pushButton_View_2K_Check_Valves)
2820 2691
        self.gridLayout_45.addLayout(self.horizontalLayout_45, 0, 0, 1, 1)
2821
        spacerItem28 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2822
        self.gridLayout_45.addItem(spacerItem28, 1, 0, 1, 1)
2692
        spacerItem21 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
2693
        self.gridLayout_45.addItem(spacerItem21, 1, 0, 1, 1)
2823 2694
        self.scrollArea_16.setWidget(self.scrollAreaWidgetContents_25)
2824 2695
        self.gridLayout_48.addWidget(self.scrollArea_16, 0, 0, 1, 1)
2825 2696
        self.scrollArea_23 = QtWidgets.QScrollArea(self.tab_16)
2826 2697
        self.scrollArea_23.setWidgetResizable(True)
2827 2698
        self.scrollArea_23.setObjectName("scrollArea_23")
2828 2699
        self.scrollAreaWidgetContents_32 = QtWidgets.QWidget()
2829
        self.scrollAreaWidgetContents_32.setGeometry(QtCore.QRect(0, 0, 24, 33))
2700
        self.scrollAreaWidgetContents_32.setGeometry(QtCore.QRect(0, 0, 98, 33))
2830 2701
        self.scrollAreaWidgetContents_32.setObjectName("scrollAreaWidgetContents_32")
2831 2702
        self.gridLayout_54 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_32)
2832 2703
        self.gridLayout_54.setObjectName("gridLayout_54")
......
2847 2718
        self.retranslateUi(Dialog)
2848 2719
        self.tabWidget.setCurrentIndex(0)
2849 2720
        self.tabWidget_4.setCurrentIndex(0)
2850
        self.tabWidget_2.setCurrentIndex(1)
2851
        self.tabWidget_3.setCurrentIndex(4)
2721
        self.tabWidget_2.setCurrentIndex(0)
2722
        self.tabWidget_3.setCurrentIndex(0)
2852 2723
        self.buttonBox.accepted.connect(Dialog.accept)
2853 2724
        self.buttonBox.rejected.connect(Dialog.reject)
2854 2725
        QtCore.QMetaObject.connectSlotsByName(Dialog)
2855
        Dialog.setTabOrder(self.lineEdit_EquivalentLength_Gate_Ball_Plug_Count, self.lineEdit_EquivalentLength_Butterfly_Count)
2856
        Dialog.setTabOrder(self.lineEdit_EquivalentLength_Butterfly_Count, self.lineEdit_EquivalentLength_90_Elbow_Count)
2857
        Dialog.setTabOrder(self.lineEdit_EquivalentLength_90_Elbow_Count, self.lineEdit_EquivalentLength_Tee_Branch_Count)
2858
        Dialog.setTabOrder(self.lineEdit_EquivalentLength_Tee_Branch_Count, self.lineEdit_EquivalentLength_Miter_Count)
2859
        Dialog.setTabOrder(self.lineEdit_EquivalentLength_Miter_Count, self.comboBox_EquivalentLength_Miter_Degree)
2860
        Dialog.setTabOrder(self.comboBox_EquivalentLength_Miter_Degree, self.lineEdit_EquivalentLength_Globe_Count)
2861
        Dialog.setTabOrder(self.lineEdit_EquivalentLength_Globe_Count, self.lineEdit_EquivalentLength_Check_Count)
2862
        Dialog.setTabOrder(self.lineEdit_EquivalentLength_Check_Count, self.lineEdit_EquivalentLength_45_Elbow_Count)
2863
        Dialog.setTabOrder(self.lineEdit_EquivalentLength_45_Elbow_Count, self.lineEdit_EquivalentLength_Tee_Through_Count)
2864
        Dialog.setTabOrder(self.lineEdit_EquivalentLength_Tee_Through_Count, self.checkBox_EquivalentLength_Nozzle_In)
2865
        Dialog.setTabOrder(self.checkBox_EquivalentLength_Nozzle_In, self.checkBox_EquivalentLength_Nozzle_Out)
2866 2726

  
2867 2727
    def retranslateUi(self, Dialog):
2868 2728
        _translate = QtCore.QCoreApplication.translate
2869 2729
        Dialog.setWindowTitle(_translate("Dialog", "Fittings Input"))
2870
        self.label_19.setText(_translate("Dialog", "Miter :"))
2871
        self.label_12.setText(_translate("Dialog", "EA ( Deg :"))
2872
        self.label_21.setText(_translate("Dialog", ")"))
2873
        self.label_2.setText(_translate("Dialog", "Gate / Ball / Plug :"))
2874
        self.label_5.setText(_translate("Dialog", "EA"))
2875
        self.label_13.setText(_translate("Dialog", "Globe :"))
2876
        self.label_14.setText(_translate("Dialog", "EA"))
2877
        self.label_8.setText(_translate("Dialog", "90 Elbow :"))
2878
        self.label_9.setText(_translate("Dialog", "EA"))
2879
        self.label_3.setText(_translate("Dialog", "45 Elbow :"))
2880
        self.label_4.setText(_translate("Dialog", "EA"))
2881
        self.label_10.setText(_translate("Dialog", "Tee branch :"))
2882
        self.label_11.setText(_translate("Dialog", "EA"))
2883
        self.label_17.setText(_translate("Dialog", "Tee through :"))
2884
        self.label_18.setText(_translate("Dialog", "EA"))
2885
        self.checkBox_EquivalentLength_Nozzle_Out.setText(_translate("Dialog", "Nozzle Out"))
2886
        self.label_6.setText(_translate("Dialog", "Butterfly :"))
2887
        self.label_7.setText(_translate("Dialog", "EA"))
2888
        self.label_15.setText(_translate("Dialog", "Check :"))
2889
        self.label_16.setText(_translate("Dialog", "EA"))
2890
        self.checkBox_EquivalentLength_Nozzle_In.setText(_translate("Dialog", "Nozzle In"))
2891 2730
        self.label_59.setText(_translate("Dialog", "90˚ Elbow :"))
2731
        self.lineEdit_Equivalent_Length_90_Elbow_Count.setText(_translate("Dialog", "1"))
2892 2732
        self.label_60.setText(_translate("Dialog", "45˚ Elbow :"))
2733
        self.lineEdit_Equivalent_Length_45_Elbow_Count.setText(_translate("Dialog", "1"))
2893 2734
        self.label_61.setText(_translate("Dialog", "Miter :"))
2735
        self.label_70.setText(_translate("Dialog", "Angle :"))
2736
        self.lineEdit_Equivalent_Length_Miter_Count.setText(_translate("Dialog", "1"))
2894 2737
        self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_17), _translate("Dialog", "Elbow"))
2895 2738
        self.label_62.setText(_translate("Dialog", "Tee branch :"))
2739
        self.lineEdit_Equivalent_Length_Tee_Branch_Count.setText(_translate("Dialog", "1"))
2896 2740
        self.label_63.setText(_translate("Dialog", "Tee through :"))
2741
        self.lineEdit_Equivalent_Length_Tee_Through_Count.setText(_translate("Dialog", "1"))
2897 2742
        self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_18), _translate("Dialog", "Tees"))
2898 2743
        self.label_64.setText(_translate("Dialog", "Gate, Ball, Plug :"))
2744
        self.lineEdit_Equivalent_Length_Gate_Ball_Plug_Count.setText(_translate("Dialog", "1"))
2899 2745
        self.label_65.setText(_translate("Dialog", "Globe :"))
2746
        self.lineEdit_Equivalent_Length_Globe_Count.setText(_translate("Dialog", "1"))
2900 2747
        self.label_67.setText(_translate("Dialog", "Check :"))
2748
        self.lineEdit_Equivalent_Length_Check_Count.setText(_translate("Dialog", "1"))
2901 2749
        self.label_66.setText(_translate("Dialog", "Butterfly :"))
2750
        self.lineEdit_Equivalent_Length_Butterfly_Count.setText(_translate("Dialog", "1"))
2902 2751
        self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_19), _translate("Dialog", "Valves"))
2903 2752
        self.label_68.setText(_translate("Dialog", "Nozzle in :"))
2753
        self.lineEdit_Equivalent_Length_Nozzle_In_Count.setText(_translate("Dialog", "1"))
2904 2754
        self.label_69.setText(_translate("Dialog", "Nozzle out :"))
2755
        self.lineEdit_Equivalent_Length_Nozzle_Out_Count.setText(_translate("Dialog", "1"))
2905 2756
        self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_20), _translate("Dialog", "Nozzles"))
2906 2757
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_EquivalentLength), _translate("Dialog", "Equivalent Length Method"))
2907 2758
        self.label.setText(_translate("Dialog", "Standard Type :"))
... 이 차이점은 표시할 수 있는 최대 줄수를 초과해서 이 차이점은 잘렸습니다.

내보내기 Unified diff

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