umbrello: umbrello/umlview.h Source File

umbrello 25.04.0 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 = nullptr);
42
43public Q_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::wheelEvent
virtual void wheelEvent(QWheelEvent *event)
Definition umlview.cpp:118
UMLView::hideEvent
virtual void hideEvent(QHideEvent *he)
Definition umlview.cpp:173
UMLView::mousePressEvent
virtual void mousePressEvent(QMouseEvent *event)
Definition umlview.cpp:187
UMLView::zoomOut
void zoomOut()
Definition umlview.cpp:99
UMLView::zoomIn
void zoomIn()
Definition umlview.cpp:92
UMLView::setZoom
void setZoom(qreal zoom)
Definition umlview.cpp:67
UMLView::mouseReleaseEvent
virtual void mouseReleaseEvent(QMouseEvent *event)
Definition umlview.cpp:201
UMLView::~UMLView
virtual ~UMLView()
Definition umlview.cpp:43
UMLView::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=nullptr)
Definition umlview.cpp:84
UMLView::umlScene
UMLScene * umlScene() const
Definition umlview.cpp:51
UMLView::show
void show()
Definition umlview.cpp:110
UMLView::showEvent
virtual void showEvent(QShowEvent *se)
Definition umlview.cpp:158
UMLView::resizeEvent
virtual void resizeEvent(QResizeEvent *event)
Definition umlview.cpp:215
UMLView::UMLView
UMLView(UMLFolder *parentFolder)
Definition umlview.cpp:29
UMLView::zoom
qreal zoom() const
Definition umlview.cpp:59