umbrello: umbrello/toolbarstateassociation.h Source File

umbrello 25.08.0 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-2021 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
12class QGraphicsLineItem;
13
33 class ToolBarStateAssociation : public ToolBarStatePool
34{
35 Q_OBJECT
36public:
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
47public Q_SLOTS:
48
49 virtual void slotWidgetRemoved(UMLWidget* widget);
50
51protected:
52
53 virtual void mouseReleaseAssociation();
54 virtual void mouseReleaseWidget();
55 virtual void mouseReleaseEmpty();
56
57private:
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::cleanAssociation
void cleanAssociation()
Definition toolbarstateassociation.cpp:359
ToolBarStateAssociation::mouseReleaseWidget
virtual void mouseReleaseWidget()
Definition toolbarstateassociation.cpp:136
ToolBarStateAssociation::mouseReleaseAssociation
virtual void mouseReleaseAssociation()
Definition toolbarstateassociation.cpp:111
ToolBarStateAssociation::ToolBarStateAssociation
ToolBarStateAssociation(UMLScene *umlScene)
Definition toolbarstateassociation.cpp:39
ToolBarStateAssociation::~ToolBarStateAssociation
virtual ~ToolBarStateAssociation()
Definition toolbarstateassociation.cpp:50
ToolBarStateAssociation::getAssociationType
Uml::AssociationType::Enum getAssociationType()
Definition toolbarstateassociation.cpp:292
ToolBarStateAssociation::init
virtual void init()
Definition toolbarstateassociation.cpp:58
ToolBarStateAssociation::addAssociationInViewAndDoc
bool addAssociationInViewAndDoc(AssociationWidget *assoc)
Definition toolbarstateassociation.cpp:334
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:174
ToolBarStateAssociation::slotWidgetRemoved
virtual void slotWidgetRemoved(UMLWidget *widget)
Definition toolbarstateassociation.cpp:95
ToolBarStateAssociation::mouseMove
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Definition toolbarstateassociation.cpp:79
ToolBarStateAssociation::setSecondWidget
void setSecondWidget()
Definition toolbarstateassociation.cpp:217
ToolBarStateAssociation::cleanBeforeChange
virtual void cleanBeforeChange()
Definition toolbarstateassociation.cpp:68
ToolBarStateAssociation::mouseReleaseEmpty
virtual void mouseReleaseEmpty()
Definition toolbarstateassociation.cpp:162
ToolBarStatePool::ToolBarStatePool
ToolBarStatePool(UMLScene *umlScene)
Definition toolbarstatepool.cpp:49
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