--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric6.Graphics.UMLDialog.html Sat Jul 05 12:29:15 2014 +0200 @@ -0,0 +1,230 @@ +<!DOCTYPE html> +<html><head> +<title>eric6.Graphics.UMLDialog</title> +<meta charset="UTF-8"> +<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>eric6.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> +E5MainWindow +<h3>Class Attributes</h3> +<table> +<tr><td>ApplicationDiagram</td></tr><tr><td>ClassDiagram</td></tr><tr><td>FileVersions</td></tr><tr><td>ImportsDiagram</td></tr><tr><td>NoDiagram</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.__diagramTypeString">__diagramTypeString</a></td> +<td>Private method to generate a readable string for the diagram type.</td> +</tr><tr> +<td><a href="#UMLDialog.__initActions">__initActions</a></td> +<td>Private slot to initialize the actions.</td> +</tr><tr> +<td><a href="#UMLDialog.__initToolBars">__initToolBars</a></td> +<td>Private slot to initialize the toolbars.</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.__save">__save</a></td> +<td>Private slot to save the diagram with the current name.</td> +</tr><tr> +<td><a href="#UMLDialog.__saveAs">__saveAs</a></td> +<td>Private slot to save the diagram.</td> +</tr><tr> +<td><a href="#UMLDialog.__showInvalidDataMessage">__showInvalidDataMessage</a></td> +<td>Private slot to show a message dialog indicating an invalid data file.</td> +</tr><tr> +<td><a href="#UMLDialog.load">load</a></td> +<td>Public method to load a diagram from a file.</td> +</tr><tr> +<td><a href="#UMLDialog.show">show</a></td> +<td>Public 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, initBuilder=True, **kwargs</i>) +<p> + Constructor +</p><dl> +<dt><i>diagramType</i></dt> +<dd> +type of the diagram (one of ApplicationDiagram, + ClassDiagram, ImportsDiagram, NoDiagram, 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 dialog (QWidget) +</dd><dt><i>initBuilder=</i></dt> +<dd> +flag indicating to initialize the diagram + builder (boolean) +</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, 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>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><dl> +<dt>Returns:</dt> +<dd> +reference to the instantiated diagram builder +</dd> +</dl><dl> +<dt>Raises <b>ValueError</b>:</dt> +<dd> +raised to indicate an illegal diagram type +</dd> +</dl><a NAME="UMLDialog.__diagramTypeString" ID="UMLDialog.__diagramTypeString"></a> +<h4>UMLDialog.__diagramTypeString</h4> +<b>__diagramTypeString</b>(<i></i>) +<p> + Private method to generate a readable string for the diagram type. +</p><dl> +<dt>Returns:</dt> +<dd> +readable type string (string) +</dd> +</dl><a NAME="UMLDialog.__initActions" ID="UMLDialog.__initActions"></a> +<h4>UMLDialog.__initActions</h4> +<b>__initActions</b>(<i></i>) +<p> + Private slot to initialize the actions. +</p><a NAME="UMLDialog.__initToolBars" ID="UMLDialog.__initToolBars"></a> +<h4>UMLDialog.__initToolBars</h4> +<b>__initToolBars</b>(<i></i>) +<p> + Private slot to initialize the toolbars. +</p><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.__save" ID="UMLDialog.__save"></a> +<h4>UMLDialog.__save</h4> +<b>__save</b>(<i></i>) +<p> + Private slot to save the diagram with the current name. +</p><a NAME="UMLDialog.__saveAs" ID="UMLDialog.__saveAs"></a> +<h4>UMLDialog.__saveAs</h4> +<b>__saveAs</b>(<i>filename=""</i>) +<p> + Private slot to save the diagram. +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file to write to (string) +</dd> +</dl><a NAME="UMLDialog.__showInvalidDataMessage" ID="UMLDialog.__showInvalidDataMessage"></a> +<h4>UMLDialog.__showInvalidDataMessage</h4> +<b>__showInvalidDataMessage</b>(<i>filename, linenum=-1</i>) +<p> + Private slot to show a message dialog indicating an invalid data file. +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file containing the invalid data (string) +</dd><dt><i>linenum</i></dt> +<dd> +number of the invalid line (integer) +</dd> +</dl><a NAME="UMLDialog.load" ID="UMLDialog.load"></a> +<h4>UMLDialog.load</h4> +<b>load</b>(<i></i>) +<p> + Public method to load a diagram from a file. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating success (boolean) +</dd> +</dl><a NAME="UMLDialog.show" ID="UMLDialog.show"></a> +<h4>UMLDialog.show</h4> +<b>show</b>(<i>fromFile=False</i>) +<p> + Public method to show the dialog. +</p><dl> +<dt><i>fromFile=</i></dt> +<dd> +flag indicating, that the diagram was loaded + from file (boolean) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file