src/eric7/Graphics/ClassItem.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
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 Utilities 14 from eric7 import Globals
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 = Utilities.toBool(value.strip()) 341 self.external = Globals.toBool(value.strip())
342 elif key == "no_attributes": 342 elif key == "no_attributes":
343 self.noAttrs = Utilities.toBool(value.strip()) 343 self.noAttrs = Globals.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