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

birdview.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2014 Andi Fischer <andi.fischer@hispeed.ch>
3
4 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5*/
6#ifndef BIRDVIEW_H
7#define BIRDVIEW_H
8
9#include <QDockWidget>
10#include <QFrame>
11
12 class UMLView;
13
14QT_BEGIN_NAMESPACE
15 class QGraphicsView;
16QT_END_NAMESPACE
17
29 class BirdView : public QFrame
30{
31 Q_OBJECT
32 public:
33 BirdView(QDockWidget *parent, UMLView *view);
34 virtual ~BirdView();
35
36 void setSlotsEnabled(bool enabled);
37
38Q_SIGNALS:
39 void viewPositionChanged(QPointF delta);
40
41 public Q_SLOTS:
42 void slotViewChanged();
43
44 protected:
45 virtual void mousePressEvent(QMouseEvent *event);
46 virtual void mouseMoveEvent(QMouseEvent *event);
47 virtual void mouseReleaseEvent(QMouseEvent *event);
48 virtual void keyPressEvent(QKeyEvent *event);
49
50 private Q_SLOTS:
51 void slotDockSizeChanged(const QSize &size);
52 void slotDestroyed(QObject *object);
53
54 private:
55 UMLView* m_view;
56 QGraphicsView* m_birdView;
57 QFrame* m_protectFrame;
58 QPoint m_moveStartPos;
59
60 static void setBackgroundColor(QFrame* frame, const QColor& color);
61};
62
63#endif // BIRDVIEW_H
BirdView
The class BirdView controls the view of the whole scene.
Definition: birdview.h:30
BirdView::slotViewChanged
void slotViewChanged()
Definition: birdview.cpp:121
BirdView::m_view
UMLView * m_view
Definition: birdview.h:55
BirdView::m_birdView
QGraphicsView * m_birdView
Definition: birdview.h:56
BirdView::setBackgroundColor
static void setBackgroundColor(QFrame *frame, const QColor &color)
Definition: birdview.cpp:247
BirdView::mousePressEvent
virtual void mousePressEvent(QMouseEvent *event)
Definition: birdview.cpp:136
BirdView::m_moveStartPos
QPoint m_moveStartPos
Definition: birdview.h:58
BirdView::slotDestroyed
void slotDestroyed(QObject *object)
Definition: birdview.cpp:76
BirdView::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event)
Definition: birdview.cpp:176
BirdView::mouseMoveEvent
virtual void mouseMoveEvent(QMouseEvent *event)
Definition: birdview.cpp:147
BirdView::m_protectFrame
QFrame * m_protectFrame
Definition: birdview.h:57
BirdView::viewPositionChanged
void viewPositionChanged(QPointF delta)
BirdView::mouseReleaseEvent
virtual void mouseReleaseEvent(QMouseEvent *event)
Definition: birdview.cpp:167
BirdView::slotDockSizeChanged
void slotDockSizeChanged(const QSize &size)
Definition: birdview.cpp:89
BirdView::~BirdView
virtual ~BirdView()
Definition: birdview.cpp:65
BirdView::setSlotsEnabled
void setSlotsEnabled(bool enabled)
Definition: birdview.cpp:222
UMLView
Definition: umlview.h:30