umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Slots | Public Member Functions | Protected Member Functions | List of all members
UMLView Class Reference

#include <umlview.h>

Inheritance diagram for UMLView:
Collaboration diagram for UMLView:

Public Slots

void zoomIn ()
 
void zoomOut ()
 
void show ()
 

Public Member Functions

 UMLView (UMLFolder *parentFolder)
 
virtual ~UMLView ()
 
UMLSceneumlScene () const
 
qreal zoom () const
 
void setZoom (qreal zoom)
 
virtual bool showPropertiesDialog (QWidget *parent=0)
 

Protected Member Functions

virtual void wheelEvent (QWheelEvent *event)
 
virtual void showEvent (QShowEvent *se)
 
virtual void hideEvent (QHideEvent *he)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 

Detailed Description

UMLView instances represent views onto diagrams (scenes). The UMLApp instance manages the visibility of UMLView instances. The visible view (and therefore diagram) is at the top of stack. The UMLView class inherits from QGraphicsView. Construction of a UMLView implicitly constructs a UMLScene, i.e. there is a one to one relation between diagram and view. The UMLFolder instances own the UMLView instances.

Author
Paul Hensgen phens.nosp@m.gen@.nosp@m.techi.nosp@m.e.co.nosp@m.m Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org

Constructor & Destructor Documentation

◆ UMLView()

UMLView::UMLView ( UMLFolder parentFolder)
explicit

Constructor.

◆ ~UMLView()

UMLView::~UMLView ( )
virtual

Destructor.

Here is the call graph for this function:

Member Function Documentation

◆ hideEvent()

void UMLView::hideEvent ( QHideEvent *  he)
protectedvirtual

Overrides the standard operation.

Here is the call graph for this function:

◆ mousePressEvent()

void UMLView::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Override standard method.

◆ mouseReleaseEvent()

void UMLView::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Override standard method.

◆ resizeEvent()

void UMLView::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Override standard method.

◆ setZoom()

void UMLView::setZoom ( qreal  zoom)

Sets the zoom of the diagram.

Here is the call graph for this function:

◆ show

void UMLView::show ( )
slot

Overrides standard method from QWidget for possible additional actions. TBC can we remove this?

◆ showEvent()

void UMLView::showEvent ( QShowEvent *  se)
protectedvirtual

Overrides the standard operation.

Here is the call graph for this function:

◆ showPropertiesDialog()

bool UMLView::showPropertiesDialog ( QWidget *  parent = 0)
virtual

Shows the properties dialog for the view.

Here is the call graph for this function:

◆ umlScene()

UMLScene * UMLView::umlScene ( ) const

Getter for the uml scene.

◆ wheelEvent()

void UMLView::wheelEvent ( QWheelEvent *  event)
protectedvirtual

Zoom the view in and out.

Here is the call graph for this function:

◆ zoom()

qreal UMLView::zoom ( ) const

Returns the zoom of the diagram.

◆ zoomIn

void UMLView::zoomIn ( )
slot
Here is the call graph for this function:

◆ zoomOut

void UMLView::zoomOut ( )
slot
Here is the call graph for this function:

The documentation for this class was generated from the following files: