umbrello: umbrello/dialogs/widgets/visibilityenumwidget.h Source File

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

visibilityenumwidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef VISIBILITYENUMWIDGET_H
7#define VISIBILITYENUMWIDGET_H
8
9#include "basictypes.h"
10
11#include <QMap>
12#include <QWidget>
13
14class AssociationWidget;
15class UMLObject;
16
17class QVBoxLayout;
18class QGroupBox;
19class QRadioButton;
20
21 class VisibilityEnumWidget : public QWidget
22{
23 Q_OBJECT
24public:
25 typedef QMap<Uml::Visibility::Enum,QString> TextMap;
26 typedef QMap<Uml::Visibility::Enum,QRadioButton*> ButtonMap;
27
28 explicit VisibilityEnumWidget(UMLObject *o, QWidget *parent= nullptr);
29 VisibilityEnumWidget(AssociationWidget *a, Uml::RoleType::Enum role, QWidget *parent= nullptr);
30 ~VisibilityEnumWidget();
31
32 void addToLayout(QVBoxLayout *layout);
33 void apply();
34
35protected:
36 TextMap m_texts;
37 QGroupBox *m_box;
38 ButtonMap m_buttons;
39 UMLObject *m_object;
40 AssociationWidget *m_widget;
41 Uml::RoleType::Enum m_role;
42
43 void init(const QString &title);
44};
45
46#endif // VISIBILITYENUMWIDGET_H
basictypes.h
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition associationwidget.h:47
UMLObject
The base class for UML objects.
Definition umlobject.h:70
VisibilityEnumWidget::addToLayout
void addToLayout(QVBoxLayout *layout)
Definition visibilityenumwidget.cpp:65
VisibilityEnumWidget::m_box
QGroupBox * m_box
Definition visibilityenumwidget.h:37
VisibilityEnumWidget::TextMap
QMap< Uml::Visibility::Enum, QString > TextMap
Definition visibilityenumwidget.h:25
VisibilityEnumWidget::~VisibilityEnumWidget
~VisibilityEnumWidget()
Definition visibilityenumwidget.cpp:56
VisibilityEnumWidget::apply
void apply()
Definition visibilityenumwidget.cpp:73
VisibilityEnumWidget::m_widget
AssociationWidget * m_widget
Definition visibilityenumwidget.h:40
VisibilityEnumWidget::VisibilityEnumWidget
VisibilityEnumWidget(UMLObject *o, QWidget *parent=nullptr)
Definition visibilityenumwidget.cpp:18
VisibilityEnumWidget::m_object
UMLObject * m_object
Definition visibilityenumwidget.h:39
VisibilityEnumWidget::m_buttons
ButtonMap m_buttons
Definition visibilityenumwidget.h:38
VisibilityEnumWidget::m_texts
TextMap m_texts
Definition visibilityenumwidget.h:36
VisibilityEnumWidget::m_role
Uml::RoleType::Enum m_role
Definition visibilityenumwidget.h:41
VisibilityEnumWidget::ButtonMap
QMap< Uml::Visibility::Enum, QRadioButton * > ButtonMap
Definition visibilityenumwidget.h:26
VisibilityEnumWidget::init
void init(const QString &title)
Definition visibilityenumwidget.cpp:85
Uml::RoleType::Enum
Enum
Definition basictypes.h:236
a
QString a
Definition petalnode.cpp:13