umbrello: umbrello/umlwidgets/regionwidget.h Source File

umbrello 2.39.0 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

regionwidget.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 REGIONWIDGET_H
7#define REGIONWIDGET_H
8
9#include "umlwidget.h"
10
14 class RegionWidget: public UMLWidget
15{
16 Q_OBJECT
17public:
18 explicit RegionWidget(UMLScene* scene, Uml::ID::Type id = Uml::ID::None);
19 virtual ~RegionWidget();
20
21 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
22
23 void saveToXMI(QXmlStreamWriter& writer);
24 bool loadFromXMI(QDomElement& qElement);
25
26protected:
27 QSizeF minimumSize() const;
28
29};
30
31#endif
RegionWidget
Definition regionwidget.h:15
RegionWidget::~RegionWidget
virtual ~RegionWidget()
Definition regionwidget.cpp:39
RegionWidget::minimumSize
QSizeF minimumSize() const
Definition regionwidget.cpp:67
RegionWidget::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition regionwidget.cpp:86
RegionWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Definition regionwidget.cpp:46
RegionWidget::RegionWidget
RegionWidget(UMLScene *scene, Uml::ID::Type id=Uml::ID::None)
Definition regionwidget.cpp:31
RegionWidget::loadFromXMI
bool loadFromXMI(QDomElement &qElement)
Definition regionwidget.cpp:99
UMLScene
Definition umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition umlwidget.h:36
Uml::ID::None
const Type None
special value for uninitialized ID
Definition basictypes.h:373
Uml::ID::Type
std::string Type
Definition basictypes.h:371
umlwidget.h