umbrello: umbrello/toolbarstateassociation.h Source File

umbrello 2.32.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 * 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 TOOLBARSTATEASSOCIATION_H
12 #define TOOLBARSTATEASSOCIATION_H
13
14 #include "basictypes.h"
15 #include "toolbarstatepool.h"
16
17 class QGraphicsLineItem;
18
38 class ToolBarStateAssociation : public ToolBarStatePool
39 {
40 Q_OBJECT
41 public:
42
43 explicit ToolBarStateAssociation(UMLScene *umlScene);
44 virtual ~ToolBarStateAssociation();
45
46 virtual void init();
47
48 virtual void cleanBeforeChange();
49
50 virtual void mouseMove(QGraphicsSceneMouseEvent* ome);
51
52 public slots:
53
54 virtual void slotWidgetRemoved(UMLWidget* widget);
55
56 protected:
57
58 virtual void mouseReleaseAssociation();
59 virtual void mouseReleaseWidget();
60 virtual void mouseReleaseEmpty();
61
62 private:
63
64 void setFirstWidget();
65 void setSecondWidget();
66
67 Uml::AssociationType::Enum getAssociationType();
68
69 bool addAssociationInViewAndDoc(AssociationWidget* assoc);
70
71 void cleanAssociation();
72
76 UMLWidget* m_firstWidget;
77
82 QGraphicsLineItem* m_associationLine;
83
84 };
85
86 #endif //TOOLBARSTATEASSOCIATION_H
basictypes.h
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
ToolBarStateAssociation
Definition: toolbarstateassociation.h:39
ToolBarStateAssociation::cleanAssociation
void cleanAssociation()
Definition: toolbarstateassociation.cpp:357
ToolBarStateAssociation::mouseReleaseWidget
virtual void mouseReleaseWidget()
Definition: toolbarstateassociation.cpp:135
ToolBarStateAssociation::mouseReleaseAssociation
virtual void mouseReleaseAssociation()
Definition: toolbarstateassociation.cpp:114
ToolBarStateAssociation::ToolBarStateAssociation
ToolBarStateAssociation(UMLScene *umlScene)
Definition: toolbarstateassociation.cpp:42
ToolBarStateAssociation::~ToolBarStateAssociation
virtual ~ToolBarStateAssociation()
Definition: toolbarstateassociation.cpp:53
ToolBarStateAssociation::getAssociationType
Uml::AssociationType::Enum getAssociationType()
Definition: toolbarstateassociation.cpp:290
ToolBarStateAssociation::init
virtual void init()
Definition: toolbarstateassociation.cpp:61
ToolBarStateAssociation::addAssociationInViewAndDoc
bool addAssociationInViewAndDoc(AssociationWidget *assoc)
Definition: toolbarstateassociation.cpp:332
ToolBarStateAssociation::m_associationLine
QGraphicsLineItem * m_associationLine
Definition: toolbarstateassociation.h:82
ToolBarStateAssociation::m_firstWidget
UMLWidget * m_firstWidget
Definition: toolbarstateassociation.h:76
ToolBarStateAssociation::setFirstWidget
void setFirstWidget()
Definition: toolbarstateassociation.cpp:173
ToolBarStateAssociation::slotWidgetRemoved
virtual void slotWidgetRemoved(UMLWidget *widget)
Definition: toolbarstateassociation.cpp:98
ToolBarStateAssociation::mouseMove
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Definition: toolbarstateassociation.cpp:82
ToolBarStateAssociation::setSecondWidget
void setSecondWidget()
Definition: toolbarstateassociation.cpp:216
ToolBarStateAssociation::cleanBeforeChange
virtual void cleanBeforeChange()
Definition: toolbarstateassociation.cpp:71
ToolBarStateAssociation::mouseReleaseEmpty
virtual void mouseReleaseEmpty()
Definition: toolbarstateassociation.cpp:161
ToolBarStatePool
Definition: toolbarstatepool.h:23
UMLScene
Definition: umlscene.h:70
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
toolbarstatepool.h