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

associationwidget.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) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef ASSOCIATIONWIDGET_H
12 #define ASSOCIATIONWIDGET_H
13
14 #include "associationwidgetlist.h"
15 #include "associationwidgetrole.h"
16 #include "linkwidget.h"
17 #include "messagewidgetlist.h"
18 #include "umlwidgetlist.h"
19 #include "widgetbase.h"
20
21 class AssociationLine;
22 class ClassifierWidget;
23 class UMLScene;
24 class UMLAssociation;
25 class UMLAttribute;
26 class UMLClassifierListItem;
27 class UMLOperation;
28
51 class AssociationWidget : public WidgetBase, public LinkWidget
52 {
53 Q_OBJECT
54 public:
55 static AssociationWidget* create(UMLScene *scene);
56 static AssociationWidget* create
57 (UMLScene *scene, UMLWidget* WidgetA,
58 Uml::AssociationType::Enum assocType, UMLWidget* WidgetB,
59 UMLObject *umlobject = 0);
60
61 virtual ~AssociationWidget();
62
63 virtual void setUMLObject(UMLObject *obj);
64
65 //---------- LinkWidget Interface methods implementation from now on.
66
67 virtual void lwSetFont(QFont font);
68 virtual UMLClassifier *operationOwner();
69
70 virtual UMLOperation *operation();
71 virtual void setOperation(UMLOperation *op);
72
73 virtual QString customOpText();
74 virtual void setCustomOpText(const QString &opText);
75
76 virtual void resetTextPositions();
77
78 virtual void setMessageText(FloatingTextWidget *ft);
79 virtual void setText(FloatingTextWidget *ft, const QString &newText);
80
81 virtual bool showPropertiesDialog();
82
83 virtual QString lwOperationText();
84 virtual UMLClassifier *lwClassifier();
85 virtual void setOperationText(const QString &op);
86
87 virtual void constrainTextPos(qreal &textX, qreal &textY,
88 qreal textWidth, qreal textHeight,
89 Uml::TextRole::Enum tr);
90
91 virtual void calculateNameTextSegment();
92
93 //---------- End LinkWidget Interface methods implementation.
94
95 UMLAssociation* association() const;
96 UMLAttribute* attribute() const;
97
98 // AssociationWidget& operator=(const AssociationWidget& other);
99 bool operator==(const AssociationWidget& other) const;
100 bool operator!=(AssociationWidget& other) const;
101
102 FloatingTextWidget* textWidgetByRole(Uml::TextRole::Enum tr) const;
103
104 FloatingTextWidget* nameWidget() const;
105 QString name() const;
106 void setName(const QString &strRole);
107 void setStereotype(const QString &stereo);
108
109 FloatingTextWidget* roleWidget(Uml::RoleType::Enum role) const;
110 QString roleName(Uml::RoleType::Enum role) const;
111 void setRoleName(const QString &strRole, Uml::RoleType::Enum role);
112
113 QString roleDocumentation(Uml::RoleType::Enum role) const;
114 void setRoleDocumentation(const QString& doc, Uml::RoleType::Enum role);
115
116 FloatingTextWidget* multiplicityWidget(Uml::RoleType::Enum role) const;
117 QString multiplicity(Uml::RoleType::Enum role) const;
118 void setMultiplicity(const QString& text, Uml::RoleType::Enum role);
119
120 Uml::Visibility::Enum visibility(Uml::RoleType::Enum role) const;
121 void setVisibility(Uml::Visibility::Enum value, Uml::RoleType::Enum role);
122
123 FloatingTextWidget* changeabilityWidget(Uml::RoleType::Enum role) const;
124 Uml::Changeability::Enum changeability(Uml::RoleType::Enum role) const;
125 void setChangeability(Uml::Changeability::Enum value, Uml::RoleType::Enum role);
126
127 Uml::ID::Type widgetIDForRole(Uml::RoleType::Enum role) const;
128 Uml::ID::Type widgetLocalIDForRole(Uml::RoleType::Enum role) const;
129 UMLWidget* widgetForRole(Uml::RoleType::Enum role) const;
130 void setWidgetForRole(UMLWidget* widget, Uml::RoleType::Enum role);
131
132 bool containsAsEndpoint(UMLWidget* widget);
133
134 Uml::AssociationType::Enum associationType() const;
135 void setAssociationType(Uml::AssociationType::Enum type);
136
137 bool isCollaboration() const;
138 bool isSelf() const;
139
140 QString toString() const;
141
142 bool isActivated() const;
143 void setActivated(bool active);
144
145 AssociationLine* associationLine() const;
146
147 virtual bool activate(IDChangeLog *changeLog = 0);
148 virtual QRectF boundingRect() const;
149 virtual QPainterPath shape() const;
150
151 void widgetMoved(UMLWidget* widget, qreal x, qreal y);
152
153 void saveIdealTextPositions();
154
155 UMLWidget* onWidget(const QPointF &p);
156 bool onAssociation(const QPointF& point);
157 bool onAssocClassLine(const QPointF& point);
158
159 void createAssocClassLine();
160 void createAssocClassLine(ClassifierWidget* classifierWidget,
161 int linePathSegmentIndex);
162
163 void selectAssocClassLine(bool sel = true);
164 void removeAssocClassLine();
165 void computeAssocClassLine();
166
167 void setXEntireAssoc(qreal x);
168 void setYEntireAssoc(qreal y);
169
170 void moveMidPointsBy(qreal x, qreal y);
171 void moveEntireAssoc(qreal x, qreal y);
172
173 QFont font() const;
174
175 virtual void setTextColor(const QColor &color);
176 virtual void setLineColor(const QColor &color);
177 virtual void setLineWidth(uint width);
178
179 void calculateEndingPoints();
180
181 void clipSize();
182
183 bool loadFromXMI1(QDomElement& qElement, const UMLWidgetList& widgets,
184 const MessageWidgetList* messages);
185 virtual bool loadFromXMI1(QDomElement& qElement);
186 virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement);
187
188 void cleanup();
189
190 bool isPointAddable();
191 bool isPointRemovable();
192 bool isAutoLayouted();
193 bool isLayoutChangeable();
194
195 virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
196 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
197 virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
198 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
199
200 virtual void setSelected(bool _select);
201
202 public Q_SLOTS: //:TODO: all virtual?
203 virtual void slotMenuSelection(QAction* action);
204 void slotClassifierListItemRemoved(UMLClassifierListItem* obj);
205 void slotAttributeChanged();
206
207 void syncToModel();
208
209 protected:
210 virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
211
212 virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
213 virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
214 virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event);
215
216 private:
217 QPointF calculateTextPosition(Uml::TextRole::Enum role);
218 void setTextPosition(Uml::TextRole::Enum role);
219 void setTextPositionRelatively(Uml::TextRole::Enum role, const QPointF &oldPosition);
220 void setFloatingText(Uml::TextRole::Enum role, const QString& text, FloatingTextWidget* &ft);
221
222 AssociationWidget(UMLScene *scene);
223
224 void setUMLAssociation(UMLAssociation * assoc);
225
226 void mergeAssociationDataIntoUMLRepresentation();
227
228 static Uml::Region::Enum findPointRegion(const QRectF& rect, const QPointF& pos);
229 static qreal findInterceptOnEdge(const QRectF &rect, Uml::Region::Enum region, const QPointF &point);
230 static QLineF::IntersectType intersect(const QRectF &rect, const QLineF &line,
231 QPointF* intersectionPoint);
232
233 void moveEvent(QGraphicsSceneMouseEvent *me);
234
235 Uml::TextRole::Enum calculateNameType(Uml::TextRole::Enum defaultRoleType);
236
237 static QPointF swapXY(const QPointF &p);
238
239 // not used at the moment
240 // static QPointF calculatePointAtDistance(const QPointF &P1, const QPointF &P2, float Distance);
241 // static QPointF calculatePointAtDistanceOnPerpendicular(const QPointF &P1, const QPointF &P2, float Distance);
242 // static float perpendicularProjection(const QPointF& P1, const QPointF& P2, const QPointF& P3, QPointF& ResultingPoint);
243
244 static QPointF midPoint(const QPointF& p0, const QPointF& p1);
245
246 void createPointsSelfAssociation();
247 void updatePointsSelfAssociation();
248 void createPointsException();
249 void updatePointsException();
250
251 void updateRegionLineCount(int index, int totalCount,
252 Uml::Region::Enum region, Uml::RoleType::Enum role);
253
254 void updateAssociations(int totalCount, Uml::Region::Enum region, Uml::RoleType::Enum role);
255
256 int getRegionCount(Uml::Region::Enum region, Uml::RoleType::Enum role);
257
258 void doUpdates(const QPointF &otherP, Uml::RoleType::Enum role);
259
260 void setChangeWidget(const QString &strChangeWidget, Uml::RoleType::Enum role);
261
262 bool checkAddPoint(const QPointF &scenePos);
263 bool checkRemovePoint(const QPointF &scenePos);
264 bool checkAutoLayoutSpline();
265
266 bool linePathStartsAt(const UMLWidget* widget);
267
268 void insertIntoLists(qreal position, const AssociationWidget* assoc);
269
270 qreal m_positions[100];
271 int m_positions_len;
272 AssociationWidgetList m_ordered;
273
274 bool m_activated;
275
283 int m_unNameLineSegment;
284
285 QPointF m_oldNamePoint;
286 QPointF m_oldMultiAPoint;
287 QPointF m_oldMultiBPoint;
288 QPointF m_oldChangeAPoint;
289 QPointF m_oldChangeBPoint;
290 QPointF m_oldRoleAPoint;
291 QPointF m_oldRoleBPoint;
292
293 int m_nLinePathSegmentIndex;
294 QGraphicsLineItem *m_pAssocClassLine;
295 QGraphicsRectItem *m_pAssocClassLineSel0;
296 QGraphicsRectItem *m_pAssocClassLineSel1;
297
298 AssociationLine *m_associationLine;
299 ClassifierWidget *m_associationClass;
300 Uml::AssociationType::Enum m_associationType;
301 AssociationWidgetRole m_role[2];
302 FloatingTextWidget* m_nameWidget;
303 QPointF m_eventScenePos;
304
305 };
306
307 #endif
ListPopupMenu::mt_LayoutSpline
@ mt_LayoutSpline
Definition: listpopupmenu.h:247
AssociationWidget::updatePointsSelfAssociation
void updatePointsSelfAssociation()
Definition: associationwidget.cpp:1971
ListPopupMenu::mt_Reset_Label_Positions
@ mt_Reset_Label_Positions
Definition: listpopupmenu.h:196
UMLEntity
Non-graphical Information for an Entity.
Definition: entity.h:35
AssociationWidget::cleanup
void cleanup()
Definition: associationwidget.cpp:1240
AssociationWidget::attribute
UMLAttribute * attribute() const
Definition: associationwidget.cpp:533
Uml::Region::NorthWest
@ NorthWest
Definition: basictypes.h:316
WidgetBase::setLineWidth
virtual void setLineWidth(uint width)
Definition: widgetbase.cpp:408
AssociationLine::hoverEnterEvent
void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Definition: associationline.cpp:1233
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
instance.h
messagewidgetlist.h
UMLScene::resizeSceneToItems
void resizeSceneToItems()
Definition: umlscene.cpp:3690
AssociationWidget::mouseMoveEvent
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: associationwidget.cpp:3267
AssociationLine::loadFromXMI1
bool loadFromXMI1(QDomElement &qElement)
Definition: associationline.cpp:328
associationline.h
AssociationLine::setPen
void setPen(const QPen &pen)
Definition: associationline.cpp:440
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
namespace_enum_literal::A
@ A
Definition: namespace-enum-literal.h:3
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
AssociationWidget::computeAssocClassLine
void computeAssocClassLine()
Definition: associationwidget.cpp:2836
AssociationWidget::setYEntireAssoc
void setYEntireAssoc(qreal y)
Definition: associationwidget.cpp:3808
AssociationWidget::changeabilityWidget
FloatingTextWidget * changeabilityWidget(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:831
x
int x
Definition: cxx11-lambda-functions-and-expressions.h:4
AssocRules::allowMultiplicity
static bool allowMultiplicity(Uml::AssociationType::Enum assocType, WidgetBase::WidgetType widgetType)
Definition: assocrules.cpp:345
AssociationWidget::setText
virtual void setText(FloatingTextWidget *ft, const QString &newText)
Definition: associationwidget.cpp:390
AssociationWidget::customOpText
virtual QString customOpText()
Definition: associationwidget.cpp:322
ListPopupMenu::mt_Properties
@ mt_Properties
Definition: listpopupmenu.h:182
UMLWidget::setFont
virtual void setFont(const QFont &font)
Definition: umlwidget.cpp:1955
AssociationWidgetRole::m_nTotalCount
int m_nTotalCount
total amount of associations on the region this role's line is on
Definition: associationwidgetrole.h:42
instanceattribute.h
AssociationWidget::onWidget
UMLWidget * onWidget(const QPointF &p)
Definition: associationwidget.cpp:3725
AssociationWidget::setMultiplicity
void setMultiplicity(const QString &text, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:1065
UMLAssociation::setAssociationType
void setAssociationType(Uml::AssociationType::Enum assocType)
Definition: association.cpp:611
UMLAssociation::getRoleName
QString getRoleName(Uml::RoleType::Enum role) const
Definition: association.cpp:567
AssociationLine::setPoint
bool setPoint(int index, const QPointF &point)
Definition: associationline.cpp:87
docwindow.h
AssociationWidget::setAssociationType
void setAssociationType(Uml::AssociationType::Enum type)
Definition: associationwidget.cpp:1414
UMLObject::asUMLOperation
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1324
Uml::TextRole::ChangeA
@ ChangeA
Definition: basictypes.h:190
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
AssociationWidget::setXEntireAssoc
void setXEntireAssoc(qreal x)
Definition: associationwidget.cpp:3796
Uml::Region::SouthEast
@ SouthEast
Definition: basictypes.h:318
UMLDoc::findAssociation
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=0)
Definition: umldoc.cpp:1429
AssociationWidget::m_positions_len
int m_positions_len
auxiliary variable for updateAssociations()
Definition: associationwidget.h:271
umlview.h
AssociationWidget::checkRemovePoint
bool checkRemovePoint(const QPointF &scenePos)
Definition: associationwidget.cpp:3225
Uml::Region::South
@ South
Definition: basictypes.h:315
AssociationWidget::setOperationText
virtual void setOperationText(const QString &op)
Definition: associationwidget.cpp:460
AssociationWidget::getRegionCount
int getRegionCount(Uml::Region::Enum region, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:3302
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
AssociationLine::pen
QPen pen() const
Definition: associationline.cpp:432
UMLScene::associationList
const AssociationWidgetList associationList() const
Definition: umlscene.cpp:589
ListPopupMenu::mt_Rename_Name
@ mt_Rename_Name
Definition: listpopupmenu.h:206
Uml::AssociationType::Containment
@ Containment
Definition: basictypes.h:116
Uml::AssociationType::hasUMLRepresentation
bool hasUMLRepresentation(Enum item)
Definition: basictypes.cpp:460
WidgetBase::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: widgetbase.cpp:618
Uml::ID::Reserved
const Type Reserved
special value for illegal ID
Definition: basictypes.h:354
UMLApp::slotEditCopy
void slotEditCopy()
Definition: uml.cpp:1677
Uml::AssociationType::toStringI18n
QString toStringI18n(Enum item)
Definition: basictypes.cpp:339
AssociationWidget::onAssociation
bool onAssociation(const QPointF &point)
Definition: associationwidget.cpp:3774
AssociationWidgetRole::onWidget
UMLWidget * onWidget(const QPointF &p)
Definition: associationwidgetrole.cpp:69
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
WidgetBase::setDocumentation
virtual void setDocumentation(const QString &doc)
Definition: widgetbase.cpp:294
AssociationLine::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: associationline.cpp:382
UMLObject::ot_Association
@ ot_Association
Definition: umlobject.h:91
AssociationWidget::roleWidget
FloatingTextWidget * roleWidget(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:823
entity.h
AssociationWidget::calculateNameType
Uml::TextRole::Enum calculateNameType(Uml::TextRole::Enum defaultRoleType)
Definition: associationwidget.cpp:1207
Uml::TextRole::RoleAName
@ RoleAName
Definition: basictypes.h:188
AssociationWidget::hoverEnterEvent
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Definition: associationwidget.cpp:3943
UMLScene::activeView
UMLView * activeView() const
Definition: umlscene.cpp:348
AssociationWidgetRole::m_nIndex
int m_nIndex
the index of where the line is on the region for this role
Definition: associationwidgetrole.h:41
AssociationWidget::constrainTextPos
virtual void constrainTextPos(qreal &textX, qreal &textY, qreal textWidth, qreal textHeight, Uml::TextRole::Enum tr)
Definition: associationwidget.cpp:2570
AssociationLine::closestSegmentIndex
int closestSegmentIndex(const QPointF &point, qreal delta=Delta) const
Definition: associationline.cpp:228
AssociationLine::count
int count() const
Definition: associationline.cpp:152
AssociationLine::updatePenStyle
void updatePenStyle()
Definition: associationline.cpp:466
AssociationWidget::setOperation
virtual void setOperation(UMLOperation *op)
Definition: associationwidget.cpp:307
Uml::Region::Error
@ Error
Definition: basictypes.h:311
UMLObject::asUMLAttribute
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1305
UMLScene::selectionSetLineColor
void selectionSetLineColor(const QColor &color)
Definition: umlscene.cpp:1514
UMLObject::ot_ForeignKeyConstraint
@ ot_ForeignKeyConstraint
Definition: umlobject.h:106
LinkWidget::m_SequenceNumber
QString m_SequenceNumber
Definition: linkwidget.h:120
AssociationWidget::associationLine
AssociationLine * associationLine() const
Definition: associationwidget.cpp:658
AssociationWidget::shape
virtual QPainterPath shape() const
Definition: associationwidget.cpp:3863
WidgetBase::setSelected
virtual void setSelected(bool select)
Definition: widgetbase.cpp:153
WidgetBase::umlScene
UMLScene * umlScene() const
Definition: widgetbase.cpp:162
AssociationWidget::create
static AssociationWidget * create(UMLScene *scene)
Definition: associationwidget.cpp:102
associationwidgetrole.h
WidgetBase::m_nId
Uml::ID::Type m_nId
Definition: widgetbase.h:327
AssociationWidget::roleName
QString roleName(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:945
LinkWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: linkwidget.cpp:111
FloatingTextWidget::setText
void setText(const QString &t)
Definition: floatingtextwidget.cpp:109
AssociationWidget::syncToModel
void syncToModel()
Definition: associationwidget.cpp:1766
classifierwidget.h
WidgetBase::localID
Uml::ID::Type localID() const
Definition: widgetbase.cpp:238
operation.h
AssociationWidget::setSelected
virtual void setSelected(bool _select)
Definition: associationwidget.cpp:3688
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
AssociationWidget::m_pAssocClassLineSel1
QGraphicsRectItem * m_pAssocClassLineSel1
selection decoration for the end point of the assoc. class line
Definition: associationwidget.h:296
Uml::DiagramType::State
@ State
Definition: basictypes.h:85
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
AssociationWidgetRole::loadFromXMI1
bool loadFromXMI1(QDomElement &qElement, const QString &suffix)
Definition: associationwidgetrole.cpp:120
AssociationLine::removePoint
void removePoint(int index)
Definition: associationline.cpp:138
AssociationLine::boundingRect
QRectF boundingRect() const
Definition: associationline.cpp:796
AssociationWidget::m_eventScenePos
QPointF m_eventScenePos
holds scene pos of contextMenuEvent()
Definition: associationwidget.h:303
FloatingTextWidget::textRole
Uml::TextRole::Enum textRole() const
Definition: floatingtextwidget.cpp:344
Uml::RoleType::A
@ A
Definition: basictypes.h:239
FloatingTextWidget::activate
bool activate(IDChangeLog *ChangeLog=0)
Definition: floatingtextwidget.cpp:302
AssociationWidget::hoverLeaveEvent
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition: associationwidget.cpp:3951
AssociationWidget::slotClassifierListItemRemoved
void slotClassifierListItemRemoved(UMLClassifierListItem *obj)
Definition: associationwidget.cpp:3875
associationpropertiesdialog.h
AssociationWidget::m_pAssocClassLineSel0
QGraphicsRectItem * m_pAssocClassLineSel0
selection decoration for the start point of the assoc. class line
Definition: associationwidget.h:295
AssociationWidget::m_associationLine
AssociationLine * m_associationLine
the definition points for the association line
Definition: associationwidget.h:298
ListPopupMenu::mt_LayoutPolyline
@ mt_LayoutPolyline
Definition: listpopupmenu.h:249
UMLObject::ot_Attribute
@ ot_Attribute
Definition: umlobject.h:92
AssociationWidget::moveMidPointsBy
void moveMidPointsBy(qreal x, qreal y)
Definition: associationwidget.cpp:3820
AssociationWidget::roleDocumentation
QString roleDocumentation(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:998
AssociationWidgetRole::setSelected
void setSelected(bool select)
Definition: associationwidgetrole.cpp:85
LinkWidget::operationText
QString operationText(UMLScene *scene=0)
Definition: linkwidget.cpp:50
AssociationWidget::lwClassifier
virtual UMLClassifier * lwClassifier()
Definition: associationwidget.cpp:447
Uml::DiagramType::Collaboration
@ Collaboration
Definition: basictypes.h:84
FloatingTextWidget::onWidget
UMLWidget * onWidget(const QPointF &p)
Definition: floatingtextwidget.cpp:594
Uml::AssociationType::Coll_Message_Synchronous
@ Coll_Message_Synchronous
Definition: basictypes.h:127
AssociationWidget::createPointsException
void createPointsException()
Definition: associationwidget.cpp:1998
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1263
AssociationLine::endPoint
QPointF endPoint() const
Definition: associationline.cpp:113
AssociationWidget::visibility
Uml::Visibility::Enum visibility(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1078
association.h
Uml::Changeability::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:711
DBG_AW
#define DBG_AW()
Definition: associationwidget.cpp:60
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:671
AssociationWidget::calculateTextPosition
QPointF calculateTextPosition(Uml::TextRole::Enum role)
Definition: associationwidget.cpp:2461
DocWindow::updateDocumentation
void updateDocumentation(bool clear=false, bool startup=false)
Definition: docwindow.cpp:273
AssociationWidget::setName
void setName(const QString &strRole)
Definition: associationwidget.cpp:881
UMLAssociation::setMultiplicity
void setMultiplicity(const QString &multi, Uml::RoleType::Enum role)
Definition: association.cpp:660
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:192
AssociationWidgetRole::clipSize
void clipSize()
Definition: associationwidgetrole.cpp:95
UMLAssociation::setRoleDoc
void setRoleDoc(const QString &doc, Uml::RoleType::Enum role)
Definition: association.cpp:682
AssociationWidget::selectAssocClassLine
void selectAssocClassLine(bool sel=true)
Definition: associationwidget.cpp:2874
ListPopupMenu::mt_Cut
@ mt_Cut
Definition: listpopupmenu.h:190
WidgetBase::operator=
WidgetBase & operator=(const WidgetBase &other)
Definition: widgetbase.cpp:803
AssociationLine::mouseMoveEvent
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: associationline.cpp:1162
AssociationWidget::m_oldRoleAPoint
QPointF m_oldRoleAPoint
Position of role A name floatingtext saved by saveIdealTextPositions()
Definition: associationwidget.h:290
UMLAssociation::getRoleDoc
QString getRoleDoc(Uml::RoleType::Enum role) const
Definition: association.cpp:576
Uml::Region::East
@ East
Definition: basictypes.h:314
UMLObject::asUMLAssociation
UMLAssociation * asUMLAssociation()
Definition: umlobject.cpp:1304
FloatingTextWidget::setSequenceNumber
void setSequenceNumber(const QString &sequenceNumber)
Definition: floatingtextwidget.cpp:442
umlwidgetlist.h
AssociationLine::insertPoint
void insertPoint(int index, const QPointF &point)
Definition: associationline.cpp:127
Dialog_Utils::askName
bool askName(const QString &title, const QString &prompt, QString &name)
Definition: dialog_utils.cpp:97
AssociationWidget::m_pAssocClassLine
QGraphicsLineItem * m_pAssocClassLine
used for connecting assoc. class
Definition: associationwidget.h:294
Uml::AssociationType::toString
QString toString(Enum item)
Definition: basictypes.cpp:283
WidgetBase::rect
QRectF rect() const
Definition: widgetbase.cpp:831
AssociationWidget::m_positions
qreal m_positions[100]
auxiliary variable for updateAssociations()
Definition: associationwidget.h:270
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
AssociationWidget::m_oldRoleBPoint
QPointF m_oldRoleBPoint
Position of role B name floatingtext saved by saveIdealTextPositions()
Definition: associationwidget.h:291
UMLAttribute::setName
void setName(const QString &name)
Definition: attribute.cpp:76
UMLScene::clearSelected
void clearSelected()
Definition: umlscene.cpp:1456
Settings::OptionState::generalState
GeneralState generalState
Definition: optionstate.h:326
ListPopupMenu::mt_Rename_RoleAName
@ mt_Rename_RoleAName
Definition: listpopupmenu.h:207
Uml::TextRole::Coll_Message_Self
@ Coll_Message_Self
Definition: basictypes.h:186
UMLAssociation::getMultiplicity
QString getMultiplicity(Uml::RoleType::Enum role) const
Definition: association.cpp:558
AssociationWidget::m_oldNamePoint
QPointF m_oldNamePoint
Position of name floatingtext saved by saveIdealTextPositions()
Definition: associationwidget.h:285
AssociationWidget::m_nLinePathSegmentIndex
int m_nLinePathSegmentIndex
anchor for m_pAssocClassLine
Definition: associationwidget.h:293
FloatingTextWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: floatingtextwidget.cpp:649
AssociationWidget::findInterceptOnEdge
static qreal findInterceptOnEdge(const QRectF &rect, Uml::Region::Enum region, const QPointF &point)
Definition: associationwidget.cpp:3367
AssociationWidget::setCustomOpText
virtual void setCustomOpText(const QString &opText)
Definition: associationwidget.cpp:331
Uml::TextRole::Name
@ Name
Definition: basictypes.h:182
Uml::TextRole::RoleBName
@ RoleBName
Definition: basictypes.h:189
UMLScene::removeAssocInViewAndDoc
void removeAssocInViewAndDoc(AssociationWidget *assoc)
Definition: umlscene.cpp:2245
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
Uml::RoleType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:811
AssociationWidget::removeAssocClassLine
void removeAssocClassLine()
Definition: associationwidget.cpp:2774
UMLObject::ot_InstanceAttribute
@ ot_InstanceAttribute
Definition: umlobject.h:110
AssociationWidget::setTextPositionRelatively
void setTextPositionRelatively(Uml::TextRole::Enum role, const QPointF &oldPosition)
Definition: associationwidget.cpp:2739
AssociationWidgetPopupMenu
Definition: associationwidgetpopupmenu.h:22
ListPopupMenu::mt_Rename_MultiB
@ mt_Rename_MultiB
Definition: listpopupmenu.h:205
Uml::AssociationType::Association_Self
@ Association_Self
Definition: basictypes.h:111
AssociationWidget::operation
virtual UMLOperation * operation()
Definition: associationwidget.cpp:298
AssociationWidget::widgetIDForRole
Uml::ID::Type widgetIDForRole(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1450
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
UMLAssociation::changeability
Uml::Changeability::Enum changeability(Uml::RoleType::Enum role) const
Definition: association.cpp:540
AssociationLine::calculateInitialEndPoints
void calculateInitialEndPoints()
Definition: associationline.cpp:483
optionstate.h
UMLScene::collisions
UMLSceneItemList collisions(const QPointF &p, int delta=3)
Definition: umlscene.cpp:1727
Uml::ModelType::toString
QString toString(Enum item)
Definition: basictypes.cpp:47
Uml::AssociationType::Anchor
@ Anchor
Definition: basictypes.h:120
ListPopupMenu::mt_Rename_MultiA
@ mt_Rename_MultiA
Definition: listpopupmenu.h:204
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:362
AssociationWidget::associationType
Uml::AssociationType::Enum associationType() const
Definition: associationwidget.cpp:1401
AssociationWidget::operator==
bool operator==(const AssociationWidget &other) const
Definition: associationwidget.cpp:601
floatingtextwidget.h
AssociationWidget::lwOperationText
virtual QString lwOperationText()
Definition: associationwidget.cpp:436
Uml::Changeability::Enum
Enum
Definition: basictypes.h:204
AssociationWidget::setActivated
void setActivated(bool active)
Definition: associationwidget.cpp:1758
WidgetBase::isObjectWidget
bool isObjectWidget()
Definition: widgetbase.h:260
AssociationWidget::setRoleDocumentation
void setRoleDocumentation(const QString &doc, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:987
AssociationWidget::isAutoLayouted
bool isAutoLayouted()
Definition: associationwidget.cpp:1309
AssociationWidget::calculateNameTextSegment
virtual void calculateNameTextSegment()
Definition: associationwidget.cpp:480
UMLObject::asUMLEntity
UMLEntity * asUMLEntity()
Definition: umlobject.cpp:1313
AssociationWidget::m_oldMultiBPoint
QPointF m_oldMultiBPoint
Position of role B multiplicity floatingtext saved by saveIdealTextPositions()
Definition: associationwidget.h:287
AssociationWidget::linePathStartsAt
bool linePathStartsAt(const UMLWidget *widget)
Definition: associationwidget.cpp:1186
AssociationWidget::name
QString name() const
Definition: associationwidget.cpp:870
AssociationWidget::containsAsEndpoint
bool containsAsEndpoint(UMLWidget *widget)
Definition: associationwidget.cpp:1372
AssociationWidget::boundingRect
virtual QRectF boundingRect() const
Definition: associationwidget.cpp:3855
UMLWidget::setActivated
void setActivated(bool active=true)
Definition: umlwidget.cpp:1266
AssociationWidget::m_role
AssociationWidgetRole m_role[2]
Definition: associationwidget.h:301
AssociationWidget::contextMenuEvent
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Definition: associationwidget.cpp:3915
Uml::AssociationType::Aggregation
@ Aggregation
Definition: basictypes.h:108
AssociationWidget::widgetLocalIDForRole
Uml::ID::Type widgetLocalIDForRole(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1469
AssociationWidget::multiplicity
QString multiplicity(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1054
AssociationWidget::changeability
Uml::Changeability::Enum changeability(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1121
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1268
AssociationWidgetList
QList< QPointer< AssociationWidget > > AssociationWidgetList
Definition: associationwidgetlist.h:19
WidgetBase::font
virtual QFont font() const
Definition: widgetbase.cpp:543
WidgetBase::umlObject
UMLObject * umlObject() const
Definition: widgetbase.cpp:182
Uml::TextRole::Enum
Enum
Definition: basictypes.h:178
IDChangeLog
Definition: idchangelog.h:27
AssociationLine::enableAutoLayout
bool enableAutoLayout()
Definition: associationline.cpp:277
UMLWidget::getStartMove
bool getStartMove() const
Definition: umlwidget.h:104
Uml::TextRole::MultiA
@ MultiA
Definition: basictypes.h:180
UMLWidget::setX
virtual void setX(qreal x)
Definition: umlwidget.cpp:1685
AssociationLine::point
QPointF point(int index) const
Definition: associationline.cpp:75
Settings::GeneralState::angularlines
bool angularlines
Definition: optionstate.h:59
Uml::TextRole::MultiB
@ MultiB
Definition: basictypes.h:181
AssociationWidget::setUMLObject
virtual void setUMLObject(UMLObject *obj)
Definition: associationwidget.cpp:219
Uml::LayoutType::Spline
@ Spline
Definition: basictypes.h:149
ListPopupMenu::mt_Delete_Point
@ mt_Delete_Point
Definition: listpopupmenu.h:222
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:466
MessageWidgetList
QList< QPointer< MessageWidget > > MessageWidgetList
Definition: messagewidgetlist.h:18
UMLAssociation::setObject
void setObject(UMLObject *obj, Uml::RoleType::Enum role)
Definition: association.cpp:630
UMLWidget::setSelected
virtual void setSelected(bool _select)
Definition: umlwidget.cpp:1573
AssociationWidget::textWidgetByRole
FloatingTextWidget * textWidgetByRole(Uml::TextRole::Enum tr) const
Definition: associationwidget.cpp:841
Uml::Region::Center
@ Center
Definition: basictypes.h:320
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1038
UMLApp::slotEditPaste
void slotEditPaste()
Definition: uml.cpp:1689
UMLApp::docWindow
DocWindow * docWindow() const
Definition: uml.cpp:1895
AssociationWidget::isPointAddable
bool isPointAddable()
Return state if the association line point in the near of the last context menu event position is add...
Definition: associationwidget.cpp:1286
attribute.h
AssociationWidget::multiplicityWidget
FloatingTextWidget * multiplicityWidget(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:803
WidgetBase::setTextColor
virtual void setTextColor(const QColor &color)
Definition: widgetbase.cpp:345
Uml::LayoutType::Polyline
@ Polyline
Definition: basictypes.h:148
AssociationLine::isAutoLayouted
bool isAutoLayouted() const
Definition: associationline.cpp:272
ListPopupMenu::mt_Rename_RoleBName
@ mt_Rename_RoleBName
Definition: listpopupmenu.h:208
FloatingTextWidget::setMessageText
void setMessageText()
Definition: floatingtextwidget.cpp:783
objectwidget.h
a
QString a
Definition: petalnode.cpp:18
UMLWidget::setIgnoreSnapToGrid
void setIgnoreSnapToGrid(bool to)
Definition: umlwidget.cpp:1727
umlwidget.h
UMLWidget::addAssoc
virtual void addAssoc(AssociationWidget *pAssoc)
Definition: umlwidget.cpp:1274
uWarning
#define uWarning()
Definition: debug_utils.h:124
AssociationWidget::toString
QString toString() const
Definition: associationwidget.cpp:1486
Uml::LayoutType::Direct
@ Direct
Definition: basictypes.h:146
Uml::Visibility::toString
QString toString(Enum item, bool mnemonic)
Definition: basictypes.cpp:107
Dialog_Utils::askDeleteAssociation
bool askDeleteAssociation()
Definition: dialog_utils.cpp:114
UMLScene::type
Uml::DiagramType::Enum type() const
Definition: umlscene.cpp:426
WidgetBase::boundingRect
virtual QRectF boundingRect() const
Definition: widgetbase.cpp:860
UMLWidget::clipSize
void clipSize()
Definition: umlwidget.cpp:1805
AssociationWidget::clipSize
void clipSize()
Definition: associationwidget.cpp:3900
ListPopupMenu::MenuType
MenuType
< This type hosts all possible menu entry types
Definition: listpopupmenu.h:44
AssociationWidget::operationOwner
virtual UMLClassifier * operationOwner()
Definition: associationwidget.cpp:280
AssociationWidget::mousePressEvent
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: associationwidget.cpp:2885
AssociationWidgetRole::setFont
void setFont(const QFont &font)
Definition: associationwidgetrole.cpp:51
AssociationLine
Definition: associationline.h:106
Uml::Region::NorthEast
@ NorthEast
Definition: basictypes.h:317
i18n
#define i18n
Definition: main.cpp:39
Uml::TextRole::ChangeB
@ ChangeB
Definition: basictypes.h:191
UMLWidget::setTextColor
virtual void setTextColor(const QColor &color)
Definition: umlwidget.cpp:1117
Uml::AssociationType::Association
@ Association
Definition: basictypes.h:110
messagewidget.h
UMLObject::asUMLInstanceAttribute
UMLInstanceAttribute * asUMLInstanceAttribute()
Definition: umlobject.cpp:1321
AssociationWidget::m_oldChangeAPoint
QPointF m_oldChangeAPoint
Position of role A changeability floatingtext saved by saveIdealTextPositions()
Definition: associationwidget.h:288
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:33
ClassifierWidget::setClassAssociationWidget
void setClassAssociationWidget(AssociationWidget *assocwidget)
Definition: classifierwidget.cpp:688
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition: umldoc.cpp:1208
ListPopupMenu::toString
static QString toString(MenuType menu)
Definition: listpopupmenu.cpp:609
AssociationWidget::mouseDoubleClickEvent
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition: associationwidget.cpp:1519
UMLObject::ot_EntityAttribute
@ ot_EntityAttribute
Definition: umlobject.h:102
WidgetBase::documentation
QString documentation() const
Definition: widgetbase.cpp:269
AssociationWidget::isPointRemovable
bool isPointRemovable()
Return state if the association line point in the near of the last context menu event position is rem...
Definition: associationwidget.cpp:1301
AssociationLine::reconstructSymbols
void reconstructSymbols()
Definition: associationline.cpp:524
UMLAssociation::getObjectId
Uml::ID::Type getObjectId(Uml::RoleType::Enum role) const
Definition: association.cpp:508
Uml::Region::West
@ West
Definition: basictypes.h:312
Uml::Region::Enum
Enum
Definition: basictypes.h:310
UMLWidgetList
QList< QPointer< UMLWidget > > UMLWidgetList
Definition: umlwidgetlist.h:17
int
int int y int
Definition: cxx11-lambda-functions-and-expressions.h:4
uDebug
#define uDebug()
Definition: debug_utils.h:122
AssociationLine::cleanup
void cleanup()
Definition: associationline.cpp:160
UMLScene::widgetList
const UMLWidgetList widgetList() const
Definition: umlscene.cpp:603
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
namespace_enum_literal::C
@ C
Definition: namespace-enum-literal.h:3
AssociationWidget::m_oldMultiAPoint
QPointF m_oldMultiAPoint
Position of role A multiplicity floatingtext saved by saveIdealTextPositions()
Definition: associationwidget.h:286
Uml::RoleType::B
@ B
Definition: basictypes.h:240
AssociationWidget::loadFromXMI1
bool loadFromXMI1(QDomElement &qElement, const UMLWidgetList &widgets, const MessageWidgetList *messages)
Definition: associationwidget.cpp:4014
WidgetBase::m_scene
UMLScene * m_scene
Definition: widgetbase.h:316
AssociationWidgetRole::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement, const QString &suffix)
Definition: associationwidgetrole.cpp:107
AssociationWidget::findPointRegion
static Uml::Region::Enum findPointRegion(const QRectF &rect, const QPointF &pos)
Definition: associationwidget.cpp:2103
UMLObject::setStereotype
void setStereotype(const QString &_name)
Definition: umlobject.cpp:528
AssociationWidget::setTextPosition
void setTextPosition(Uml::TextRole::Enum role)
Definition: associationwidget.cpp:2715
ListPopupMenu::mt_Line_Color
@ mt_Line_Color
Definition: listpopupmenu.h:197
Uml::TextRole::Coll_Message
@ Coll_Message
Definition: basictypes.h:185
ListPopupMenu::mt_Change_Font
@ mt_Change_Font
Definition: listpopupmenu.h:209
UMLObject::toString
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1125
UMLWidget::setFontCmd
void setFontCmd(const QFont &font)
Definition: umlwidget.cpp:1970
Uml::Region::North
@ North
Definition: basictypes.h:313
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
AssociationWidget::isActivated
bool isActivated() const
Definition: associationwidget.cpp:1750
AssociationWidget::moveEntireAssoc
void moveEntireAssoc(qreal x, qreal y)
Definition: associationwidget.cpp:3836
UMLAssociation::nrof_parent_widgets
int nrof_parent_widgets
Definition: association.h:88
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
Uml::AssociationType::Generalization
@ Generalization
Definition: basictypes.h:107
AssociationWidget::AssociationWidget
AssociationWidget(UMLScene *scene)
Definition: associationwidget.cpp:71
AssociationLine::hoverLeaveEvent
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition: associationline.cpp:1279
ListPopupMenu::mt_Add_Point
@ mt_Add_Point
Definition: listpopupmenu.h:221
UMLScene::messageList
const MessageWidgetList messageList() const
Definition: umlscene.cpp:629
WidgetBase::setUMLObject
virtual void setUMLObject(UMLObject *obj)
Definition: widgetbase.cpp:192
UMLAssociation::setChangeability
void setChangeability(Uml::Changeability::Enum value, Uml::RoleType::Enum role)
Definition: association.cpp:650
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
AssociationLine::setLayout
void setLayout(Uml::LayoutType::Enum layout)
Definition: associationline.cpp:851
widget_utils.h
AssociationLine::startPoint
QPointF startPoint() const
Definition: associationline.cpp:105
UMLDoc
Definition: umldoc.h:75
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
Uml::AssociationType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:449
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3136
AssociationWidget::setTextColor
virtual void setTextColor(const QColor &color)
Definition: associationwidget.cpp:3134
AssociationWidget::m_activated
bool m_activated
flag which is true if the activate method has been called for this class instance
Definition: associationwidget.h:274
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
LinkWidget
Interface to FloatingTextWidget for AssociationWidget and MessageWidget.
Definition: linkwidget.h:36
AssociationLine::mousePressEvent
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: associationline.cpp:1138
AssociationWidget::association
UMLAssociation * association() const
Definition: associationwidget.cpp:520
UMLScene::findWidget
UMLWidget * findWidget(Uml::ID::Type id)
Definition: umlscene.cpp:1184
AssociationLine::closestPointIndex
int closestPointIndex(const QPointF &point, qreal delta=Delta) const
Definition: associationline.cpp:202
AssociationWidgetRole::cleanup
void cleanup()
Definition: associationwidgetrole.cpp:31
Uml
Definition: basictypes.cpp:37
Uml::DiagramType::Sequence
@ Sequence
Definition: basictypes.h:83
UMLWidget::setY
virtual void setY(qreal y)
Definition: umlwidget.cpp:1697
LinkWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: linkwidget.cpp:120
AssociationWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: associationwidget.cpp:3967
FloatingTextWidget::slotMenuSelection
virtual void slotMenuSelection(QAction *action)
Definition: floatingtextwidget.cpp:701
AssociationWidgetRole::changeabilityWidget
FloatingTextWidget * changeabilityWidget
information regarding changeability
Definition: associationwidgetrole.h:34
AssociationWidget::m_associationClass
ClassifierWidget * m_associationClass
used if we have an assoc. class
Definition: associationwidget.h:299
WidgetBase::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: widgetbase.cpp:726
Widget_Utils::findWidget
UMLWidget * findWidget(Uml::ID::Type id, const UMLWidgetList &widgets, const MessageWidgetList *messages)
Definition: widget_utils.cpp:43
UMLScene::addFloatingTextWidget
void addFloatingTextWidget(FloatingTextWidget *pWidget)
Definition: umlscene.cpp:2063
AssociationWidget::createPointsSelfAssociation
void createPointsSelfAssociation()
Definition: associationwidget.cpp:1944
associationwidget.h
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
Uml::AssociationType::Coll_Message_Asynchronous
@ Coll_Message_Asynchronous
Definition: basictypes.h:112
AssociationWidget::moveEvent
void moveEvent(QGraphicsSceneMouseEvent *me)
Definition: associationwidget.cpp:1531
AssociationWidget::setLineColor
virtual void setLineColor(const QColor &color)
Definition: associationwidget.cpp:3158
ListPopupMenu::mt_Delete
@ mt_Delete
Definition: listpopupmenu.h:186
AssociationWidget::activate
virtual bool activate(IDChangeLog *changeLog=0)
Definition: associationwidget.cpp:668
DocWindow::showDocumentation
void showDocumentation(UMLObject *object, bool overwrite=false)
Definition: docwindow.cpp:130
AssociationWidgetRole::roleWidget
FloatingTextWidget * roleWidget
role's label of this association
Definition: associationwidgetrole.h:35
AssociationWidget::setWidgetForRole
void setWidgetForRole(UMLWidget *widget, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:788
AssociationWidget::createAssocClassLine
void createAssocClassLine()
Definition: associationwidget.cpp:2791
AssociationWidget::setChangeability
void setChangeability(Uml::Changeability::Enum value, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:1132
pi
int * pi
Definition: cxx11-null-pointer-constant.h:5
FloatingTextWidget::setPostText
void setPostText(const QString &t)
Definition: floatingtextwidget.cpp:149
widgetbase.h
DEBUG
#define DEBUG(src)
Definition: debug_utils.h:129
AssociationLine::mouseReleaseEvent
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition: associationline.cpp:1221
AssociationWidget::setFloatingText
void setFloatingText(Uml::TextRole::Enum role, const QString &text, FloatingTextWidget *&ft)
Definition: associationwidget.cpp:1019
WidgetBase::lineColor
QColor lineColor() const
Definition: widgetbase.cpp:356
classifier.h
UMLScene::removeWidgetCmd
void removeWidgetCmd(UMLWidget *o)
Definition: umlscene.cpp:1309
AssocRules::allowRole
static bool allowRole(Uml::AssociationType::Enum assocType)
Definition: assocrules.cpp:329
AssociationWidget::widgetMoved
void widgetMoved(UMLWidget *widget, qreal x, qreal y)
Definition: associationwidget.cpp:1867
Uml::Changeability::toString
QString toString(Enum item)
Definition: basictypes.cpp:677
uError
#define uError()
Definition: debug_utils.h:123
ListPopupMenu::mt_Copy
@ mt_Copy
Definition: listpopupmenu.h:191
AssociationWidget::resetTextPositions
virtual void resetTextPositions()
Definition: associationwidget.cpp:340
UMLOperation
Definition: operation.h:25
Uml::TextRole::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:662
umlscene.h
Uml::AssociationType::Seq_Message
@ Seq_Message
Definition: basictypes.h:113
AssociationWidgetRole::umlWidget
QPointer< UMLWidget > umlWidget
UMLWidget at this role's side of this association.
Definition: associationwidgetrole.h:37
AssociationWidget::setUMLAssociation
void setUMLAssociation(UMLAssociation *assoc)
Definition: associationwidget.cpp:1331
AssociationWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition: associationwidget.cpp:419
A
Definition: testbasictypes.cpp:33
uml.h
UMLAssociation::visibility
Uml::Visibility::Enum visibility(Uml::RoleType::Enum role) const
Definition: association.cpp:549
UMLWidget::getIgnoreSnapToGrid
bool getIgnoreSnapToGrid() const
Definition: umlwidget.cpp:1735
AssociationWidget::m_nameWidget
FloatingTextWidget * m_nameWidget
displays the name of this association
Definition: associationwidget.h:302
FloatingTextWidget::setTextRole
void setTextRole(Uml::TextRole::Enum role)
Definition: floatingtextwidget.cpp:335
UMLScene::setStartedCut
void setStartedCut()
Definition: umlscene.cpp:3411
Uml::AssociationType::Seq_Message_Self
@ Seq_Message_Self
Definition: basictypes.h:115
AssociationWidget::slotAttributeChanged
void slotAttributeChanged()
Definition: associationwidget.cpp:3889
AssociationWidget::updateAssociations
void updateAssociations(int totalCount, Uml::Region::Enum region, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:3463
AssociationWidget::updatePointsException
void updatePointsException()
Definition: associationwidget.cpp:2022
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
UMLAssociation
Sets up association information.
Definition: association.h:33
AssociationWidget::onAssocClassLine
bool onAssocClassLine(const QPointF &point)
Definition: associationwidget.cpp:3747
AssociationWidget::setChangeWidget
void setChangeWidget(const QString &strChangeWidget, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:1148
AssociationWidget::saveIdealTextPositions
void saveIdealTextPositions()
Definition: associationwidget.cpp:1853
AssociationWidgetRole::m_WidgetRegion
Uml::Region::Enum m_WidgetRegion
region of this role's widget
Definition: associationwidgetrole.h:39
UMLScene::generateCollaborationId
int generateCollaborationId()
Definition: umlscene.cpp:643
WidgetBase::baseTypeStr
QLatin1String baseTypeStr() const
Definition: widgetbase.cpp:133
UMLScene
Definition: umlscene.h:69
ListPopupMenu::typeFromAction
static MenuType typeFromAction(QAction *action)
Definition: listpopupmenu.cpp:407
AssociationWidget::updateRegionLineCount
void updateRegionLineCount(int index, int totalCount, Uml::Region::Enum region, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:3539
DBG_SRC
#define DBG_SRC
Definition: import_utils.cpp:43
AssociationWidgetRole::multiplicityWidget
FloatingTextWidget * multiplicityWidget
information regarding multiplicity
Definition: associationwidgetrole.h:33
WidgetBase::lineWidth
uint lineWidth() const
Definition: widgetbase.cpp:398
AssociationWidget::checkAddPoint
bool checkAddPoint(const QPointF &scenePos)
Definition: associationwidget.cpp:3174
assocrules.h
AssociationWidget::slotMenuSelection
virtual void slotMenuSelection(QAction *action)
Definition: associationwidget.cpp:2923
Model_Utils::newText
QString newText(UMLObject::ObjectType type)
Definition: model_utils.cpp:620
AssociationLine::setEndPoints
bool setEndPoints(const QPointF &start, const QPointF &end)
Definition: associationline.cpp:291
ListPopupMenu::mt_Auto_Layout_Spline
@ mt_Auto_Layout_Spline
Definition: listpopupmenu.h:223
AssociationWidget::checkAutoLayoutSpline
bool checkAutoLayoutSpline()
Definition: associationwidget.cpp:3258
UMLAssociation::getAssocType
Uml::AssociationType::Enum getAssocType() const
Definition: association.cpp:105
AssociationWidget::midPoint
static QPointF midPoint(const QPointF &p0, const QPointF &p1)
Definition: associationwidget.cpp:2546
AssociationWidget::isCollaboration
bool isCollaboration() const
Definition: associationwidget.cpp:1380
UMLSceneItemList
QList< QGraphicsItem * > UMLSceneItemList
Definition: umlscene.h:58
associationwidgetlist.h
AssociationWidgetRole::roleDocumentation
QString roleDocumentation
Definition: associationwidgetrole.h:47
Uml::AssociationType::Composition
@ Composition
Definition: basictypes.h:117
AssociationWidget::font
QFont font() const
Definition: associationwidget.cpp:3106
UMLApp::slotEditCut
void slotEditCut()
Definition: uml.cpp:1654
UMLScene::removeWidget
void removeWidget(UMLWidget *o)
Definition: umlscene.cpp:1289
AssociationPropertiesDialog
Definition: associationpropertiesdialog.h:24
AssociationWidget::hoverMoveEvent
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event)
Definition: associationwidget.cpp:3959
FloatingTextWidget::setPreText
void setPreText(const QString &t)
Definition: floatingtextwidget.cpp:138
Uml::LayoutType::Orthogonal
@ Orthogonal
Definition: basictypes.h:147
AssociationWidget::m_associationType
Uml::AssociationType::Enum m_associationType
is only used if m_pObject is not set
Definition: associationwidget.h:300
b
bool b
Definition: cxx11-null-pointer-constant.h:6
ListPopupMenu::mt_LayoutDirect
@ mt_LayoutDirect
Definition: listpopupmenu.h:246
AssociationWidget::nameWidget
FloatingTextWidget * nameWidget() const
Definition: associationwidget.cpp:813
UMLObject::ot_Operation
@ ot_Operation
Definition: umlobject.h:93
AssociationWidget::setStereotype
void setStereotype(const QString &stereo)
Definition: associationwidget.cpp:917
WidgetBase::setName
virtual void setName(const QString &strName)
Definition: widgetbase.cpp:322
namespace_enum_literal::B
@ B
Definition: namespace-enum-literal.h:3
dialog_utils.h
AssociationWidget::isLayoutChangeable
bool isLayoutChangeable()
Definition: associationwidget.cpp:1323
AssociationWidget::operator!=
bool operator!=(AssociationWidget &other) const
Definition: associationwidget.cpp:650
AssociationWidgetRole
Definition: associationwidgetrole.h:31
AssociationWidgetRole::setParent
void setParent(AssociationWidget *parent)
Definition: associationwidgetrole.h:51
FloatingTextWidget::isTextValid
static bool isTextValid(const QString &text)
Definition: floatingtextwidget.cpp:462
AssociationWidget::mergeAssociationDataIntoUMLRepresentation
void mergeAssociationDataIntoUMLRepresentation()
Definition: associationwidget.cpp:1800
Uml::AssociationType::Dependency
@ Dependency
Definition: basictypes.h:109
AssociationWidget::lwSetFont
virtual void lwSetFont(QFont font)
Definition: associationwidget.cpp:266
linkwidget.h
Uml::TextRole::toString
QString toString(Enum item)
Definition: basictypes.cpp:588
AssociationWidget::setLineWidth
virtual void setLineWidth(uint width)
Definition: associationwidget.cpp:3166
WidgetBase::setLineColor
virtual void setLineColor(const QColor &color)
Definition: widgetbase.cpp:366
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:559
AssociationLine::layout
Uml::LayoutType::Enum layout() const
Definition: associationline.cpp:842
FloatingTextWidget::text
QString text() const
Definition: floatingtextwidget.cpp:88
AssociationWidget::setVisibility
void setVisibility(Uml::Visibility::Enum value, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:1092
Uml::AssociationType::Coll_Message_Self
@ Coll_Message_Self
Definition: basictypes.h:114
Widget_Utils::closestPoints
QLineF closestPoints(const QPolygonF &self, const QPolygonF &other)
Definition: widget_utils.cpp:690
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
associationwidgetpopupmenu.h
Uml::Region::SouthWest
@ SouthWest
Definition: basictypes.h:319
WidgetBase::baseType
WidgetType baseType() const
Definition: widgetbase.cpp:115
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
ListPopupMenu::mt_Paste
@ mt_Paste
Definition: listpopupmenu.h:192
FloatingTextWidget::setLink
void setLink(LinkWidget *l)
Definition: floatingtextwidget.cpp:315
AssociationWidget::insertIntoLists
void insertIntoLists(qreal position, const AssociationWidget *assoc)
Definition: associationwidget.cpp:3439
WidgetBase::m_umlObject
QPointer< UMLObject > m_umlObject
Definition: widgetbase.h:317
AssociationWidget::~AssociationWidget
virtual ~AssociationWidget()
Definition: associationwidget.cpp:208
AssociationLine::shape
QPainterPath shape() const
Definition: associationline.cpp:808
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
AssociationWidget::m_unNameLineSegment
int m_unNameLineSegment
Definition: associationwidget.h:283
AssociationWidgetRole::changeability
Uml::Changeability::Enum changeability
Definition: associationwidgetrole.h:46
Uml::AssociationType::Realization
@ Realization
Definition: basictypes.h:118
AssociationLine::hoverMoveEvent
void hoverMoveEvent(QGraphicsSceneHoverEvent *event)
Definition: associationline.cpp:1257
UMLAssociation::setRoleName
void setRoleName(const QString &roleName, Uml::RoleType::Enum role)
Definition: association.cpp:672
AssociationWidget::intersect
static QLineF::IntersectType intersect(const QRectF &rect, const QLineF &line, QPointF *intersectionPoint)
Definition: associationwidget.cpp:3339
umldoc.h
ListPopupMenu::mt_LayoutOrthogonal
@ mt_LayoutOrthogonal
Definition: listpopupmenu.h:248
AssociationWidget::swapXY
static QPointF swapXY(const QPointF &p)
Definition: associationwidget.cpp:2160
AssociationWidget::setRoleName
void setRoleName(const QString &strRole, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:958
AssociationWidgetRole::visibility
Uml::Visibility::Enum visibility
Definition: associationwidgetrole.h:45
WidgetBase::id
Uml::ID::Type id() const
Definition: widgetbase.cpp:214
AssociationWidget::isSelf
bool isSelf() const
Definition: associationwidget.cpp:1391
AssociationWidget::m_oldChangeBPoint
QPointF m_oldChangeBPoint
Position of role B changeability floatingtext saved by saveIdealTextPositions()
Definition: associationwidget.h:289
Uml::AssociationType::Exception
@ Exception
Definition: basictypes.h:123
WidgetBase::umlDoc
UMLDoc * umlDoc() const
Definition: widgetbase.cpp:172
B
Definition: testbasictypes.cpp:39
Widget_Utils::decoratePoint
QGraphicsRectItem * decoratePoint(const QPointF &p, QGraphicsItem *parent)
Definition: widget_utils.cpp:71
FloatingTextWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: floatingtextwidget.cpp:676
AssociationWidget::mouseReleaseEvent
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition: associationwidget.cpp:2915
AssociationWidget::widgetForRole
UMLWidget * widgetForRole(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1232
AssociationWidget::setMessageText
virtual void setMessageText(FloatingTextWidget *ft)
Definition: associationwidget.cpp:371
Uml::RoleType::Enum
Enum
Definition: basictypes.h:238
AssociationWidget::m_ordered
AssociationWidgetList m_ordered
auxiliary variable for updateAssociations()
Definition: associationwidget.h:272
AssociationWidget::calculateEndingPoints
void calculateEndingPoints()
Definition: associationwidget.cpp:1611
AssociationWidget::doUpdates
void doUpdates(const QPointF &otherP, Uml::RoleType::Enum role)
Definition: associationwidget.cpp:1707