umbrello  2.32.1
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(QXmlStreamWriter& writer);
29  bool loadFromXMI1(QDomElement& qElement);
30 
31 protected:
32  QSizeF minimumSize() const;
33 
34 };
35 
36 #endif
Definition: regionwidget.h:20
void saveToXMI1(QXmlStreamWriter &writer)
Definition: regionwidget.cpp:91
virtual ~RegionWidget()
Definition: regionwidget.cpp:44
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: regionwidget.cpp:51
QSizeF minimumSize() const
Definition: regionwidget.cpp:72
bool loadFromXMI1(QDomElement &qElement)
Definition: regionwidget.cpp:104
RegionWidget(UMLScene *scene, Uml::ID::Type id=Uml::ID::None)
Definition: regionwidget.cpp:36
Definition: umlscene.h:70
The base class for graphical UML objects.
Definition: umlwidget.h:41
const Type None
special value for uninitialized ID
Definition: basictypes.h:387
std::string Type
Definition: basictypes.h:385