umbrello/umbrello
#include <umlview.h>
Public Slots | |
void | show () |
void | zoomIn () |
void | zoomOut () |
Public Member Functions | |
UMLView (UMLFolder *parentFolder) | |
virtual | ~UMLView () |
int | currentZoom () |
void | setZoom (int zoom) |
bool | showPropDialog () |
UMLScene * | umlScene () const |
int | zoom () const |
Protected Member Functions | |
QPointF | center () |
virtual void | closeEvent (QCloseEvent *ce) |
virtual void | hideEvent (QHideEvent *he) |
virtual void | resizeEvent (QResizeEvent *event) |
void | setCenter (const QPointF ¢erPoint) |
virtual void | showEvent (QShowEvent *se) |
virtual void | wheelEvent (QWheelEvent *event) |
Protected Attributes | |
QPointF | m_currentCenterPoint |
QPoint | m_lastPanPoint |
int | m_nZoom |
Detailed Description
UMLView instances represent diagrams.
The UMLApp instance manages a QWidgetStack of UMLView instances. The visible diagram is at the top of stack. The UMLView class inherits from QGraphicsView and it owns the objects displayed on its related QGraphicsScene (see m_WidgetList.)
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 33 of file umlview.cpp.
|
virtual |
Destructor.
Definition at line 49 of file umlview.cpp.
Member Function Documentation
|
protected |
Get the center.
Definition at line 283 of file umlview.cpp.
|
protectedvirtual |
Override standard method.
Definition at line 221 of file umlview.cpp.
int UMLView::currentZoom | ( | ) |
Return the current zoom factor.
Definition at line 93 of file umlview.cpp.
|
protectedvirtual |
Overrides the standard operation.
Definition at line 207 of file umlview.cpp.
|
protectedvirtual |
Need to update the center so there is no jolt in the interaction after resizing the widget.
Definition at line 179 of file umlview.cpp.
|
protected |
Sets the current centerpoint.
Also updates the scene's center point. Unlike centerOn, which has no way of getting the floating point center back, setCenter() stores the center point. It also handles the special sidebar case. This function will claim the centerPoint to sceneRec ie. the centerPoint must be within the sceneRec.
Definition at line 233 of file umlview.cpp.
void UMLView::setZoom | ( | int | zoom | ) |
Sets the zoom of the diagram.
Definition at line 74 of file umlview.cpp.
|
slot |
Overrides standard method from QWidget to resize scene when it's shown.
Definition at line 130 of file umlview.cpp.
|
protectedvirtual |
Overrides the standard operation.
Definition at line 192 of file umlview.cpp.
bool UMLView::showPropDialog | ( | ) |
Shows the properties dialog for the view.
Definition at line 101 of file umlview.cpp.
UMLScene * UMLView::umlScene | ( | ) | const |
Getter for the scene.
TODO: Should be removed. Use scene() instead.
Definition at line 58 of file umlview.cpp.
|
protectedvirtual |
Zoom the view in and out.
Definition at line 139 of file umlview.cpp.
int UMLView::zoom | ( | ) | const |
Returns the zoom of the diagram.
Definition at line 66 of file umlview.cpp.
|
slot |
Definition at line 112 of file umlview.cpp.
|
slot |
Definition at line 119 of file umlview.cpp.
Member Data Documentation
|
protected |
|
protected |
|
protected |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.