src/eric7/Documentation/Source/eric7.Graphics.UMLGraphicsView.html

branch
eric7
changeset 10479
856476537696
parent 10259
b51dfacef37f
child 10684
58c7f23ae1cb
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.Graphics.UMLGraphicsView</h1> 9 <h1>eric7.Graphics.UMLGraphicsView</h1>
10
11 <p> 10 <p>
12 Module implementing a subclass of EricGraphicsView for our diagrams. 11 Module implementing a subclass of EricGraphicsView for our diagrams.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>None</td></tr> 16 <tr><td>None</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20
21 <table> 20 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#UMLGraphicsView">UMLGraphicsView</a></td> 22 <td><a href="#UMLGraphicsView">UMLGraphicsView</a></td>
25 <td>Class implementing a specialized EricGraphicsView for our diagrams.</td> 23 <td>Class implementing a specialized EricGraphicsView for our diagrams.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29
30 <table> 28 <table>
31 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
32 </table> 30 </table>
31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="UMLGraphicsView" ID="UMLGraphicsView"></a> 34 <a NAME="UMLGraphicsView" ID="UMLGraphicsView"></a>
36 <h2>UMLGraphicsView</h2> 35 <h2>UMLGraphicsView</h2>
37
38 <p> 36 <p>
39 Class implementing a specialized EricGraphicsView for our diagrams. 37 Class implementing a specialized EricGraphicsView for our diagrams.
40 </p> 38 </p>
39
41 <h3>Signals</h3> 40 <h3>Signals</h3>
42 <dl> 41 <dl>
43 42
44 <dt>relayout()</dt> 43 <dt>relayout()</dt>
45 <dd> 44 <dd>
48 </dd> 47 </dd>
49 </dl> 48 </dl>
50 <h3>Derived from</h3> 49 <h3>Derived from</h3>
51 EricGraphicsView 50 EricGraphicsView
52 <h3>Class Attributes</h3> 51 <h3>Class Attributes</h3>
53
54 <table> 52 <table>
55 <tr><td>None</td></tr> 53 <tr><td>None</td></tr>
56 </table> 54 </table>
55
57 <h3>Class Methods</h3> 56 <h3>Class Methods</h3>
58
59 <table> 57 <table>
60 <tr><td>None</td></tr> 58 <tr><td>None</td></tr>
61 </table> 59 </table>
60
62 <h3>Methods</h3> 61 <h3>Methods</h3>
63
64 <table> 62 <table>
65
66 <tr> 63 <tr>
67 <td><a href="#UMLGraphicsView.__init__">UMLGraphicsView</a></td> 64 <td><a href="#UMLGraphicsView.__init__">UMLGraphicsView</a></td>
68 <td>Constructor</td> 65 <td>Constructor</td>
69 </tr> 66 </tr>
70 <tr> 67 <tr>
202 <tr> 199 <tr>
203 <td><a href="#UMLGraphicsView.wheelEvent">wheelEvent</a></td> 200 <td><a href="#UMLGraphicsView.wheelEvent">wheelEvent</a></td>
204 <td>Protected method to handle wheel events.</td> 201 <td>Protected method to handle wheel events.</td>
205 </tr> 202 </tr>
206 </table> 203 </table>
204
207 <h3>Static Methods</h3> 205 <h3>Static Methods</h3>
208
209 <table> 206 <table>
210 <tr><td>None</td></tr> 207 <tr><td>None</td></tr>
211 </table> 208 </table>
212 209
210
213 <a NAME="UMLGraphicsView.__init__" ID="UMLGraphicsView.__init__"></a> 211 <a NAME="UMLGraphicsView.__init__" ID="UMLGraphicsView.__init__"></a>
214 <h4>UMLGraphicsView (Constructor)</h4> 212 <h4>UMLGraphicsView (Constructor)</h4>
215 <b>UMLGraphicsView</b>(<i>scene, parent=None</i>) 213 <b>UMLGraphicsView</b>(<i>scene, parent=None</i>)
216
217 <p> 214 <p>
218 Constructor 215 Constructor
219 </p> 216 </p>
217
220 <dl> 218 <dl>
221 219
222 <dt><i>scene</i> (QGraphicsScene)</dt> 220 <dt><i>scene</i> (QGraphicsScene)</dt>
223 <dd> 221 <dd>
224 reference to the scene object 222 reference to the scene object
229 </dd> 227 </dd>
230 </dl> 228 </dl>
231 <a NAME="UMLGraphicsView.__alignShapes" ID="UMLGraphicsView.__alignShapes"></a> 229 <a NAME="UMLGraphicsView.__alignShapes" ID="UMLGraphicsView.__alignShapes"></a>
232 <h4>UMLGraphicsView.__alignShapes</h4> 230 <h4>UMLGraphicsView.__alignShapes</h4>
233 <b>__alignShapes</b>(<i>alignment</i>) 231 <b>__alignShapes</b>(<i>alignment</i>)
234
235 <p> 232 <p>
236 Private slot to align the selected shapes. 233 Private slot to align the selected shapes.
237 </p> 234 </p>
235
238 <dl> 236 <dl>
239 237
240 <dt><i>alignment</i> (Qt.AlignmentFlag)</dt> 238 <dt><i>alignment</i> (Qt.AlignmentFlag)</dt>
241 <dd> 239 <dd>
242 alignment type 240 alignment type
243 </dd> 241 </dd>
244 </dl> 242 </dl>
245 <a NAME="UMLGraphicsView.__checkSizeActions" ID="UMLGraphicsView.__checkSizeActions"></a> 243 <a NAME="UMLGraphicsView.__checkSizeActions" ID="UMLGraphicsView.__checkSizeActions"></a>
246 <h4>UMLGraphicsView.__checkSizeActions</h4> 244 <h4>UMLGraphicsView.__checkSizeActions</h4>
247 <b>__checkSizeActions</b>(<i></i>) 245 <b>__checkSizeActions</b>(<i></i>)
248
249 <p> 246 <p>
250 Private slot to set the enabled state of the size actions. 247 Private slot to set the enabled state of the size actions.
251 </p> 248 </p>
249
252 <a NAME="UMLGraphicsView.__decHeight" ID="UMLGraphicsView.__decHeight"></a> 250 <a NAME="UMLGraphicsView.__decHeight" ID="UMLGraphicsView.__decHeight"></a>
253 <h4>UMLGraphicsView.__decHeight</h4> 251 <h4>UMLGraphicsView.__decHeight</h4>
254 <b>__decHeight</b>(<i></i>) 252 <b>__decHeight</b>(<i></i>)
255
256 <p> 253 <p>
257 Private method to handle the decrease height context menu entry. 254 Private method to handle the decrease height context menu entry.
258 </p> 255 </p>
256
259 <a NAME="UMLGraphicsView.__decWidth" ID="UMLGraphicsView.__decWidth"></a> 257 <a NAME="UMLGraphicsView.__decWidth" ID="UMLGraphicsView.__decWidth"></a>
260 <h4>UMLGraphicsView.__decWidth</h4> 258 <h4>UMLGraphicsView.__decWidth</h4>
261 <b>__decWidth</b>(<i></i>) 259 <b>__decWidth</b>(<i></i>)
262
263 <p> 260 <p>
264 Private method to handle the decrease width context menu entry. 261 Private method to handle the decrease width context menu entry.
265 </p> 262 </p>
263
266 <a NAME="UMLGraphicsView.__deleteShape" ID="UMLGraphicsView.__deleteShape"></a> 264 <a NAME="UMLGraphicsView.__deleteShape" ID="UMLGraphicsView.__deleteShape"></a>
267 <h4>UMLGraphicsView.__deleteShape</h4> 265 <h4>UMLGraphicsView.__deleteShape</h4>
268 <b>__deleteShape</b>(<i></i>) 266 <b>__deleteShape</b>(<i></i>)
269
270 <p> 267 <p>
271 Private method to delete the selected shapes from the display. 268 Private method to delete the selected shapes from the display.
272 </p> 269 </p>
270
273 <a NAME="UMLGraphicsView.__incHeight" ID="UMLGraphicsView.__incHeight"></a> 271 <a NAME="UMLGraphicsView.__incHeight" ID="UMLGraphicsView.__incHeight"></a>
274 <h4>UMLGraphicsView.__incHeight</h4> 272 <h4>UMLGraphicsView.__incHeight</h4>
275 <b>__incHeight</b>(<i></i>) 273 <b>__incHeight</b>(<i></i>)
276
277 <p> 274 <p>
278 Private method to handle the increase height context menu entry. 275 Private method to handle the increase height context menu entry.
279 </p> 276 </p>
277
280 <a NAME="UMLGraphicsView.__incWidth" ID="UMLGraphicsView.__incWidth"></a> 278 <a NAME="UMLGraphicsView.__incWidth" ID="UMLGraphicsView.__incWidth"></a>
281 <h4>UMLGraphicsView.__incWidth</h4> 279 <h4>UMLGraphicsView.__incWidth</h4>
282 <b>__incWidth</b>(<i></i>) 280 <b>__incWidth</b>(<i></i>)
283
284 <p> 281 <p>
285 Private method to handle the increase width context menu entry. 282 Private method to handle the increase width context menu entry.
286 </p> 283 </p>
284
287 <a NAME="UMLGraphicsView.__initActions" ID="UMLGraphicsView.__initActions"></a> 285 <a NAME="UMLGraphicsView.__initActions" ID="UMLGraphicsView.__initActions"></a>
288 <h4>UMLGraphicsView.__initActions</h4> 286 <h4>UMLGraphicsView.__initActions</h4>
289 <b>__initActions</b>(<i></i>) 287 <b>__initActions</b>(<i></i>)
290
291 <p> 288 <p>
292 Private method to initialize the view actions. 289 Private method to initialize the view actions.
293 </p> 290 </p>
291
294 <a NAME="UMLGraphicsView.__itemsBoundingRect" ID="UMLGraphicsView.__itemsBoundingRect"></a> 292 <a NAME="UMLGraphicsView.__itemsBoundingRect" ID="UMLGraphicsView.__itemsBoundingRect"></a>
295 <h4>UMLGraphicsView.__itemsBoundingRect</h4> 293 <h4>UMLGraphicsView.__itemsBoundingRect</h4>
296 <b>__itemsBoundingRect</b>(<i>items</i>) 294 <b>__itemsBoundingRect</b>(<i>items</i>)
297
298 <p> 295 <p>
299 Private method to calculate the bounding rectangle of the given items. 296 Private method to calculate the bounding rectangle of the given items.
300 </p> 297 </p>
298
301 <dl> 299 <dl>
302 300
303 <dt><i>items</i> (list of UMLItem)</dt> 301 <dt><i>items</i> (list of UMLItem)</dt>
304 <dd> 302 <dd>
305 list of items to operate on 303 list of items to operate on
318 </dd> 316 </dd>
319 </dl> 317 </dl>
320 <a NAME="UMLGraphicsView.__printPreviewPrint" ID="UMLGraphicsView.__printPreviewPrint"></a> 318 <a NAME="UMLGraphicsView.__printPreviewPrint" ID="UMLGraphicsView.__printPreviewPrint"></a>
321 <h4>UMLGraphicsView.__printPreviewPrint</h4> 319 <h4>UMLGraphicsView.__printPreviewPrint</h4>
322 <b>__printPreviewPrint</b>(<i>printer</i>) 320 <b>__printPreviewPrint</b>(<i>printer</i>)
323
324 <p> 321 <p>
325 Private slot to generate a print preview. 322 Private slot to generate a print preview.
326 </p> 323 </p>
324
327 <dl> 325 <dl>
328 326
329 <dt><i>printer</i> (QPrinter)</dt> 327 <dt><i>printer</i> (QPrinter)</dt>
330 <dd> 328 <dd>
331 reference to the printer object 329 reference to the printer object
332 </dd> 330 </dd>
333 </dl> 331 </dl>
334 <a NAME="UMLGraphicsView.__relayout" ID="UMLGraphicsView.__relayout"></a> 332 <a NAME="UMLGraphicsView.__relayout" ID="UMLGraphicsView.__relayout"></a>
335 <h4>UMLGraphicsView.__relayout</h4> 333 <h4>UMLGraphicsView.__relayout</h4>
336 <b>__relayout</b>(<i></i>) 334 <b>__relayout</b>(<i></i>)
337
338 <p> 335 <p>
339 Private slot to handle the re-layout context menu entry. 336 Private slot to handle the re-layout context menu entry.
340 </p> 337 </p>
338
341 <a NAME="UMLGraphicsView.__rescan" ID="UMLGraphicsView.__rescan"></a> 339 <a NAME="UMLGraphicsView.__rescan" ID="UMLGraphicsView.__rescan"></a>
342 <h4>UMLGraphicsView.__rescan</h4> 340 <h4>UMLGraphicsView.__rescan</h4>
343 <b>__rescan</b>(<i></i>) 341 <b>__rescan</b>(<i></i>)
344
345 <p> 342 <p>
346 Private slot to handle the re-scan context menu entry. 343 Private slot to handle the re-scan context menu entry.
347 </p> 344 </p>
345
348 <a NAME="UMLGraphicsView.__sceneChanged" ID="UMLGraphicsView.__sceneChanged"></a> 346 <a NAME="UMLGraphicsView.__sceneChanged" ID="UMLGraphicsView.__sceneChanged"></a>
349 <h4>UMLGraphicsView.__sceneChanged</h4> 347 <h4>UMLGraphicsView.__sceneChanged</h4>
350 <b>__sceneChanged</b>(<i>areas</i>) 348 <b>__sceneChanged</b>(<i>areas</i>)
351
352 <p> 349 <p>
353 Private slot called when the scene changes. 350 Private slot called when the scene changes.
354 </p> 351 </p>
352
355 <dl> 353 <dl>
356 354
357 <dt><i>areas</i> (list of QRectF)</dt> 355 <dt><i>areas</i> (list of QRectF)</dt>
358 <dd> 356 <dd>
359 list of rectangles that contain changes 357 list of rectangles that contain changes
360 </dd> 358 </dd>
361 </dl> 359 </dl>
362 <a NAME="UMLGraphicsView.__setSize" ID="UMLGraphicsView.__setSize"></a> 360 <a NAME="UMLGraphicsView.__setSize" ID="UMLGraphicsView.__setSize"></a>
363 <h4>UMLGraphicsView.__setSize</h4> 361 <h4>UMLGraphicsView.__setSize</h4>
364 <b>__setSize</b>(<i></i>) 362 <b>__setSize</b>(<i></i>)
365
366 <p> 363 <p>
367 Private method to handle the set size context menu entry. 364 Private method to handle the set size context menu entry.
368 </p> 365 </p>
366
369 <a NAME="UMLGraphicsView.autoAdjustSceneSize" ID="UMLGraphicsView.autoAdjustSceneSize"></a> 367 <a NAME="UMLGraphicsView.autoAdjustSceneSize" ID="UMLGraphicsView.autoAdjustSceneSize"></a>
370 <h4>UMLGraphicsView.autoAdjustSceneSize</h4> 368 <h4>UMLGraphicsView.autoAdjustSceneSize</h4>
371 <b>autoAdjustSceneSize</b>(<i>limit=False</i>) 369 <b>autoAdjustSceneSize</b>(<i>limit=False</i>)
372
373 <p> 370 <p>
374 Public method to adjust the scene size to the diagram size. 371 Public method to adjust the scene size to the diagram size.
375 </p> 372 </p>
373
376 <dl> 374 <dl>
377 375
378 <dt><i>limit</i> (bool)</dt> 376 <dt><i>limit</i> (bool)</dt>
379 <dd> 377 <dd>
380 flag indicating to limit the scene to the 378 flag indicating to limit the scene to the
382 </dd> 380 </dd>
383 </dl> 381 </dl>
384 <a NAME="UMLGraphicsView.event" ID="UMLGraphicsView.event"></a> 382 <a NAME="UMLGraphicsView.event" ID="UMLGraphicsView.event"></a>
385 <h4>UMLGraphicsView.event</h4> 383 <h4>UMLGraphicsView.event</h4>
386 <b>event</b>(<i>evt</i>) 384 <b>event</b>(<i>evt</i>)
387
388 <p> 385 <p>
389 Public method handling events. 386 Public method handling events.
390 </p> 387 </p>
388
391 <dl> 389 <dl>
392 390
393 <dt><i>evt</i> (QEvent)</dt> 391 <dt><i>evt</i> (QEvent)</dt>
394 <dd> 392 <dd>
395 reference to the event 393 reference to the event
408 </dd> 406 </dd>
409 </dl> 407 </dl>
410 <a NAME="UMLGraphicsView.filteredItems" ID="UMLGraphicsView.filteredItems"></a> 408 <a NAME="UMLGraphicsView.filteredItems" ID="UMLGraphicsView.filteredItems"></a>
411 <h4>UMLGraphicsView.filteredItems</h4> 409 <h4>UMLGraphicsView.filteredItems</h4>
412 <b>filteredItems</b>(<i>items, itemType=UMLItem</i>) 410 <b>filteredItems</b>(<i>items, itemType=UMLItem</i>)
413
414 <p> 411 <p>
415 Public method to filter a list of items. 412 Public method to filter a list of items.
416 </p> 413 </p>
414
417 <dl> 415 <dl>
418 416
419 <dt><i>items</i> (QGraphicsItem)</dt> 417 <dt><i>items</i> (QGraphicsItem)</dt>
420 <dd> 418 <dd>
421 list of items as returned by the scene object 419 list of items as returned by the scene object
438 </dd> 436 </dd>
439 </dl> 437 </dl>
440 <a NAME="UMLGraphicsView.findItem" ID="UMLGraphicsView.findItem"></a> 438 <a NAME="UMLGraphicsView.findItem" ID="UMLGraphicsView.findItem"></a>
441 <h4>UMLGraphicsView.findItem</h4> 439 <h4>UMLGraphicsView.findItem</h4>
442 <b>findItem</b>(<i>itemId</i>) 440 <b>findItem</b>(<i>itemId</i>)
443
444 <p> 441 <p>
445 Public method to find an UML item based on the ID. 442 Public method to find an UML item based on the ID.
446 </p> 443 </p>
444
447 <dl> 445 <dl>
448 446
449 <dt><i>itemId</i> (int)</dt> 447 <dt><i>itemId</i> (int)</dt>
450 <dd> 448 <dd>
451 of the item to search for 449 of the item to search for
464 </dd> 462 </dd>
465 </dl> 463 </dl>
466 <a NAME="UMLGraphicsView.findItemByName" ID="UMLGraphicsView.findItemByName"></a> 464 <a NAME="UMLGraphicsView.findItemByName" ID="UMLGraphicsView.findItemByName"></a>
467 <h4>UMLGraphicsView.findItemByName</h4> 465 <h4>UMLGraphicsView.findItemByName</h4>
468 <b>findItemByName</b>(<i>name</i>) 466 <b>findItemByName</b>(<i>name</i>)
469
470 <p> 467 <p>
471 Public method to find an UML item based on its name. 468 Public method to find an UML item based on its name.
472 </p> 469 </p>
470
473 <dl> 471 <dl>
474 472
475 <dt><i>name</i> (str)</dt> 473 <dt><i>name</i> (str)</dt>
476 <dd> 474 <dd>
477 name to look for 475 name to look for
490 </dd> 488 </dd>
491 </dl> 489 </dl>
492 <a NAME="UMLGraphicsView.fromDict" ID="UMLGraphicsView.fromDict"></a> 490 <a NAME="UMLGraphicsView.fromDict" ID="UMLGraphicsView.fromDict"></a>
493 <h4>UMLGraphicsView.fromDict</h4> 491 <h4>UMLGraphicsView.fromDict</h4>
494 <b>fromDict</b>(<i>version, data</i>) 492 <b>fromDict</b>(<i>version, data</i>)
495
496 <p> 493 <p>
497 Public method to populate the class with data persisted by 'toDict()'. 494 Public method to populate the class with data persisted by 'toDict()'.
498 </p> 495 </p>
496
499 <dl> 497 <dl>
500 498
501 <dt><i>version</i> (str)</dt> 499 <dt><i>version</i> (str)</dt>
502 <dd> 500 <dd>
503 version of the data 501 version of the data
520 </dd> 518 </dd>
521 </dl> 519 </dl>
522 <a NAME="UMLGraphicsView.gestureEvent" ID="UMLGraphicsView.gestureEvent"></a> 520 <a NAME="UMLGraphicsView.gestureEvent" ID="UMLGraphicsView.gestureEvent"></a>
523 <h4>UMLGraphicsView.gestureEvent</h4> 521 <h4>UMLGraphicsView.gestureEvent</h4>
524 <b>gestureEvent</b>(<i>evt</i>) 522 <b>gestureEvent</b>(<i>evt</i>)
525
526 <p> 523 <p>
527 Protected method handling gesture events. 524 Protected method handling gesture events.
528 </p> 525 </p>
526
529 <dl> 527 <dl>
530 528
531 <dt><i>evt</i> (QGestureEvent)</dt> 529 <dt><i>evt</i> (QGestureEvent)</dt>
532 <dd> 530 <dd>
533 reference to the gesture event 531 reference to the gesture event
534 </dd> 532 </dd>
535 </dl> 533 </dl>
536 <a NAME="UMLGraphicsView.getItemId" ID="UMLGraphicsView.getItemId"></a> 534 <a NAME="UMLGraphicsView.getItemId" ID="UMLGraphicsView.getItemId"></a>
537 <h4>UMLGraphicsView.getItemId</h4> 535 <h4>UMLGraphicsView.getItemId</h4>
538 <b>getItemId</b>(<i></i>) 536 <b>getItemId</b>(<i></i>)
539
540 <p> 537 <p>
541 Public method to get the ID to be assigned to an item. 538 Public method to get the ID to be assigned to an item.
542 </p> 539 </p>
540
543 <dl> 541 <dl>
544 <dt>Return:</dt> 542 <dt>Return:</dt>
545 <dd> 543 <dd>
546 item ID 544 item ID
547 </dd> 545 </dd>
553 </dd> 551 </dd>
554 </dl> 552 </dl>
555 <a NAME="UMLGraphicsView.initToolBar" ID="UMLGraphicsView.initToolBar"></a> 553 <a NAME="UMLGraphicsView.initToolBar" ID="UMLGraphicsView.initToolBar"></a>
556 <h4>UMLGraphicsView.initToolBar</h4> 554 <h4>UMLGraphicsView.initToolBar</h4>
557 <b>initToolBar</b>(<i></i>) 555 <b>initToolBar</b>(<i></i>)
558
559 <p> 556 <p>
560 Public method to populate a toolbar with our actions. 557 Public method to populate a toolbar with our actions.
561 </p> 558 </p>
559
562 <dl> 560 <dl>
563 <dt>Return:</dt> 561 <dt>Return:</dt>
564 <dd> 562 <dd>
565 the populated toolBar 563 the populated toolBar
566 </dd> 564 </dd>
572 </dd> 570 </dd>
573 </dl> 571 </dl>
574 <a NAME="UMLGraphicsView.keyPressEvent" ID="UMLGraphicsView.keyPressEvent"></a> 572 <a NAME="UMLGraphicsView.keyPressEvent" ID="UMLGraphicsView.keyPressEvent"></a>
575 <h4>UMLGraphicsView.keyPressEvent</h4> 573 <h4>UMLGraphicsView.keyPressEvent</h4>
576 <b>keyPressEvent</b>(<i>evt</i>) 574 <b>keyPressEvent</b>(<i>evt</i>)
577
578 <p> 575 <p>
579 Protected method handling key press events. 576 Protected method handling key press events.
580 </p> 577 </p>
578
581 <dl> 579 <dl>
582 580
583 <dt><i>evt</i> (QKeyEvent)</dt> 581 <dt><i>evt</i> (QKeyEvent)</dt>
584 <dd> 582 <dd>
585 reference to the key event 583 reference to the key event
586 </dd> 584 </dd>
587 </dl> 585 </dl>
588 <a NAME="UMLGraphicsView.parsePersistenceData" ID="UMLGraphicsView.parsePersistenceData"></a> 586 <a NAME="UMLGraphicsView.parsePersistenceData" ID="UMLGraphicsView.parsePersistenceData"></a>
589 <h4>UMLGraphicsView.parsePersistenceData</h4> 587 <h4>UMLGraphicsView.parsePersistenceData</h4>
590 <b>parsePersistenceData</b>(<i>version, data</i>) 588 <b>parsePersistenceData</b>(<i>version, data</i>)
591
592 <p> 589 <p>
593 Public method to parse persisted data. 590 Public method to parse persisted data.
594 </p> 591 </p>
592
595 <dl> 593 <dl>
596 594
597 <dt><i>version</i> (str)</dt> 595 <dt><i>version</i> (str)</dt>
598 <dd> 596 <dd>
599 version of the data 597 version of the data
617 </dd> 615 </dd>
618 </dl> 616 </dl>
619 <a NAME="UMLGraphicsView.printDiagram" ID="UMLGraphicsView.printDiagram"></a> 617 <a NAME="UMLGraphicsView.printDiagram" ID="UMLGraphicsView.printDiagram"></a>
620 <h4>UMLGraphicsView.printDiagram</h4> 618 <h4>UMLGraphicsView.printDiagram</h4>
621 <b>printDiagram</b>(<i></i>) 619 <b>printDiagram</b>(<i></i>)
622
623 <p> 620 <p>
624 Public slot called to print the diagram. 621 Public slot called to print the diagram.
625 </p> 622 </p>
623
626 <a NAME="UMLGraphicsView.printPreviewDiagram" ID="UMLGraphicsView.printPreviewDiagram"></a> 624 <a NAME="UMLGraphicsView.printPreviewDiagram" ID="UMLGraphicsView.printPreviewDiagram"></a>
627 <h4>UMLGraphicsView.printPreviewDiagram</h4> 625 <h4>UMLGraphicsView.printPreviewDiagram</h4>
628 <b>printPreviewDiagram</b>(<i></i>) 626 <b>printPreviewDiagram</b>(<i></i>)
629
630 <p> 627 <p>
631 Public slot called to show a print preview of the diagram. 628 Public slot called to show a print preview of the diagram.
632 </p> 629 </p>
630
633 <a NAME="UMLGraphicsView.saveImage" ID="UMLGraphicsView.saveImage"></a> 631 <a NAME="UMLGraphicsView.saveImage" ID="UMLGraphicsView.saveImage"></a>
634 <h4>UMLGraphicsView.saveImage</h4> 632 <h4>UMLGraphicsView.saveImage</h4>
635 <b>saveImage</b>(<i></i>) 633 <b>saveImage</b>(<i></i>)
636
637 <p> 634 <p>
638 Public method to handle the save context menu entry. 635 Public method to handle the save context menu entry.
639 </p> 636 </p>
637
640 <a NAME="UMLGraphicsView.selectItem" ID="UMLGraphicsView.selectItem"></a> 638 <a NAME="UMLGraphicsView.selectItem" ID="UMLGraphicsView.selectItem"></a>
641 <h4>UMLGraphicsView.selectItem</h4> 639 <h4>UMLGraphicsView.selectItem</h4>
642 <b>selectItem</b>(<i>item</i>) 640 <b>selectItem</b>(<i>item</i>)
643
644 <p> 641 <p>
645 Public method to select an item. 642 Public method to select an item.
646 </p> 643 </p>
644
647 <dl> 645 <dl>
648 646
649 <dt><i>item</i> (QGraphicsItemItem)</dt> 647 <dt><i>item</i> (QGraphicsItemItem)</dt>
650 <dd> 648 <dd>
651 item to be selected 649 item to be selected
652 </dd> 650 </dd>
653 </dl> 651 </dl>
654 <a NAME="UMLGraphicsView.selectItems" ID="UMLGraphicsView.selectItems"></a> 652 <a NAME="UMLGraphicsView.selectItems" ID="UMLGraphicsView.selectItems"></a>
655 <h4>UMLGraphicsView.selectItems</h4> 653 <h4>UMLGraphicsView.selectItems</h4>
656 <b>selectItems</b>(<i>items</i>) 654 <b>selectItems</b>(<i>items</i>)
657
658 <p> 655 <p>
659 Public method to select the given items. 656 Public method to select the given items.
660 </p> 657 </p>
658
661 <dl> 659 <dl>
662 660
663 <dt><i>items</i> (list of QGraphicsItemItem)</dt> 661 <dt><i>items</i> (list of QGraphicsItemItem)</dt>
664 <dd> 662 <dd>
665 list of items to be selected 663 list of items to be selected
666 </dd> 664 </dd>
667 </dl> 665 </dl>
668 <a NAME="UMLGraphicsView.setDiagramName" ID="UMLGraphicsView.setDiagramName"></a> 666 <a NAME="UMLGraphicsView.setDiagramName" ID="UMLGraphicsView.setDiagramName"></a>
669 <h4>UMLGraphicsView.setDiagramName</h4> 667 <h4>UMLGraphicsView.setDiagramName</h4>
670 <b>setDiagramName</b>(<i>name</i>) 668 <b>setDiagramName</b>(<i>name</i>)
671
672 <p> 669 <p>
673 Public slot to set the diagram name. 670 Public slot to set the diagram name.
674 </p> 671 </p>
672
675 <dl> 673 <dl>
676 674
677 <dt><i>name</i> (str)</dt> 675 <dt><i>name</i> (str)</dt>
678 <dd> 676 <dd>
679 diagram name 677 diagram name
680 </dd> 678 </dd>
681 </dl> 679 </dl>
682 <a NAME="UMLGraphicsView.setLayoutActionsEnabled" ID="UMLGraphicsView.setLayoutActionsEnabled"></a> 680 <a NAME="UMLGraphicsView.setLayoutActionsEnabled" ID="UMLGraphicsView.setLayoutActionsEnabled"></a>
683 <h4>UMLGraphicsView.setLayoutActionsEnabled</h4> 681 <h4>UMLGraphicsView.setLayoutActionsEnabled</h4>
684 <b>setLayoutActionsEnabled</b>(<i>enable</i>) 682 <b>setLayoutActionsEnabled</b>(<i>enable</i>)
685
686 <p> 683 <p>
687 Public method to enable or disable the layout related actions. 684 Public method to enable or disable the layout related actions.
688 </p> 685 </p>
686
689 <dl> 687 <dl>
690 688
691 <dt><i>enable</i> (bool)</dt> 689 <dt><i>enable</i> (bool)</dt>
692 <dd> 690 <dd>
693 flag indicating the desired enable state 691 flag indicating the desired enable state
694 </dd> 692 </dd>
695 </dl> 693 </dl>
696 <a NAME="UMLGraphicsView.toDict" ID="UMLGraphicsView.toDict"></a> 694 <a NAME="UMLGraphicsView.toDict" ID="UMLGraphicsView.toDict"></a>
697 <h4>UMLGraphicsView.toDict</h4> 695 <h4>UMLGraphicsView.toDict</h4>
698 <b>toDict</b>(<i></i>) 696 <b>toDict</b>(<i></i>)
699
700 <p> 697 <p>
701 Public method to collect data to be persisted. 698 Public method to collect data to be persisted.
702 </p> 699 </p>
700
703 <dl> 701 <dl>
704 <dt>Return:</dt> 702 <dt>Return:</dt>
705 <dd> 703 <dd>
706 dictionary containing data to be persisted 704 dictionary containing data to be persisted
707 </dd> 705 </dd>
713 </dd> 711 </dd>
714 </dl> 712 </dl>
715 <a NAME="UMLGraphicsView.wheelEvent" ID="UMLGraphicsView.wheelEvent"></a> 713 <a NAME="UMLGraphicsView.wheelEvent" ID="UMLGraphicsView.wheelEvent"></a>
716 <h4>UMLGraphicsView.wheelEvent</h4> 714 <h4>UMLGraphicsView.wheelEvent</h4>
717 <b>wheelEvent</b>(<i>evt</i>) 715 <b>wheelEvent</b>(<i>evt</i>)
718
719 <p> 716 <p>
720 Protected method to handle wheel events. 717 Protected method to handle wheel events.
721 </p> 718 </p>
719
722 <dl> 720 <dl>
723 721
724 <dt><i>evt</i> (QWheelEvent)</dt> 722 <dt><i>evt</i> (QWheelEvent)</dt>
725 <dd> 723 <dd>
726 reference to the wheel event 724 reference to the wheel event

eric ide

mercurial