eric6/Graphics/UMLDiagramBuilder.py

changeset 8289
871b40c5a77a
parent 8218
7c09585bd960
child 8291
3d79b1e5bf3c
equal deleted inserted replaced
8288:809d5d5ac2ba 8289:871b40c5a77a
16 """ 16 """
17 def __init__(self, dialog, view, project): 17 def __init__(self, dialog, view, project):
18 """ 18 """
19 Constructor 19 Constructor
20 20
21 @param dialog reference to the UML dialog (UMLDialog) 21 @param dialog reference to the UML dialog
22 @param view reference to the view object (UMLGraphicsView) 22 @type UMLDialog
23 @param project reference to the project object (Project) 23 @param view reference to the view object
24 @type UMLGraphicsView
25 @param project reference to the project object
26 @type Project
24 """ 27 """
25 super().__init__(dialog) 28 super().__init__(dialog)
26 29
27 self.umlView = view 30 self.umlView = view
28 self.scene = self.umlView.scene() 31 self.scene = self.umlView.scene()
48 51
49 def getPersistenceData(self): 52 def getPersistenceData(self):
50 """ 53 """
51 Public method to get a string for data to be persisted. 54 Public method to get a string for data to be persisted.
52 55
53 @return persisted data string (string) 56 @return persisted data string
57 @rtype str
54 """ 58 """
55 return "" 59 return ""
56 60
57 def parsePersistenceData(self, version, data): 61 def parsePersistenceData(self, version, data):
58 """ 62 """
59 Public method to parse persisted data. 63 Public method to parse persisted data.
60 64
61 @param version version of the data (string) 65 @param version version of the data
62 @param data persisted data to be parsed (string) 66 @type str
63 @return flag indicating success (boolean) 67 @param data persisted data to be parsed
68 @type str
69 @return flag indicating success
70 @rtype bool
64 """ 71 """
65 return True 72 return True

eric ide

mercurial