Introduced the ItemType class variable for the various UML graphics items.

Sun, 09 Sep 2012 17:46:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 09 Sep 2012 17:46:32 +0200
changeset 2032
704593d042fe
parent 2031
c36c2eb62a75
child 2033
4b99609f6a87

Introduced the ItemType class variable for the various UML graphics items.

APIs/Python3/eric5.api file | annotate | diff | comparison | revisions
Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Documentation/Source/eric5.Graphics.ClassItem.html file | annotate | diff | comparison | revisions
Documentation/Source/eric5.Graphics.ModuleItem.html file | annotate | diff | comparison | revisions
Documentation/Source/eric5.Graphics.PackageItem.html file | annotate | diff | comparison | revisions
Graphics/ClassItem.py file | annotate | diff | comparison | revisions
Graphics/ModuleItem.py file | annotate | diff | comparison | revisions
Graphics/PackageItem.py file | annotate | diff | comparison | revisions
--- a/APIs/Python3/eric5.api	Sun Sep 09 17:40:32 2012 +0200
+++ b/APIs/Python3/eric5.api	Sun Sep 09 17:46:32 2012 +0200
@@ -1635,6 +1635,7 @@
 eric5.Graphics.AssociationItem.SouthEast?7
 eric5.Graphics.AssociationItem.SouthWest?7
 eric5.Graphics.AssociationItem.West?7
+eric5.Graphics.ClassItem.ClassItem.ItemType?7
 eric5.Graphics.ClassItem.ClassItem.buildItemDataString?4()
 eric5.Graphics.ClassItem.ClassItem.isExternal?4()
 eric5.Graphics.ClassItem.ClassItem.paint?4(painter, option, widget=None)
@@ -1651,6 +1652,7 @@
 eric5.Graphics.GraphicsUtilities.sort?4(nodes, routes, noRecursion=False)
 eric5.Graphics.ImportsDiagramBuilder.ImportsDiagramBuilder.buildDiagram?4()
 eric5.Graphics.ImportsDiagramBuilder.ImportsDiagramBuilder?1(dialog, view, project, package, showExternalImports=False)
+eric5.Graphics.ModuleItem.ModuleItem.ItemType?7
 eric5.Graphics.ModuleItem.ModuleItem.buildItemDataString?4()
 eric5.Graphics.ModuleItem.ModuleItem.paint?4(painter, option, widget=None)
 eric5.Graphics.ModuleItem.ModuleItem.parseItemDataString?4(data)
@@ -1662,6 +1664,7 @@
 eric5.Graphics.ModuleItem.ModuleModel?1(name, classlist=[])
 eric5.Graphics.PackageDiagramBuilder.PackageDiagramBuilder.buildDiagram?4()
 eric5.Graphics.PackageDiagramBuilder.PackageDiagramBuilder?1(dialog, view, project, package, noAttrs=False)
+eric5.Graphics.PackageItem.PackageItem.ItemType?7
 eric5.Graphics.PackageItem.PackageItem.buildItemDataString?4()
 eric5.Graphics.PackageItem.PackageItem.paint?4(painter, option, widget=None)
 eric5.Graphics.PackageItem.PackageItem.parseItemDataString?4(data)
Binary file Documentation/Help/source.qch has changed
--- a/Documentation/Source/eric5.Graphics.ClassItem.html	Sun Sep 09 17:40:32 2012 +0200
+++ b/Documentation/Source/eric5.Graphics.ClassItem.html	Sun Sep 09 17:46:32 2012 +0200
@@ -52,7 +52,7 @@
 UMLItem
 <h3>Class Attributes</h3>
 <table>
-<tr><td>None</td></tr>
+<tr><td>ItemType</td></tr>
 </table>
 <h3>Class Methods</h3>
 <table>
--- a/Documentation/Source/eric5.Graphics.ModuleItem.html	Sun Sep 09 17:40:32 2012 +0200
+++ b/Documentation/Source/eric5.Graphics.ModuleItem.html	Sun Sep 09 17:46:32 2012 +0200
@@ -52,7 +52,7 @@
 UMLItem
 <h3>Class Attributes</h3>
 <table>
-<tr><td>None</td></tr>
+<tr><td>ItemType</td></tr>
 </table>
 <h3>Class Methods</h3>
 <table>
--- a/Documentation/Source/eric5.Graphics.PackageItem.html	Sun Sep 09 17:40:32 2012 +0200
+++ b/Documentation/Source/eric5.Graphics.PackageItem.html	Sun Sep 09 17:46:32 2012 +0200
@@ -52,7 +52,7 @@
 UMLItem
 <h3>Class Attributes</h3>
 <table>
-<tr><td>None</td></tr>
+<tr><td>ItemType</td></tr>
 </table>
 <h3>Class Methods</h3>
 <table>
--- a/Graphics/ClassItem.py	Sun Sep 09 17:40:32 2012 +0200
+++ b/Graphics/ClassItem.py	Sun Sep 09 17:46:32 2012 +0200
@@ -75,6 +75,8 @@
     """
     Class implementing an UML like class item.
     """
+    ItemType = "class"
+    
     def __init__(self, model=None, external=False, x=0, y=0,
                  rounded=False, noAttrs=False, parent=None, scene=None):
         """
@@ -227,7 +229,7 @@
         @return persistence data (string)
         """
         entries = [
-            "item_type=class",
+            "item_type={0}".format(ClassItem.ItemType),
             "is_external={0}".format(self.external),
             "no_attributes={0}".format(self.noAttrs),
             "name={0}".format(self.model.getName()),
--- a/Graphics/ModuleItem.py	Sun Sep 09 17:40:32 2012 +0200
+++ b/Graphics/ModuleItem.py	Sun Sep 09 17:46:32 2012 +0200
@@ -55,6 +55,8 @@
     """
     Class implementing a module item.
     """
+    ItemType = "module"
+    
     def __init__(self, model=None, x=0, y=0, rounded=False,
                  parent=None, scene=None):
         """
@@ -173,7 +175,7 @@
         @return persistence data (string)
         """
         entries = [
-            "item_type=module",
+            "item_type={0}".format(ModuleItem.ItemType),
             "name={0}".format(self.model.getName()),
         ]
         classes = self.model.getClasses()
--- a/Graphics/PackageItem.py	Sun Sep 09 17:40:32 2012 +0200
+++ b/Graphics/PackageItem.py	Sun Sep 09 17:46:32 2012 +0200
@@ -55,6 +55,8 @@
     """
     Class implementing a package item.
     """
+    ItemType = "package"
+    
     def __init__(self, model=None, x=0, y=0, rounded=False,
                  noModules=False, parent=None, scene=None):
         """
@@ -192,7 +194,7 @@
         @return persistence data (string)
         """
         entries = [
-            "item_type=package",
+            "item_type={0}".format(PackageItem.ItemType),
             "no_modules={0}".format(self.noModules),
             "name={0}".format(self.model.getName()),
         ]

eric ide

mercurial