umbrello: umbrello/umlwidgets/regionwidget.h Source File

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

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::~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::UMLWidget
UMLWidget(UMLScene *scene, WidgetType type=wt_UMLWidget, UMLObject *o=nullptr)
Definition umlwidget.cpp:86
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