Module implementing a dialog showing a pixmap.
None |
PixmapDiagram | Class implementing a dialog showing a pixmap. |
None |
Class implementing a dialog showing a pixmap.
ZoomLevelDefault |
ZoomLevels |
None |
PixmapDiagram | Constructor |
__adjustScrollBar | Private method to adjust a scrollbar by a certain factor. |
__doZoom | Private method to set the zoom value in percent. |
__initActions | Private method to initialize the view actions. |
__initContextMenu | Private method to initialize the context menu. |
__initToolBars | Private method to populate the toolbars with our actions. |
__levelForZoom | Private method determining the zoom level index given a zoom factor. |
__print | Private slot to the actual printing. |
__printDiagram | Private slot called to print the diagram. |
__printPreviewDiagram | Private slot called to show a print preview of the diagram. |
__showContextMenu | Private slot to show the context menu of the listview. |
__showPixmap | Private method to show a file. |
__zoom | Private method to get the current zoom factor in percent. |
__zoomIn | Private method to zoom into the pixmap. |
__zoomOut | Private method to zoom out of the pixmap. |
__zoomReset | Private method to reset the zoom value. |
event | Public method handling events. |
gestureEvent | Protected method handling gesture events. |
getDiagramName | Public method to retrieve a name for the diagram. |
getStatus | Public method to retrieve the status of the canvas. |
wheelEvent | Protected method to handle wheel events. |
None |
Constructor
Private method to adjust a scrollbar by a certain factor.
Private method to set the zoom value in percent.
Private method to initialize the view actions.
Private method to initialize the context menu.
Private method to populate the toolbars with our actions.
Private method determining the zoom level index given a zoom factor.
Private slot to the actual printing.
Private slot called to print the diagram.
Private slot called to show a print preview of the diagram.
Private slot to show the context menu of the listview.
Private method to show a file.
Private method to get the current zoom factor in percent.
Private method to zoom into the pixmap.
Private method to zoom out of the pixmap.
Private method to reset the zoom value.
Public method handling events.
Protected method handling gesture events.
Public method to retrieve a name for the diagram.
Public method to retrieve the status of the canvas.
Protected method to handle wheel events.