개정판 8487ecb2
add eq binding function by pressing b
Change-Id: I36a23902237490af8c894726bfe8bbc3c9b80fe0
DTI_PID/DTI_PID/Commands/ReplaceInsertCommand.py | ||
---|---|---|
97 | 97 |
|
98 | 98 |
for item in new_symbols: |
99 | 99 |
QtImageViewer.matchSymbolToLine(scene, item[0], item[1], strict=strict, auto=auto) |
100 |
elif replace_action == 'Insert' and find_symbol == 'Equipment Package':
|
|
100 |
elif replace_action == 'Insert' and find_symbol == 'Equipment Package': |
|
101 | 101 |
if not symbol_items: |
102 | 102 |
return |
103 | 103 |
|
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
1069 | 1069 |
self.connectors[0].connect(item) |
1070 | 1070 |
break |
1071 | 1071 |
|
1072 |
if type(self) is QEngineeringEquipmentItem: |
|
1073 |
for item in items: |
|
1074 |
if type(item) is QEngineeringLineItem and item.is_piping(True): |
|
1075 |
for i_connector in item.connectors: |
|
1076 |
if i_connector.connectedItem: |
|
1077 |
continue |
|
1078 |
|
|
1079 |
if self.includes(i_connector, margin=100): |
|
1080 |
i_connector.connect(self) |
|
1081 |
|
|
1082 |
elif issubclass(type(item), SymbolSvgItem) and item.has_connection: |
|
1083 |
for index in range(len(item.connectors)): |
|
1084 |
if item.connectors[index].connectedItem or (item.conn_type[index] != 'Secondary' and item.conn_type[index] != 'Primary'): |
|
1085 |
continue |
|
1086 |
|
|
1087 |
if self.includes(item.connectors[index], margin=100): |
|
1088 |
item.connectors[index].connect(self) |
|
1089 |
|
|
1072 | 1090 |
''' |
1073 | 1091 |
@brief connect attribute |
1074 | 1092 |
@author humkyung |
내보내기 Unified diff