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

datatypewidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef DATATYPEWIDGET_H
7#define DATATYPEWIDGET_H
8
9#include "umlwidget.h"
10
11 class UMLClassifier;
12
13#define DATATYPE_MARGIN 5
14
24 class DatatypeWidget : public UMLWidget
25{
26 Q_OBJECT
27 public:
28 DatatypeWidget(UMLScene *scene, UMLClassifier *d);
29 virtual ~DatatypeWidget();
30
31 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
32
33 bool loadFromXMI(QDomElement& qElement);
34 void saveToXMI(QXmlStreamWriter& writer);
35
36 public Q_SLOTS:
37
38 protected:
39 QSizeF minimumSize() const;
40
41};
42
43#endif
DatatypeWidget
A graphical version of an datatype.
Definition datatypewidget.h:25
DatatypeWidget::minimumSize
QSizeF minimumSize() const
Definition datatypewidget.cpp:100
DatatypeWidget::~DatatypeWidget
virtual ~DatatypeWidget()
Definition datatypewidget.cpp:39
DatatypeWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition datatypewidget.cpp:46
DatatypeWidget::DatatypeWidget
DatatypeWidget(UMLScene *scene, UMLClassifier *d)
Definition datatypewidget.cpp:30
DatatypeWidget::loadFromXMI
bool loadFromXMI(QDomElement &qElement)
Definition datatypewidget.cpp:82
DatatypeWidget::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition datatypewidget.cpp:90
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLScene
Definition umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition umlwidget.h:36
umlwidget.h