umbrello: umbrello/umlview.h Source File

umbrello 2.31.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 * 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
notewidget.h
UMLView::showEvent
virtual void showEvent(QShowEvent *se)
Definition: umlview.cpp:166
UMLScene::resizeSceneToItems
void resizeSceneToItems()
Definition: umlscene.cpp:3673
DEBUG_REGISTER
#define DEBUG_REGISTER(src)
Definition: debug_utils.h:131
docwindow.h
umlview.h
UMLScene::hideEvent
void hideEvent(QHideEvent *he)
Definition: umlscene.cpp:774
UMLView::zoomIn
void zoomIn()
Definition: umlview.cpp:99
UMLViewDialog
Definition: umlviewdialog.h:36
UMLScene::showEvent
void showEvent(QShowEvent *se)
Definition: umlscene.cpp:761
UMLApp::setZoom
void setZoom(int zoom, bool withView=true)
Definition: uml.cpp:745
model_utils.h
umldragdata.h
UMLView::wheelEvent
virtual void wheelEvent(QWheelEvent *event)
Definition: umlview.cpp:126
UMLView::setZoom
void setZoom(qreal zoom)
Definition: umlview.cpp:72
UMLView
Definition: umlview.h:34
umlviewdialog.h
UMLApp
Definition: uml.h:99
UMLView::zoomOut
void zoomOut()
Definition: umlview.cpp:106
UMLView::show
void show()
Definition: umlview.cpp:117
umlwidget.h
UMLView::UMLView
UMLView(UMLFolder *parentFolder)
Definition: umlview.cpp:34
UMLApp::workToolBar
WorkToolBar * workToolBar() const
Definition: uml.cpp:1876
WorkToolBar
The toolbar that is different for each type of diagram.
Definition: worktoolbar.h:40
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLView::~UMLView
virtual ~UMLView()
Definition: umlview.cpp:48
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
UMLScene::resetToolbar
void resetToolbar()
Definition: umlscene.cpp:2924
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:34
DEBUG
#define DEBUG(src)
Definition: debug_utils.h:129
umlscene.h
UMLView::mouseReleaseEvent
virtual void mouseReleaseEvent(QMouseEvent *event)
Definition: umlview.cpp:209
uml.h
UMLView::mousePressEvent
virtual void mousePressEvent(QMouseEvent *event)
Definition: umlview.cpp:195
UMLView::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: umlview.cpp:91
debug_utils.h
UMLScene
Definition: umlscene.h:68
DBG_SRC
#define DBG_SRC
Definition: import_utils.cpp:43
UMLView::umlScene
UMLScene * umlScene() const
Definition: umlview.cpp:56
UMLView::hideEvent
virtual void hideEvent(QHideEvent *he)
Definition: umlview.cpp:181
UMLView::resizeEvent
virtual void resizeEvent(QResizeEvent *event)
Definition: umlview.cpp:223
umldoc.h
UMLView::zoom
qreal zoom() const
Definition: umlview.cpp:64