umbrello/umbrello
messagewidget.h
Go to the documentation of this file.
121 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
int getMaxY()
Returns the maximum height this widget should be set at on a sequence diagrams.
Definition: messagewidget.cpp:1233
void calculateDimensionsFound()
Calculates and sets the size of the widget for a found message.
Definition: messagewidget.cpp:1146
virtual void setOperationText(const QString &op)
Overrides operation from LinkWidget.
Definition: messagewidget.cpp:903
qreal x() const
qreal y() const
void calculateDimensionsSynchronous()
Calculates and sets the size of the widget for a synchronous message.
Definition: messagewidget.cpp:1028
Uml::SequenceMessage::Enum sequenceMessageType() const
Definition: messagewidget.h:80
bool isSelf() const
This method determines whether the message is for "Self" for an ObjectWidget.
Definition: messagewidget.cpp:759
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
virtual void setOperation(UMLOperation *op)
Implements operation from LinkWidget.
Definition: messagewidget.cpp:944
virtual QString lwOperationText()
Overrides operation from LinkWidget.
Definition: messagewidget.cpp:978
virtual UMLOperation * operation()
Implements operation from LinkWidget.
Definition: messagewidget.cpp:935
static void paintSolidArrowhead(QPainter *p, int x, int y, Qt::ArrowType direction)
Draw a solid (triangular) arrowhead pointing in the given direction.
Definition: messagewidget.cpp:317
void updateResizability()
Update the UMLWidget::m_resizable flag according to the charactersitics of this message.
Definition: messagewidget.cpp:171
This is an interface realized by AssociationWidget and MessageWidget.
Definition: linkwidget.h:35
bool hasObjectWidget(ObjectWidget *w)
Check to see if the given ObjectWidget is involved in the message.
Definition: messagewidget.cpp:744
virtual UMLClassifier * operationOwner()
Overrides operation from LinkWidget.
Definition: messagewidget.cpp:922
ObjectWidget * objectWidget(Uml::RoleType::Enum role)
Returns the related widget on the given side.
Definition: messagewidget.cpp:1264
virtual void lwSetFont(QFont font)
Implements operation from LinkWidget.
Definition: messagewidget.cpp:912
void paintLost(QPainter *painter, const QStyleOptionGraphicsItem *option)
Draws a solid arrow line and a stick arrow head and a circle.
Definition: messagewidget.cpp:514
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
void paintFound(QPainter *painter, const QStyleOptionGraphicsItem *option)
Draws a circle and a solid arrow line and a stick arrow head.
Definition: messagewidget.cpp:552
void paintAsynchronous(QPainter *painter, const QStyleOptionGraphicsItem *option)
Draws a solid arrow line and a stick arrow head.
Definition: messagewidget.cpp:428
QGraphicsScene * scene() const
void resolveObjectWidget(IDChangeLog *log)
Resolve references of this message so they reference the correct new object widgets after paste...
Definition: messagewidget.cpp:864
int getMinY()
Returns the minimum height this widget should be set at on a sequence diagrams.
Definition: messagewidget.cpp:1211
QString tr(const char *sourceText, const char *disambiguation, int n)
void setLinkAndTextPos()
Shortcut for calling m_pFText->setLink() followed by this->setTextPosition().
Definition: messagewidget.cpp:693
virtual void setCustomOpText(const QString &opText)
Overrides operation from LinkWidget.
Definition: messagewidget.cpp:968
virtual bool event(QEvent *e)
int constrainX(int textX, int textWidth, Uml::TextRole::Enum tr)
Returns the textX arg with constraints applied.
Definition: messagewidget.cpp:643
void calculateDimensionsAsynchronous()
Calculates and sets the size of the widget for an asynchronous message.
Definition: messagewidget.cpp:1061
virtual void constrainMovementForAllWidgets(qreal &diffX, qreal &diffY)
Overridden from UMLWidget.
Definition: messagewidget.cpp:279
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Event handler for mouse double click events.
Definition: messagewidget.cpp:1289
Uml::SequenceMessage::Enum m_sequenceMessageType
Whether the message is synchronous or asynchronous.
Definition: messagewidget.h:178
void setSelected(bool _select)
Sets the state of whether the widget is selected.
Definition: messagewidget.cpp:1193
virtual bool loadFromXMI(QDomElement &qElement)
Loads from the "messagewidget" XMI element.
Definition: messagewidget.cpp:1333
virtual QString customOpText()
Overrides operation from LinkWidget.
Definition: messagewidget.cpp:959
void sigMessageMoved()
emitted when the message widget is moved up or down slots into ObjectWidget::slotMessageMoved() ...
virtual void setText(FloatingTextWidget *ft, const QString &newText)
Overrides operation from LinkWidget.
Definition: messagewidget.cpp:891
virtual bool activate(IDChangeLog *Log=0)
Activates a MessageWidget.
Definition: messagewidget.cpp:781
virtual void constrainTextPos(qreal &textX, qreal &textY, qreal textWidth, qreal textHeight, Uml::TextRole::Enum tr)
Constrains the FloatingTextWidget X and Y values supplied.
Definition: messagewidget.cpp:675
void slotWidgetMoved(Uml::ID::Type id)
Definition: messagewidget.cpp:715
MessageWidget(UMLScene *scene, ObjectWidget *a, ObjectWidget *b, int y, Uml::SequenceMessage::Enum sequenceMessageType, Uml::ID::Type id=Uml::ID::None)
Constructs a MessageWidget.
Definition: messagewidget.cpp:53
void setFloatingTextWidget(FloatingTextWidget *f)
Sets the text widget it is related to.
Definition: messagewidget.h:105
void cleanup()
Used to cleanup any other widget it may need to delete.
Definition: messagewidget.cpp:1170
void slotMenuSelection(QAction *action)
Definition: messagewidget.cpp:765
void calculateDimensionsLost()
Calculates and sets the size of the widget for a lost message.
Definition: messagewidget.cpp:1123
void setObjectWidget(ObjectWidget *ow, Uml::RoleType::Enum role)
Sets the related widget on the given side.
Definition: messagewidget.cpp:1253
virtual UMLClassifier * lwClassifier()
Overrides operation from LinkWidget.
Definition: messagewidget.cpp:992
void calculateDimensions()
Calculates the size of the widget by calling calculateDimensionsSynchronous(), calculateDimensionsAsy...
Definition: messagewidget.cpp:1005
FloatingTextWidget * floatingTextWidget()
Returns the text widget it is related to.
Definition: messagewidget.h:96
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves to the "messagewidget" XMI element.
Definition: messagewidget.cpp:1303
void calculateDimensionsCreation()
Calculates and sets the size of the widget for a creation message.
Definition: messagewidget.cpp:1094
void paintSynchronous(QPainter *painter, const QStyleOptionGraphicsItem *option)
Draws the calling arrow with filled in arrowhead, the timeline box and the returning arrow with a das...
Definition: messagewidget.cpp:364
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Reimplemented from UMLWidget and calls other paint...() methods depending on the message type...
Definition: messagewidget.cpp:289
void paintCreation(QPainter *painter, const QStyleOptionGraphicsItem *option)
Draws a solid arrow line and a stick arrow head to the edge of the target object widget instead of to...
Definition: messagewidget.cpp:478
static void paintArrow(QPainter *p, int x, int y, int w, Qt::ArrowType direction, bool useDottedLine=false)
Draw an arrow pointing in the given direction.
Definition: messagewidget.cpp:335
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:445
UMLWidget * onWidget(const QPointF &p)
Overrides operation from UMLWidget.
Definition: messagewidget.cpp:598
virtual void moveWidgetBy(qreal diffX, qreal diffY)
Overridden from UMLWidget.
Definition: messagewidget.cpp:263
virtual void resizeWidget(qreal newW, qreal newH)
Overridden from UMLWidget.
Definition: messagewidget.cpp:199
void setTextPosition()
Sets the text position relative to the sequence message.
Definition: messagewidget.cpp:623
virtual void setMessageText(FloatingTextWidget *ft)
Overrides operation from LinkWidget.
Definition: messagewidget.cpp:875
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.