umbrello: umbrello/umlwidgets/regionwidget.h Source File

umbrello 2.32.3 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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef REGIONWIDGET_H
12 #define REGIONWIDGET_H
13
14 #include "umlwidget.h"
15
19 class RegionWidget: public UMLWidget
20 {
21 Q_OBJECT
22 public:
23 explicit RegionWidget(UMLScene* scene, Uml::ID::Type id = Uml::ID::None);
24 virtual ~RegionWidget();
25
26 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
27
28 void saveToXMI1(QDomDocument& qDoc, QDomElement& qElement);
29 bool loadFromXMI1(QDomElement& qElement);
30
31 protected:
32 QSizeF minimumSize() const;
33
34 };
35
36 #endif
RegionWidget
Definition: regionwidget.h:20
RegionWidget::~RegionWidget
virtual ~RegionWidget()
Definition: regionwidget.cpp:41
RegionWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: regionwidget.cpp:48
RegionWidget::minimumSize
QSizeF minimumSize() const
Definition: regionwidget.cpp:69
RegionWidget::loadFromXMI1
bool loadFromXMI1(QDomElement &qElement)
Definition: regionwidget.cpp:101
RegionWidget::RegionWidget
RegionWidget(UMLScene *scene, Uml::ID::Type id=Uml::ID::None)
Definition: regionwidget.cpp:33
RegionWidget::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: regionwidget.cpp:88
UMLScene
Definition: umlscene.h:69
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
umlwidget.h