umbrello 2.32.3
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-2020 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 = 0);
30
31 void saveToXMI1(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
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: nodewidget.cpp:45
QSizeF minimumSize() const
Definition: nodewidget.cpp:112
virtual ~NodeWidget()
Definition: nodewidget.cpp:38
void saveToXMI1(QXmlStreamWriter &writer)
Definition: nodewidget.cpp:146
static const int DEPTH
pixels on Z axis
Definition: nodewidget.h:36
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