35 @param package name of a python package to be shown (string) |
35 @param package name of a python package to be shown (string) |
36 @param parent parent widget of the view (QWidget) |
36 @param parent parent widget of the view (QWidget) |
37 @param name name of the view widget (string) |
37 @param name name of the view widget (string) |
38 @keyparam noAttrs flag indicating, that no attributes should be shown (boolean) |
38 @keyparam noAttrs flag indicating, that no attributes should be shown (boolean) |
39 """ |
39 """ |
|
40 UMLDialog.__init__(self, parent=parent) |
|
41 |
40 self.package = Utilities.normabspath(package) |
42 self.package = Utilities.normabspath(package) |
41 self.allClasses = {} |
43 self.allClasses = {} |
42 self.noAttrs = noAttrs |
44 self.noAttrs = noAttrs |
43 |
45 |
44 pname = project.getProjectName() |
46 pname = project.getProjectName() |
45 if pname: |
47 if pname: |
46 name = "{0}: {1}".format(pname, project.getRelativePath(self.package)) |
48 name = self.trUtf8("Package Diagram {0}: {1}").format( |
|
49 pname, project.getRelativePath(self.package)) |
47 else: |
50 else: |
48 name = self.package |
51 name = self.trUtf8("Package Diagram: {0}").format(self.package) |
49 UMLDialog.__init__(self, name, parent) |
52 self.setDiagramName(name) |
50 |
53 |
51 if not name: |
54 if not name: |
52 self.setObjectName("PackageDiagram") |
55 self.setObjectName("PackageDiagram") |
53 else: |
56 else: |
54 self.setObjectName(name) |
57 self.setObjectName(name) |