Documentation/Source/eric5.Graphics.UMLItem.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
diff -r 81326a94fdca -r 37f0444c3479 Documentation/Source/eric5.Graphics.UMLItem.html
--- a/Documentation/Source/eric5.Graphics.UMLItem.html	Thu Jan 14 17:27:31 2010 +0000
+++ b/Documentation/Source/eric5.Graphics.UMLItem.html	Thu Jan 14 18:35:52 2010 +0000
@@ -22,7 +22,7 @@
 <body><a NAME="top" ID="top"></a>
 <h1>eric5.Graphics.UMLItem</h1>
 <p>
-&#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#77;&#76;&#87;&#105;&#100;&#103;&#101;&#116; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.
+Module implementing the UMLWidget base class.
 </p>
 <h3>Global Attributes</h3>
 <table>
@@ -32,7 +32,7 @@
 <table>
 <tr>
 <td><a href="#UMLItem">UMLItem</a></td>
-<td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#77;&#76;&#73;&#116;&#101;&#109; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.</td>
+<td>Class implementing the UMLItem base class.</td>
 </tr>
 </table>
 <h3>Functions</h3>
@@ -43,7 +43,7 @@
 <a NAME="UMLItem" ID="UMLItem"></a>
 <h2>UMLItem</h2>
 <p>
-    &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#77;&#76;&#73;&#116;&#101;&#109; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.
+    Class implementing the UMLItem base class.
 </p>
 <h3>Derived from</h3>
 QGraphicsRectItem
@@ -55,157 +55,157 @@
 <table>
 <tr>
 <td><a href="#UMLItem.__init__">UMLItem</a></td>
-<td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
+<td>Constructor</td>
 </tr><tr>
 <td><a href="#UMLItem.addAssociation">addAssociation</a></td>
-<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.</td>
+<td>Method to add an association to this widget.</td>
 </tr><tr>
 <td><a href="#UMLItem.adjustAssociations">adjustAssociations</a></td>
-<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#106;&#117;&#115;&#116; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#116;&#111; w&#105;&#100;&#103;&#101;&#116; &#109;&#111;v&#101;&#109;&#101;&#110;&#116;&#115;.</td>
+<td>Method to adjust the associations to widget movements.</td>
 </tr><tr>
 <td><a href="#UMLItem.itemChange">itemChange</a></td>
-<td>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; w&#104;&#101;&#110; &#97;&#110; &#105;&#116;&#101;&#109;&#115; &#115;&#116;&#97;&#116;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115;.</td>
+<td>Protected method called when an items state changes.</td>
 </tr><tr>
 <td><a href="#UMLItem.moveBy">moveBy</a></td>
-<td>&#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#111;v&#101; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116; &#114;&#101;&#108;&#97;&#116;&#105;v&#101;.</td>
+<td>Overriden method to move the widget relative.</td>
 </tr><tr>
 <td><a href="#UMLItem.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="#UMLItem.removeAssociation">removeAssociation</a></td>
-<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.</td>
+<td>Method to remove an association to this widget.</td>
 </tr><tr>
 <td><a href="#UMLItem.removeAssociations">removeAssociations</a></td>
-<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#108;&#108; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#111;&#102; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.</td>
+<td>Method to remove all associations of this widget.</td>
 </tr><tr>
 <td><a href="#UMLItem.setPos">setPos</a></td>
-<td>&#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109;&#115; &#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110;.</td>
+<td>Overriden method to set the items position.</td>
 </tr><tr>
 <td><a href="#UMLItem.setSize">setSize</a></td>
-<td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;&#115; &#115;&#105;z&#101;.</td>
+<td>Public method to set the rectangles size.</td>
 </tr>
 </table>
 <a NAME="UMLItem.__init__" ID="UMLItem.__init__"></a>
 <h4>UMLItem (Constructor)</h4>
 <b>UMLItem</b>(<i>x = 0, y = 0, rounded = False, parent = None</i>)
 <p>
-        &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
+        Constructor
 </p><dl>
 <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>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>
 </dl><a NAME="UMLItem.addAssociation" ID="UMLItem.addAssociation"></a>
 <h4>UMLItem.addAssociation</h4>
 <b>addAssociation</b>(<i>assoc</i>)
 <p>
-        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.
+        Method to add an association to this widget.
 </p><dl>
 <dt><i>assoc</i></dt>
 <dd>
-&#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#98;&#101; &#97;&#100;&#100;&#101;&#100; (&#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#87;&#105;&#100;&#103;&#101;&#116;)
+association to be added (AssociationWidget)
 </dd>
 </dl><a NAME="UMLItem.adjustAssociations" ID="UMLItem.adjustAssociations"></a>
 <h4>UMLItem.adjustAssociations</h4>
 <b>adjustAssociations</b>(<i></i>)
 <p>
