Module implementing a subclass of QCanvasView for our diagrams.
UMLCanvasView | Class implementing a specialized canvasview for our diagrams. |
None |
Class implementing a specialized canvasview for our diagrams.
UMLCanvasView | Constructor |
contentsMouseMoveEvent | Overriden method to handle mouse moves. |
contentsMousePressEvent | Overriden method to handle mouse button presses. |
contentsMouseReleaseEvent | Overriden method to handle mouse button releases. |
contextMenuEvent | Overriden method to handle a context menu event. |
doZoom | Private method to perform the zooming. |
getDiagram | Method to retrieve the diagram from the canvas fitting it in the minimum rectangle. |
getDiagramRect | Method to calculate the minimum rectangle fitting the diagram. |
handleDecHeight | Private method to handle the decrease height context menu entry. |
handleDecWidth | Private method to handle the decrease width context menu entry. |
handleDeleteShape | Private method to delete the selected shapes from the display. |
handleIncHeight | Private method to handle the increase height context menu entry. |
handleIncWidth | Private method to handle the increase width context menu entry. |
handlePrintDiagram | Private slot called to print the diagram. |
handleReLayout | Private method to handle the re-layout context menu entry. |
handleResize | Private method to resize the drawing canvas. |
handleSaveImage | Private method to handle the save context menu entry. |
handleSetSize | Private method to handle the set size context menu entry. |
handleShowPopupMenu | Slot to handle the popup menu about to show signal. |
handleZoom | Private method to handle the zoom context menu action. |
handleZoomIn | Private method to handle the zoom in context menu entry. |
handleZoomOut | Private method to handle the zoom out context menu entry. |
handleZoomReset | Private method to handle the reset zoom context menu entry. |
Constructor
Overriden method to handle mouse moves.
This method moves the widget according to the mouse movements.
Overriden method to handle mouse button presses.
This method determines the widget over which the button press occurred.
Overriden method to handle mouse button releases.
This method simply resets the tracked widget.
Overriden method to handle a context menu event.
Private method to perform the zooming.
Method to retrieve the diagram from the canvas fitting it in the minimum rectangle.
Method to calculate the minimum rectangle fitting the diagram.
Private method to handle the decrease height context menu entry.
Private method to handle the decrease width context menu entry.
Private method to delete the selected shapes from the display.
Private method to handle the increase height context menu entry.
Private method to handle the increase width context menu entry.
Private slot called to print the diagram.
Private method to handle the re-layout context menu entry.
Private method to resize the drawing canvas.
Private method to handle the save context menu entry.
Private method to handle the set size context menu entry.
Slot to handle the popup menu about to show signal.
It is used to disable/enable certain menu items according to various conditions.
Private method to handle the zoom context menu action.
Private method to handle the zoom in context menu entry.
Private method to handle the zoom out context menu entry.
Private method to handle the reset zoom context menu entry.