umbrello: umbrello/umlwidgets/nodewidget.h Source File

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

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
22 class 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 saveToXMI(QXmlStreamWriter& writer);
32
33protected:
34 QSizeF minimumSize() const;
35
36 static const int DEPTH = 30;
37};
38
39#endif
NodeWidget
A graphical version of a Node.
Definition nodewidget.h:23
NodeWidget::NodeWidget
NodeWidget(UMLScene *scene, UMLNode *n)
Definition nodewidget.cpp:28
NodeWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition nodewidget.cpp:45
NodeWidget::minimumSize
QSizeF minimumSize() const
Definition nodewidget.cpp:112
NodeWidget::~NodeWidget
virtual ~NodeWidget()
Definition nodewidget.cpp:38
NodeWidget::DEPTH
static const int DEPTH
pixels on Z axis
Definition nodewidget.h:36
NodeWidget::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition nodewidget.cpp:146
UMLNode
Non-graphical information for a Node.
Definition node.h:22
UMLScene
Definition umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition umlwidget.h:36
umlwidget.h