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
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
WidgetBase::setDocumentation
virtual void setDocumentation(const QString &doc)
Definition: widgetbase.cpp:294
UMLWidget::setPenFromSettings
void setPenFromSettings(QPainter &p)
Definition: umlwidget.cpp:1392
UMLWidget::FT_NORMAL
@ FT_NORMAL
Definition: umlwidget.h:217
RegionWidget
Definition: regionwidget.h:20
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
REGION_HEIGHT
#define REGION_HEIGHT
Definition: regionwidget.cpp:23
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
RegionWidget::loadFromXMI1
bool loadFromXMI1(QDomElement &qElement)
Definition: regionwidget.cpp:101
REGION_MARGIN
#define REGION_MARGIN
Definition: regionwidget.cpp:21
RegionWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: regionwidget.cpp:48
RegionWidget::RegionWidget
RegionWidget(UMLScene *scene, Uml::ID::Type id=Uml::ID::None)
Definition: regionwidget.cpp:33
UMLWidget::getFontMetrics
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Definition: umlwidget.cpp:1936
umlwidget.h
RegionWidget::minimumSize
QSizeF minimumSize() const
Definition: regionwidget.cpp:69
basictypes.h
WidgetBase::documentation
QString documentation() const
Definition: widgetbase.cpp:269
RegionWidget::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: regionwidget.cpp:88
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
Uml
Definition: basictypes.cpp:37
REGION_WIDTH
#define REGION_WIDTH
Definition: regionwidget.cpp:22
debug_utils.h
UMLScene
Definition: umlscene.h:69
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
WidgetBase::setName
virtual void setName(const QString &strName)
Definition: widgetbase.cpp:322
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
UMLWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: umlwidget.cpp:2067
RegionWidget::~RegionWidget
virtual ~RegionWidget()
Definition: regionwidget.cpp:41
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869
regionwidget.h