src/eric7/Graphics/ClassItem.py

branch
eric7
changeset 10806
2f6df822e3b9
parent 10683
779cda568acb
child 11090
f5f5f5803935
equal deleted inserted replaced
10805:c114e9476034 10806:2f6df822e3b9
9 9
10 from PyQt6.QtCore import QCoreApplication 10 from PyQt6.QtCore import QCoreApplication
11 from PyQt6.QtGui import QFont 11 from PyQt6.QtGui import QFont
12 from PyQt6.QtWidgets import QGraphicsSimpleTextItem, QStyle 12 from PyQt6.QtWidgets import QGraphicsSimpleTextItem, QStyle
13 13
14 from eric7 import Globals 14 from eric7 import EricUtilities
15 15
16 from .UMLItem import UMLItem, UMLModel 16 from .UMLItem import UMLItem, UMLModel
17 17
18 18
19 class ClassModel(UMLModel): 19 class ClassModel(UMLModel):
336 classAttributes = [] 336 classAttributes = []
337 337
338 for part in parts: 338 for part in parts:
339 key, value = part.split("=", 1) 339 key, value = part.split("=", 1)
340 if key == "is_external": 340 if key == "is_external":
341 self.external = Globals.toBool(value.strip()) 341 self.external = EricUtilities.toBool(value.strip())
342 elif key == "no_attributes": 342 elif key == "no_attributes":
343 self.noAttrs = Globals.toBool(value.strip()) 343 self.noAttrs = EricUtilities.toBool(value.strip())
344 elif key == "name": 344 elif key == "name":
345 name = value.strip() 345 name = value.strip()
346 elif key == "attributes": 346 elif key == "attributes":
347 instanceAttributes = value.strip().split("||") 347 instanceAttributes = value.strip().split("||")
348 elif key == "methods": 348 elif key == "methods":

eric ide

mercurial