개정판 1ab2d887
add symbol validation
Change-Id: I09f2c22f6455de4c6c193645eb7369f79a8e2397
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
430 | 430 |
error.name = 'Warning' |
431 | 431 |
error.items = [ conn.connectedItem ] |
432 | 432 |
errors.append(error) |
433 |
|
|
434 |
if issubclass(type(conn.connectedItem), SymbolSvgItem): |
|
435 |
error = SymbolSvgItem.createItem('Error', None, dataPath) |
|
436 |
error.setPosition([self.sceneBoundingRect().center().x(), self.sceneBoundingRect().center().y()]) |
|
437 |
error.parent = self |
|
438 |
error.msg = self.tr('Symbol to symbol connection warning') |
|
439 |
error.setToolTip(error.msg) |
|
440 |
error.area = self.area |
|
441 |
error.name = 'Warning' |
|
442 |
error.items = [ conn.connectedItem ] |
|
443 |
errors.append(error) |
|
433 | 444 |
|
434 | 445 |
except Exception as ex: |
435 | 446 |
from App import App |
내보내기 Unified diff