umbrello: umbrello/umlview.h Source File

umbrello 2.32.2 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

umlview.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMLVIEW_H
7#define UMLVIEW_H
8
9#include <QGraphicsView>
10
11class QCloseEvent;
12class QHideEvent;
13class QShowEvent;
14class UMLFolder;
15class UMLScene;
16
29 class UMLView : public QGraphicsView
30{
31 Q_OBJECT
32public:
33 explicit UMLView(UMLFolder *parentFolder);
34 virtual ~UMLView();
35
36 UMLScene* umlScene() const;
37
38 qreal zoom() const ;
39 void setZoom(qreal zoom);
40
41 virtual bool showPropertiesDialog(QWidget *parent = 0);
42
43public slots:
44 void zoomIn();
45 void zoomOut();
46 void show();
47
48protected:
49 virtual void wheelEvent(QWheelEvent* event);
50 virtual void showEvent(QShowEvent *se);
51 virtual void hideEvent(QHideEvent *he);
52 virtual void mousePressEvent(QMouseEvent* event);
53 virtual void mouseReleaseEvent(QMouseEvent* event);
54 virtual void resizeEvent(QResizeEvent *event);
55};
56
57#endif // UMLVIEW_H
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:30
UMLScene
Definition: umlscene.h:65
UMLView
Definition: umlview.h:30
UMLView::wheelEvent
virtual void wheelEvent(QWheelEvent *event)
Definition: umlview.cpp:121
UMLView::hideEvent
virtual void hideEvent(QHideEvent *he)
Definition: umlview.cpp:176
UMLView::mousePressEvent
virtual void mousePressEvent(QMouseEvent *event)
Definition: umlview.cpp:190
UMLView::zoomOut
void zoomOut()
Definition: umlview.cpp:101
UMLView::zoomIn
void zoomIn()
Definition: umlview.cpp:94
UMLView::setZoom
void setZoom(qreal zoom)
Definition: umlview.cpp:67
UMLView::mouseReleaseEvent
virtual void mouseReleaseEvent(QMouseEvent *event)
Definition: umlview.cpp:204
UMLView::~UMLView
virtual ~UMLView()
Definition: umlview.cpp:43
UMLView::umlScene
UMLScene * umlScene() const
Definition: umlview.cpp:51
UMLView::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: umlview.cpp:86
UMLView::show
void show()
Definition: umlview.cpp:112
UMLView::showEvent
virtual void showEvent(QShowEvent *se)
Definition: umlview.cpp:161
UMLView::resizeEvent
virtual void resizeEvent(QResizeEvent *event)
Definition: umlview.cpp:218
UMLView::UMLView
UMLView(UMLFolder *parentFolder)
Definition: umlview.cpp:29
UMLView::zoom
qreal zoom() const
Definition: umlview.cpp:59