-        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#106;&#117;&#115;&#116; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#116;&#111; w&#105;&#100;&#103;&#101;&#116; &#109;&#111;v&#101;&#109;&#101;&#110;&#116;&#115;.
+        Method to adjust the associations to widget movements.
 </p><a NAME="UMLItem.itemChange" ID="UMLItem.itemChange"></a>
 <h4>UMLItem.itemChange</h4>
 <b>itemChange</b>(<i>change, value</i>)
 <p>
-        &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; w&#104;&#101;&#110; &#97;&#110; &#105;&#116;&#101;&#109;&#115; &#115;&#116;&#97;&#116;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115;.
+        Protected method called when an items state changes.
 </p><dl>
 <dt><i>change</i></dt>
 <dd>
-&#116;&#104;&#101; &#105;&#116;&#101;&#109;'&#115; &#99;&#104;&#97;&#110;&#103;&#101; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;.&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;&#67;&#104;&#97;&#110;&#103;&#101;)
+the item's change (QGraphicsItem.GraphicsItemChange)
 </dd><dt><i>value</i></dt>
 <dd>
-&#116;&#104;&#101; v&#97;&#108;&#117;&#101; &#111;&#102; &#116;&#104;&#101; &#99;&#104;&#97;&#110;&#103;&#101;
+the value of the change
 </dd>
 </dl><dl>
 <dt>Returns:</dt>
 <dd>
-&#97;&#100;&#106;&#117;&#115;&#116;&#101;&#100; v&#97;&#108;&#117;&#101;&#115;
+adjusted values
 </dd>
 </dl><a NAME="UMLItem.moveBy" ID="UMLItem.moveBy"></a>
 <h4>UMLItem.moveBy</h4>
 <b>moveBy</b>(<i>dx, dy</i>)
 <p>
-        &#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#111;v&#101; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116; &#114;&#101;&#108;&#97;&#116;&#105;v&#101;.
+        Overriden method to move the widget relative.
 </p><dl>
 <dt><i>dx</i></dt>
 <dd>
-&#114;&#101;&#108;&#97;&#116;&#105;v&#101; &#109;&#111;v&#101;&#109;&#101;&#110;&#116; &#105;&#110; x-&#100;&#105;&#114;&#101;&#99;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
+relative movement in x-direction (float)
 </dd><dt><i>dy</i></dt>
 <dd>
-&#114;&#101;&#108;&#97;&#116;&#105;v&#101; &#109;&#111;v&#101;&#109;&#101;&#110;&#116; &#105;&#110; y-&#100;&#105;&#114;&#101;&#99;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
+relative movement in y-direction (float)
 </dd>
 </dl><a NAME="UMLItem.paint" ID="UMLItem.paint"></a>
 <h4>UMLItem.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="UMLItem.removeAssociation" ID="UMLItem.removeAssociation"></a>
 <h4>UMLItem.removeAssociation</h4>
 <b>removeAssociation</b>(<i>assoc</i>)
 <p>
-        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.
+        Method to remove an association to this widget.
 </p><dl>
 <dt><i>assoc</i></dt>
 <dd>
-&#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#98;&#101; &#114;&#101;&#109;&#111;v&#101;&#100; (&#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#87;&#105;&#100;&#103;&#101;&#116;)
+association to be removed (AssociationWidget)
 </dd>
 </dl><a NAME="UMLItem.removeAssociations" ID="UMLItem.removeAssociations"></a>
 <h4>UMLItem.removeAssociations</h4>
 <b>removeAssociations</b>(<i></i>)
 <p>
-        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#108;&#108; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#111;&#102; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.
+        Method to remove all associations of this widget.
 </p><a NAME="UMLItem.setPos" ID="UMLItem.setPos"></a>
 <h4>UMLItem.setPos</h4>
 <b>setPos</b>(<i>x, y</i>)
 <p>
-        &#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109;&#115; &#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110;.
+        Overriden method to set the items position.
 </p><dl>
 <dt><i>x</i></dt>
 <dd>
-&#97;&#98;&#115;&#111;&#108;&#117;&#116;&#101; x-&#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
+absolute x-position (float)
 </dd><dt><i>y</i></dt>
 <dd>
-&#97;&#98;&#115;&#111;&#108;&#117;&#116;&#101; y-&#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
+absolute y-position (float)
 </dd>
 </dl><a NAME="UMLItem.setSize" ID="UMLItem.setSize"></a>
 <h4>UMLItem.setSize</h4>
 <b>setSize</b>(<i>width, height</i>)
 <p>
-        &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;&#115; &#115;&#105;z&#101;.
+        Public method to set the rectangles size.
 </p><dl>
 <dt><i>width</i></dt>
 <dd>
-w&#105;&#100;&#116;&#104; &#111;&#102; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; (&#102;&#108;&#111;&#97;&#116;)
+width of the rectangle (float)
 </dd><dt><i>height</i></dt>
 <dd>
-&#104;&#101;&#105;&#103;&#104;&#116; &#111;&#102; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; (&#102;&#108;&#111;&#97;&#116;)
+height of the rectangle (float)
 </dd>
 </dl>
 <div align="right"><a href="#top">Up</a></div>

eric ide

mercurial