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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

associationwidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef ASSOCIATIONWIDGET_H
7#define ASSOCIATIONWIDGET_H
8
9#include "associationline.h"
10#include "associationwidgetlist.h"
11#include "associationwidgetrole.h"
12#include "linkwidget.h"
13#include "messagewidgetlist.h"
14#include "umlwidgetlist.h"
15#include "widgetbase.h"
16
17 class ClassifierWidget;
18 class UMLScene;
19 class UMLAssociation;
20 class UMLAttribute;
21 class UMLClassifierListItem;
22 class UMLOperation;
23
46 class AssociationWidget : public WidgetBase, public LinkWidget
47{
48 Q_OBJECT
49 public:
50 static AssociationWidget* create(UMLScene *scene);
51 static AssociationWidget* create
52 (UMLScene *scene, UMLWidget* WidgetA,
53 Uml::AssociationType::Enum assocType, UMLWidget* WidgetB,
54 UMLObject *umlobject = 0);
55
56 virtual ~AssociationWidget();
57
58 virtual void setUMLObject(UMLObject *obj);
59
60 //---------- LinkWidget Interface methods implementation from here on.
61
62 virtual void lwSetFont(QFont font);
63 virtual UMLClassifier *operationOwner();
64
65 virtual UMLOperation *operation();
66 virtual void setOperation(UMLOperation *op);
67
68 virtual QString customOpText();
69 virtual void setCustomOpText(const QString &opText);
70
71 virtual void resetTextPositions();
72
73 virtual void setMessageText(FloatingTextWidget *ft);
74 virtual void setText(FloatingTextWidget *ft, const QString &newText);
75
76 virtual bool showPropertiesDialog();
77
78 virtual QString lwOperationText();
79 virtual UMLClassifier *lwClassifier();
80 virtual void setOperationText(const QString &op);
81
82 virtual void constrainTextPos(qreal &textX, qreal &textY,
83 qreal textWidth, qreal textHeight,
84 Uml::TextRole::Enum tr);
85
86 virtual void calculateNameTextSegment();
87
88 //---------- End LinkWidget Interface methods implementation.
89
90 UMLAssociation* association() const;
91 UMLAttribute* attribute() const;
92
93// AssociationWidget& operator=(const AssociationWidget& other);
94 bool operator==(const AssociationWidget& other) const;
95 bool operator!=(AssociationWidget& other) const;
96
97 FloatingTextWidget* textWidgetByRole(Uml::TextRole::Enum tr) const;
98
99 FloatingTextWidget* nameWidget() const;
100 QString name() const;
101 void setName(const QString &strRole);
102 void setStereotype(const QString &stereo);
103
104 FloatingTextWidget* roleWidget(Uml::RoleType::Enum role) const;
105 QString roleName(Uml::RoleType::Enum role) const;
106 void setRoleName(const QString &strRole, Uml::RoleType::Enum role);
107
108 QString roleDocumentation(Uml::RoleType::Enum role) const;
109 void setRoleDocumentation(const QString& doc, Uml::RoleType::Enum role);
110
111 FloatingTextWidget* multiplicityWidget(Uml::RoleType::Enum role) const;
112 QString multiplicity(Uml::RoleType::Enum role) const;
113 void setMultiplicity(const QString& text, Uml::RoleType::Enum role);
114
115 Uml::Visibility::Enum visibility(Uml::RoleType::Enum role) const;
116 void setVisibility(Uml::Visibility::Enum value, Uml::RoleType::Enum role);
117
118 FloatingTextWidget* changeabilityWidget(Uml::RoleType::Enum role) const;
119 Uml::Changeability::Enum changeability(Uml::RoleType::Enum role) const;
120 void setChangeability(Uml::Changeability::Enum value, Uml::RoleType::Enum role);
121
122 Uml::ID::Type widgetIDForRole(Uml::RoleType::Enum role) const;
123 Uml::ID::Type widgetLocalIDForRole(Uml::RoleType::Enum role) const;
124 UMLWidget* widgetForRole(Uml::RoleType::Enum role) const;
125 void setWidgetForRole(UMLWidget* widget, Uml::RoleType::Enum role);
126
127 bool containsAsEndpoint(UMLWidget* widget);
128
129 Uml::AssociationType::Enum associationType() const;
130 void setAssociationType(Uml::AssociationType::Enum type);
131
132 bool isCollaboration() const;
133 bool isSelf() const;
134
135 QString toString() const;
136
137 bool isActivated() const;
138 void setActivated(bool active);
139
140 const AssociationLine& associationLine() const;
141 AssociationLine& associationLine();
142
143 virtual bool activate(IDChangeLog *changeLog = 0);
144 virtual QRectF boundingRect() const;
145 virtual QPainterPath shape() const;
146
147 void widgetMoved(UMLWidget* widget, qreal x, qreal y);
148
149 void saveIdealTextPositions();
150
151 UMLWidget* onWidget(const QPointF &p);
152 bool onAssociation(const QPointF& point);
153 bool onAssocClassLine(const QPointF& point);
154
155 void createAssocClassLine();
156 void createAssocClassLine(ClassifierWidget* classifierWidget,
157 int linePathSegmentIndex);
158
159 void selectAssocClassLine(bool sel = true);
160 void removeAssocClassLine();
161 void computeAssocClassLine();
162
163 void setXEntireAssoc(qreal x);
164 void setYEntireAssoc(qreal y);
165
166 void moveMidPointsBy(qreal x, qreal y);
167 void moveEntireAssoc(qreal x, qreal y);
168
169 QFont font() const;
170
171 virtual void setTextColor(const QColor &color);
172 virtual void setLineColor(const QColor &color);
173 virtual void setLineWidth(uint width);
174
175 void calculateEndingPoints();
176
177 void clipSize();
178
179 bool loadFromXMI(QDomElement& qElement, const UMLWidgetList& widgets,
180 const MessageWidgetList* messages);
181 virtual bool loadFromXMI(QDomElement& qElement);
182 virtual void saveToXMI(QXmlStreamWriter& writer);
183
184 void cleanup();
185
186 bool isPointAddable();
187 bool isPointRemovable();
188 bool isAutoLayouted();
189 bool isLayoutChangeable();
190
191 virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
192 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
193 virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
194 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
195
196 virtual void setSelected(bool _select);
197
198 public Q_SLOTS: //:TODO: all virtual?
199 virtual void slotMenuSelection(QAction* action);
200 void slotClassifierListItemRemoved(UMLClassifierListItem* obj);
201 void slotAttributeChanged();
202
203 void syncToModel();
204
205 protected:
206 virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
207
208 virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
209 virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
210 virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event);
211
212 private:
213 QPointF calculateTextPosition(Uml::TextRole::Enum role);
214 void setTextPosition(Uml::TextRole::Enum role);
215 void setTextPositionRelatively(Uml::TextRole::Enum role, const QPointF &oldPosition);
216 void setFloatingText(Uml::TextRole::Enum role, const QString& text, FloatingTextWidget* &ft);
217
218 AssociationWidget(UMLScene *scene);
219
220 void setUMLAssociation(UMLAssociation * assoc);
221
222 void mergeAssociationDataIntoUMLRepresentation();
223
224 static Uml::Region::Enum findPointRegion(const QRectF& rect, const QPointF& pos);
225 static bool findIntercept(const QRectF& rect, const QPointF& point, QPointF& result);
226 static QLineF::IntersectType intersect(const QRectF &rect, const QLineF &line,
227 QPointF* intersectionPoint);
228
229 void moveEvent(QGraphicsSceneMouseEvent *me);
230
231 Uml::TextRole::Enum calculateNameType(Uml::TextRole::Enum defaultRoleType);
232
233 static QPointF swapXY(const QPointF &p);
234
235 static QPointF midPoint(const QPointF& p0, const QPointF& p1);
236
237 void createPointsSelfAssociation();
238 void updatePointsSelfAssociation();
239 void createPointsException();
240 void updatePointsException();
241
242 static bool setStartAndEndPoint(AssociationWidget *assocwidget, UMLWidget *pWidget);
243
244 static void updateAssociations(UMLWidget *pWidget, AssociationWidgetList list);
245
246 void setChangeWidget(const QString &strChangeWidget, Uml::RoleType::Enum role);
247
248 bool checkAddPoint(const QPointF &scenePos);
249 bool checkRemovePoint(const QPointF &scenePos);
250 bool checkAutoLayoutSpline();
251
252 bool linePathStartsAt(const UMLWidget* widget) const;
253 bool linePathEndsAt (const UMLWidget* widget) const;
254
255 bool m_activated;
256
264 int m_unNameLineSegment;
265
266 QPointF m_oldNamePoint;
267 QPointF m_oldMultiAPoint;
268 QPointF m_oldMultiBPoint;
269 QPointF m_oldChangeAPoint;
270 QPointF m_oldChangeBPoint;
271 QPointF m_oldRoleAPoint;
272 QPointF m_oldRoleBPoint;
273
274 int m_nLinePathSegmentIndex;
275 QGraphicsLineItem *m_pAssocClassLine;
276 QGraphicsRectItem *m_pAssocClassLineSel0;
277 QGraphicsRectItem *m_pAssocClassLineSel1;
278
279 AssociationLine m_associationLine;
280 ClassifierWidget *m_associationClass;
281 Uml::AssociationType::Enum m_associationType;
282 AssociationWidgetRole m_role[2];
283 FloatingTextWidget* m_nameWidget;
284 QPointF m_eventScenePos;
285
286};
287
288#endif
associationline.h
associationwidgetlist.h
AssociationWidgetList
QList< QPointer< AssociationWidget > > AssociationWidgetList
Definition associationwidgetlist.h:17
associationwidgetrole.h
AssociationLine
Definition associationline.h:101
AssociationWidgetRole
Definition associationwidgetrole.h:27
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition associationwidget.h:47
AssociationWidget::widgetLocalIDForRole
Uml::ID::Type widgetLocalIDForRole(Uml::RoleType::Enum role) const
Definition associationwidget.cpp:1499
AssociationWidget::m_oldChangeAPoint
QPointF m_oldChangeAPoint
Position of role A changeability floatingtext saved by saveIdealTextPositions()
Definition associationwidget.h:269
AssociationWidget::setXEntireAssoc
void setXEntireAssoc(qreal x)
Definition associationwidget.cpp:3265
AssociationWidget::boundingRect
virtual QRectF boundingRect() const
Definition associationwidget.cpp:3324
AssociationWidget::calculateTextPosition
QPointF calculateTextPosition(Uml::TextRole::Enum role)
Definition associationwidget.cpp:2134
AssociationWidget::syncToModel
void syncToModel()
Definition associationwidget.cpp:1728
AssociationWidget::hoverLeaveEvent
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition associationwidget.cpp:3420
AssociationWidget::setWidgetForRole
void setWidgetForRole(UMLWidget *widget, Uml::RoleType::Enum role)
Definition associationwidget.cpp:792
AssociationWidget::cleanup
void cleanup()
Definition associationwidget.cpp:1275
AssociationWidget::createPointsSelfAssociation
void createPointsSelfAssociation()
Definition associationwidget.cpp:1907
AssociationWidget::slotMenuSelection
virtual void slotMenuSelection(QAction *action)
Definition associationwidget.cpp:2598
AssociationWidget::setTextPosition
void setTextPosition(Uml::TextRole::Enum role)
Definition associationwidget.cpp:2390
AssociationWidget::setActivated
void setActivated(bool active)
Definition associationwidget.cpp:1720
AssociationWidget::setOperationText
virtual void setOperationText(const QString &op)
Definition associationwidget.cpp:452
AssociationWidget::slotAttributeChanged
void slotAttributeChanged()
Definition associationwidget.cpp:3358
AssociationWidget::moveEntireAssoc
void moveEntireAssoc(qreal x, qreal y)
Definition associationwidget.cpp:3305
AssociationWidget::setLineColor
virtual void setLineColor(const QColor &color)
Definition associationwidget.cpp:2824
AssociationWidget::moveMidPointsBy
void moveMidPointsBy(qreal x, qreal y)
Definition associationwidget.cpp:3289
AssociationWidget::setOperation
virtual void setOperation(UMLOperation *op)
Definition associationwidget.cpp:299
AssociationWidget::setYEntireAssoc
void setYEntireAssoc(qreal y)
Definition associationwidget.cpp:3277
AssociationWidget::m_eventScenePos
QPointF m_eventScenePos
holds scene pos of contextMenuEvent()
Definition associationwidget.h:284
AssociationWidget::isCollaboration
bool isCollaboration() const
Definition associationwidget.cpp:1409
AssociationWidget::setStartAndEndPoint
static bool setStartAndEndPoint(AssociationWidget *assocwidget, UMLWidget *pWidget)
Definition associationwidget.cpp:2992
AssociationWidget::mergeAssociationDataIntoUMLRepresentation
void mergeAssociationDataIntoUMLRepresentation()
Definition associationwidget.cpp:1762
AssociationWidget::m_nameWidget
FloatingTextWidget * m_nameWidget
displays the name of this association
Definition associationwidget.h:283
AssociationWidget::create
static AssociationWidget * create(UMLScene *scene)
Definition associationwidget.cpp:99
AssociationWidget::m_role
AssociationWidgetRole m_role[2]
Definition associationwidget.h:282
AssociationWidget::isAutoLayouted
bool isAutoLayouted()
Definition associationwidget.cpp:1338
AssociationWidget::setMultiplicity
void setMultiplicity(const QString &text, Uml::RoleType::Enum role)
Definition associationwidget.cpp:1069
AssociationWidget::checkAddPoint
bool checkAddPoint(const QPointF &scenePos)
Definition associationwidget.cpp:2846
AssociationWidget::name
QString name() const
Definition associationwidget.cpp:874
AssociationWidget::operation
virtual UMLOperation * operation()
Definition associationwidget.cpp:290
AssociationWidget::computeAssocClassLine
void computeAssocClassLine()
Definition associationwidget.cpp:2511
AssociationWidget::m_oldRoleAPoint
QPointF m_oldRoleAPoint
Position of role A name floatingtext saved by saveIdealTextPositions()
Definition associationwidget.h:271
AssociationWidget::linePathStartsAt
bool linePathStartsAt(const UMLWidget *widget) const
Definition associationwidget.cpp:1190
AssociationWidget::isPointAddable
bool isPointAddable()
Return state if the association line point in the vicinity of the last context menu event position is...
Definition associationwidget.cpp:1315
AssociationWidget::customOpText
virtual QString customOpText()
Definition associationwidget.cpp:314
AssociationWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition associationwidget.cpp:411
AssociationWidget::onWidget
UMLWidget * onWidget(const QPointF &p)
Definition associationwidget.cpp:3191
AssociationWidget::changeabilityWidget
FloatingTextWidget * changeabilityWidget(Uml::RoleType::Enum role) const
Definition associationwidget.cpp:835
AssociationWidget::createPointsException
void createPointsException()
Definition associationwidget.cpp:1961
AssociationWidget::createAssocClassLine
void createAssocClassLine()
Definition associationwidget.cpp:2466
AssociationWidget::setSelected
virtual void setSelected(bool _select)
Definition associationwidget.cpp:3154
AssociationWidget::constrainTextPos
virtual void constrainTextPos(qreal &textX, qreal &textY, qreal textWidth, qreal textHeight, Uml::TextRole::Enum tr)
Definition associationwidget.cpp:2244
AssociationWidget::updatePointsSelfAssociation
void updatePointsSelfAssociation()
Definition associationwidget.cpp:1934
AssociationWidget::association
UMLAssociation * association() const
Definition associationwidget.cpp:512
AssociationWidget::m_oldMultiBPoint
QPointF m_oldMultiBPoint
Position of role B multiplicity floatingtext saved by saveIdealTextPositions()
Definition associationwidget.h:268
AssociationWidget::attribute
UMLAttribute * attribute() const
Definition associationwidget.cpp:525
AssociationWidget::resetTextPositions
virtual void resetTextPositions()
Definition associationwidget.cpp:332
AssociationWidget::calculateEndingPoints
void calculateEndingPoints()
Definition associationwidget.cpp:1642
AssociationWidget::m_pAssocClassLine
QGraphicsLineItem * m_pAssocClassLine
used for connecting assoc. class
Definition associationwidget.h:275
AssociationWidget::font
QFont font() const
Definition associationwidget.cpp:2772
AssociationWidget::nameWidget
FloatingTextWidget * nameWidget() const
Definition associationwidget.cpp:817
AssociationWidget::roleName
QString roleName(Uml::RoleType::Enum role) const
Definition associationwidget.cpp:949
AssociationWidget::isPointRemovable
bool isPointRemovable()
Return state if the association line point in the vicinity of the last context menu event position is...
Definition associationwidget.cpp:1330
AssociationWidget::setUMLAssociation
void setUMLAssociation(UMLAssociation *assoc)
Definition associationwidget.cpp:1360
AssociationWidget::setAssociationType
void setAssociationType(Uml::AssociationType::Enum type)
Definition associationwidget.cpp:1443
AssociationWidget::m_pAssocClassLineSel0
QGraphicsRectItem * m_pAssocClassLineSel0
selection decoration for the start point of the assoc. class line
Definition associationwidget.h:276
AssociationWidget::clipSize
void clipSize()
Definition associationwidget.cpp:3369
AssociationWidget::m_activated
bool m_activated
flag which is true if the activate method has been called for this class instance
Definition associationwidget.h:255
AssociationWidget::mouseDoubleClickEvent
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition associationwidget.cpp:1550
AssociationWidget::linePathEndsAt
bool linePathEndsAt(const UMLWidget *widget) const
Definition associationwidget.cpp:1223
AssociationWidget::m_associationType
Uml::AssociationType::Enum m_associationType
is only used if m_pObject is not set
Definition associationwidget.h:281
AssociationWidget::findPointRegion
static Uml::Region::Enum findPointRegion(const QRectF &rect, const QPointF &pos)
Definition associationwidget.cpp:2066
AssociationWidget::setMessageText
virtual void setMessageText(FloatingTextWidget *ft)
Definition associationwidget.cpp:363
AssociationWidget::swapXY
static QPointF swapXY(const QPointF &p)
Definition associationwidget.cpp:2123
AssociationWidget::roleDocumentation
QString roleDocumentation(Uml::RoleType::Enum role) const
Definition associationwidget.cpp:1002
AssociationWidget::intersect
static QLineF::IntersectType intersect(const QRectF &rect, const QLineF &line, QPointF *intersectionPoint)
Definition associationwidget.cpp:2975
AssociationWidget::widgetForRole
UMLWidget * widgetForRole(Uml::RoleType::Enum role) const
Definition associationwidget.cpp:1267
AssociationWidget::associationLine
const AssociationLine & associationLine() const
Definition associationwidget.cpp:650
AssociationWidget::setRoleName
void setRoleName(const QString &strRole, Uml::RoleType::Enum role)
Definition associationwidget.cpp:962
AssociationWidget::containsAsEndpoint
bool containsAsEndpoint(UMLWidget *widget)
Definition associationwidget.cpp:1401
AssociationWidget::setTextPositionRelatively
void setTextPositionRelatively(Uml::TextRole::Enum role, const QPointF &oldPosition)
Definition associationwidget.cpp:2414
AssociationWidget::operator!=
bool operator!=(AssociationWidget &other) const
Definition associationwidget.cpp:642
AssociationWidget::setRoleDocumentation
void setRoleDocumentation(const QString &doc, Uml::RoleType::Enum role)
Definition associationwidget.cpp:991
AssociationWidget::checkAutoLayoutSpline
bool checkAutoLayoutSpline()
Definition associationwidget.cpp:2928
AssociationWidget::onAssociation
bool onAssociation(const QPointF &point)
Definition associationwidget.cpp:3241
AssociationWidget::mousePressEvent
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition associationwidget.cpp:2560
AssociationWidget::operationOwner
virtual UMLClassifier * operationOwner()
Definition associationwidget.cpp:271
AssociationWidget::setText
virtual void setText(FloatingTextWidget *ft, const QString &newText)
Definition associationwidget.cpp:382
AssociationWidget::toString
QString toString() const
Definition associationwidget.cpp:1517
AssociationWidget::midPoint
static QPointF midPoint(const QPointF &p0, const QPointF &p1)
Definition associationwidget.cpp:2220
AssociationWidget::lwSetFont
virtual void lwSetFont(QFont font)
Definition associationwidget.cpp:257
AssociationWidget::multiplicityWidget
FloatingTextWidget * multiplicityWidget(Uml::RoleType::Enum role) const
Definition associationwidget.cpp:807
AssociationWidget::loadFromXMI
bool loadFromXMI(QDomElement &qElement, const UMLWidgetList &widgets, const MessageWidgetList *messages)
Definition associationwidget.cpp:3493
AssociationWidget::onAssocClassLine
bool onAssocClassLine(const QPointF &point)
Definition associationwidget.cpp:3213
AssociationWidget::removeAssocClassLine
void removeAssocClassLine()
Definition associationwidget.cpp:2449
AssociationWidget::associationType
Uml::AssociationType::Enum associationType() const
Definition associationwidget.cpp:1430
AssociationWidget::lwClassifier
virtual UMLClassifier * lwClassifier()
Definition associationwidget.cpp:439
AssociationWidget::saveIdealTextPositions
void saveIdealTextPositions()
Definition associationwidget.cpp:1815
AssociationWidget::hoverEnterEvent
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Definition associationwidget.cpp:3412
AssociationWidget::selectAssocClassLine
void selectAssocClassLine(bool sel=true)
Definition associationwidget.cpp:2549
AssociationWidget::setStereotype
void setStereotype(const QString &stereo)
Definition associationwidget.cpp:921
AssociationWidget::operator==
bool operator==(const AssociationWidget &other) const
Definition associationwidget.cpp:593
AssociationWidget::setLineWidth
virtual void setLineWidth(uint width)
Definition associationwidget.cpp:2835
AssociationWidget::m_oldChangeBPoint
QPointF m_oldChangeBPoint
Position of role B changeability floatingtext saved by saveIdealTextPositions()
Definition associationwidget.h:270
AssociationWidget::AssociationWidget
AssociationWidget(UMLScene *scene)
Definition associationwidget.cpp:69
AssociationWidget::setVisibility
void setVisibility(Uml::Visibility::Enum value, Uml::RoleType::Enum role)
Definition associationwidget.cpp:1096
AssociationWidget::isActivated
bool isActivated() const
Definition associationwidget.cpp:1712
AssociationWidget::updateAssociations
static void updateAssociations(UMLWidget *pWidget, AssociationWidgetList list)
Definition associationwidget.cpp:3097
AssociationWidget::slotClassifierListItemRemoved
void slotClassifierListItemRemoved(UMLClassifierListItem *obj)
Definition associationwidget.cpp:3344
AssociationWidget::setUMLObject
virtual void setUMLObject(UMLObject *obj)
Definition associationwidget.cpp:212
AssociationWidget::m_oldNamePoint
QPointF m_oldNamePoint
Position of name floatingtext saved by saveIdealTextPositions()
Definition associationwidget.h:266
AssociationWidget::m_associationLine
AssociationLine m_associationLine
the definition points for the association line
Definition associationwidget.h:279
AssociationWidget::roleWidget
FloatingTextWidget * roleWidget(Uml::RoleType::Enum role) const
Definition associationwidget.cpp:827
AssociationWidget::changeability
Uml::Changeability::Enum changeability(Uml::RoleType::Enum role) const
Definition associationwidget.cpp:1125
AssociationWidget::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition associationwidget.cpp:3436
AssociationWidget::setName
void setName(const QString &strRole)
Definition associationwidget.cpp:885
AssociationWidget::m_unNameLineSegment
int m_unNameLineSegment
Definition associationwidget.h:264
AssociationWidget::isLayoutChangeable
bool isLayoutChangeable()
Definition associationwidget.cpp:1352
AssociationWidget::m_associationClass
ClassifierWidget * m_associationClass
used if we have an assoc. class
Definition associationwidget.h:280
AssociationWidget::shape
virtual QPainterPath shape() const
Definition associationwidget.cpp:3332
AssociationWidget::setChangeWidget
void setChangeWidget(const QString &strChangeWidget, Uml::RoleType::Enum role)
Definition associationwidget.cpp:1152
AssociationWidget::calculateNameTextSegment
virtual void calculateNameTextSegment()
Definition associationwidget.cpp:472
AssociationWidget::findIntercept
static bool findIntercept(const QRectF &rect, const QPointF &point, QPointF &result)
Definition associationwidget.cpp:3115
AssociationWidget::setFloatingText
void setFloatingText(Uml::TextRole::Enum role, const QString &text, FloatingTextWidget *&ft)
Definition associationwidget.cpp:1023
AssociationWidget::hoverMoveEvent
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event)
Definition associationwidget.cpp:3428
AssociationWidget::moveEvent
void moveEvent(QGraphicsSceneMouseEvent *me)
Definition associationwidget.cpp:1562
AssociationWidget::widgetMoved
void widgetMoved(UMLWidget *widget, qreal x, qreal y)
Definition associationwidget.cpp:1829
AssociationWidget::mouseReleaseEvent
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition associationwidget.cpp:2590
AssociationWidget::isSelf
bool isSelf() const
Definition associationwidget.cpp:1420
AssociationWidget::widgetIDForRole
Uml::ID::Type widgetIDForRole(Uml::RoleType::Enum role) const
Definition associationwidget.cpp:1479
AssociationWidget::m_nLinePathSegmentIndex
int m_nLinePathSegmentIndex
anchor for m_pAssocClassLine
Definition associationwidget.h:274
AssociationWidget::m_pAssocClassLineSel1
QGraphicsRectItem * m_pAssocClassLineSel1
selection decoration for the end point of the assoc. class line
Definition associationwidget.h:277
AssociationWidget::textWidgetByRole
FloatingTextWidget * textWidgetByRole(Uml::TextRole::Enum tr) const
Definition associationwidget.cpp:845
AssociationWidget::m_oldRoleBPoint
QPointF m_oldRoleBPoint
Position of role B name floatingtext saved by saveIdealTextPositions()
Definition associationwidget.h:272
AssociationWidget::lwOperationText
virtual QString lwOperationText()
Definition associationwidget.cpp:428
AssociationWidget::checkRemovePoint
bool checkRemovePoint(const QPointF &scenePos)
Definition associationwidget.cpp:2895
AssociationWidget::setChangeability
void setChangeability(Uml::Changeability::Enum value, Uml::RoleType::Enum role)
Definition associationwidget.cpp:1136
AssociationWidget::m_oldMultiAPoint
QPointF m_oldMultiAPoint
Position of role A multiplicity floatingtext saved by saveIdealTextPositions()
Definition associationwidget.h:267
AssociationWidget::multiplicity
QString multiplicity(Uml::RoleType::Enum role) const
Definition associationwidget.cpp:1058
AssociationWidget::calculateNameType
Uml::TextRole::Enum calculateNameType(Uml::TextRole::Enum defaultRoleType)
Definition associationwidget.cpp:1242
AssociationWidget::contextMenuEvent
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Definition associationwidget.cpp:3384
AssociationWidget::mouseMoveEvent
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition associationwidget.cpp:2937
AssociationWidget::~AssociationWidget
virtual ~AssociationWidget()
Definition associationwidget.cpp:200
AssociationWidget::setTextColor
virtual void setTextColor(const QColor &color)
Definition associationwidget.cpp:2800
AssociationWidget::updatePointsException
void updatePointsException()
Definition associationwidget.cpp:1985
AssociationWidget::setCustomOpText
virtual void setCustomOpText(const QString &opText)
Definition associationwidget.cpp:323
AssociationWidget::activate
virtual bool activate(IDChangeLog *changeLog=0)
Definition associationwidget.cpp:668
ClassifierWidget
Common implementation for class widget and interface widget.
Definition classifierwidget.h:28
FloatingTextWidget
Displays a line of text or an operation.
Definition floatingtextwidget.h:32
IDChangeLog
Definition idchangelog.h:22
LinkWidget
Interface to FloatingTextWidget for AssociationWidget and MessageWidget.
Definition linkwidget.h:32
UMLAssociation
Sets up association information.
Definition association.h:29
UMLAttribute
Sets up attribute information.
Definition attribute.h:23
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition classifierlistitem.h:25
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLObject
The base class for UML objects.
Definition umlobject.h:70
UMLOperation
Definition operation.h:20
UMLScene
Definition umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition umlwidget.h:36
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition widgetbase.h:101
WidgetBase::rect
QRectF rect() const
Definition widgetbase.cpp:838
x
int x
Definition cxx11-lambda-functions-and-expressions.h:4
linkwidget.h
messagewidgetlist.h
MessageWidgetList
QList< QPointer< MessageWidget > > MessageWidgetList
Definition messagewidgetlist.h:15
Uml::AssociationType::Enum
Enum
Definition basictypes.h:92
Uml::Changeability::Enum
Enum
Definition basictypes.h:202
Uml::ID::Type
std::string Type
Definition basictypes.h:371
Uml::Region::Enum
Enum
Definition basictypes.h:330
Uml::RoleType::Enum
Enum
Definition basictypes.h:236
Uml::TextRole::Enum
Enum
Definition basictypes.h:176
Uml::Visibility::Enum
Enum
Definition basictypes.h:45
visibility
Definition visibility.py:1
umlwidgetlist.h
UMLWidgetList
QList< QPointer< UMLWidget > > UMLWidgetList
Definition umlwidgetlist.h:15
widgetbase.h