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

linkwidget.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) 2004-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef LINKWIDGET_H
12 #define LINKWIDGET_H
13
14 #include "basictypes.h"
15 #include "umlscene.h"
16
17 #include <QFont>
18
19 // forward declarations
20 class UMLClassifier;
21 class UMLOperation;
22 class FloatingTextWidget;
23
35 class LinkWidget
36 {
37 public:
38 LinkWidget();
39 virtual ~LinkWidget();
40
48 virtual void lwSetFont(QFont font) = 0;
49
50 virtual UMLClassifier *operationOwner();
51
55 virtual UMLOperation *operation() = 0;
56
60 virtual void setOperation(UMLOperation *op) = 0;
61
65 virtual QString customOpText() = 0;
66
70 virtual void setCustomOpText(const QString &opText) = 0;
71
72 QString operationText(UMLScene *scene = 0);
73
74 virtual void resetTextPositions();
75
79 virtual void setMessageText(FloatingTextWidget *ft) = 0;
80
84 virtual void setText(FloatingTextWidget *ft, const QString &newText) = 0;
85
86 virtual bool showPropertiesDialog();
87
91 virtual QString lwOperationText() = 0;
92
96 virtual UMLClassifier *lwClassifier() = 0;
97
101 virtual void setOperationText(const QString &op) = 0;
102
107 virtual void constrainTextPos(qreal &textX, qreal &textY,
108 qreal textWidth, qreal textHeight,
109 Uml::TextRole::Enum tr) = 0;
110
111 virtual void calculateNameTextSegment();
112
113 void setSequenceNumber(const QString &sequenceNumber);
114 QString sequenceNumber() const;
115
116 virtual bool loadFromXMI1(QDomElement &qElement);
117 virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement);
118
119 protected:
120 QString m_SequenceNumber;
121 };
122
123 #endif
UMLApp::currentView
UMLView * currentView() const
Definition: uml.cpp:3166
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
LinkWidget::setCustomOpText
virtual void setCustomOpText(const QString &opText)=0
LinkWidget::resetTextPositions
virtual void resetTextPositions()
Definition: linkwidget.cpp:70
Uml::SignatureType::NoSigNoVis
@ NoSigNoVis
Definition: basictypes.h:166
LinkWidget::constrainTextPos
virtual void constrainTextPos(qreal &textX, qreal &textY, qreal textWidth, qreal textHeight, Uml::TextRole::Enum tr)=0
umlview.h
LinkWidget::setOperation
virtual void setOperation(UMLOperation *op)=0
LinkWidget::m_SequenceNumber
QString m_SequenceNumber
Definition: linkwidget.h:120
LinkWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: linkwidget.cpp:111
operation.h
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
LinkWidget::operationText
QString operationText(UMLScene *scene=0)
Definition: linkwidget.cpp:50
UMLScene::showOpSig
bool showOpSig() const
Definition: umlscene.cpp:3664
Uml::SignatureType::SigNoVis
@ SigNoVis
Definition: basictypes.h:165
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:671
UMLOperation::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: operation.cpp:205
LinkWidget::setSequenceNumber
void setSequenceNumber(const QString &sequenceNumber)
Definition: linkwidget.cpp:95
LinkWidget::~LinkWidget
virtual ~LinkWidget()
Definition: linkwidget.cpp:28
LinkWidget::lwOperationText
virtual QString lwOperationText()=0
Uml::TextRole::Enum
Enum
Definition: basictypes.h:178
LinkWidget::operationOwner
virtual UMLClassifier * operationOwner()
Definition: linkwidget.cpp:35
LinkWidget::setOperationText
virtual void setOperationText(const QString &op)=0
LinkWidget::customOpText
virtual QString customOpText()=0
basictypes.h
LinkWidget::sequenceNumber
QString sequenceNumber() const
Definition: linkwidget.cpp:103
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
LinkWidget::operation
virtual UMLOperation * operation()=0
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:162
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
LinkWidget
Interface to FloatingTextWidget for AssociationWidget and MessageWidget.
Definition: linkwidget.h:36
LinkWidget::lwSetFont
virtual void lwSetFont(QFont font)=0
LinkWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: linkwidget.cpp:120
LinkWidget::lwClassifier
virtual UMLClassifier * lwClassifier()=0
LinkWidget::setText
virtual void setText(FloatingTextWidget *ft, const QString &newText)=0
classifier.h
UMLOperation
Definition: operation.h:25
umlscene.h
uml.h
LinkWidget::calculateNameTextSegment
virtual void calculateNameTextSegment()
Definition: linkwidget.cpp:87
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
UMLScene
Definition: umlscene.h:69
LinkWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition: linkwidget.cpp:78
Model_Utils::newText
QString newText(UMLObject::ObjectType type)
Definition: model_utils.cpp:620
umlobject.h
UMLView::umlScene
UMLScene * umlScene() const
Definition: umlview.cpp:56
LinkWidget::LinkWidget
LinkWidget()
Definition: linkwidget.cpp:24
linkwidget.h
LinkWidget::setMessageText
virtual void setMessageText(FloatingTextWidget *ft)=0