Documentation/Source/eric5.Graphics.UMLGraphicsView.html

changeset 58
37f0444c3479
parent 51
7d80b0f20ca6
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.UMLGraphicsView</h1> 23 <h1>eric5.Graphics.UMLGraphicsView</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; &#115;&#117;&#98;&#99;&#108;&#97;&#115;&#115; &#111;&#102; &#69;&#53;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#86;&#105;&#101;w &#102;&#111;&#114; &#111;&#117;&#114; &#100;&#105;&#97;&#103;&#114;&#97;&#109;&#115;. 25 Module implementing a subclass of E5GraphicsView for our diagrams.
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="#UMLGraphicsView">UMLGraphicsView</a></td> 34 <td><a href="#UMLGraphicsView">UMLGraphicsView</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#115;&#112;&#101;&#99;&#105;&#97;&#108;&#105;z&#101;&#100; &#69;&#53;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#86;&#105;&#101;w &#102;&#111;&#114; &#111;&#117;&#114; &#100;&#105;&#97;&#103;&#114;&#97;&#109;&#115;.</td> 35 <td>Class implementing a specialized E5GraphicsView for our diagrams.</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="UMLGraphicsView" ID="UMLGraphicsView"></a> 43 <a NAME="UMLGraphicsView" ID="UMLGraphicsView"></a>
44 <h2>UMLGraphicsView</h2> 44 <h2>UMLGraphicsView</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#115;&#112;&#101;&#99;&#105;&#97;&#108;&#105;z&#101;&#100; &#69;&#53;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#86;&#105;&#101;w &#102;&#111;&#114; &#111;&#117;&#114; &#100;&#105;&#97;&#103;&#114;&#97;&#109;&#115;. 46 Class implementing a specialized E5GraphicsView for our diagrams.
47 </p><h4>Signals</h4> 47 </p><h4>Signals</h4>
48 <dl> 48 <dl>
49 <dt>relayout()</dt> 49 <dt>relayout()</dt>
50 <dd> 50 <dd>
51 &#101;&#109;&#105;&#116;&#116;&#101;&#100; &#116;&#111; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#101; &#97; &#114;&#101;&#108;&#97;y&#111;&#117;&#116; &#111;&#102; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109; 51 emitted to indicate a relayout of the diagram
52 &#105;&#115; &#114;&#101;&#113;&#117;&#101;&#115;&#116;&#101;&#100; 52 is requested
53 </dd> 53 </dd>
54 </dl> 54 </dl>
55 <h3>Derived from</h3> 55 <h3>Derived from</h3>
56 E5GraphicsView 56 E5GraphicsView
57 <h3>Class Attributes</h3> 57 <h3>Class Attributes</h3>
60 </table> 60 </table>
61 <h3>Methods</h3> 61 <h3>Methods</h3>
62 <table> 62 <table>
63 <tr> 63 <tr>
64 <td><a href="#UMLGraphicsView.__init__">UMLGraphicsView</a></td> 64 <td><a href="#UMLGraphicsView.__init__">UMLGraphicsView</a></td>
65 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 65 <td>Constructor</td>
66 </tr><tr> 66 </tr><tr>
67 <td><a href="#UMLGraphicsView.__alignShapes">__alignShapes</a></td> 67 <td><a href="#UMLGraphicsView.__alignShapes">__alignShapes</a></td>
68 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#97;&#108;&#105;&#103;&#110; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#115;&#104;&#97;&#112;&#101;&#115;.</td> 68 <td>Private slot to align the selected shapes.</td>
69 </tr><tr> 69 </tr><tr>
70 <td><a href="#UMLGraphicsView.__checkSizeActions">__checkSizeActions</a></td> 70 <td><a href="#UMLGraphicsView.__checkSizeActions">__checkSizeActions</a></td>
71 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#101;&#110;&#97;&#98;&#108;&#101;&#100; &#115;&#116;&#97;&#116;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#105;z&#101; &#97;&#99;&#116;&#105;&#111;&#110;&#115;.</td> 71 <td>Private slot to set the enabled state of the size actions.</td>
72 </tr><tr> 72 </tr><tr>
73 <td><a href="#UMLGraphicsView.__decHeight">__decHeight</a></td> 73 <td><a href="#UMLGraphicsView.__decHeight">__decHeight</a></td>
74 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#100;&#101;&#99;&#114;&#101;&#97;&#115;&#101; &#104;&#101;&#105;&#103;&#104;&#116; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y.</td> 74 <td>Private method to handle the decrease height context menu entry.</td>
75 </tr><tr> 75 </tr><tr>
76 <td><a href="#UMLGraphicsView.__decWidth">__decWidth</a></td> 76 <td><a href="#UMLGraphicsView.__decWidth">__decWidth</a></td>
77 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#100;&#101;&#99;&#114;&#101;&#97;&#115;&#101; w&#105;&#100;&#116;&#104; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y.</td> 77 <td>Private method to handle the decrease width context menu entry.</td>
78 </tr><tr> 78 </tr><tr>
79 <td><a href="#UMLGraphicsView.__deleteShape">__deleteShape</a></td> 79 <td><a href="#UMLGraphicsView.__deleteShape">__deleteShape</a></td>
80 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#100;&#101;&#108;&#101;&#116;&#101; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#115;&#104;&#97;&#112;&#101;&#115; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#100;&#105;&#115;&#112;&#108;&#97;y.</td> 80 <td>Private method to delete the selected shapes from the display.</td>
81 </tr><tr> 81 </tr><tr>
82 <td><a href="#UMLGraphicsView.__incHeight">__incHeight</a></td> 82 <td><a href="#UMLGraphicsView.__incHeight">__incHeight</a></td>
83 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#105;&#110;&#99;&#114;&#101;&#97;&#115;&#101; &#104;&#101;&#105;&#103;&#104;&#116; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y.</td> 83 <td>Private method to handle the increase height context menu entry.</td>
84 </tr><tr> 84 </tr><tr>
85 <td><a href="#UMLGraphicsView.__incWidth">__incWidth</a></td> 85 <td><a href="#UMLGraphicsView.__incWidth">__incWidth</a></td>
86 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#105;&#110;&#99;&#114;&#101;&#97;&#115;&#101; w&#105;&#100;&#116;&#104; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y.</td> 86 <td>Private method to handle the increase width context menu entry.</td>
87 </tr><tr> 87 </tr><tr>
88 <td><a href="#UMLGraphicsView.__initActions">__initActions</a></td> 88 <td><a href="#UMLGraphicsView.__initActions">__initActions</a></td>
89 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#105;&#110;&#105;&#116;&#105;&#97;&#108;&#105;z&#101; &#116;&#104;&#101; v&#105;&#101;w &#97;&#99;&#116;&#105;&#111;&#110;&#115;.</td> 89 <td>Private method to initialize the view actions.</td>
90 </tr><tr> 90 </tr><tr>
91 <td><a href="#UMLGraphicsView.__printDiagram">__printDiagram</a></td> 91 <td><a href="#UMLGraphicsView.__printDiagram">__printDiagram</a></td>
92 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#116;&#111; &#112;&#114;&#105;&#110;&#116; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109;.</td> 92 <td>Private slot called to print the diagram.</td>
93 </tr><tr> 93 </tr><tr>
94 <td><a href="#UMLGraphicsView.__printPreviewDiagram">__printPreviewDiagram</a></td> 94 <td><a href="#UMLGraphicsView.__printPreviewDiagram">__printPreviewDiagram</a></td>
95 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#116;&#111; &#115;&#104;&#111;w &#97; &#112;&#114;&#105;&#110;&#116; &#112;&#114;&#101;v&#105;&#101;w &#111;&#102; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109;.</td> 95 <td>Private slot called to show a print preview of the diagram.</td>
96 </tr><tr> 96 </tr><tr>
97 <td><a href="#UMLGraphicsView.__relayout">__relayout</a></td> 97 <td><a href="#UMLGraphicsView.__relayout">__relayout</a></td>
98 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#114;&#101;-&#108;&#97;y&#111;&#117;&#116; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y.</td> 98 <td>Private method to handle the re-layout context menu entry.</td>
99 </tr><tr> 99 </tr><tr>
100 <td><a href="#UMLGraphicsView.__saveImage">__saveImage</a></td> 100 <td><a href="#UMLGraphicsView.__saveImage">__saveImage</a></td>
101 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#115;&#97;v&#101; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y.</td> 101 <td>Private method to handle the save context menu entry.</td>
102 </tr><tr> 102 </tr><tr>
103 <td><a href="#UMLGraphicsView.__sceneChanged">__sceneChanged</a></td> 103 <td><a href="#UMLGraphicsView.__sceneChanged">__sceneChanged</a></td>
104 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; w&#104;&#101;&#110; &#116;&#104;&#101; &#115;&#99;&#101;&#110;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115;.</td> 104 <td>Private slot called when the scene changes.</td>
105 </tr><tr> 105 </tr><tr>
106 <td><a href="#UMLGraphicsView.__setSize">__setSize</a></td> 106 <td><a href="#UMLGraphicsView.__setSize">__setSize</a></td>
107 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#115;&#101;&#116; &#115;&#105;z&#101; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y.</td> 107 <td>Private method to handle the set size context menu entry.</td>
108 </tr><tr> 108 </tr><tr>
109 <td><a href="#UMLGraphicsView.__zoom">__zoom</a></td> 109 <td><a href="#UMLGraphicsView.__zoom">__zoom</a></td>
110 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; z&#111;&#111;&#109; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#97;&#99;&#116;&#105;&#111;&#110;.</td> 110 <td>Private method to handle the zoom context menu action.</td>
111 </tr><tr> 111 </tr><tr>
112 <td><a href="#UMLGraphicsView.filteredItems">filteredItems</a></td> 112 <td><a href="#UMLGraphicsView.filteredItems">filteredItems</a></td>
113 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#102;&#105;&#108;&#116;&#101;&#114; &#97; &#108;&#105;&#115;&#116; &#111;&#102; &#105;&#116;&#101;&#109;&#115;.</td> 113 <td>Public method to filter a list of items.</td>
114 </tr><tr> 114 </tr><tr>
115 <td><a href="#UMLGraphicsView.initToolBar">initToolBar</a></td> 115 <td><a href="#UMLGraphicsView.initToolBar">initToolBar</a></td>
116 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#111;&#112;&#117;&#108;&#97;&#116;&#101; &#97; &#116;&#111;&#111;&#108;&#98;&#97;&#114; w&#105;&#116;&#104; &#111;&#117;&#114; &#97;&#99;&#116;&#105;&#111;&#110;&#115;.</td> 116 <td>Public method to populate a toolbar with our actions.</td>
117 </tr><tr> 117 </tr><tr>
118 <td><a href="#UMLGraphicsView.selectItem">selectItem</a></td> 118 <td><a href="#UMLGraphicsView.selectItem">selectItem</a></td>
119 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#108;&#101;&#99;&#116; &#97;&#110; &#105;&#116;&#101;&#109;.</td> 119 <td>Public method to select an item.</td>
120 </tr><tr> 120 </tr><tr>
121 <td><a href="#UMLGraphicsView.selectItems">selectItems</a></td> 121 <td><a href="#UMLGraphicsView.selectItems">selectItems</a></td>
122 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#108;&#101;&#99;&#116; &#116;&#104;&#101; &#103;&#105;v&#101;&#110; &#105;&#116;&#101;&#109;&#115;.</td> 122 <td>Public method to select the given items.</td>
123 </tr><tr> 123 </tr><tr>
124 <td><a href="#UMLGraphicsView.setDiagramName">setDiagramName</a></td> 124 <td><a href="#UMLGraphicsView.setDiagramName">setDiagramName</a></td>
125 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109; &#110;&#97;&#109;&#101;.</td> 125 <td>Public slot to set the diagram name.</td>
126 </tr> 126 </tr>
127 </table> 127 </table>
128 <a NAME="UMLGraphicsView.__init__" ID="UMLGraphicsView.__init__"></a> 128 <a NAME="UMLGraphicsView.__init__" ID="UMLGraphicsView.__init__"></a>
129 <h4>UMLGraphicsView (Constructor)</h4> 129 <h4>UMLGraphicsView (Constructor)</h4>
130 <b>UMLGraphicsView</b>(<i>scene, diagramName = "Unnamed", parent = None, name = None</i>) 130 <b>UMLGraphicsView</b>(<i>scene, diagramName = "Unnamed", parent = None, name = None</i>)
131 <p> 131 <p>
132 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 132 Constructor
133 </p><dl> 133 </p><dl>
134 <dt><i>scene</i></dt> 134 <dt><i>scene</i></dt>
135 <dd> 135 <dd>
136 &#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;) 136 reference to the scene object (QGraphicsScene)
137 </dd><dt><i>diagramName</i></dt> 137 </dd><dt><i>diagramName</i></dt>
138 <dd> 138 <dd>
139 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109; (&#115;&#116;&#114;&#105;&#110;&#103;) 139 name of the diagram (string)
140 </dd><dt><i>parent</i></dt> 140 </dd><dt><i>parent</i></dt>
141 <dd> 141 <dd>
142 &#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;) 142 parent widget of the view (QWidget)
143 </dd><dt><i>name</i></dt> 143 </dd><dt><i>name</i></dt>
144 <dd> 144 <dd>
145 &#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;) 145 name of the view widget (string)
146 </dd> 146 </dd>
147 </dl><a NAME="UMLGraphicsView.__alignShapes" ID="UMLGraphicsView.__alignShapes"></a> 147 </dl><a NAME="UMLGraphicsView.__alignShapes" ID="UMLGraphicsView.__alignShapes"></a>
148 <h4>UMLGraphicsView.__alignShapes</h4> 148 <h4>UMLGraphicsView.__alignShapes</h4>
149 <b>__alignShapes</b>(<i>alignment</i>) 149 <b>__alignShapes</b>(<i>alignment</i>)
150 <p> 150 <p>
151 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#97;&#108;&#105;&#103;&#110; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#115;&#104;&#97;&#112;&#101;&#115;. 151 Private slot to align the selected shapes.
152 </p><dl> 152 </p><dl>
153 <dt><i>alignment</i></dt> 153 <dt><i>alignment</i></dt>
154 <dd> 154 <dd>
155 &#97;&#108;&#105;&#103;&#110;&#109;&#101;&#110;&#116; &#116;y&#112;&#101; (&#81;&#116;.&#65;&#108;&#105;&#103;&#110;&#109;&#101;&#110;&#116;&#70;&#108;&#97;&#103;) 155 alignment type (Qt.AlignmentFlag)
156 </dd> 156 </dd>
157 </dl><a NAME="UMLGraphicsView.__checkSizeActions" ID="UMLGraphicsView.__checkSizeActions"></a> 157 </dl><a NAME="UMLGraphicsView.__checkSizeActions" ID="UMLGraphicsView.__checkSizeActions"></a>
158 <h4>UMLGraphicsView.__checkSizeActions</h4> 158 <h4>UMLGraphicsView.__checkSizeActions</h4>
159 <b>__checkSizeActions</b>(<i></i>) 159 <b>__checkSizeActions</b>(<i></i>)
160 <p> 160 <p>
161 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#101;&#110;&#97;&#98;&#108;&#101;&#100; &#115;&#116;&#97;&#116;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#105;z&#101; &#97;&#99;&#116;&#105;&#111;&#110;&#115;. 161 Private slot to set the enabled state of the size actions.
162 </p><a NAME="UMLGraphicsView.__decHeight" ID="UMLGraphicsView.__decHeight"></a> 162 </p><a NAME="UMLGraphicsView.__decHeight" ID="UMLGraphicsView.__decHeight"></a>
163 <h4>UMLGraphicsView.__decHeight</h4> 163 <h4>UMLGraphicsView.__decHeight</h4>
164 <b>__decHeight</b>(<i></i>) 164 <b>__decHeight</b>(<i></i>)
165 <p> 165 <p>
166 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#100;&#101;&#99;&#114;&#101;&#97;&#115;&#101; &#104;&#101;&#105;&#103;&#104;&#116; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y. 166 Private method to handle the decrease height context menu entry.
167 </p><a NAME="UMLGraphicsView.__decWidth" ID="UMLGraphicsView.__decWidth"></a> 167 </p><a NAME="UMLGraphicsView.__decWidth" ID="UMLGraphicsView.__decWidth"></a>
168 <h4>UMLGraphicsView.__decWidth</h4> 168 <h4>UMLGraphicsView.__decWidth</h4>
169 <b>__decWidth</b>(<i></i>) 169 <b>__decWidth</b>(<i></i>)
170 <p> 170 <p>
171 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#100;&#101;&#99;&#114;&#101;&#97;&#115;&#101; w&#105;&#100;&#116;&#104; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y. 171 Private method to handle the decrease width context menu entry.
172 </p><a NAME="UMLGraphicsView.__deleteShape" ID="UMLGraphicsView.__deleteShape"></a> 172 </p><a NAME="UMLGraphicsView.__deleteShape" ID="UMLGraphicsView.__deleteShape"></a>
173 <h4>UMLGraphicsView.__deleteShape</h4> 173 <h4>UMLGraphicsView.__deleteShape</h4>
174 <b>__deleteShape</b>(<i></i>) 174 <b>__deleteShape</b>(<i></i>)
175 <p> 175 <p>
176 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#100;&#101;&#108;&#101;&#116;&#101; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#115;&#104;&#97;&#112;&#101;&#115; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#100;&#105;&#115;&#112;&#108;&#97;y. 176 Private method to delete the selected shapes from the display.
177 </p><a NAME="UMLGraphicsView.__incHeight" ID="UMLGraphicsView.__incHeight"></a> 177 </p><a NAME="UMLGraphicsView.__incHeight" ID="UMLGraphicsView.__incHeight"></a>
178 <h4>UMLGraphicsView.__incHeight</h4> 178 <h4>UMLGraphicsView.__incHeight</h4>
179 <b>__incHeight</b>(<i></i>) 179 <b>__incHeight</b>(<i></i>)
180 <p> 180 <p>
181 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#105;&#110;&#99;&#114;&#101;&#97;&#115;&#101; &#104;&#101;&#105;&#103;&#104;&#116; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y. 181 Private method to handle the increase height context menu entry.
182 </p><a NAME="UMLGraphicsView.__incWidth" ID="UMLGraphicsView.__incWidth"></a> 182 </p><a NAME="UMLGraphicsView.__incWidth" ID="UMLGraphicsView.__incWidth"></a>
183 <h4>UMLGraphicsView.__incWidth</h4> 183 <h4>UMLGraphicsView.__incWidth</h4>
184 <b>__incWidth</b>(<i></i>) 184 <b>__incWidth</b>(<i></i>)
185 <p> 185 <p>
186 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#105;&#110;&#99;&#114;&#101;&#97;&#115;&#101; w&#105;&#100;&#116;&#104; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y. 186 Private method to handle the increase width context menu entry.
187 </p><a NAME="UMLGraphicsView.__initActions" ID="UMLGraphicsView.__initActions"></a> 187 </p><a NAME="UMLGraphicsView.__initActions" ID="UMLGraphicsView.__initActions"></a>
188 <h4>UMLGraphicsView.__initActions</h4> 188 <h4>UMLGraphicsView.__initActions</h4>
189 <b>__initActions</b>(<i></i>) 189 <b>__initActions</b>(<i></i>)
190 <p> 190 <p>
191 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#105;&#110;&#105;&#116;&#105;&#97;&#108;&#105;z&#101; &#116;&#104;&#101; v&#105;&#101;w &#97;&#99;&#116;&#105;&#111;&#110;&#115;. 191 Private method to initialize the view actions.
192 </p><a NAME="UMLGraphicsView.__printDiagram" ID="UMLGraphicsView.__printDiagram"></a> 192 </p><a NAME="UMLGraphicsView.__printDiagram" ID="UMLGraphicsView.__printDiagram"></a>
193 <h4>UMLGraphicsView.__printDiagram</h4> 193 <h4>UMLGraphicsView.__printDiagram</h4>
194 <b>__printDiagram</b>(<i></i>) 194 <b>__printDiagram</b>(<i></i>)
195 <p> 195 <p>
196 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#116;&#111; &#112;&#114;&#105;&#110;&#116; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109;. 196 Private slot called to print the diagram.
197 </p><a NAME="UMLGraphicsView.__printPreviewDiagram" ID="UMLGraphicsView.__printPreviewDiagram"></a> 197 </p><a NAME="UMLGraphicsView.__printPreviewDiagram" ID="UMLGraphicsView.__printPreviewDiagram"></a>
198 <h4>UMLGraphicsView.__printPreviewDiagram</h4> 198 <h4>UMLGraphicsView.__printPreviewDiagram</h4>
199 <b>__printPreviewDiagram</b>(<i></i>) 199 <b>__printPreviewDiagram</b>(<i></i>)
200 <p> 200 <p>
201 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#116;&#111; &#115;&#104;&#111;w &#97; &#112;&#114;&#105;&#110;&#116; &#112;&#114;&#101;v&#105;&#101;w &#111;&#102; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109;. 201 Private slot called to show a print preview of the diagram.
202 </p><a NAME="UMLGraphicsView.__relayout" ID="UMLGraphicsView.__relayout"></a> 202 </p><a NAME="UMLGraphicsView.__relayout" ID="UMLGraphicsView.__relayout"></a>
203 <h4>UMLGraphicsView.__relayout</h4> 203 <h4>UMLGraphicsView.__relayout</h4>
204 <b>__relayout</b>(<i></i>) 204 <b>__relayout</b>(<i></i>)
205 <p> 205 <p>
206 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#114;&#101;-&#108;&#97;y&#111;&#117;&#116; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y. 206 Private method to handle the re-layout context menu entry.
207 </p><a NAME="UMLGraphicsView.__saveImage" ID="UMLGraphicsView.__saveImage"></a> 207 </p><a NAME="UMLGraphicsView.__saveImage" ID="UMLGraphicsView.__saveImage"></a>
208 <h4>UMLGraphicsView.__saveImage</h4> 208 <h4>UMLGraphicsView.__saveImage</h4>
209 <b>__saveImage</b>(<i></i>) 209 <b>__saveImage</b>(<i></i>)
210 <p> 210 <p>
211 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#115;&#97;v&#101; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y. 211 Private method to handle the save context menu entry.
212 </p><a NAME="UMLGraphicsView.__sceneChanged" ID="UMLGraphicsView.__sceneChanged"></a> 212 </p><a NAME="UMLGraphicsView.__sceneChanged" ID="UMLGraphicsView.__sceneChanged"></a>
213 <h4>UMLGraphicsView.__sceneChanged</h4> 213 <h4>UMLGraphicsView.__sceneChanged</h4>
214 <b>__sceneChanged</b>(<i>areas</i>) 214 <b>__sceneChanged</b>(<i>areas</i>)
215 <p> 215 <p>
216 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; w&#104;&#101;&#110; &#116;&#104;&#101; &#115;&#99;&#101;&#110;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115;. 216 Private slot called when the scene changes.
217 </p><dl> 217 </p><dl>
218 <dt><i>areas</i></dt> 218 <dt><i>areas</i></dt>
219 <dd> 219 <dd>
220 &#108;&#105;&#115;&#116; &#111;&#102; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;&#115; &#116;&#104;&#97;&#116; &#99;&#111;&#110;&#116;&#97;&#105;&#110; &#99;&#104;&#97;&#110;&#103;&#101;&#115; (&#108;&#105;&#115;&#116; &#111;&#102; &#81;&#82;&#101;&#99;&#116;&#70;) 220 list of rectangles that contain changes (list of QRectF)
221 </dd> 221 </dd>
222 </dl><a NAME="UMLGraphicsView.__setSize" ID="UMLGraphicsView.__setSize"></a> 222 </dl><a NAME="UMLGraphicsView.__setSize" ID="UMLGraphicsView.__setSize"></a>
223 <h4>UMLGraphicsView.__setSize</h4> 223 <h4>UMLGraphicsView.__setSize</h4>
224 <b>__setSize</b>(<i></i>) 224 <b>__setSize</b>(<i></i>)
225 <p> 225 <p>
226 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#115;&#101;&#116; &#115;&#105;z&#101; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y. 226 Private method to handle the set size context menu entry.
227 </p><a NAME="UMLGraphicsView.__zoom" ID="UMLGraphicsView.__zoom"></a> 227 </p><a NAME="UMLGraphicsView.__zoom" ID="UMLGraphicsView.__zoom"></a>
228 <h4>UMLGraphicsView.__zoom</h4> 228 <h4>UMLGraphicsView.__zoom</h4>
229 <b>__zoom</b>(<i></i>) 229 <b>__zoom</b>(<i></i>)
230 <p> 230 <p>
231 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; z&#111;&#111;&#109; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#97;&#99;&#116;&#105;&#111;&#110;. 231 Private method to handle the zoom context menu action.
232 </p><a NAME="UMLGraphicsView.filteredItems" ID="UMLGraphicsView.filteredItems"></a> 232 </p><a NAME="UMLGraphicsView.filteredItems" ID="UMLGraphicsView.filteredItems"></a>
233 <h4>UMLGraphicsView.filteredItems</h4> 233 <h4>UMLGraphicsView.filteredItems</h4>
234 <b>filteredItems</b>(<i>items</i>) 234 <b>filteredItems</b>(<i>items</i>)
235 <p> 235 <p>
236 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#102;&#105;&#108;&#116;&#101;&#114; &#97; &#108;&#105;&#115;&#116; &#111;&#102; &#105;&#116;&#101;&#109;&#115;. 236 Public method to filter a list of items.
237 </p><dl> 237 </p><dl>
238 <dt><i>items</i></dt> 238 <dt><i>items</i></dt>
239 <dd> 239 <dd>
240 &#108;&#105;&#115;&#116; &#111;&#102; &#105;&#116;&#101;&#109;&#115; &#97;&#115; &#114;&#101;&#116;&#117;&#114;&#110;&#101;&#100; &#98;y &#116;&#104;&#101; &#115;&#99;&#101;&#110;&#101; &#111;&#98;&#106;&#101;&#99;&#116; 240 list of items as returned by the scene object
241 (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;) 241 (QGraphicsItem)
242 </dd> 242 </dd>
243 </dl><dl> 243 </dl><dl>
244 <dt>Returns:</dt> 244 <dt>Returns:</dt>
245 <dd> 245 <dd>
246 &#108;&#105;&#115;&#116; &#111;&#102; &#105;&#110;&#116;&#101;&#114;&#101;&#115;&#116;&#105;&#110;&#103; &#99;&#111;&#108;&#108;&#105;&#115;&#105;&#111;&#110; &#105;&#116;&#101;&#109;&#115; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;) 246 list of interesting collision items (QGraphicsItem)
247 </dd> 247 </dd>
248 </dl><a NAME="UMLGraphicsView.initToolBar" ID="UMLGraphicsView.initToolBar"></a> 248 </dl><a NAME="UMLGraphicsView.initToolBar" ID="UMLGraphicsView.initToolBar"></a>
249 <h4>UMLGraphicsView.initToolBar</h4> 249 <h4>UMLGraphicsView.initToolBar</h4>
250 <b>initToolBar</b>(<i></i>) 250 <b>initToolBar</b>(<i></i>)
251 <p> 251 <p>
252 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#111;&#112;&#117;&#108;&#97;&#116;&#101; &#97; &#116;&#111;&#111;&#108;&#98;&#97;&#114; w&#105;&#116;&#104; &#111;&#117;&#114; &#97;&#99;&#116;&#105;&#111;&#110;&#115;. 252 Public method to populate a toolbar with our actions.
253 </p><dl> 253 </p><dl>
254 <dt>Returns:</dt> 254 <dt>Returns:</dt>
255 <dd> 255 <dd>
256 &#116;&#104;&#101; &#112;&#111;&#112;&#117;&#108;&#97;&#116;&#101;&#100; &#116;&#111;&#111;&#108;&#66;&#97;&#114; (&#81;&#84;&#111;&#111;&#108;&#66;&#97;&#114;) 256 the populated toolBar (QToolBar)
257 </dd> 257 </dd>
258 </dl><a NAME="UMLGraphicsView.selectItem" ID="UMLGraphicsView.selectItem"></a> 258 </dl><a NAME="UMLGraphicsView.selectItem" ID="UMLGraphicsView.selectItem"></a>
259 <h4>UMLGraphicsView.selectItem</h4> 259 <h4>UMLGraphicsView.selectItem</h4>
260 <b>selectItem</b>(<i>item</i>) 260 <b>selectItem</b>(<i>item</i>)
261 <p> 261 <p>
262 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#108;&#101;&#99;&#116; &#97;&#110; &#105;&#116;&#101;&#109;. 262 Public method to select an item.
263 </p><dl> 263 </p><dl>
264 <dt><i>item</i></dt> 264 <dt><i>item</i></dt>
265 <dd> 265 <dd>
266 &#105;&#116;&#101;&#109; &#116;&#111; &#98;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;&#73;&#116;&#101;&#109;) 266 item to be selected (QGraphicsItemItem)
267 </dd> 267 </dd>
268 </dl><a NAME="UMLGraphicsView.selectItems" ID="UMLGraphicsView.selectItems"></a> 268 </dl><a NAME="UMLGraphicsView.selectItems" ID="UMLGraphicsView.selectItems"></a>
269 <h4>UMLGraphicsView.selectItems</h4> 269 <h4>UMLGraphicsView.selectItems</h4>
270 <b>selectItems</b>(<i>items</i>) 270 <b>selectItems</b>(<i>items</i>)
271 <p> 271 <p>
272 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#108;&#101;&#99;&#116; &#116;&#104;&#101; &#103;&#105;v&#101;&#110; &#105;&#116;&#101;&#109;&#115;. 272 Public method to select the given items.
273 </p><dl> 273 </p><dl>
274 <dt><i>items</i></dt> 274 <dt><i>items</i></dt>
275 <dd> 275 <dd>
276 &#108;&#105;&#115;&#116; &#111;&#102; &#105;&#116;&#101;&#109;&#115; &#116;&#111; &#98;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; (&#108;&#105;&#115;&#116; &#111;&#102; &#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;&#73;&#116;&#101;&#109;) 276 list of items to be selected (list of QGraphicsItemItem)
277 </dd> 277 </dd>
278 </dl><a NAME="UMLGraphicsView.setDiagramName" ID="UMLGraphicsView.setDiagramName"></a> 278 </dl><a NAME="UMLGraphicsView.setDiagramName" ID="UMLGraphicsView.setDiagramName"></a>
279 <h4>UMLGraphicsView.setDiagramName</h4> 279 <h4>UMLGraphicsView.setDiagramName</h4>
280 <b>setDiagramName</b>(<i>name</i>) 280 <b>setDiagramName</b>(<i>name</i>)
281 <p> 281 <p>
282 &#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109; &#110;&#97;&#109;&#101;. 282 Public slot to set the diagram name.
283 </p><dl> 283 </p><dl>
284 <dt><i>name</i></dt> 284 <dt><i>name</i></dt>
285 <dd> 285 <dd>
286 &#100;&#105;&#97;&#103;&#114;&#97;&#109; &#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) 286 diagram name (string)
287 </dd> 287 </dd>
288 </dl> 288 </dl>
289 <div align="right"><a href="#top">Up</a></div> 289 <div align="right"><a href="#top">Up</a></div>
290 <hr /> 290 <hr />
291 </body></html> 291 </body></html>

eric ide

mercurial