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 void | lwSetFont (QFont font)=0 |
virtual UMLOperation * | operation ()=0 |
virtual UMLClassifier * | operationOwner () |
QString | operationText (UMLScene *scene=0) |
virtual void | resetTextPositions () |
virtual UMLClassifier * | seqNumAndOp (QString &seqNum, QString &op)=0 |
virtual void | setCustomOpText (const QString &opText)=0 |
virtual void | setMessageText (FloatingTextWidget *ft)=0 |
virtual void | setOperation (UMLOperation *op)=0 |
virtual void | setSeqNumAndOp (const QString &seqNum, const QString &op)=0 |
virtual void | setText (FloatingTextWidget *ft, const QString &newText)=0 |
virtual void | showPropertiesDialog () |
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.
|
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.
QString LinkWidget::operationText | ( | UMLScene * | scene = 0 | ) |
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.
|
pure virtual |
Motivated by FloatingTextWidget::showOpDlg()
Implemented in AssociationWidget, and MessageWidget.
|
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::showOpDlg()
Implemented in AssociationWidget, and MessageWidget.
|
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.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.