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

- Main Page
- Related Pages
- Modules
- 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
11 class UMLNode;
12
22 class NodeWidget : public UMLWidget
23{
24 public:
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
33 protected:
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::minimumSize
QSizeF minimumSize() const
Definition: nodewidget.cpp:112
NodeWidget::~NodeWidget
virtual ~NodeWidget()
Definition: nodewidget.cpp:38
NodeWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Definition: nodewidget.cpp:45
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: umlnode.h:22
UMLScene
Definition: umlscene.h:66
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
umlwidget.h