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

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
14 class AssociationWidget;
15 class UMLObject;
16
17 class QVBoxLayout;
18 class QGroupBox;
19 class QRadioButton;
20
21 class VisibilityEnumWidget : public QWidget
22{
23 Q_OBJECT
24 public:
25 typedef QMap<Uml::Visibility::Enum,QString> TextMap;
26 typedef QMap<Uml::Visibility::Enum,QRadioButton*> ButtonMap;
27
28 explicit VisibilityEnumWidget(UMLObject *o, QWidget *parent=0);
29 VisibilityEnumWidget(AssociationWidget *a, Uml::RoleType::Enum role, QWidget *parent=0);
30 ~VisibilityEnumWidget();
31
32 void addToLayout(QVBoxLayout *layout);
33 void apply();
34
35 protected:
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
Definition visibilityenumwidget.h:22
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::VisibilityEnumWidget
VisibilityEnumWidget(UMLObject *o, QWidget *parent=0)
Definition visibilityenumwidget.cpp:18
VisibilityEnumWidget::apply
void apply()
Definition visibilityenumwidget.cpp:73
VisibilityEnumWidget::m_widget
AssociationWidget * m_widget
Definition visibilityenumwidget.h:40
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