1
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
2
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4
<title>eric3.Graphics.ImportsDiagram</title>
6
<body bgcolor="#FFFFFF"><a NAME="top" ID="top"></a>
7
<h1><font color="#0000FF">eric3.Graphics.ImportsDiagram</font></h1>
9
Module implementing a dialog showing an imports diagram of a package.
11
<h3><font color="#FF0000">Classes</font></h3>
14
<td><a href="#ImportsDiagram">ImportsDiagram</a></td>
15
<td>Class implementing a dialog showing an imports diagram of a package.</td>
18
<h3><font color="#FF0000">Functions</font></h3>
20
<tr><td>None</td></tr>
23
<a NAME="ImportsDiagram" ID="ImportsDiagram"></a>
24
<h2><font color="#0000FF">ImportsDiagram</font></h2>
26
Class implementing a dialog showing an imports diagram of a package.
28
Note: Only package internal imports are show in order to maintain
31
<h3><font color="#FF0000">Derived from</font></h3>
33
<h3><font color="#FF0000">Methods</font></h3>
36
<td><a href="#ImportsDiagram.__init__">ImportsDiagram</a></td>
39
<td><a href="#ImportsDiagram.__tr">__tr</a></td>
40
<td>Private method to translate the display strings.</td>
42
<td><a href="#ImportsDiagram.addModule">addModule</a></td>
43
<td>Private method to add a module to the diagram.</td>
45
<td><a href="#ImportsDiagram.buildImports">buildImports</a></td>
46
<td>Private method to build the modules shapes of the diagram.</td>
48
<td><a href="#ImportsDiagram.buildModulesDict">buildModulesDict</a></td>
49
<td>Private method to build a dictionary of modules contained in the package.</td>
51
<td><a href="#ImportsDiagram.createAssociations">createAssociations</a></td>
52
<td>Private method to generate the associations between the module shapes.</td>
54
<td><a href="#ImportsDiagram.getDiagramName">getDiagramName</a></td>
55
<td>Method to retrieve a name for the diagram.</td>
57
<td><a href="#ImportsDiagram.languageChange">languageChange</a></td>
58
<td>Private method used to show the localized strings for this dialog.</td>
60
<td><a href="#ImportsDiagram.relayout">relayout</a></td>
61
<td>Method to relayout the diagram.</td>
63
<td><a href="#ImportsDiagram.show">show</a></td>
64
<td>Overriden method to show the dialog.</td>
67
<p><a NAME="ImportsDiagram.__init__" ID="ImportsDiagram__init__"></a>
68
<h3><font color="#0000FF">ImportsDiagram (Constructor)</font></h3>
69
<b>ImportsDiagram</b>(<i>package, parent = None, name = None, modal = 0, fl = 0</i>)
73
<dt><i>package</i></dt>
75
name of a python package to show the import
76
relationships (string)
77
</dd><dt><i>parent</i></dt>
79
parent widget of the view (QWidget)
80
</dd><dt><i>name</i></dt>
82
name of the view widget (QString or string)
83
</dd><dt><i>flags</i></dt>
85
the window flags to be passed to the view widget
87
</dl><a NAME="ImportsDiagram.__tr" ID="ImportsDiagram__tr"></a>
88
<h3><font color="#0000FF">ImportsDiagram.__tr</font></h3>
89
<b>__tr</b>(<i>s, c = None</i>)
91
Private method to translate the display strings.
92
</p><a NAME="ImportsDiagram.addModule" ID="ImportsDiagramaddModule"></a>
93
<h3><font color="#0000FF">ImportsDiagram.addModule</font></h3>
94
<b>addModule</b>(<i>name, classes, x, y</i>)
96
Private method to add a module to the diagram.
100
module name to be shown (string)
101
</dd><dt><i>classes</i></dt>
103
list of class names contained in the module
105
</dd><dt><i>x</i></dt>
107
x-coordinate (integer)
108
</dd><dt><i>y</i></dt>
110
y-coordinate (integer)
112
</dl><a NAME="ImportsDiagram.buildImports" ID="ImportsDiagrambuildImports"></a>
113
<h3><font color="#0000FF">ImportsDiagram.buildImports</font></h3>
114
<b>buildImports</b>(<i></i>)
116
Private method to build the modules shapes of the diagram.
117
</p><a NAME="ImportsDiagram.buildModulesDict" ID="ImportsDiagrambuildModulesDict"></a>
118
<h3><font color="#0000FF">ImportsDiagram.buildModulesDict</font></h3>
119
<b>buildModulesDict</b>(<i></i>)
121
Private method to build a dictionary of modules contained in the package.
125
dictionary of modules contained in the package.
127
</dl><a NAME="ImportsDiagram.createAssociations" ID="ImportsDiagramcreateAssociations"></a>
128
<h3><font color="#0000FF">ImportsDiagram.createAssociations</font></h3>
129
<b>createAssociations</b>(<i>shapes</i>)
131
Private method to generate the associations between the module shapes.
133
<dt><i>shapes</i></dt>
137
</dl><a NAME="ImportsDiagram.getDiagramName" ID="ImportsDiagramgetDiagramName"></a>
138
<h3><font color="#0000FF">ImportsDiagram.getDiagramName</font></h3>
139
<b>getDiagramName</b>(<i></i>)
141
Method to retrieve a name for the diagram.
147
</dl><a NAME="ImportsDiagram.languageChange" ID="ImportsDiagramlanguageChange"></a>
148
<h3><font color="#0000FF">ImportsDiagram.languageChange</font></h3>
149
<b>languageChange</b>(<i></i>)
151
Private method used to show the localized strings for this dialog.
152
</p><a NAME="ImportsDiagram.relayout" ID="ImportsDiagramrelayout"></a>
153
<h3><font color="#0000FF">ImportsDiagram.relayout</font></h3>
154
<b>relayout</b>(<i></i>)
156
Method to relayout the diagram.
157
</p><a NAME="ImportsDiagram.show" ID="ImportsDiagramshow"></a>
158
<h3><font color="#0000FF">ImportsDiagram.show</font></h3>
161
Overriden method to show the dialog.
163
<div align="right"><a href="#top">Up</a></div>
b'\\ No newline at end of file'