umbrello: umbrello/umlwidgets/nodewidget.h Source File

umbrello 2.32.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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2003-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef NODEWIDGET_H
12 #define NODEWIDGET_H
13
14 #include "umlwidget.h"
15
16 class UMLNode;
17
27 class NodeWidget : public UMLWidget
28 {
29 public:
30
31 NodeWidget(UMLScene * scene, UMLNode *n);
32 virtual ~NodeWidget();
33
34 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
35
36 void saveToXMI1(QXmlStreamWriter& writer);
37
38 protected:
39 QSizeF minimumSize() const;
40
41 static const int DEPTH = 30;
42 };
43
44 #endif
NodeWidget
A graphical version of a Node.
Definition: nodewidget.h:28
NodeWidget::NodeWidget
NodeWidget(UMLScene *scene, UMLNode *n)
Definition: nodewidget.cpp:33
NodeWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: nodewidget.cpp:50
NodeWidget::minimumSize
QSizeF minimumSize() const
Definition: nodewidget.cpp:117
NodeWidget::~NodeWidget
virtual ~NodeWidget()
Definition: nodewidget.cpp:43
NodeWidget::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: nodewidget.cpp:151
NodeWidget::DEPTH
static const int DEPTH
pixels on Z axis
Definition: nodewidget.h:41
UMLNode
Non-graphical information for a Node.
Definition: node.h:27
UMLScene
Definition: umlscene.h:70
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
umlwidget.h