src/eric7/Documentation/Source/eric7.PdfViewer.PdfView.html

branch
eric7
changeset 10479
856476537696
parent 10229
e50bbf250343
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.PdfViewer.PdfView</h1> 9 <h1>eric7.PdfViewer.PdfView</h1>
10
11 <p> 10 <p>
12 Module implementing a specialized PDF view class. 11 Module implementing a specialized PDF view class.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15 15 <table>
16 <table> 16 <tr><td>None</td></tr>
17 <tr><td>None</td></tr> 17 </table>
18 </table> 18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#PdfMarker">PdfMarker</a></td> 22 <td><a href="#PdfMarker">PdfMarker</a></td>
25 <td>Class defining the data structure for markers.</td> 23 <td>Class defining the data structure for markers.</td>
26 </tr> 24 </tr>
27 <tr> 25 <tr>
35 <tr> 33 <tr>
36 <td><a href="#PdfView">PdfView</a></td> 34 <td><a href="#PdfView">PdfView</a></td>
37 <td>Class implementing a specialized PDF view.</td> 35 <td>Class implementing a specialized PDF view.</td>
38 </tr> 36 </tr>
39 </table> 37 </table>
38
40 <h3>Functions</h3> 39 <h3>Functions</h3>
41 40 <table>
42 <table> 41 <tr><td>None</td></tr>
43 <tr><td>None</td></tr> 42 </table>
44 </table> 43
45 <hr /> 44 <hr />
46 <hr /> 45 <hr />
47 <a NAME="PdfMarker" ID="PdfMarker"></a> 46 <a NAME="PdfMarker" ID="PdfMarker"></a>
48 <h2>PdfMarker</h2> 47 <h2>PdfMarker</h2>
49
50 <p> 48 <p>
51 Class defining the data structure for markers. 49 Class defining the data structure for markers.
52 </p> 50 </p>
51
53 <h3>Derived from</h3> 52 <h3>Derived from</h3>
54 None 53 None
55 <h3>Class Attributes</h3> 54 <h3>Class Attributes</h3>
56 55 <table>
57 <table> 56 <tr><td>markerType</td></tr>
58 <tr><td>markerType</td></tr><tr><td>rectangle</td></tr> 57 <tr><td>rectangle</td></tr>
59 </table> 58 </table>
59
60 <h3>Class Methods</h3> 60 <h3>Class Methods</h3>
61 61 <table>
62 <table> 62 <tr><td>None</td></tr>
63 <tr><td>None</td></tr> 63 </table>
64 </table> 64
65 <h3>Methods</h3> 65 <h3>Methods</h3>
66 66 <table>
67 <table> 67 <tr><td>None</td></tr>
68 <tr><td>None</td></tr> 68 </table>
69 </table> 69
70 <h3>Static Methods</h3> 70 <h3>Static Methods</h3>
71 71 <table>
72 <table> 72 <tr><td>None</td></tr>
73 <tr><td>None</td></tr> 73 </table>
74 </table> 74
75 75
76 <div align="right"><a href="#top">Up</a></div> 76 <div align="right"><a href="#top">Up</a></div>
77 <hr /> 77 <hr />
78 <hr /> 78 <hr />
79 <a NAME="PdfMarkerGeometry" ID="PdfMarkerGeometry"></a> 79 <a NAME="PdfMarkerGeometry" ID="PdfMarkerGeometry"></a>
80 <h2>PdfMarkerGeometry</h2> 80 <h2>PdfMarkerGeometry</h2>
81
82 <p> 81 <p>
83 Class defining the data structure for marker geometries. 82 Class defining the data structure for marker geometries.
84 </p> 83 </p>
84
85 <h3>Derived from</h3> 85 <h3>Derived from</h3>
86 None 86 None
87 <h3>Class Attributes</h3> 87 <h3>Class Attributes</h3>
88 88 <table>
89 <table> 89 <tr><td>markerType</td></tr>
90 <tr><td>markerType</td></tr><tr><td>rectangle</td></tr> 90 <tr><td>rectangle</td></tr>
91 </table> 91 </table>
92
92 <h3>Class Methods</h3> 93 <h3>Class Methods</h3>
93 94 <table>
94 <table> 95 <tr><td>None</td></tr>
95 <tr><td>None</td></tr> 96 </table>
96 </table> 97
97 <h3>Methods</h3> 98 <h3>Methods</h3>
98 99 <table>
99 <table> 100 <tr><td>None</td></tr>
100 <tr><td>None</td></tr> 101 </table>
101 </table> 102
102 <h3>Static Methods</h3> 103 <h3>Static Methods</h3>
103 104 <table>
104 <table> 105 <tr><td>None</td></tr>
105 <tr><td>None</td></tr> 106 </table>
106 </table> 107
107 108
108 <div align="right"><a href="#top">Up</a></div> 109 <div align="right"><a href="#top">Up</a></div>
109 <hr /> 110 <hr />
110 <hr /> 111 <hr />
111 <a NAME="PdfMarkerType" ID="PdfMarkerType"></a> 112 <a NAME="PdfMarkerType" ID="PdfMarkerType"></a>
112 <h2>PdfMarkerType</h2> 113 <h2>PdfMarkerType</h2>
113
114 <p> 114 <p>
115 Class defining the various marker types. 115 Class defining the various marker types.
116 </p> 116 </p>
117
117 <h3>Derived from</h3> 118 <h3>Derived from</h3>
118 enum.Enum 119 enum.Enum
119 <h3>Class Attributes</h3> 120 <h3>Class Attributes</h3>
120 121 <table>
121 <table> 122 <tr><td>SEARCHRESULT</td></tr>
122 <tr><td>SEARCHRESULT</td></tr><tr><td>SELECTION</td></tr> 123 <tr><td>SELECTION</td></tr>
123 </table> 124 </table>
125
124 <h3>Class Methods</h3> 126 <h3>Class Methods</h3>
125 127 <table>
126 <table> 128 <tr><td>None</td></tr>
127 <tr><td>None</td></tr> 129 </table>
128 </table> 130
129 <h3>Methods</h3> 131 <h3>Methods</h3>
130 132 <table>
131 <table> 133 <tr><td>None</td></tr>
132 <tr><td>None</td></tr> 134 </table>
133 </table> 135
134 <h3>Static Methods</h3> 136 <h3>Static Methods</h3>
135 137 <table>
136 <table> 138 <tr><td>None</td></tr>
137 <tr><td>None</td></tr> 139 </table>
138 </table> 140
139 141
140 <div align="right"><a href="#top">Up</a></div> 142 <div align="right"><a href="#top">Up</a></div>
141 <hr /> 143 <hr />
142 <hr /> 144 <hr />
143 <a NAME="PdfView" ID="PdfView"></a> 145 <a NAME="PdfView" ID="PdfView"></a>
144 <h2>PdfView</h2> 146 <h2>PdfView</h2>
145
146 <p> 147 <p>
147 Class implementing a specialized PDF view. 148 Class implementing a specialized PDF view.
148 </p> 149 </p>
150
149 <h3>Signals</h3> 151 <h3>Signals</h3>
150 <dl> 152 <dl>
151 153
152 <dt>selectionAvailable(bool)</dt> 154 <dt>selectionAvailable(bool)</dt>
153 <dd> 155 <dd>
155 </dd> 157 </dd>
156 </dl> 158 </dl>
157 <h3>Derived from</h3> 159 <h3>Derived from</h3>
158 QPdfView 160 QPdfView
159 <h3>Class Attributes</h3> 161 <h3>Class Attributes</h3>
160
161 <table> 162 <table>
162 <tr><td>MarkerColors</td></tr> 163 <tr><td>MarkerColors</td></tr>
163 </table> 164 </table>
165
164 <h3>Class Methods</h3> 166 <h3>Class Methods</h3>
165 167 <table>
166 <table> 168 <tr><td>None</td></tr>
167 <tr><td>None</td></tr> 169 </table>
168 </table> 170
169 <h3>Methods</h3> 171 <h3>Methods</h3>
170 172 <table>
171 <table>
172
173 <tr> 173 <tr>
174 <td><a href="#PdfView.__init__">PdfView</a></td> 174 <td><a href="#PdfView.__init__">PdfView</a></td>
175 <td>Constructor</td> 175 <td>Constructor</td>
176 </tr> 176 </tr>
177 <tr> 177 <tr>
289 <tr> 289 <tr>
290 <td><a href="#PdfView.zoomReset">zoomReset</a></td> 290 <td><a href="#PdfView.zoomReset">zoomReset</a></td>
291 <td>Public slot to reset the zoom factor of the view.</td> 291 <td>Public slot to reset the zoom factor of the view.</td>
292 </tr> 292 </tr>
293 </table> 293 </table>
294
294 <h3>Static Methods</h3> 295 <h3>Static Methods</h3>
295 296 <table>
296 <table> 297 <tr><td>None</td></tr>
297 <tr><td>None</td></tr> 298 </table>
298 </table> 299
299 300
300 <a NAME="PdfView.__init__" ID="PdfView.__init__"></a> 301 <a NAME="PdfView.__init__" ID="PdfView.__init__"></a>
301 <h4>PdfView (Constructor)</h4> 302 <h4>PdfView (Constructor)</h4>
302 <b>PdfView</b>(<i>parent</i>) 303 <b>PdfView</b>(<i>parent</i>)
303
304 <p> 304 <p>
305 Constructor 305 Constructor
306 </p> 306 </p>
307
307 <dl> 308 <dl>
308 309
309 <dt><i>parent</i> (QWidget)</dt> 310 <dt><i>parent</i> (QWidget)</dt>
310 <dd> 311 <dd>
311 reference to the parent widget 312 reference to the parent widget
312 </dd> 313 </dd>
313 </dl> 314 </dl>
314 <a NAME="PdfView.__calculateDocumentLayout" ID="PdfView.__calculateDocumentLayout"></a> 315 <a NAME="PdfView.__calculateDocumentLayout" ID="PdfView.__calculateDocumentLayout"></a>
315 <h4>PdfView.__calculateDocumentLayout</h4> 316 <h4>PdfView.__calculateDocumentLayout</h4>
316 <b>__calculateDocumentLayout</b>(<i></i>) 317 <b>__calculateDocumentLayout</b>(<i></i>)
317
318 <p> 318 <p>
319 Private slot to calculate the document layout data. 319 Private slot to calculate the document layout data.
320 </p> 320 </p>
321 <p> 321 <p>
322 This is a PyQt implementation of the code found in the QPdfView class 322 This is a PyQt implementation of the code found in the QPdfView class
323 because it is calculated in a private part and not accessible. 323 because it is calculated in a private part and not accessible.
324 </p> 324 </p>
325
325 <a NAME="PdfView.__calculateDocumentViewport" ID="PdfView.__calculateDocumentViewport"></a> 326 <a NAME="PdfView.__calculateDocumentViewport" ID="PdfView.__calculateDocumentViewport"></a>
326 <h4>PdfView.__calculateDocumentViewport</h4> 327 <h4>PdfView.__calculateDocumentViewport</h4>
327 <b>__calculateDocumentViewport</b>(<i></i>) 328 <b>__calculateDocumentViewport</b>(<i></i>)
328
329 <p> 329 <p>
330 Private method to calculate the document viewport. 330 Private method to calculate the document viewport.
331 </p> 331 </p>
332 <p> 332 <p>
333 This is a PyQt implementation of the code found in the QPdfView class 333 This is a PyQt implementation of the code found in the QPdfView class
334 because it is calculated in a private part and not accessible. 334 because it is calculated in a private part and not accessible.
335 </p> 335 </p>
336
336 <a NAME="PdfView.__calculateMarkerGeometries" ID="PdfView.__calculateMarkerGeometries"></a> 337 <a NAME="PdfView.__calculateMarkerGeometries" ID="PdfView.__calculateMarkerGeometries"></a>
337 <h4>PdfView.__calculateMarkerGeometries</h4> 338 <h4>PdfView.__calculateMarkerGeometries</h4>
338 <b>__calculateMarkerGeometries</b>(<i>page, offset</i>) 339 <b>__calculateMarkerGeometries</b>(<i>page, offset</i>)
339
340 <p> 340 <p>
341 Private method to calculate the marker geometries. 341 Private method to calculate the marker geometries.
342 </p> 342 </p>
343
343 <dl> 344 <dl>
344 345
345 <dt><i>page</i> (int)</dt> 346 <dt><i>page</i> (int)</dt>
346 <dd> 347 <dd>
347 page number 348 page number
352 </dd> 353 </dd>
353 </dl> 354 </dl>
354 <a NAME="PdfView.__currentPageChanged" ID="PdfView.__currentPageChanged"></a> 355 <a NAME="PdfView.__currentPageChanged" ID="PdfView.__currentPageChanged"></a>
355 <h4>PdfView.__currentPageChanged</h4> 356 <h4>PdfView.__currentPageChanged</h4>
356 <b>__currentPageChanged</b>(<i></i>) 357 <b>__currentPageChanged</b>(<i></i>)
357
358 <p> 358 <p>
359 Private slot to handle a change of the current page. 359 Private slot to handle a change of the current page.
360 </p> 360 </p>
361
361 <a NAME="PdfView.__updateView" ID="PdfView.__updateView"></a> 362 <a NAME="PdfView.__updateView" ID="PdfView.__updateView"></a>
362 <h4>PdfView.__updateView</h4> 363 <h4>PdfView.__updateView</h4>
363 <b>__updateView</b>(<i></i>) 364 <b>__updateView</b>(<i></i>)
364
365 <p> 365 <p>
366 Private method to update the view. 366 Private method to update the view.
367 </p> 367 </p>
368
368 <a NAME="PdfView.__zoomFactorForMode" ID="PdfView.__zoomFactorForMode"></a> 369 <a NAME="PdfView.__zoomFactorForMode" ID="PdfView.__zoomFactorForMode"></a>
369 <h4>PdfView.__zoomFactorForMode</h4> 370 <h4>PdfView.__zoomFactorForMode</h4>
370 <b>__zoomFactorForMode</b>(<i>zoomMode</i>) 371 <b>__zoomFactorForMode</b>(<i>zoomMode</i>)
371
372 <p> 372 <p>
373 Private method to calculate the zoom factor iaw. the current zoom mode. 373 Private method to calculate the zoom factor iaw. the current zoom mode.
374 </p> 374 </p>
375
375 <dl> 376 <dl>
376 377
377 <dt><i>zoomMode</i> (QPdfView.ZoomMode)</dt> 378 <dt><i>zoomMode</i> (QPdfView.ZoomMode)</dt>
378 <dd> 379 <dd>
379 zoom mode to get the zoom factor for 380 zoom mode to get the zoom factor for
392 </dd> 393 </dd>
393 </dl> 394 </dl>
394 <a NAME="PdfView.__zoomInOut" ID="PdfView.__zoomInOut"></a> 395 <a NAME="PdfView.__zoomInOut" ID="PdfView.__zoomInOut"></a>
395 <h4>PdfView.__zoomInOut</h4> 396 <h4>PdfView.__zoomInOut</h4>
396 <b>__zoomInOut</b>(<i>zoomIn</i>) 397 <b>__zoomInOut</b>(<i>zoomIn</i>)
397
398 <p> 398 <p>
399 Private method to zoom into or out of the view. 399 Private method to zoom into or out of the view.
400 </p> 400 </p>
401
401 <dl> 402 <dl>
402 403
403 <dt><i>zoomIn</i> (bool)</dt> 404 <dt><i>zoomIn</i> (bool)</dt>
404 <dd> 405 <dd>
405 flag indicating to zoom into the view 406 flag indicating to zoom into the view
406 </dd> 407 </dd>
407 </dl> 408 </dl>
408 <a NAME="PdfView.addMarker" ID="PdfView.addMarker"></a> 409 <a NAME="PdfView.addMarker" ID="PdfView.addMarker"></a>
409 <h4>PdfView.addMarker</h4> 410 <h4>PdfView.addMarker</h4>
410 <b>addMarker</b>(<i>page, rect, markerType</i>) 411 <b>addMarker</b>(<i>page, rect, markerType</i>)
411
412 <p> 412 <p>
413 Public slot to add a marker. 413 Public slot to add a marker.
414 </p> 414 </p>
415
415 <dl> 416 <dl>
416 417
417 <dt><i>page</i> (int)</dt> 418 <dt><i>page</i> (int)</dt>
418 <dd> 419 <dd>
419 page number for the marker 420 page number for the marker
428 </dd> 429 </dd>
429 </dl> 430 </dl>
430 <a NAME="PdfView.addSearchMarker" ID="PdfView.addSearchMarker"></a> 431 <a NAME="PdfView.addSearchMarker" ID="PdfView.addSearchMarker"></a>
431 <h4>PdfView.addSearchMarker</h4> 432 <h4>PdfView.addSearchMarker</h4>
432 <b>addSearchMarker</b>(<i>link</i>) 433 <b>addSearchMarker</b>(<i>link</i>)
433
434 <p> 434 <p>
435 Public slot to add a search marker given a PDF link. 435 Public slot to add a search marker given a PDF link.
436 </p> 436 </p>
437
437 <dl> 438 <dl>
438 439
439 <dt><i>link</i> (QPdfLink)</dt> 440 <dt><i>link</i> (QPdfLink)</dt>
440 <dd> 441 <dd>
441 reference to the PDF link object 442 reference to the PDF link object
442 </dd> 443 </dd>
443 </dl> 444 </dl>
444 <a NAME="PdfView.clearAllMarkers" ID="PdfView.clearAllMarkers"></a> 445 <a NAME="PdfView.clearAllMarkers" ID="PdfView.clearAllMarkers"></a>
445 <h4>PdfView.clearAllMarkers</h4> 446 <h4>PdfView.clearAllMarkers</h4>
446 <b>clearAllMarkers</b>(<i></i>) 447 <b>clearAllMarkers</b>(<i></i>)
447
448 <p> 448 <p>
449 Public slot to clear all markers. 449 Public slot to clear all markers.
450 </p> 450 </p>
451
451 <a NAME="PdfView.clearMarkers" ID="PdfView.clearMarkers"></a> 452 <a NAME="PdfView.clearMarkers" ID="PdfView.clearMarkers"></a>
452 <h4>PdfView.clearMarkers</h4> 453 <h4>PdfView.clearMarkers</h4>
453 <b>clearMarkers</b>(<i>markerType</i>) 454 <b>clearMarkers</b>(<i>markerType</i>)
454
455 <p> 455 <p>
456 Public slot to clear the markers of a specific type. 456 Public slot to clear the markers of a specific type.
457 </p> 457 </p>
458
458 <dl> 459 <dl>
459 460
460 <dt><i>markerType</i> (PdfMarkerType)</dt> 461 <dt><i>markerType</i> (PdfMarkerType)</dt>
461 <dd> 462 <dd>
462 type of the marker 463 type of the marker
463 </dd> 464 </dd>
464 </dl> 465 </dl>
465 <a NAME="PdfView.clearSearchMarkers" ID="PdfView.clearSearchMarkers"></a> 466 <a NAME="PdfView.clearSearchMarkers" ID="PdfView.clearSearchMarkers"></a>
466 <h4>PdfView.clearSearchMarkers</h4> 467 <h4>PdfView.clearSearchMarkers</h4>
467 <b>clearSearchMarkers</b>(<i></i>) 468 <b>clearSearchMarkers</b>(<i></i>)
468
469 <p> 469 <p>
470 Public slot to clear the search markers. 470 Public slot to clear the search markers.
471 </p> 471 </p>
472
472 <a NAME="PdfView.clearSelection" ID="PdfView.clearSelection"></a> 473 <a NAME="PdfView.clearSelection" ID="PdfView.clearSelection"></a>
473 <h4>PdfView.clearSelection</h4> 474 <h4>PdfView.clearSelection</h4>
474 <b>clearSelection</b>(<i></i>) 475 <b>clearSelection</b>(<i></i>)
475
476 <p> 476 <p>
477 Public slot to clear the current selection. 477 Public slot to clear the current selection.
478 </p> 478 </p>
479
479 <a NAME="PdfView.event" ID="PdfView.event"></a> 480 <a NAME="PdfView.event" ID="PdfView.event"></a>
480 <h4>PdfView.event</h4> 481 <h4>PdfView.event</h4>
481 <b>event</b>(<i>evt</i>) 482 <b>event</b>(<i>evt</i>)
482
483 <p> 483 <p>
484 Public method handling events. 484 Public method handling events.
485 </p> 485 </p>
486
486 <dl> 487 <dl>
487 488
488 <dt><i>evt</i> (QEvent)</dt> 489 <dt><i>evt</i> (QEvent)</dt>
489 <dd> 490 <dd>
490 reference to the event 491 reference to the event
503 </dd> 504 </dd>
504 </dl> 505 </dl>
505 <a NAME="PdfView.gestureEvent" ID="PdfView.gestureEvent"></a> 506 <a NAME="PdfView.gestureEvent" ID="PdfView.gestureEvent"></a>
506 <h4>PdfView.gestureEvent</h4> 507 <h4>PdfView.gestureEvent</h4>
507 <b>gestureEvent</b>(<i>evt</i>) 508 <b>gestureEvent</b>(<i>evt</i>)
508
509 <p> 509 <p>
510 Protected method handling gesture events. 510 Protected method handling gesture events.
511 </p> 511 </p>
512
512 <dl> 513 <dl>
513 514
514 <dt><i>evt</i> (QGestureEvent)</dt> 515 <dt><i>evt</i> (QGestureEvent)</dt>
515 <dd> 516 <dd>
516 reference to the gesture event 517 reference to the gesture event
517 </dd> 518 </dd>
518 </dl> 519 </dl>
519 <a NAME="PdfView.getSelection" ID="PdfView.getSelection"></a> 520 <a NAME="PdfView.getSelection" ID="PdfView.getSelection"></a>
520 <h4>PdfView.getSelection</h4> 521 <h4>PdfView.getSelection</h4>
521 <b>getSelection</b>(<i></i>) 522 <b>getSelection</b>(<i></i>)
522
523 <p> 523 <p>
524 Public method to get a PDF selection object. 524 Public method to get a PDF selection object.
525 </p> 525 </p>
526
526 <dl> 527 <dl>
527 <dt>Return:</dt> 528 <dt>Return:</dt>
528 <dd> 529 <dd>
529 reference to the PDF selection object 530 reference to the PDF selection object
530 </dd> 531 </dd>
536 </dd> 537 </dd>
537 </dl> 538 </dl>
538 <a NAME="PdfView.hasSelection" ID="PdfView.hasSelection"></a> 539 <a NAME="PdfView.hasSelection" ID="PdfView.hasSelection"></a>
539 <h4>PdfView.hasSelection</h4> 540 <h4>PdfView.hasSelection</h4>
540 <b>hasSelection</b>(<i></i>) 541 <b>hasSelection</b>(<i></i>)
541
542 <p> 542 <p>
543 Public method to check the presence of a selection. 543 Public method to check the presence of a selection.
544 </p> 544 </p>
545
545 <dl> 546 <dl>
546 <dt>Return:</dt> 547 <dt>Return:</dt>
547 <dd> 548 <dd>
548 flag indicating the presence of a selection 549 flag indicating the presence of a selection
549 </dd> 550 </dd>
555 </dd> 556 </dd>
556 </dl> 557 </dl>
557 <a NAME="PdfView.keyPressEvent" ID="PdfView.keyPressEvent"></a> 558 <a NAME="PdfView.keyPressEvent" ID="PdfView.keyPressEvent"></a>
558 <h4>PdfView.keyPressEvent</h4> 559 <h4>PdfView.keyPressEvent</h4>
559 <b>keyPressEvent</b>(<i>evt</i>) 560 <b>keyPressEvent</b>(<i>evt</i>)
560
561 <p> 561 <p>
562 Protected method handling key press events. 562 Protected method handling key press events.
563 </p> 563 </p>
564
564 <dl> 565 <dl>
565 566
566 <dt><i>evt</i> (QKeyEvent)</dt> 567 <dt><i>evt</i> (QKeyEvent)</dt>
567 <dd> 568 <dd>
568 reference to the key event 569 reference to the key event
569 </dd> 570 </dd>
570 </dl> 571 </dl>
571 <a NAME="PdfView.mouseMoveEvent" ID="PdfView.mouseMoveEvent"></a> 572 <a NAME="PdfView.mouseMoveEvent" ID="PdfView.mouseMoveEvent"></a>
572 <h4>PdfView.mouseMoveEvent</h4> 573 <h4>PdfView.mouseMoveEvent</h4>
573 <b>mouseMoveEvent</b>(<i>evt</i>) 574 <b>mouseMoveEvent</b>(<i>evt</i>)
574
575 <p> 575 <p>
576 Protected method to handle mouse move events. 576 Protected method to handle mouse move events.
577 </p> 577 </p>
578
578 <dl> 579 <dl>
579 580
580 <dt><i>evt</i> (QMouseEvent)</dt> 581 <dt><i>evt</i> (QMouseEvent)</dt>
581 <dd> 582 <dd>
582 reference to the mouse event 583 reference to the mouse event
583 </dd> 584 </dd>
584 </dl> 585 </dl>
585 <a NAME="PdfView.mousePressEvent" ID="PdfView.mousePressEvent"></a> 586 <a NAME="PdfView.mousePressEvent" ID="PdfView.mousePressEvent"></a>
586 <h4>PdfView.mousePressEvent</h4> 587 <h4>PdfView.mousePressEvent</h4>
587 <b>mousePressEvent</b>(<i>evt</i>) 588 <b>mousePressEvent</b>(<i>evt</i>)
588
589 <p> 589 <p>
590 Protected method to handle mouse press events. 590 Protected method to handle mouse press events.
591 </p> 591 </p>
592
592 <dl> 593 <dl>
593 594
594 <dt><i>evt</i> (QMouseEvent)</dt> 595 <dt><i>evt</i> (QMouseEvent)</dt>
595 <dd> 596 <dd>
596 reference to the mouse event 597 reference to the mouse event
597 </dd> 598 </dd>
598 </dl> 599 </dl>
599 <a NAME="PdfView.mouseReleaseEvent" ID="PdfView.mouseReleaseEvent"></a> 600 <a NAME="PdfView.mouseReleaseEvent" ID="PdfView.mouseReleaseEvent"></a>
600 <h4>PdfView.mouseReleaseEvent</h4> 601 <h4>PdfView.mouseReleaseEvent</h4>
601 <b>mouseReleaseEvent</b>(<i>evt</i>) 602 <b>mouseReleaseEvent</b>(<i>evt</i>)
602
603 <p> 603 <p>
604 Protected method to handle mouse release events. 604 Protected method to handle mouse release events.
605 </p> 605 </p>
606
606 <dl> 607 <dl>
607 608
608 <dt><i>evt</i> (QMouseEvent)</dt> 609 <dt><i>evt</i> (QMouseEvent)</dt>
609 <dd> 610 <dd>
610 reference to the mouse event 611 reference to the mouse event
611 </dd> 612 </dd>
612 </dl> 613 </dl>
613 <a NAME="PdfView.paintEvent" ID="PdfView.paintEvent"></a> 614 <a NAME="PdfView.paintEvent" ID="PdfView.paintEvent"></a>
614 <h4>PdfView.paintEvent</h4> 615 <h4>PdfView.paintEvent</h4>
615 <b>paintEvent</b>(<i>evt</i>) 616 <b>paintEvent</b>(<i>evt</i>)
616
617 <p> 617 <p>
618 Protected method to paint the view. 618 Protected method to paint the view.
619 </p> 619 </p>
620 <p> 620 <p>
621 This event handler calls the original paint event handler of the super class 621 This event handler calls the original paint event handler of the super class
622 and paints the markers on top of the result. 622 and paints the markers on top of the result.
623 </p> 623 </p>
624
624 <dl> 625 <dl>
625 626
626 <dt><i>evt</i> (QPaintEvent)</dt> 627 <dt><i>evt</i> (QPaintEvent)</dt>
627 <dd> 628 <dd>
628 reference to the paint event 629 reference to the paint event
629 </dd> 630 </dd>
630 </dl> 631 </dl>
631 <a NAME="PdfView.resizeEvent" ID="PdfView.resizeEvent"></a> 632 <a NAME="PdfView.resizeEvent" ID="PdfView.resizeEvent"></a>
632 <h4>PdfView.resizeEvent</h4> 633 <h4>PdfView.resizeEvent</h4>
633 <b>resizeEvent</b>(<i>evt</i>) 634 <b>resizeEvent</b>(<i>evt</i>)
634
635 <p> 635 <p>
636 Protected method to handle a widget resize. 636 Protected method to handle a widget resize.
637 </p> 637 </p>
638
638 <dl> 639 <dl>
639 640
640 <dt><i>evt</i> (QResizeEvent)</dt> 641 <dt><i>evt</i> (QResizeEvent)</dt>
641 <dd> 642 <dd>
642 reference to the resize event 643 reference to the resize event
643 </dd> 644 </dd>
644 </dl> 645 </dl>
645 <a NAME="PdfView.scrollContentsBy" ID="PdfView.scrollContentsBy"></a> 646 <a NAME="PdfView.scrollContentsBy" ID="PdfView.scrollContentsBy"></a>
646 <h4>PdfView.scrollContentsBy</h4> 647 <h4>PdfView.scrollContentsBy</h4>
647 <b>scrollContentsBy</b>(<i>dx, dy</i>) 648 <b>scrollContentsBy</b>(<i>dx, dy</i>)
648
649 <p> 649 <p>
650 Public method called when the scrollbars are moved. 650 Public method called when the scrollbars are moved.
651 </p> 651 </p>
652
652 <dl> 653 <dl>
653 654
654 <dt><i>dx</i> (int)</dt> 655 <dt><i>dx</i> (int)</dt>
655 <dd> 656 <dd>
656 change of the horizontal scroll bar 657 change of the horizontal scroll bar
661 </dd> 662 </dd>
662 </dl> 663 </dl>
663 <a NAME="PdfView.setDocument" ID="PdfView.setDocument"></a> 664 <a NAME="PdfView.setDocument" ID="PdfView.setDocument"></a>
664 <h4>PdfView.setDocument</h4> 665 <h4>PdfView.setDocument</h4>
665 <b>setDocument</b>(<i>document</i>) 666 <b>setDocument</b>(<i>document</i>)
666
667 <p> 667 <p>
668 Public method to set the PDF document. 668 Public method to set the PDF document.
669 </p> 669 </p>
670
670 <dl> 671 <dl>
671 672
672 <dt><i>document</i> (QPdfDocument)</dt> 673 <dt><i>document</i> (QPdfDocument)</dt>
673 <dd> 674 <dd>
674 reference to the PDF document object 675 reference to the PDF document object
675 </dd> 676 </dd>
676 </dl> 677 </dl>
677 <a NAME="PdfView.wheelEvent" ID="PdfView.wheelEvent"></a> 678 <a NAME="PdfView.wheelEvent" ID="PdfView.wheelEvent"></a>
678 <h4>PdfView.wheelEvent</h4> 679 <h4>PdfView.wheelEvent</h4>
679 <b>wheelEvent</b>(<i>evt</i>) 680 <b>wheelEvent</b>(<i>evt</i>)
680
681 <p> 681 <p>
682 Protected method to handle wheel events. 682 Protected method to handle wheel events.
683 </p> 683 </p>
684
684 <dl> 685 <dl>
685 686
686 <dt><i>evt</i> (QWheelEvent)</dt> 687 <dt><i>evt</i> (QWheelEvent)</dt>
687 <dd> 688 <dd>
688 reference to the wheel event 689 reference to the wheel event
689 </dd> 690 </dd>
690 </dl> 691 </dl>
691 <a NAME="PdfView.zoomIn" ID="PdfView.zoomIn"></a> 692 <a NAME="PdfView.zoomIn" ID="PdfView.zoomIn"></a>
692 <h4>PdfView.zoomIn</h4> 693 <h4>PdfView.zoomIn</h4>
693 <b>zoomIn</b>(<i></i>) 694 <b>zoomIn</b>(<i></i>)
694
695 <p> 695 <p>
696 Public slot to zoom into the view. 696 Public slot to zoom into the view.
697 </p> 697 </p>
698
698 <a NAME="PdfView.zoomOut" ID="PdfView.zoomOut"></a> 699 <a NAME="PdfView.zoomOut" ID="PdfView.zoomOut"></a>
699 <h4>PdfView.zoomOut</h4> 700 <h4>PdfView.zoomOut</h4>
700 <b>zoomOut</b>(<i></i>) 701 <b>zoomOut</b>(<i></i>)
701
702 <p> 702 <p>
703 Public slot to zoom out of the view. 703 Public slot to zoom out of the view.
704 </p> 704 </p>
705
705 <a NAME="PdfView.zoomReset" ID="PdfView.zoomReset"></a> 706 <a NAME="PdfView.zoomReset" ID="PdfView.zoomReset"></a>
706 <h4>PdfView.zoomReset</h4> 707 <h4>PdfView.zoomReset</h4>
707 <b>zoomReset</b>(<i></i>) 708 <b>zoomReset</b>(<i></i>)
708
709 <p> 709 <p>
710 Public slot to reset the zoom factor of the view. 710 Public slot to reset the zoom factor of the view.
711 </p> 711 </p>
712
712 <div align="right"><a href="#top">Up</a></div> 713 <div align="right"><a href="#top">Up</a></div>
713 <hr /> 714 <hr />
714 </body></html> 715 </body></html>

eric ide

mercurial