개정판 e8f10cf9
issue #000: fix spec stream selection and rotation
Change-Id: Iab4cb9d2cc5dbb2a7d62e7b35ad801d2c78fb511
DTI_PID/DTI_PID/Commands/SelectAttributeCommand.py | ||
---|---|---|
6 | 6 |
import AbstractCommand |
7 | 7 |
|
8 | 8 |
try: |
9 |
from PyQt5.QtCore import Qt, QRectF, pyqtSignal, QT_VERSION_STR, QEvent
|
|
10 |
from PyQt5.QtGui import QImage, QPixmap, QPainterPath, QCursor, QMouseEvent, QTransform
|
|
11 |
from PyQt5.QtWidgets import QGraphicsView, QGraphicsScene, QFileDialog, QTableWidgetItem
|
|
9 |
from PyQt5.QtCore import *
|
|
10 |
from PyQt5.QtGui import *
|
|
11 |
from PyQt5.QtWidgets import *
|
|
12 | 12 |
except ImportError: |
13 | 13 |
try: |
14 | 14 |
from PyQt4.QtCore import Qt, QRectF, pyqtSignal, QT_VERSION_STR, QEvent |
... | ... | |
75 | 75 |
elif item is not None and self._attr.AttributeType == 'CONN' and (type(item) is QEngineeringConnectorItem): |
76 | 76 |
self._item.connectors[self._attr.AttrAt - 1].connect(item.parent, QEngineeringAbstractItem.CONNECTED_AT_PT) |
77 | 77 |
self.onSuccess.emit() |
78 |
elif item is not None and issubclass(type(self._item), QEngineeringSpecBreakItem) and self._attr.AttributeType == 'Comp Item': |
|
78 |
elif item is not None and issubclass(type(self._item), QEngineeringSpecBreakItem) and self._attr.AttributeType == 'Comp Item' and type(item) is not QGraphicsPixmapItem:
|
|
79 | 79 |
self._item.attrs[self._attr] = str(item.uid) |
80 | 80 |
self.onSuccess.emit() |
81 | 81 |
elif item is not None and (type(self._item) is not QEngineeringEndBreakItem) and (type(item) is QEngineeringLineNoTextItem) and self._attr.AttributeType == 'OWNER': |
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
1468 | 1468 |
@date 2018.07.25 |
1469 | 1469 |
''' |
1470 | 1470 |
def getCurrentPoint(self): |
1471 |
from EngineeringSpecBreakItem import QEngineeringSpecBreakItem |
|
1471 |
#from EngineeringSpecBreakItem import QEngineeringSpecBreakItem
|
|
1472 | 1472 |
|
1473 | 1473 |
pointList = [] |
1474 | 1474 |
pointList.append(self.symbolOrigin) |
1475 | 1475 |
for connector in self.connectors: |
1476 | 1476 |
pointList.append(connector.connectPoint) |
1477 | 1477 |
|
1478 |
if type(self) is QEngineeringSpecBreakItem: |
|
1479 |
self.currentPointModeIndex = 1 |
|
1478 |
#if type(self) is QEngineeringSpecBreakItem:
|
|
1479 |
# self.currentPointModeIndex = 1
|
|
1480 | 1480 |
|
1481 | 1481 |
return pointList[self.currentPointModeIndex] |
1482 | 1482 |
|
내보내기 Unified diff