umbrello: umbrello/toolbarstateassociation.h Source File

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

toolbarstateassociation.h
Go to the documentation of this file.
1 /*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2004-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5
6 #ifndef TOOLBARSTATEASSOCIATION_H
7 #define TOOLBARSTATEASSOCIATION_H
8
9 #include "basictypes.h"
10 #include "toolbarstatepool.h"
11
12 class QGraphicsLineItem;
13
33 class ToolBarStateAssociation : public ToolBarStatePool
34 {
35 Q_OBJECT
36 public:
37
38 explicit ToolBarStateAssociation(UMLScene *umlScene);
39 virtual ~ToolBarStateAssociation();
40
41 virtual void init();
42
43 virtual void cleanBeforeChange();
44
45 virtual void mouseMove(QGraphicsSceneMouseEvent* ome);
46
47 public slots:
48
49 virtual void slotWidgetRemoved(UMLWidget* widget);
50
51 protected:
52
53 virtual void mouseReleaseAssociation();
54 virtual void mouseReleaseWidget();
55 virtual void mouseReleaseEmpty();
56
57 private:
58
59 void setFirstWidget();
60 void setSecondWidget();
61
62 Uml::AssociationType::Enum getAssociationType();
63
64 bool addAssociationInViewAndDoc(AssociationWidget* assoc);
65
66 void cleanAssociation();
67
71 UMLWidget* m_firstWidget;
72
77 QGraphicsLineItem* m_associationLine;
78
79 };
80
81 #endif //TOOLBARSTATEASSOCIATION_H
basictypes.h
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:47
ToolBarStateAssociation
Definition: toolbarstateassociation.h:34
ToolBarStateAssociation::cleanAssociation
void cleanAssociation()
Definition: toolbarstateassociation.cpp:352
ToolBarStateAssociation::mouseReleaseWidget
virtual void mouseReleaseWidget()
Definition: toolbarstateassociation.cpp:130
ToolBarStateAssociation::mouseReleaseAssociation
virtual void mouseReleaseAssociation()
Definition: toolbarstateassociation.cpp:109
ToolBarStateAssociation::ToolBarStateAssociation
ToolBarStateAssociation(UMLScene *umlScene)
Definition: toolbarstateassociation.cpp:37
ToolBarStateAssociation::~ToolBarStateAssociation
virtual ~ToolBarStateAssociation()
Definition: toolbarstateassociation.cpp:48
ToolBarStateAssociation::getAssociationType
Uml::AssociationType::Enum getAssociationType()
Definition: toolbarstateassociation.cpp:285
ToolBarStateAssociation::init
virtual void init()
Definition: toolbarstateassociation.cpp:56
ToolBarStateAssociation::addAssociationInViewAndDoc
bool addAssociationInViewAndDoc(AssociationWidget *assoc)
Definition: toolbarstateassociation.cpp:327
ToolBarStateAssociation::m_associationLine
QGraphicsLineItem * m_associationLine
Definition: toolbarstateassociation.h:77
ToolBarStateAssociation::m_firstWidget
UMLWidget * m_firstWidget
Definition: toolbarstateassociation.h:71
ToolBarStateAssociation::setFirstWidget
void setFirstWidget()
Definition: toolbarstateassociation.cpp:168
ToolBarStateAssociation::slotWidgetRemoved
virtual void slotWidgetRemoved(UMLWidget *widget)
Definition: toolbarstateassociation.cpp:93
ToolBarStateAssociation::mouseMove
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Definition: toolbarstateassociation.cpp:77
ToolBarStateAssociation::setSecondWidget
void setSecondWidget()
Definition: toolbarstateassociation.cpp:211
ToolBarStateAssociation::cleanBeforeChange
virtual void cleanBeforeChange()
Definition: toolbarstateassociation.cpp:66
ToolBarStateAssociation::mouseReleaseEmpty
virtual void mouseReleaseEmpty()
Definition: toolbarstateassociation.cpp:156
ToolBarStatePool
Definition: toolbarstatepool.h:18
UMLScene
Definition: umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:92
toolbarstatepool.h