umbrello: umbrello/toolbarstatearrow.h Source File

umbrello 2.32.1 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
Definition: toolbarstatearrow.h:31
ToolBarStateArrow::m_selectionRect
QList< QGraphicsLineItem * > m_selectionRect
Definition: toolbarstatearrow.h:61
ToolBarStateArrow::mouseDoubleClickAssociation
virtual void mouseDoubleClickAssociation()
Definition: toolbarstatearrow.cpp:143
ToolBarStateArrow::init
virtual void init()
Definition: toolbarstatearrow.cpp:41
ToolBarStateArrow::mouseReleaseWidget
virtual void mouseReleaseWidget()
Definition: toolbarstatearrow.cpp:124
ToolBarStateArrow::mouseMoveAssociation
virtual void mouseMoveAssociation()
Definition: toolbarstatearrow.cpp:162
ToolBarStateArrow::cleanup
void cleanup()
Definition: toolbarstatearrow.cpp:51
ToolBarStateArrow::mouseDoubleClickWidget
virtual void mouseDoubleClickWidget()
Definition: toolbarstatearrow.cpp:152
ToolBarStateArrow::mousePressWidget
virtual void mousePressWidget()
Definition: toolbarstatearrow.cpp:71
ToolBarStateArrow::setCurrentWidget
virtual void setCurrentWidget(UMLWidget *currentWidget)
Definition: toolbarstatearrow.cpp:224
ToolBarStateArrow::mousePressAssociation
virtual void mousePressAssociation()
Definition: toolbarstatearrow.cpp:62
ToolBarStateArrow::mouseMoveWidget
virtual void mouseMoveWidget()
Definition: toolbarstatearrow.cpp:172
ToolBarStateArrow::mouseReleaseEmpty
virtual void mouseReleaseEmpty()
Definition: toolbarstatearrow.cpp:134
ToolBarStateArrow::ToolBarStateArrow
ToolBarStateArrow(UMLScene *umlScene)
Definition: toolbarstatearrow.cpp:24
ToolBarStateArrow::~ToolBarStateArrow
virtual ~ToolBarStateArrow()
Definition: toolbarstatearrow.cpp:33
ToolBarStateArrow::mouseReleaseAssociation
virtual void mouseReleaseAssociation()
Definition: toolbarstatearrow.cpp:115
ToolBarStateArrow::m_startPosition
QPointF m_startPosition
Definition: toolbarstatearrow.h:66
ToolBarStateArrow::mousePressEmpty
virtual void mousePressEmpty()
Definition: toolbarstatearrow.cpp:81
ToolBarStateArrow::changeTool
virtual void changeTool()
Definition: toolbarstatearrow.cpp:212
ToolBarStateArrow::mouseMoveEmpty
virtual void mouseMoveEmpty()
Definition: toolbarstatearrow.cpp:185
ToolBarState
Definition: toolbarstate.h:70
ToolBarState::currentWidget
virtual UMLWidget * currentWidget() const
Definition: toolbarstate.cpp:438
UMLScene
Definition: umlscene.h:70
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
toolbarstate.h