umbrello: umbrello/umlmodel/node.h Source File

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

node.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 NODE_H
7#define NODE_H
8
9#include "umlcanvasobject.h"
10
21 class UMLNode : public UMLCanvasObject
22{
23 Q_OBJECT
24public:
25
26 explicit UMLNode(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
27 virtual ~UMLNode();
28
29 virtual void init();
30
31 virtual UMLObject* clone() const;
32
33 void saveToXMI(QXmlStreamWriter& writer);
34
35protected:
36
37 bool load1(QDomElement & element);
38
39};
40
41#endif
UMLCanvasObject::UMLCanvasObject
UMLCanvasObject(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition umlcanvasobject.cpp:32
UMLNode::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition node.cpp:50
UMLNode::init
virtual void init()
Definition node.cpp:32
UMLNode::load1
bool load1(QDomElement &element)
Definition node.cpp:59
UMLNode::UMLNode
UMLNode(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition node.cpp:16
UMLNode::~UMLNode
virtual ~UMLNode()
Definition node.cpp:25
UMLNode::clone
virtual UMLObject * clone() const
Definition node.cpp:40
UMLObject::UMLObject
UMLObject(const UMLObject &other)
Definition umlobject.cpp:44
UMLObject::name
QString name() const
Definition umlobject.cpp:207
Uml::ID::None
const Type None
special value for uninitialized ID
Definition basictypes.h:373
Uml::ID::Type
std::string Type
Definition basictypes.h:371
umlcanvasobject.h