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

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

- File List
- File Members

associationwidgetrole.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef ASSOCIATIONWIDGETROLE_H
7#define ASSOCIATIONWIDGETROLE_H
8
9#include "basictypes.h"
10
11#include <QPointer>
12
13 class AssociationWidget;
14 class FloatingTextWidget;
15 class UMLWidget;
16
17 class QPointF;
18 class QDomDocument;
19 class QDomElement;
20 class QXmlStreamWriter;
21
27 class AssociationWidgetRole {
28 public:
29 FloatingTextWidget* multiplicityWidget;
30 FloatingTextWidget* changeabilityWidget;
31 FloatingTextWidget* roleWidget;
32
33 QPointer<UMLWidget> umlWidget;
34
35 Uml::Region::Enum m_WidgetRegion;
36
37 int m_nIndex;
38 int m_nTotalCount;
39
40 // The following items are only used if m_pObject is not set.
41 Uml::Visibility::Enum visibility;
42 Uml::Changeability::Enum changeability;
43 QString roleDocumentation;
44
45 AssociationWidgetRole();
46
47 void setParent(AssociationWidget *parent) { m_q = parent; }
48 void cleanup();
49
50 void setFont(const QFont &font);
51
52 UMLWidget *onWidget(const QPointF &p);
53 void setSelected(bool select);
54 void clipSize();
55
56 void saveToXMI(QXmlStreamWriter& writer);
57 bool loadFromXMI(QDomElement &qElement, const QString &suffix);
58 bool getStartMove();
59
60 private:
61 AssociationWidget *m_q;
62};
63
64#endif // ASSOCIATIONWIDGETROLE_H
basictypes.h
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:47
AssociationWidgetRole
Definition: associationwidgetrole.h:27
AssociationWidgetRole::m_nIndex
int m_nIndex
the index of where the line is on the region for this role
Definition: associationwidgetrole.h:37
AssociationWidgetRole::setSelected
void setSelected(bool select)
Definition: associationwidgetrole.cpp:82
AssociationWidgetRole::setParent
void setParent(AssociationWidget *parent)
Definition: associationwidgetrole.h:47
AssociationWidgetRole::cleanup
void cleanup()
Definition: associationwidgetrole.cpp:28
AssociationWidgetRole::m_q
AssociationWidget * m_q
Definition: associationwidgetrole.h:61
AssociationWidgetRole::clipSize
void clipSize()
Definition: associationwidgetrole.cpp:92
AssociationWidgetRole::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: associationwidgetrole.cpp:104
AssociationWidgetRole::changeabilityWidget
FloatingTextWidget * changeabilityWidget
information regarding changeability
Definition: associationwidgetrole.h:30
AssociationWidgetRole::multiplicityWidget
FloatingTextWidget * multiplicityWidget
information regarding multiplicity
Definition: associationwidgetrole.h:29
AssociationWidgetRole::umlWidget
QPointer< UMLWidget > umlWidget
UMLWidget at this role's side of this association.
Definition: associationwidgetrole.h:33
AssociationWidgetRole::loadFromXMI
bool loadFromXMI(QDomElement &qElement, const QString &suffix)
Definition: associationwidgetrole.cpp:117
AssociationWidgetRole::setFont
void setFont(const QFont &font)
Definition: associationwidgetrole.cpp:48
AssociationWidgetRole::visibility
Uml::Visibility::Enum visibility
Definition: associationwidgetrole.h:41
AssociationWidgetRole::getStartMove
bool getStartMove()
Definition: associationwidgetrole.cpp:126
AssociationWidgetRole::roleDocumentation
QString roleDocumentation
Definition: associationwidgetrole.h:43
AssociationWidgetRole::roleWidget
FloatingTextWidget * roleWidget
role's label of this association
Definition: associationwidgetrole.h:31
AssociationWidgetRole::AssociationWidgetRole
AssociationWidgetRole()
Definition: associationwidgetrole.cpp:14
AssociationWidgetRole::changeability
Uml::Changeability::Enum changeability
Definition: associationwidgetrole.h:42
AssociationWidgetRole::onWidget
UMLWidget * onWidget(const QPointF &p)
Definition: associationwidgetrole.cpp:66
AssociationWidgetRole::m_WidgetRegion
Uml::Region::Enum m_WidgetRegion
region of this role's widget
Definition: associationwidgetrole.h:35
AssociationWidgetRole::m_nTotalCount
int m_nTotalCount
total amount of associations on the region this role's line is on
Definition: associationwidgetrole.h:38
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:32
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
Uml::Changeability::Enum
Enum
Definition: basictypes.h:202
Uml::Region::Enum
Enum
Definition: basictypes.h:330
Uml::Visibility::Enum
Enum
Definition: basictypes.h:45