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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

linkwidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2004-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef LINKWIDGET_H
7#define LINKWIDGET_H
8
9#include "basictypes.h"
10#include "umlscene.h"
11
12#include <QFont>
13
14// forward declarations
15 class UMLClassifier;
16 class UMLOperation;
17 class FloatingTextWidget;
18 class QXmlStreamWriter;
19
31 class LinkWidget
32{
33 public:
34 LinkWidget();
35 virtual ~LinkWidget();
36
44 virtual void lwSetFont(QFont font) = 0;
45
46 virtual UMLClassifier *operationOwner();
47
51 virtual UMLOperation *operation() = 0;
52
56 virtual void setOperation(UMLOperation *op) = 0;
57
61 virtual QString customOpText() = 0;
62
66 virtual void setCustomOpText(const QString &opText) = 0;
67
68 QString operationText(UMLScene *scene = 0);
69
70 virtual void resetTextPositions();
71
75 virtual void setMessageText(FloatingTextWidget *ft) = 0;
76
80 virtual void setText(FloatingTextWidget *ft, const QString &newText) = 0;
81
82 virtual bool showPropertiesDialog();
83
87 virtual QString lwOperationText() = 0;
88
92 virtual UMLClassifier *lwClassifier() = 0;
93
97 virtual void setOperationText(const QString &op) = 0;
98
103 virtual void constrainTextPos(qreal &textX, qreal &textY,
104 qreal textWidth, qreal textHeight,
105 Uml::TextRole::Enum tr) = 0;
106
107 virtual void calculateNameTextSegment();
108
109 void setSequenceNumber(const QString &sequenceNumber);
110 QString sequenceNumber() const;
111
112 virtual bool loadFromXMI(QDomElement &qElement);
113 virtual void saveToXMI(QXmlStreamWriter& writer);
114
115 protected:
116 QString m_SequenceNumber;
117};
118
119#endif
basictypes.h
FloatingTextWidget
Displays a line of text or an operation.
Definition floatingtextwidget.h:32
LinkWidget
Interface to FloatingTextWidget for AssociationWidget and MessageWidget.
Definition linkwidget.h:32
LinkWidget::operationOwner
virtual UMLClassifier * operationOwner()
Definition linkwidget.cpp:33
LinkWidget::~LinkWidget
virtual ~LinkWidget()
Definition linkwidget.cpp:26
LinkWidget::setMessageText
virtual void setMessageText(FloatingTextWidget *ft)=0
LinkWidget::constrainTextPos
virtual void constrainTextPos(qreal &textX, qreal &textY, qreal textWidth, qreal textHeight, Uml::TextRole::Enum tr)=0
LinkWidget::operation
virtual UMLOperation * operation()=0
LinkWidget::m_SequenceNumber
QString m_SequenceNumber
Definition linkwidget.h:116
LinkWidget::sequenceNumber
QString sequenceNumber() const
Definition linkwidget.cpp:100
LinkWidget::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition linkwidget.cpp:117
LinkWidget::lwClassifier
virtual UMLClassifier * lwClassifier()=0
LinkWidget::setCustomOpText
virtual void setCustomOpText(const QString &opText)=0
LinkWidget::setSequenceNumber
void setSequenceNumber(const QString &sequenceNumber)
Definition linkwidget.cpp:92
LinkWidget::setOperationText
virtual void setOperationText(const QString &op)=0
LinkWidget::resetTextPositions
virtual void resetTextPositions()
Definition linkwidget.cpp:68
LinkWidget::lwSetFont
virtual void lwSetFont(QFont font)=0
LinkWidget::lwOperationText
virtual QString lwOperationText()=0
LinkWidget::LinkWidget
LinkWidget()
Definition linkwidget.cpp:22
LinkWidget::loadFromXMI
virtual bool loadFromXMI(QDomElement &qElement)
Definition linkwidget.cpp:108
LinkWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition linkwidget.cpp:75
LinkWidget::setOperation
virtual void setOperation(UMLOperation *op)=0
LinkWidget::operationText
QString operationText(UMLScene *scene=0)
Definition linkwidget.cpp:48
LinkWidget::setText
virtual void setText(FloatingTextWidget *ft, const QString &newText)=0
LinkWidget::calculateNameTextSegment
virtual void calculateNameTextSegment()
Definition linkwidget.cpp:84
LinkWidget::customOpText
virtual QString customOpText()=0
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLOperation
Definition operation.h:20
UMLScene
Definition umlscene.h:65
Uml::TextRole::Enum
Enum
Definition basictypes.h:176
umlscene.h