|
umbrello 25.04.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
The class BirdView controls the view of the whole scene. More...
#include <birdview.h>
Public Slots | |
| void | slotViewChanged () |
Signals | |
| void | viewPositionChanged (QPointF delta) |
Public Member Functions | |
| BirdView (QDockWidget *parent, UMLView *view) | |
| Constructor. | |
| virtual | ~BirdView () |
| void | setSlotsEnabled (bool enabled) |
Protected Member Functions | |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| virtual void | keyPressEvent (QKeyEvent *event) |
Private Slots | |
| void | slotDockSizeChanged (const QSize &size) |
| void | slotDestroyed (QObject *object) |
Static Private Member Functions | |
| static void | setBackgroundColor (QFrame *frame, const QColor &color) |
Private Attributes | |
| UMLView * | m_view |
| QGraphicsView * | m_birdView |
| QFrame * | m_protectFrame |
| QPoint | m_moveStartPos |
The class BirdView controls the view of the whole scene.
A view of the whole scene is shown together with a representation of the working window. This working window can be moved with the mouse and will therefore change the visible view of the working window. A frame is laid over the graphics view to prevent mouse events acting on the graphics elements.
| BirdView::BirdView | ( | QDockWidget * | parent, |
| UMLView * | view ) |
Constructor.
| parent | the dock widget where the bird view is loaded |
| view | the view to show |
|
virtual |
Destructor.
|
protectedvirtual |
Event handler for key press events.
| event | key press event |
|
protectedvirtual |
Event handler for mouse move events. Move the frame which represents the viewable window to a new position. Move is only done inside the container.
| event | mouse event |
|
protectedvirtual |
Event handler for mouse press events. Keep the start position for later.
| event | mouse event |
|
protectedvirtual |
Event handler for mouse release events.
| event | mouse event |
|
staticprivate |
Method to set the background color of a frame to a new color.
| frame | frame where the new color has to be set |
| color | new color, which has to be set to the frame |
| void BirdView::setSlotsEnabled | ( | bool | enabled | ) |
Enable or disable the value changed slots of the scroll bars of the view.
| enabled | flag whether to enable or disable the slots |
|
privateslot |
Handle destroyed view.
|
privateslot |
Event handler for size changed events of the dock window.
| size | new size to which the dock window was resized |
|
slot |
Event handler for view changed events of the graphics view. This is done by changing the scroll bars.
|
signal |
|
private |
|
private |
|
private |
|
private |