Graphics/UMLDialog.py

changeset 2030
db11a2fe9bbc
parent 2027
144463496a54
child 2031
c36c2eb62a75
--- a/Graphics/UMLDialog.py	Sat Sep 08 18:20:46 2012 +0200
+++ b/Graphics/UMLDialog.py	Sun Sep 09 14:46:59 2012 +0200
@@ -20,12 +20,14 @@
     """
     Class implementing a dialog showing UML like diagrams.
     """
-    def __init__(self, buildFunction=None, diagramName="Unnamed", parent=None, name=None):
+    def __init__(self, diagramType, diagramName="Unnamed", buildFunction=None,
+                 parent=None, name=""):
         """
         Constructor
         
+        @param diagramType type of the diagram (string)
+        @param diagramName name of the diagram (string)
         @param buildFunction function to build the diagram contents (function)
-        @param diagramName name of the diagram (string)
         @param parent parent widget of the view (QWidget)
         @param name name of the view widget (string)
         """
@@ -38,7 +40,8 @@
         
         self.buildFunction = buildFunction
         self.scene = QGraphicsScene(0.0, 0.0, 800.0, 600.0)
-        self.umlView = UMLGraphicsView(self.scene, diagramName, self, "umlView")
+        self.umlView = UMLGraphicsView(self.scene, diagramType, diagramName,
+            self, "umlView")
         
         self.closeAct = \
             QAction(UI.PixmapCache.getIcon("close.png"),

eric ide

mercurial