umbrello 2.39.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
nodewidget.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 NODEWIDGET_H
7#define NODEWIDGET_H
8
9#include "umlwidget.h"
10
11class UMLNode;
12
22class NodeWidget : public UMLWidget
23{
24public:
25
26 NodeWidget(UMLScene * scene, UMLNode *n);
27 virtual ~NodeWidget();
28
29 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
30
31 void saveToXMI(QXmlStreamWriter& writer);
32
33protected:
34 QSizeF minimumSize() const;
35
36 static const int DEPTH = 30;
37};
38
39#endif
A graphical version of a Node.
Definition nodewidget.h:23
NodeWidget(UMLScene *scene, UMLNode *n)
Definition nodewidget.cpp:28
QSizeF minimumSize() const
Definition nodewidget.cpp:112
virtual ~NodeWidget()
Definition nodewidget.cpp:38
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Definition nodewidget.cpp:45
static const int DEPTH
pixels on Z axis
Definition nodewidget.h:36
void saveToXMI(QXmlStreamWriter &writer)
Definition nodewidget.cpp:146
Non-graphical information for a Node.
Definition node.h:22
Definition umlscene.h:65
The base class for graphical UML objects.
Definition umlwidget.h:36