umbrello: umbrello/umlwidgets/datatypewidget.h Source File

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

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
11class UMLClassifier;
12
13#define DATATYPE_MARGIN 5
14
24 class DatatypeWidget : public UMLWidget
25{
26 Q_OBJECT
27public:
28 DatatypeWidget(UMLScene *scene, UMLClassifier *d);
29 virtual ~DatatypeWidget();
30
31 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
32
33 bool loadFromXMI(QDomElement& qElement);
34 void saveToXMI(QXmlStreamWriter& writer);
35
36public Q_SLOTS:
37
38protected:
39 QSizeF minimumSize() const;
40
41};
42
43#endif
DatatypeWidget::minimumSize
QSizeF minimumSize() const
Definition datatypewidget.cpp:100
DatatypeWidget::~DatatypeWidget
virtual ~DatatypeWidget()
Definition datatypewidget.cpp:39
DatatypeWidget::DatatypeWidget
DatatypeWidget(UMLScene *scene, UMLClassifier *d)
Definition datatypewidget.cpp:30
DatatypeWidget::loadFromXMI
bool loadFromXMI(QDomElement &qElement)
Definition datatypewidget.cpp:82
DatatypeWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Definition datatypewidget.cpp:46
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::UMLWidget
UMLWidget(UMLScene *scene, WidgetType type=wt_UMLWidget, UMLObject *o=nullptr)
Definition umlwidget.cpp:86
umlwidget.h