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

enumwidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef ENUMWIDGET_H
7#define ENUMWIDGET_H
8
9#include "umlwidget.h"
10
11#define ENUM_MARGIN 5
12
22 class EnumWidget : public UMLWidget
23{
24 Q_OBJECT
25 public:
26 explicit EnumWidget(UMLScene *scene, UMLObject* o);
27 virtual ~EnumWidget();
28
29 bool showPackage() const;
30 void setShowPackage(bool _status);
31 void toggleShowPackage();
32
33 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
34
35 virtual bool loadFromXMI(QDomElement& qElement);
36 virtual void saveToXMI(QXmlStreamWriter& writer);
37
38 public Q_SLOTS:
39 virtual void slotMenuSelection(QAction* action);
40
41 protected:
42 QSizeF minimumSize() const;
43
44 bool m_showPackage;
45};
46
47#endif
EnumWidget
A graphical version of an enum.
Definition: enumwidget.h:23
EnumWidget::~EnumWidget
virtual ~EnumWidget()
Definition: enumwidget.cpp:53
EnumWidget::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: enumwidget.cpp:173
EnumWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Definition: enumwidget.cpp:93
EnumWidget::showPackage
bool showPackage() const
Definition: enumwidget.cpp:62
EnumWidget::minimumSize
QSizeF minimumSize() const
Definition: enumwidget.cpp:208
EnumWidget::toggleShowPackage
void toggleShowPackage()
Definition: enumwidget.cpp:82
EnumWidget::m_showPackage
bool m_showPackage
Definition: enumwidget.h:44
EnumWidget::slotMenuSelection
virtual void slotMenuSelection(QAction *action)
Definition: enumwidget.cpp:188
EnumWidget::loadFromXMI
virtual bool loadFromXMI(QDomElement &qElement)
Definition: enumwidget.cpp:158
EnumWidget::setShowPackage
void setShowPackage(bool _status)
Definition: enumwidget.cpp:72
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLScene
Definition: umlscene.h:66
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
umlwidget.h