Sun, 09 Sep 2012 17:40:32 +0200
Refactored the UML graphics code.
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html><head> <title>eric5.Graphics.UMLDialog</title> <style> body { background: #EDECE6; margin: 0em 1em 10em 1em; color: black; } h1 { color: white; background: #85774A; } h2 { color: white; background: #85774A; } h3 { color: white; background: #9D936E; } h4 { color: white; background: #9D936E; } a { color: #BA6D36; } </style> </head> <body><a NAME="top" ID="top"></a> <h1>eric5.Graphics.UMLDialog</h1> <p> Module implementing a dialog showing UML like diagrams. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#UMLDialog">UMLDialog</a></td> <td>Class implementing a dialog showing UML like diagrams.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /><hr /> <a NAME="UMLDialog" ID="UMLDialog"></a> <h2>UMLDialog</h2> <p> Class implementing a dialog showing UML like diagrams. </p> <h3>Derived from</h3> QMainWindow <h3>Class Attributes</h3> <table> <tr><td>ApplicationDiagram</td></tr><tr><td>ClassDiagram</td></tr><tr><td>ImportsDiagram</td></tr><tr><td>PackageDiagram</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#UMLDialog.__init__">UMLDialog</a></td> <td>Constructor</td> </tr><tr> <td><a href="#UMLDialog.__diagramBuilder">__diagramBuilder</a></td> <td>Private method to instantiate a diagram builder object.</td> </tr><tr> <td><a href="#UMLDialog.__relayout">__relayout</a></td> <td>Private method to relayout the diagram.</td> </tr><tr> <td><a href="#UMLDialog.diagramTypeToString">diagramTypeToString</a></td> <td>Public method to convert the diagram type to a readable string.</td> </tr><tr> <td><a href="#UMLDialog.show">show</a></td> <td>Overriden method to show the dialog.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="UMLDialog.__init__" ID="UMLDialog.__init__"></a> <h4>UMLDialog (Constructor)</h4> <b>UMLDialog</b>(<i>diagramType, project, path, parent=None, **kwargs</i>) <p> Constructor </p><dl> <dt><i>diagramType</i></dt> <dd> type of the diagram (one of ApplicationDiagram, ClassDiagram, ImportsDiagram, PackageDiagram) </dd><dt><i>project</i></dt> <dd> reference to the project object (Project) </dd><dt><i>path</i></dt> <dd> file or directory path to build the diagram from (string) </dd><dt><i>parent</i></dt> <dd> parent widget of the view (QWidget) </dd><dt><i>kwargs</i></dt> <dd> diagram specific data </dd> </dl><a NAME="UMLDialog.__diagramBuilder" ID="UMLDialog.__diagramBuilder"></a> <h4>UMLDialog.__diagramBuilder</h4> <b>__diagramBuilder</b>(<i>diagramType, project, path, **kwargs</i>) <p> Private method to instantiate a diagram builder object. </p><dl> <dt><i>diagramType</i></dt> <dd> type of the diagram (one of ApplicationDiagram, ClassDiagram, ImportsDiagram, PackageDiagram) </dd><dt><i>project</i></dt> <dd> reference to the project object (Project) </dd><dt><i>path</i></dt> <dd> file or directory path to build the diagram from (string) </dd><dt><i>kwargs</i></dt> <dd> diagram specific data </dd> </dl><a NAME="UMLDialog.__relayout" ID="UMLDialog.__relayout"></a> <h4>UMLDialog.__relayout</h4> <b>__relayout</b>(<i></i>) <p> Private method to relayout the diagram. </p><a NAME="UMLDialog.diagramTypeToString" ID="UMLDialog.diagramTypeToString"></a> <h4>UMLDialog.diagramTypeToString</h4> <b>diagramTypeToString</b>(<i>diagramType</i>) <p> Public method to convert the diagram type to a readable string. </p><dl> <dt><i>diagramType</i></dt> <dd> type of the diagram (one of ApplicationDiagram, ClassDiagram, ImportsDiagram, PackageDiagram) </dd> </dl><dl> <dt>Returns:</dt> <dd> readable type string (string) </dd> </dl><a NAME="UMLDialog.show" ID="UMLDialog.show"></a> <h4>UMLDialog.show</h4> <b>show</b>(<i></i>) <p> Overriden method to show the dialog. </p> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>