Documentation/Source/eric5.Graphics.PackageItem.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
--- a/Documentation/Source/eric5.Graphics.PackageItem.html	Thu Jan 14 17:27:31 2010 +0000
+++ b/Documentation/Source/eric5.Graphics.PackageItem.html	Thu Jan 14 18:35:52 2010 +0000
@@ -22,7 +22,7 @@
 <body><a NAME="top" ID="top"></a>
 <h1>eric5.Graphics.PackageItem</h1>
 <p>
-&#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#105;&#116;&#101;&#109;.
+Module implementing a package item.
 </p>
 <h3>Global Attributes</h3>
 <table>
@@ -32,10 +32,10 @@
 <table>
 <tr>
 <td><a href="#PackageItem">PackageItem</a></td>
-<td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#105;&#116;&#101;&#109;.</td>
+<td>Class implementing a package item.</td>
 </tr><tr>
 <td><a href="#PackageModel">PackageModel</a></td>
-<td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#109;&#111;&#100;&#101;&#108;.</td>
+<td>Class implementing the package model.</td>
 </tr>
 </table>
 <h3>Functions</h3>
@@ -46,7 +46,7 @@
 <a NAME="PackageItem" ID="PackageItem"></a>
 <h2>PackageItem</h2>
 <p>
-    &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#105;&#116;&#101;&#109;.
+    Class implementing a package item.
 </p>
 <h3>Derived from</h3>
 UMLItem
@@ -58,85 +58,85 @@
 <table>
 <tr>
 <td><a href="#PackageItem.__init__">PackageItem</a></td>
-<td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
+<td>Constructor</td>
 </tr><tr>
 <td><a href="#PackageItem.__calculateSize">__calculateSize</a></td>
-<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#115;&#105;z&#101; &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; w&#105;&#100;&#103;&#101;&#116;.</td>
+<td>Method to calculate the size of the package widget.</td>
 </tr><tr>
 <td><a href="#PackageItem.__createTexts">__createTexts</a></td>
-<td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#116;&#104;&#101; &#116;&#101;x&#116; &#105;&#116;&#101;&#109;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#105;&#116;&#101;&#109;.</td>
+<td>Private method to create the text items of the class item.</td>
 </tr><tr>
 <td><a href="#PackageItem.paint">paint</a></td>
-<td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#97;&#105;&#110;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109; &#105;&#110; &#108;&#111;&#99;&#97;&#108; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101;&#115;.</td>
+<td>Public method to paint the item in local coordinates.</td>
 </tr><tr>
 <td><a href="#PackageItem.setModel">setModel</a></td>
-<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#109;&#111;&#100;&#101;&#108;.</td>
+<td>Method to set the package model.</td>
 </tr>
 </table>
 <a NAME="PackageItem.__init__" ID="PackageItem.__init__"></a>
 <h4>PackageItem (Constructor)</h4>
 <b>PackageItem</b>(<i>model = None, x = 0, y = 0, rounded = False, noModules = False, parent = None, scene = None</i>)
 <p>
-        &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
+        Constructor
 </p><dl>
 <dt><i>model</i></dt>
 <dd>
-&#109;&#111;&#100;&#117;&#108;&#101; &#109;&#111;&#100;&#101;&#108; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#105;&#110;&#103; &#116;&#104;&#101; &#109;&#111;&#100;&#117;&#108;&#101; &#100;&#97;&#116;&#97; (&#77;&#111;&#100;&#117;&#108;&#101;&#77;&#111;&#100;&#101;&#108;)
+module model containing the module data (ModuleModel)
 </dd><dt><i>x</i></dt>
 <dd>
-x-&#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;)
+x-coordinate (integer)
 </dd><dt><i>y</i></dt>
 <dd>
-y-&#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;)
+y-coordinate (integer)
 </dd><dt><i>rounded</i></dt>
 <dd>
-&#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#97; &#114;&#111;&#117;&#110;&#100;&#101;&#100; &#99;&#111;&#114;&#110;&#101;&#114; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;)
+flag indicating a rounded corner (boolean)
 </dd><dt><i>noModules=</i></dt>
 <dd>
-&#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;
-            &#115;&#104;&#111;w&#110; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;)
+flag indicating, that no module names should be
+            shown (boolean)
 </dd><dt><i>parent=</i></dt>
 <dd>
-&#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;)
+reference to the parent object (QGraphicsItem)
 </dd><dt><i>scene=</i></dt>
 <dd>
-&#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#115;&#99;&#101;&#110;&#101; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#83;&#99;&#101;&#110;&#101;)
+reference to the scene object (QGraphicsScene)
 </dd>
 </dl><a NAME="PackageItem.__calculateSize" ID="PackageItem.__calculateSize"></a>
 <h4>PackageItem.__calculateSize</h4>
 <b>__calculateSize</b>(<i></i>)
 <p>
-        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#115;&#105;z&#101; &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; w&#105;&#100;&#103;&#101;&#116;.
+        Method to calculate the size of the package widget.
 </p><a NAME="PackageItem.__createTexts" ID="PackageItem.__createTexts"></a>
 <h4>PackageItem.__createTexts</h4>
 <b>__createTexts</b>(<i></i>)
 <p>
-        &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#116;&#104;&#101; &#116;&#101;x&#116; &#105;&#116;&#101;&#109;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115; &#105;&#116;&#101;&#109;.
+        Private method to create the text items of the class item.
 </p><a NAME="PackageItem.paint" ID="PackageItem.paint"></a>
 <h4>PackageItem.paint</h4>
 <b>paint</b>(<i>painter, option, widget = None</i>)
 <p>
