10 import enum |
10 import enum |
11 |
11 |
12 from PyQt6.QtCore import QLineF, QPointF, QRectF |
12 from PyQt6.QtCore import QLineF, QPointF, QRectF |
13 from PyQt6.QtWidgets import QGraphicsItem |
13 from PyQt6.QtWidgets import QGraphicsItem |
14 |
14 |
15 from eric7 import Globals |
15 from eric7 import EricUtilities |
16 from eric7.EricGraphics.EricArrowItem import EricArrowItem, EricArrowType |
16 from eric7.EricGraphics.EricArrowItem import EricArrowItem, EricArrowType |
17 |
17 |
18 |
18 |
19 class AssociationType(enum.Enum): |
19 class AssociationType(enum.Enum): |
20 """ |
20 """ |
594 elif key == "dst": |
594 elif key == "dst": |
595 dst = int(value) |
595 dst = int(value) |
596 elif key == "type": |
596 elif key == "type": |
597 assocType = AssociationType(int(value)) |
597 assocType = AssociationType(int(value)) |
598 elif key == "topToBottom": |
598 elif key == "topToBottom": |
599 topToBottom = Globals.toBool(value) |
599 topToBottom = EricUtilities.toBool(value) |
600 |
600 |
601 return src, dst, assocType, topToBottom |
601 return src, dst, assocType, topToBottom |
602 |
602 |
603 def toDict(self): |
603 def toDict(self): |
604 """ |
604 """ |