umbrello/umbrello
#include <linkwidget.h>
Public Member Functions | |
LinkWidget () | |
virtual | ~LinkWidget () |
virtual void | calculateNameTextSegment () |
virtual void | constrainTextPos (qreal &textX, qreal &textY, qreal textWidth, qreal textHeight, Uml::TextRole::Enum tr)=0 |
virtual QString | customOpText ()=0 |
virtual bool | loadFromXMI (QDomElement &qElement) |
virtual UMLClassifier * | lwClassifier ()=0 |
virtual QString | lwOperationText ()=0 |
virtual void | lwSetFont (QFont font)=0 |
virtual UMLOperation * | operation ()=0 |
virtual UMLClassifier * | operationOwner () |
QString | operationText (UMLScene *scene=0) |
virtual void | resetTextPositions () |
virtual void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
QString | sequenceNumber () const |
virtual void | setCustomOpText (const QString &opText)=0 |
virtual void | setMessageText (FloatingTextWidget *ft)=0 |
virtual void | setOperation (UMLOperation *op)=0 |
virtual void | setOperationText (const QString &op)=0 |
void | setSequenceNumber (const QString &sequenceNumber) |
virtual void | setText (FloatingTextWidget *ft, const QString &newText)=0 |
virtual void | showPropertiesDialog () |
Protected Attributes | |
QString | m_SequenceNumber |
Detailed Description
This is an interface realized by AssociationWidget and MessageWidget.
The design of this interface was driven by the requirements of class FloatingTextWidget. As the architecture of Umbrello evolves (for example, if the class FloatingTextWidget is redesigned), it can be cleaned up.
Interface to FloatingTextWidget for AssociationWidget and MessageWidget.
Definition at line 35 of file linkwidget.h.
Constructor & Destructor Documentation
LinkWidget::LinkWidget | ( | ) |
Definition at line 21 of file linkwidget.cpp.
|
virtual |
Definition at line 25 of file linkwidget.cpp.
Member Function Documentation
|
virtual |
Motivated by FloatingTextWidget::setLink().
Only applies to AssociationWidget.
Reimplemented in AssociationWidget.
Definition at line 83 of file linkwidget.cpp.
|
pure virtual |
Abstract operation implemented by inheriting classes.
Motivated by FloatingTextWidget::mouseMoveEvent()
Implemented in AssociationWidget, and MessageWidget.
|
pure virtual |
Motivated by getOperationText()
Implemented in AssociationWidget, and MessageWidget.
|
virtual |
Load data from XMI.
Reimplemented in AssociationWidget, and MessageWidget.
Definition at line 107 of file linkwidget.cpp.
|
pure virtual |
Motivated by FloatingTextWidget::showOpDialog()
Implemented in AssociationWidget, and MessageWidget.
|
pure virtual |
Motivated by FloatingTextWidget::showOpDialog()
Implemented in AssociationWidget, and MessageWidget.
|
pure virtual |
Sets the font the widget is to use.
Abstract operation implemented by inheriting classes. Motivated by FloatingTextWidget::slotMenuSelection(mt_Operation)
- Parameters
-
font Font to be set.
Implemented in AssociationWidget, and MessageWidget.
|
pure virtual |
Motivated by FloatingTextWidget::slotMenuSelection(mt_Operation)
Implemented in AssociationWidget, and MessageWidget.
|
virtual |
Motivated by FloatingTextWidget::slotMenuSelection(mt_Operation)
Reimplemented in AssociationWidget, and MessageWidget.
Definition at line 32 of file linkwidget.cpp.
Return the operation text.
When no scene parameter is given, the scene of the current view is taken instead.
- Parameters
-
scene the given scene
- Returns
- the operation text
Definition at line 47 of file linkwidget.cpp.
|
virtual |
Motivated by FloatingTextWidget::slotMenuSelection(mt_Reset_Label_Positions) Only applies to AssociationWidget.
Reimplemented in AssociationWidget.
Definition at line 67 of file linkwidget.cpp.
|
virtual |
Save data to XMI.
Reimplemented in AssociationWidget, and MessageWidget.
Definition at line 116 of file linkwidget.cpp.
QString LinkWidget::sequenceNumber | ( | ) | const |
Read property of QString m_SequenceNumber.
Definition at line 99 of file linkwidget.cpp.
|
pure virtual |
Motivated by FloatingTextWidget::slotMenuSelection(mt_Operation)
Implemented in AssociationWidget, and MessageWidget.
|
pure virtual |
Motivated by FloatingTextWidget::setMessageText()
Implemented in AssociationWidget, and MessageWidget.
|
pure virtual |
Motivated by FloatingTextWidget::slotMenuSelection(mt_Operation)
Implemented in AssociationWidget, and MessageWidget.
|
pure virtual |
Motivated by FloatingTextWidget::showOpDialog()
Implemented in AssociationWidget, and MessageWidget.
void LinkWidget::setSequenceNumber | ( | const QString & | sequenceNumber | ) |
Write property of QString m_SequenceNumber.
Definition at line 91 of file linkwidget.cpp.
|
pure virtual |
Motivated by FloatingTextWidget::handleRename()
Implemented in AssociationWidget, and MessageWidget.
|
virtual |
Motivated by FloatingTextWidget::mouseDoubleClickEvent() Only applies to AssociationWidget.
Reimplemented in AssociationWidget.
Definition at line 75 of file linkwidget.cpp.
Member Data Documentation
|
protected |
Definition at line 120 of file linkwidget.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.