umbrello 26.03.70-1a62d36 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
11 class QCloseEvent;
12 class QHideEvent;
13 class QShowEvent;
14 class UMLFolder;
15 class UMLScene;
16
29 class UMLView : public QGraphicsView
30{
31 Q_OBJECT
32 public:
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
43 public Q_SLOTS:
44 void zoomIn();
45 void zoomOut();
46 void show();
47
48 protected:
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 Q_DECLARE_METATYPE(UMLView*);
58
59#endif // UMLVIEW_H
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: umlfolder.h:30
UMLScene
Definition: umlscene.h:66
UMLView
Definition: umlview.h:30
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::zoom
qreal zoom() const
Definition: umlview.cpp:59
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(UMLView *)