umbrello  2.32.3
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  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2002-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef UMLVIEW_H
12 #define UMLVIEW_H
13 
14 #include <QGraphicsView>
15 
16 class QCloseEvent;
17 class QHideEvent;
18 class QShowEvent;
19 class UMLFolder;
20 class UMLScene;
21 
34 class UMLView : public QGraphicsView
35 {
36  Q_OBJECT
37 public:
38  explicit UMLView(UMLFolder *parentFolder);
39  virtual ~UMLView();
40 
41  UMLScene* umlScene() const;
42 
43  qreal zoom() const ;
44  void setZoom(qreal zoom);
45 
46  virtual bool showPropertiesDialog(QWidget *parent = 0);
47 
48 public slots:
49  void zoomIn();
50  void zoomOut();
51  void show();
52 
53 protected:
54  virtual void wheelEvent(QWheelEvent* event);
55  virtual void showEvent(QShowEvent *se);
56  virtual void hideEvent(QHideEvent *he);
57  virtual void mousePressEvent(QMouseEvent* event);
58  virtual void mouseReleaseEvent(QMouseEvent* event);
59  virtual void resizeEvent(QResizeEvent *event);
60 };
61 
62 #endif // UMLVIEW_H
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
Definition: umlscene.h:70
Definition: umlview.h:35
virtual void wheelEvent(QWheelEvent *event)
Definition: umlview.cpp:126
virtual void hideEvent(QHideEvent *he)
Definition: umlview.cpp:181
virtual void mousePressEvent(QMouseEvent *event)
Definition: umlview.cpp:195
void zoomOut()
Definition: umlview.cpp:106
void zoomIn()
Definition: umlview.cpp:99
void setZoom(qreal zoom)
Definition: umlview.cpp:72
virtual void mouseReleaseEvent(QMouseEvent *event)
Definition: umlview.cpp:209
virtual ~UMLView()
Definition: umlview.cpp:48
UMLScene * umlScene() const
Definition: umlview.cpp:56
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: umlview.cpp:91
void show()
Definition: umlview.cpp:117
virtual void showEvent(QShowEvent *se)
Definition: umlview.cpp:166
virtual void resizeEvent(QResizeEvent *event)
Definition: umlview.cpp:223
UMLView(UMLFolder *parentFolder)
Definition: umlview.cpp:34
qreal zoom() const
Definition: umlview.cpp:64