-        &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#97;&#105;&#110;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109; &#105;&#110; &#108;&#111;&#99;&#97;&#108; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101;&#115;.
+        Public method to paint the item in local coordinates.
 </p><dl>
 <dt><i>painter</i></dt>
 <dd>
-&#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#105;&#110;&#116;&#101;&#114; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#80;&#97;&#105;&#110;&#116;&#101;&#114;)
+reference to the painter object (QPainter)
 </dd><dt><i>option</i></dt>
 <dd>
-&#115;&#116;y&#108;&#101; &#111;&#112;&#116;&#105;&#111;&#110;&#115; (&#81;&#83;&#116;y&#108;&#101;&#79;&#112;&#116;&#105;&#111;&#110;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;)
+style options (QStyleOptionGraphicsItem)
 </dd><dt><i>widget</i></dt>
 <dd>
-&#111;&#112;&#116;&#105;&#111;&#110;&#97;&#108; &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116; &#112;&#97;&#105;&#110;&#116;&#101;&#100; &#111;&#110; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;)
+optional reference to the widget painted on (QWidget)
 </dd>
 </dl><a NAME="PackageItem.setModel" ID="PackageItem.setModel"></a>
 <h4>PackageItem.setModel</h4>
 <b>setModel</b>(<i>model</i>)
 <p>
-        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#109;&#111;&#100;&#101;&#108;.
+        Method to set the package model.
 </p><dl>
 <dt><i>model</i></dt>
 <dd>
-&#112;&#97;&#99;&#107;&#97;&#103;&#101; &#109;&#111;&#100;&#101;&#108; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#105;&#110;&#103; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#100;&#97;&#116;&#97; (&#80;&#97;&#99;&#107;&#97;&#103;&#101;&#77;&#111;&#100;&#101;&#108;)
+package model containing the package data (PackageModel)
 </dd>
 </dl>
 <div align="right"><a href="#top">Up</a></div>
@@ -144,7 +144,7 @@
 <a NAME="PackageModel" ID="PackageModel"></a>
 <h2>PackageModel</h2>
 <p>
-    &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#109;&#111;&#100;&#101;&#108;.
+    Class implementing the package model.
 </p>
 <h3>Derived from</h3>
 object
@@ -156,60 +156,60 @@
 <table>
 <tr>
 <td><a href="#PackageModel.__init__">PackageModel</a></td>
-<td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
+<td>Constructor</td>
 </tr><tr>
 <td><a href="#PackageModel.addModule">addModule</a></td>
-<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97; &#109;&#111;&#100;&#117;&#108;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#109;&#111;&#100;&#101;&#108;.</td>
+<td>Method to add a module to the package model.</td>
 </tr><tr>
 <td><a href="#PackageModel.getModules">getModules</a></td>
-<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#109;&#111;&#100;&#117;&#108;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101;.</td>
+<td>Method to retrieve the modules of the package.</td>
 </tr><tr>
 <td><a href="#PackageModel.getName">getName</a></td>
-<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#110;&#97;&#109;&#101;.</td>
+<td>Method to retrieve the package name.</td>
 </tr>
 </table>
 <a NAME="PackageModel.__init__" ID="PackageModel.__init__"></a>
 <h4>PackageModel (Constructor)</h4>
 <b>PackageModel</b>(<i>name, moduleslist = []</i>)
 <p>
-        &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
+        Constructor
 </p><dl>
 <dt><i>name</i></dt>
 <dd>
-&#112;&#97;&#99;&#107;&#97;&#103;&#101; &#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;)
+package name (string)
 </dd><dt><i>moduleslist</i></dt>
 <dd>
-&#108;&#105;&#115;&#116; &#111;&#102; &#109;&#111;&#100;&#117;&#108;&#101; &#110;&#97;&#109;&#101;&#115; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;)
+list of module names (list of strings)
 </dd>
 </dl><a NAME="PackageModel.addModule" ID="PackageModel.addModule"></a>
 <h4>PackageModel.addModule</h4>
 <b>addModule</b>(<i>modulename</i>)
 <p>
-        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97; &#109;&#111;&#100;&#117;&#108;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#109;&#111;&#100;&#101;&#108;.
+        Method to add a module to the package model.
 </p><dl>
 <dt><i>modulename</i></dt>
 <dd>
-&#109;&#111;&#100;&#117;&#108;&#101; &#110;&#97;&#109;&#101; &#116;&#111; &#98;&#101; &#97;&#100;&#100;&#101;&#100; (&#115;&#116;&#114;&#105;&#110;&#103;)
+module name to be added (string)
 </dd>
 </dl><a NAME="PackageModel.getModules" ID="PackageModel.getModules"></a>
 <h4>PackageModel.getModules</h4>
 <b>getModules</b>(<i></i>)
 <p>
-        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#109;&#111;&#100;&#117;&#108;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101;.
+        Method to retrieve the modules of the package.
 </p><dl>
 <dt>Returns:</dt>
 <dd>
-&#108;&#105;&#115;&#116; &#111;&#102; &#109;&#111;&#100;&#117;&#108;&#101; &#110;&#97;&#109;&#101;&#115; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;)
+list of module names (list of strings)
 </dd>
 </dl><a NAME="PackageModel.getName" ID="PackageModel.getName"></a>
 <h4>PackageModel.getName</h4>
 <b>getName</b>(<i></i>)
 <p>
-        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#112;&#97;&#99;&#107;&#97;&#103;&#101; &#110;&#97;&#109;&#101;.
+        Method to retrieve the package name.
 </p><dl>
 <dt>Returns:</dt>
 <dd>
-&#112;&#97;&#99;&#107;&#97;&#103;&#101; &#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;)
+package name (string)
 </dd>
 </dl>
 <div align="right"><a href="#top">Up</a></div>

eric ide

mercurial