Documentation/Source/eric5.Graphics.ApplicationDiagram.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Graphics.ApplicationDiagram</h1> 23 <h1>eric5.Graphics.ApplicationDiagram</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#115;&#104;&#111;w&#105;&#110;&#103; &#97;&#110; &#105;&#109;&#112;&#111;&#114;&#116;&#115; &#100;&#105;&#97;&#103;&#114;&#97;&#109; &#111;&#102; &#116;&#104;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110;. 25 Module implementing a dialog showing an imports diagram of the application.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#ApplicationDiagram">ApplicationDiagram</a></td> 34 <td><a href="#ApplicationDiagram">ApplicationDiagram</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#115;&#104;&#111;w&#105;&#110;&#103; &#97;&#110; &#105;&#109;&#112;&#111;&#114;&#116;&#115; &#100;&#105;&#97;&#103;&#114;&#97;&#109; &#111;&#102; &#116;&#104;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110;.</td> 35 <td>Class implementing a dialog showing an imports diagram of the application.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr><td>None</td></tr> 40 <tr><td>None</td></tr>
41 </table> 41 </table>
42 <hr /><hr /> 42 <hr /><hr />
43 <a NAME="ApplicationDiagram" ID="ApplicationDiagram"></a> 43 <a NAME="ApplicationDiagram" ID="ApplicationDiagram"></a>
44 <h2>ApplicationDiagram</h2> 44 <h2>ApplicationDiagram</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#115;&#104;&#111;w&#105;&#110;&#103; &#97;&#110; &#105;&#109;&#112;&#111;&#114;&#116;&#115; &#100;&#105;&#97;&#103;&#114;&#97;&#109; &#111;&#102; &#116;&#104;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110;. 46 Class implementing a dialog showing an imports diagram of the application.
47 </p> 47 </p>
48 <h3>Derived from</h3> 48 <h3>Derived from</h3>
49 UMLDialog 49 UMLDialog
50 <h3>Class Attributes</h3> 50 <h3>Class Attributes</h3>
51 <table> 51 <table>
53 </table> 53 </table>
54 <h3>Methods</h3> 54 <h3>Methods</h3>
55 <table> 55 <table>
56 <tr> 56 <tr>
57 <td><a href="#ApplicationDiagram.__init__">ApplicationDiagram</a></td> 57 <td><a href="#ApplicationDiagram.__init__">ApplicationDiagram</a></td>
58 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 58 <td>Constructor</td>
59 </tr><tr> 59 </tr><tr>
60 <td><a href="#ApplicationDiagram.__addPackage">__addPackage</a></td> 60 <td><a href="#ApplicationDiagram.__addPackage">__addPackage</a></td>
61 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#116;&#111; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109;.</td> 61 <td>Private method to add a package to the diagram.</td>
62 </tr><tr> 62 </tr><tr>
63 <td><a href="#ApplicationDiagram.__buildModulesDict">__buildModulesDict</a></td> 63 <td><a href="#ApplicationDiagram.__buildModulesDict">__buildModulesDict</a></td>
64 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#98;&#117;&#105;&#108;&#100; &#97; &#100;&#105;&#99;&#116;&#105;&#111;&#110;&#97;&#114;y &#111;&#102; &#109;&#111;&#100;&#117;&#108;&#101;&#115; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#101;&#100; &#105;&#110; &#116;&#104;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110;.</td> 64 <td>Private method to build a dictionary of modules contained in the application.</td>
65 </tr><tr> 65 </tr><tr>
66 <td><a href="#ApplicationDiagram.__buildPackages">__buildPackages</a></td> 66 <td><a href="#ApplicationDiagram.__buildPackages">__buildPackages</a></td>
67 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#98;&#117;&#105;&#108;&#100; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101;&#115; &#115;&#104;&#97;&#112;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109;.</td> 67 <td>Private method to build the packages shapes of the diagram.</td>
68 </tr><tr> 68 </tr><tr>
69 <td><a href="#ApplicationDiagram.__createAssociations">__createAssociations</a></td> 69 <td><a href="#ApplicationDiagram.__createAssociations">__createAssociations</a></td>
70 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#110;&#101;&#114;&#97;&#116;&#101; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#98;&#101;&#116;w&#101;&#101;&#110; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#115;&#104;&#97;&#112;&#101;&#115;.</td> 70 <td>Private method to generate the associations between the package shapes.</td>
71 </tr><tr> 71 </tr><tr>
72 <td><a href="#ApplicationDiagram.relayout">relayout</a></td> 72 <td><a href="#ApplicationDiagram.relayout">relayout</a></td>
73 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#108;&#97;y&#111;&#117;&#116; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109;.</td> 73 <td>Method to relayout the diagram.</td>
74 </tr><tr> 74 </tr><tr>
75 <td><a href="#ApplicationDiagram.show">show</a></td> 75 <td><a href="#ApplicationDiagram.show">show</a></td>
76 <td>&#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 76 <td>Overriden method to show the dialog.</td>
77 </tr> 77 </tr>
78 </table> 78 </table>
79 <a NAME="ApplicationDiagram.__init__" ID="ApplicationDiagram.__init__"></a> 79 <a NAME="ApplicationDiagram.__init__" ID="ApplicationDiagram.__init__"></a>
80 <h4>ApplicationDiagram (Constructor)</h4> 80 <h4>ApplicationDiagram (Constructor)</h4>
81 <b>ApplicationDiagram</b>(<i>project, parent = None, name = None, noModules = False</i>) 81 <b>ApplicationDiagram</b>(<i>project, parent = None, name = None, noModules = False</i>)
82 <p> 82 <p>
83 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 83 Constructor
84 </p><dl> 84 </p><dl>
85 <dt><i>project</i></dt> 85 <dt><i>project</i></dt>
86 <dd> 86 <dd>
87 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#114;&#111;&#106;&#101;&#99;&#116; &#111;&#98;&#106;&#101;&#99;&#116; 87 reference to the project object
88 </dd><dt><i>parent</i></dt> 88 </dd><dt><i>parent</i></dt>
89 <dd> 89 <dd>
90 &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; &#111;&#102; &#116;&#104;&#101; v&#105;&#101;w (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 90 parent widget of the view (QWidget)
91 </dd><dt><i>name</i></dt> 91 </dd><dt><i>name</i></dt>
92 <dd> 92 <dd>
93 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; v&#105;&#101;w w&#105;&#100;&#103;&#101;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 93 name of the view widget (string)
94 </dd><dt><i>noModules=</i></dt> 94 </dd><dt><i>noModules=</i></dt>
95 <dd> 95 <dd>
96 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103;, &#116;&#104;&#97;&#116; &#110;&#111; &#109;&#111;&#100;&#117;&#108;&#101; &#110;&#97;&#109;&#101;&#115; &#115;&#104;&#111;&#117;&#108;&#100; &#98;&#101; 96 flag indicating, that no module names should be
97 &#115;&#104;&#111;w&#110; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 97 shown (boolean)
98 </dd> 98 </dd>
99 </dl><a NAME="ApplicationDiagram.__addPackage" ID="ApplicationDiagram.__addPackage"></a> 99 </dl><a NAME="ApplicationDiagram.__addPackage" ID="ApplicationDiagram.__addPackage"></a>
100 <h4>ApplicationDiagram.__addPackage</h4> 100 <h4>ApplicationDiagram.__addPackage</h4>
101 <b>__addPackage</b>(<i>name, modules, x, y</i>) 101 <b>__addPackage</b>(<i>name, modules, x, y</i>)
102 <p> 102 <p>
103 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#116;&#111; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109;. 103 Private method to add a package to the diagram.
104 </p><dl> 104 </p><dl>
105 <dt><i>name</i></dt> 105 <dt><i>name</i></dt>
106 <dd> 106 <dd>
107 &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#110;&#97;&#109;&#101; &#116;&#111; &#98;&#101; &#115;&#104;&#111;w&#110; (&#115;&#116;&#114;&#105;&#110;&#103;) 107 package name to be shown (string)
108 </dd><dt><i>modules</i></dt> 108 </dd><dt><i>modules</i></dt>
109 <dd> 109 <dd>
110 &#108;&#105;&#115;&#116; &#111;&#102; &#109;&#111;&#100;&#117;&#108;&#101; &#110;&#97;&#109;&#101;&#115; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#101;&#100; &#105;&#110; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; 110 list of module names contained in the package
111 (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 111 (list of strings)
112 </dd><dt><i>x</i></dt> 112 </dd><dt><i>x</i></dt>
113 <dd> 113 <dd>
114 x-&#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; (&#102;&#108;&#111;&#97;&#116;) 114 x-coordinate (float)
115 </dd><dt><i>y</i></dt> 115 </dd><dt><i>y</i></dt>
116 <dd> 116 <dd>
117 y-&#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; (&#102;&#108;&#111;&#97;&#116;) 117 y-coordinate (float)
118 </dd> 118 </dd>
119 </dl><a NAME="ApplicationDiagram.__buildModulesDict" ID="ApplicationDiagram.__buildModulesDict"></a> 119 </dl><a NAME="ApplicationDiagram.__buildModulesDict" ID="ApplicationDiagram.__buildModulesDict"></a>
120 <h4>ApplicationDiagram.__buildModulesDict</h4> 120 <h4>ApplicationDiagram.__buildModulesDict</h4>
121 <b>__buildModulesDict</b>(<i></i>) 121 <b>__buildModulesDict</b>(<i></i>)
122 <p> 122 <p>
123 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#98;&#117;&#105;&#108;&#100; &#97; &#100;&#105;&#99;&#116;&#105;&#111;&#110;&#97;&#114;y &#111;&#102; &#109;&#111;&#100;&#117;&#108;&#101;&#115; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#101;&#100; &#105;&#110; &#116;&#104;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110;. 123 Private method to build a dictionary of modules contained in the application.
124 </p><dl> 124 </p><dl>
125 <dt>Returns:</dt> 125 <dt>Returns:</dt>
126 <dd> 126 <dd>
127 &#100;&#105;&#99;&#116;&#105;&#111;&#110;&#97;&#114;y &#111;&#102; &#109;&#111;&#100;&#117;&#108;&#101;&#115; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#101;&#100; &#105;&#110; &#116;&#104;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110;. 127 dictionary of modules contained in the application.
128 </dd> 128 </dd>
129 </dl><a NAME="ApplicationDiagram.__buildPackages" ID="ApplicationDiagram.__buildPackages"></a> 129 </dl><a NAME="ApplicationDiagram.__buildPackages" ID="ApplicationDiagram.__buildPackages"></a>
130 <h4>ApplicationDiagram.__buildPackages</h4> 130 <h4>ApplicationDiagram.__buildPackages</h4>
131 <b>__buildPackages</b>(<i></i>) 131 <b>__buildPackages</b>(<i></i>)
132 <p> 132 <p>
133 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#98;&#117;&#105;&#108;&#100; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101;&#115; &#115;&#104;&#97;&#112;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109;. 133 Private method to build the packages shapes of the diagram.
134 </p><a NAME="ApplicationDiagram.__createAssociations" ID="ApplicationDiagram.__createAssociations"></a> 134 </p><a NAME="ApplicationDiagram.__createAssociations" ID="ApplicationDiagram.__createAssociations"></a>
135 <h4>ApplicationDiagram.__createAssociations</h4> 135 <h4>ApplicationDiagram.__createAssociations</h4>
136 <b>__createAssociations</b>(<i>shapes</i>) 136 <b>__createAssociations</b>(<i>shapes</i>)
137 <p> 137 <p>
138 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#110;&#101;&#114;&#97;&#116;&#101; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#98;&#101;&#116;w&#101;&#101;&#110; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#115;&#104;&#97;&#112;&#101;&#115;. 138 Private method to generate the associations between the package shapes.
139 </p><dl> 139 </p><dl>
140 <dt><i>shapes</i></dt> 140 <dt><i>shapes</i></dt>
141 <dd> 141 <dd>
142 &#108;&#105;&#115;&#116; &#111;&#102; &#115;&#104;&#97;&#112;&#101;&#115; 142 list of shapes
143 </dd> 143 </dd>
144 </dl><a NAME="ApplicationDiagram.relayout" ID="ApplicationDiagram.relayout"></a> 144 </dl><a NAME="ApplicationDiagram.relayout" ID="ApplicationDiagram.relayout"></a>
145 <h4>ApplicationDiagram.relayout</h4> 145 <h4>ApplicationDiagram.relayout</h4>
146 <b>relayout</b>(<i></i>) 146 <b>relayout</b>(<i></i>)
147 <p> 147 <p>
148 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#108;&#97;y&#111;&#117;&#116; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109;. 148 Method to relayout the diagram.
149 </p><a NAME="ApplicationDiagram.show" ID="ApplicationDiagram.show"></a> 149 </p><a NAME="ApplicationDiagram.show" ID="ApplicationDiagram.show"></a>
150 <h4>ApplicationDiagram.show</h4> 150 <h4>ApplicationDiagram.show</h4>
151 <b>show</b>(<i></i>) 151 <b>show</b>(<i></i>)
152 <p> 152 <p>
153 &#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#100;&#105;&#97;&#108;&#111;&#103;. 153 Overriden method to show the dialog.
154 </p> 154 </p>
155 <div align="right"><a href="#top">Up</a></div> 155 <div align="right"><a href="#top">Up</a></div>
156 <hr /> 156 <hr />
157 </body></html> 157 </body></html>

eric ide

mercurial