개정판 fb8c9d6f
Fix: 심볼을 외부 프로그램과 연동하는 기능 수정(위치, 사이즈, PID Name 추가)
Change-Id: I46dcde7caa3ef1bfe4b0b1e2091aa04db4fc35e5
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
351 | 351 |
|
352 | 352 |
connectedUid = [] |
353 | 353 |
for connector in self.connectors: |
354 |
# for duplicattion check
|
|
354 |
# for duplication check |
|
355 | 355 |
if connector.connectedItem and issubclass(type(connector.connectedItem), QEngineeringAbstractItem): |
356 | 356 |
connectedUid.append(str(connector.connectedItem.uid)) |
357 | 357 |
|
... | ... | |
1452 | 1452 |
deleteAction.triggered.connect(self.contextDelete) |
1453 | 1453 |
menu.addAction(deleteAction) |
1454 | 1454 |
|
1455 |
arsAction = QAction('Show on ARS', None)
|
|
1456 |
arsAction.triggered.connect(self.contextShowOnARS)
|
|
1455 |
arsAction = QAction('Show on other App', None)
|
|
1456 |
arsAction.triggered.connect(self.contextShowOnOtherApp)
|
|
1457 | 1457 |
menu.addAction(arsAction) |
1458 | 1458 |
|
1459 | 1459 |
menu.exec_(event.screenPos()) |
... | ... | |
1582 | 1582 |
event = QKeyEvent(QEvent.KeyPress, Qt.Key_J, Qt.NoModifier) |
1583 | 1583 |
App.mainWnd().keyPressEvent(event) |
1584 | 1584 |
|
1585 |
def contextShowOnARS(self):
|
|
1585 |
def contextShowOnOtherApp(self):
|
|
1586 | 1586 |
from TcpServer import TcpSocket |
1587 | 1587 |
|
1588 | 1588 |
app_doc_data = AppDocData.instance() |
... | ... | |
1592 | 1592 |
if configs and 1 == len(configs): |
1593 | 1593 |
port = int(configs[0].value) |
1594 | 1594 |
tcpserver = TcpSocket(port) |
1595 |
tcpserver.sendMessage(str(self.uid)) |
|
1595 |
tcpserver.sendMessage(f"{str(self.uid)},{self.origin[0]},{self.origin[1]},{self.size[0]},{self.size[1]}," |
|
1596 |
f"{app_doc_data.imgName}") |
|
1596 | 1597 |
|
1597 | 1598 |
def contextBindSpec(self): |
1598 | 1599 |
from App import App |
내보내기 Unified diff