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 * 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(QDomDocument& qDoc, QDomElement& qElement);
37
38 protected:
39 QSizeF minimumSize() const;
40
41 static const int DEPTH = 30;
42 };
43
44 #endif
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
WidgetBase::textColor
QColor textColor() const
Definition: widgetbase.cpp:335
umlview.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
UMLWidget::setPenFromSettings
void setPenFromSettings(QPainter &p)
Definition: umlwidget.cpp:1392
UMLWidget::FT_BOLD_ITALIC
@ FT_BOLD_ITALIC
Definition: umlwidget.h:221
UMLWidget::FT_BOLD
@ FT_BOLD
Definition: umlwidget.h:218
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
UMLScene::backgroundColor
const QColor & backgroundColor() const
Definition: umlscene.cpp:1370
NodeWidget::~NodeWidget
virtual ~NodeWidget()
Definition: nodewidget.cpp:42
NodeWidget::DEPTH
static const int DEPTH
pixels on Z axis
Definition: nodewidget.h:41
NodeWidget::NodeWidget
NodeWidget(UMLScene *scene, UMLNode *n)
Definition: nodewidget.cpp:32
UMLWidget::getFontMetrics
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Definition: umlwidget.cpp:1936
WidgetBase::font
virtual QFont font() const
Definition: widgetbase.cpp:543
nodewidget.h
node.h
WidgetBase::fillColor
QColor fillColor() const
Definition: widgetbase.cpp:377
umlwidget.h
UMLWidget::defaultMargin
static const int defaultMargin
Definition: umlwidget.h:49
UMLWidget::minimumSize
virtual QSizeF minimumSize() const
Definition: umlwidget.cpp:219
UMLWidget::isInstance
bool isInstance() const
Definition: umlwidget.h:144
NodeWidget::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: nodewidget.cpp:150
WidgetBase::m_scene
UMLScene * m_scene
Definition: widgetbase.h:316
NodeWidget
A graphical version of a Node.
Definition: nodewidget.h:28
WidgetBase::useFillColor
bool useFillColor()
Definition: widgetbase.cpp:419
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
UMLWidget::instanceName
QString instanceName() const
Definition: umlwidget.h:165
DEBUG
#define DEBUG(src)
Definition: debug_utils.h:129
umlscene.h
NodeWidget::minimumSize
QSizeF minimumSize() const
Definition: nodewidget.cpp:116
debug_utils.h
UMLScene
Definition: umlscene.h:69
DBG_SRC
#define DBG_SRC
Definition: import_utils.cpp:43
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
WidgetBase::m_umlObject
QPointer< UMLObject > m_umlObject
Definition: widgetbase.h:317
NodeWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: nodewidget.cpp:49
UMLNode
Non-graphical information for a Node.
Definition: node.h:27
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869