umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

toolbarstatearrow.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) 2004-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef TOOLBARSTATEARROW_H
12 #define TOOLBARSTATEARROW_H
13
14 #include "toolbarstate.h"
15
16 #include <QList>
17
18 class QGraphicsLineItem;
19 class UMLScene;
20
30 class ToolBarStateArrow : public ToolBarState
31 {
32 Q_OBJECT
33 public:
34 explicit ToolBarStateArrow(UMLScene *umlScene);
35 virtual ~ToolBarStateArrow();
36
37 virtual void init();
38 void cleanup();
39
40 protected:
41
42 virtual void mousePressAssociation();
43 virtual void mousePressWidget();
44 virtual void mousePressEmpty();
45 virtual void mouseReleaseAssociation();
46 virtual void mouseReleaseWidget();
47 virtual void mouseReleaseEmpty();
48 virtual void mouseDoubleClickAssociation();
49 virtual void mouseDoubleClickWidget();
50 virtual void mouseMoveAssociation();
51 virtual void mouseMoveWidget();
52 virtual void mouseMoveEmpty();
53
54 virtual void setCurrentWidget(UMLWidget* currentWidget);
55
56 virtual void changeTool();
57
61 QList<QGraphicsLineItem*> m_selectionRect;
62
66 QPointF m_startPosition;
67
68 };
69
70 #endif //TOOLBARSTATEARROW_H
ToolBarStateArrow::mouseMoveEmpty
virtual void mouseMoveEmpty()
Definition: toolbarstatearrow.cpp:185
AssociationWidget::mouseMoveEvent
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: associationwidget.cpp:3267
ToolBarStateArrow::mouseReleaseEmpty
virtual void mouseReleaseEmpty()
Definition: toolbarstatearrow.cpp:134
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
ToolBarStateArrow
Definition: toolbarstatearrow.h:31
ToolBarStateArrow::changeTool
virtual void changeTool()
Definition: toolbarstatearrow.cpp:212
UMLWidget::mouseDoubleClickEvent
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition: umlwidget.cpp:585
ToolBarState::m_pUMLScene
UMLScene * m_pUMLScene
The UMLScene.
Definition: toolbarstate.h:124
ToolBarState::mousePressEmpty
virtual void mousePressEmpty()
Definition: toolbarstate.cpp:337
ToolBarStateArrow::m_selectionRect
QList< QGraphicsLineItem * > m_selectionRect
Definition: toolbarstatearrow.h:61
ToolBarStateArrow::mouseReleaseWidget
virtual void mouseReleaseWidget()
Definition: toolbarstatearrow.cpp:124
ToolBarStateArrow::init
virtual void init()
Definition: toolbarstatearrow.cpp:41
ToolBarStateArrow::mousePressEmpty
virtual void mousePressEmpty()
Definition: toolbarstatearrow.cpp:81
ToolBarStateArrow::setCurrentWidget
virtual void setCurrentWidget(UMLWidget *currentWidget)
Definition: toolbarstatearrow.cpp:224
ToolBarStateArrow::mousePressWidget
virtual void mousePressWidget()
Definition: toolbarstatearrow.cpp:71
UMLWidget::mouseReleaseEvent
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition: umlwidget.cpp:534
ToolBarState::currentAssociation
virtual AssociationWidget * currentAssociation() const
Definition: toolbarstate.cpp:462
toolbarstate.h
ToolBarState::setCurrentWidget
virtual void setCurrentWidget(UMLWidget *widget)
Definition: toolbarstate.cpp:452
UMLScene::selectWidgets
void selectWidgets(qreal px, qreal py, qreal qx, qreal qy)
Definition: umlscene.cpp:1770
ToolBarStateArrow::mousePressAssociation
virtual void mousePressAssociation()
Definition: toolbarstatearrow.cpp:62
ToolBarStateArrow::mouseReleaseAssociation
virtual void mouseReleaseAssociation()
Definition: toolbarstatearrow.cpp:115
umlwidget.h
AssociationWidget::mousePressEvent
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: associationwidget.cpp:2885
ToolBarStateArrow::ToolBarStateArrow
ToolBarStateArrow(UMLScene *umlScene)
Definition: toolbarstatearrow.cpp:24
ToolBarState::init
virtual void init()
Definition: toolbarstate.cpp:41
AssociationWidget::mouseDoubleClickEvent
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition: associationwidget.cpp:1519
ToolBarStateArrow::cleanup
void cleanup()
Definition: toolbarstatearrow.cpp:51
ToolBarStateArrow::mouseMoveWidget
virtual void mouseMoveWidget()
Definition: toolbarstatearrow.cpp:172
toolbarstatearrow.h
ToolBarState::m_pMouseEvent
QGraphicsSceneMouseEvent * m_pMouseEvent
The mouse event currently in use.
Definition: toolbarstate.h:125
ToolBarStateArrow::mouseMoveAssociation
virtual void mouseMoveAssociation()
Definition: toolbarstatearrow.cpp:162
ToolBarStateArrow::~ToolBarStateArrow
virtual ~ToolBarStateArrow()
Definition: toolbarstatearrow.cpp:33
UMLWidget::mousePressEvent
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: umlwidget.cpp:364
associationwidget.h
umlscene.h
ToolBarStateArrow::mouseDoubleClickWidget
virtual void mouseDoubleClickWidget()
Definition: toolbarstatearrow.cpp:152
UMLScene
Definition: umlscene.h:69
ToolBarStateArrow::mouseDoubleClickAssociation
virtual void mouseDoubleClickAssociation()
Definition: toolbarstatearrow.cpp:143
ToolBarStateArrow::m_startPosition
QPointF m_startPosition
Definition: toolbarstatearrow.h:66
UMLWidget::mouseMoveEvent
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: umlwidget.cpp:454
ToolBarState::currentWidget
virtual UMLWidget * currentWidget() const
Definition: toolbarstate.cpp:438
AssociationWidget::mouseReleaseEvent
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition: associationwidget.cpp:2915
ToolBarState
Definition: toolbarstate.h:70