Module implementing a specialized PDF view class.
None |
PdfMarker | Class defining the data structure for markers. |
PdfMarkerGeometry | Class defining the data structure for marker geometries. |
PdfMarkerType | Class defining the various marker types. |
PdfView | Class implementing a specialized PDF view. |
None |
Class defining the data structure for markers.
markerType |
rectangle |
None |
None |
None |
Class defining the data structure for marker geometries.
markerType |
rectangle |
None |
None |
None |
Class defining the various marker types.
SEARCHRESULT |
SELECTION |
None |
None |
None |
Class implementing a specialized PDF view.
MarkerColors |
None |
PdfView | Constructor |
__calculateDocumentLayout | Private slot to calculate the document layout data. |
__calculateDocumentViewport | Private method to calculate the document viewport. |
__calculateMarkerGeometries | Private method to calculate the marker geometries. |
__currentPageChanged | Private slot to handle a change of the current page. |
__updateView | Private method to update the view. |
__zoomFactorForMode | Private method to calculate the zoom factor iaw. |
__zoomInOut | Private method to zoom into or out of the view. |
addMarker | Public slot to add a marker. |
addSearchMarker | Public slot to add a search marker given a PDF link. |
clearAllMarkers | Public slot to clear all markers. |
clearMarkers | Public slot to clear the markers of a specific type. |
clearSearchMarkers | Public slot to clear the search markers. |
clearSelection | Public slot to clear the current selection. |
event | Public method handling events. |
gestureEvent | Protected method handling gesture events. |
getSelection | Public method to get a PDF selection object. |
hasSelection | Public method to check the presence of a selection. |
keyPressEvent | Protected method handling key press events. |
mouseMoveEvent | Protected method to handle mouse move events. |
mousePressEvent | Protected method to handle mouse press events. |
mouseReleaseEvent | Protected method to handle mouse release events. |
paintEvent | Protected method to paint the view. |
resizeEvent | Protected method to handle a widget resize. |
scrollContentsBy | Public method called when the scrollbars are moved. |
setDocument | Public method to set the PDF document. |
wheelEvent | Protected method to handle wheel events. |
zoomIn | Public slot to zoom into the view. |
zoomOut | Public slot to zoom out of the view. |
zoomReset | Public slot to reset the zoom factor of the view. |
None |
Constructor
Private slot to calculate the document layout data.
This is a PyQt implementation of the code found in the QPdfView class because it is calculated in a private part and not accessible.
Private method to calculate the document viewport.
This is a PyQt implementation of the code found in the QPdfView class because it is calculated in a private part and not accessible.
Private method to calculate the marker geometries.
Private slot to handle a change of the current page.
Private method to update the view.
Private method to calculate the zoom factor iaw. the current zoom mode.
Private method to zoom into or out of the view.
Public slot to add a marker.
Public slot to add a search marker given a PDF link.
Public slot to clear all markers.
Public slot to clear the markers of a specific type.
Public slot to clear the search markers.
Public slot to clear the current selection.
Public method handling events.
Protected method handling gesture events.
Public method to get a PDF selection object.
Public method to check the presence of a selection.
Protected method handling key press events.
Protected method to handle mouse move events.
Protected method to handle mouse press events.
Protected method to handle mouse release events.
Protected method to paint the view.
This event handler calls the original paint event handler of the super class and paints the markers on top of the result.
Protected method to handle a widget resize.
Public method called when the scrollbars are moved.
Public method to set the PDF document.
Protected method to handle wheel events.
Public slot to zoom into the view.
Public slot to zoom out of the view.
Public slot to reset the zoom factor of the view.