eric6/QScintilla/Editor.py

changeset 8276
1436fd09d1e1
parent 8259
2bbec88047dd
child 8277
ea734702ae94
diff -r 2f4b8212a151 -r 1436fd09d1e1 eric6/QScintilla/Editor.py
--- a/eric6/QScintilla/Editor.py	Sat May 01 15:08:38 2021 +0200
+++ b/eric6/QScintilla/Editor.py	Sat May 01 16:01:43 2021 +0200
@@ -7556,12 +7556,12 @@
         """
         Private method to handle the Class Diagram context menu action.
         """
-        from Graphics.UMLDialog import UMLDialog
+        from Graphics.UMLDialog import UMLDialog, UMLDialogType
         if not self.checkDirty():
             return
         
         self.classDiagram = UMLDialog(
-            UMLDialog.ClassDiagram, self.project, self.fileName,
+            UMLDialogType.CLASS_DIAGRAM, self.project, self.fileName,
             self, noAttrs=False)
         self.classDiagram.show()
         
@@ -7569,7 +7569,7 @@
         """
         Private method to handle the Package Diagram context menu action.
         """
-        from Graphics.UMLDialog import UMLDialog
+        from Graphics.UMLDialog import UMLDialog, UMLDialogType
         if not self.checkDirty():
             return
         
@@ -7583,7 +7583,7 @@
             self.tr("""Include class attributes?"""),
             yesDefault=True)
         self.packageDiagram = UMLDialog(
-            UMLDialog.PackageDiagram, self.project, package,
+            UMLDialogType.PACKAGE_DIAGRAM, self.project, package,
             self, noAttrs=not res)
         self.packageDiagram.show()
         
@@ -7591,7 +7591,7 @@
         """
         Private method to handle the Imports Diagram context menu action.
         """
-        from Graphics.UMLDialog import UMLDialog
+        from Graphics.UMLDialog import UMLDialog, UMLDialogType
         if not self.checkDirty():
             return
         
@@ -7604,7 +7604,7 @@
             self.tr("Imports Diagram"),
             self.tr("""Include imports from external modules?"""))
         self.importsDiagram = UMLDialog(
-            UMLDialog.ImportsDiagram, self.project, package,
+            UMLDialogType.IMPORTS_DIAGRAM, self.project, package,
             self, showExternalImports=res)
         self.importsDiagram.show()
         
@@ -7612,14 +7612,14 @@
         """
         Private method to handle the Imports Diagram context menu action.
         """
-        from Graphics.UMLDialog import UMLDialog
+        from Graphics.UMLDialog import UMLDialog, UMLDialogType
         res = E5MessageBox.yesNo(
             self,
             self.tr("Application Diagram"),
             self.tr("""Include module names?"""),
             yesDefault=True)
         self.applicationDiagram = UMLDialog(
-            UMLDialog.ApplicationDiagram, self.project,
+            UMLDialogType.APPLICATION_DIAGRAM, self.project,
             self, noModules=not res)
         self.applicationDiagram.show()
     
@@ -7627,9 +7627,9 @@
         """
         Private slot to load a diagram from file.
         """
-        from Graphics.UMLDialog import UMLDialog
+        from Graphics.UMLDialog import UMLDialog, UMLDialogType
         self.loadedDiagram = UMLDialog(
-            UMLDialog.NoDiagram, self.project, parent=self)
+            UMLDialogType.NO_DIAGRAM, self.project, parent=self)
         if self.loadedDiagram.load():
             self.loadedDiagram.show(fromFile=True)
         else:

eric ide

mercurial