umbrello: umbrello/codegenerators/ownedcodeblock.h Source File

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

ownedcodeblock.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov>
5 SPDX-FileCopyrightText: 2004-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef OWNEDCODEBLOCK_H
9#define OWNEDCODEBLOCK_H
10
11#include <QDomDocument>
12#include <QDomElement>
13#include <QObject>
14
15class TextBlock;
16class UMLObject;
17class QXmlStreamWriter;
18
23 class OwnedCodeBlock : public QObject
24{
25 Q_OBJECT
26public:
27
28 explicit OwnedCodeBlock (UMLObject * parent);
29 virtual ~OwnedCodeBlock ();
30
31 UMLObject * getParentObject ();
32
33 virtual void updateContent () = 0;
34
35protected:
36 virtual void release ();
37
38 virtual void setAttributesOnNode (QXmlStreamWriter& writer);
39 virtual void setAttributesFromNode (QDomElement & element);
40 virtual void setAttributesFromObject (TextBlock * obj);
41
42private:
43 void initFields (UMLObject * parent);
44
45 UMLObject * m_parentObject;
46
47public Q_SLOTS:
48 virtual void syncToParent ();
49
50};
51
52#endif // OWNEDCODEBLOCK_H
OwnedCodeBlock::syncToParent
virtual void syncToParent()
Definition ownedcodeblock.cpp:163
OwnedCodeBlock::OwnedCodeBlock
OwnedCodeBlock(UMLObject *parent)
Definition ownedcodeblock.cpp:27
OwnedCodeBlock::setAttributesOnNode
virtual void setAttributesOnNode(QXmlStreamWriter &writer)
Definition ownedcodeblock.cpp:80
OwnedCodeBlock::updateContent
virtual void updateContent()=0
OwnedCodeBlock::~OwnedCodeBlock
virtual ~OwnedCodeBlock()
Definition ownedcodeblock.cpp:37
OwnedCodeBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition ownedcodeblock.cpp:105
OwnedCodeBlock::m_parentObject
UMLObject * m_parentObject
Definition ownedcodeblock.h:45
OwnedCodeBlock::initFields
void initFields(UMLObject *parent)
Definition ownedcodeblock.cpp:152
OwnedCodeBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition ownedcodeblock.cpp:71
OwnedCodeBlock::getParentObject
UMLObject * getParentObject()
Definition ownedcodeblock.cpp:63
OwnedCodeBlock::release
virtual void release()
Definition ownedcodeblock.cpp:51
TextBlock
Definition textblock.h:23
UMLObject
The base class for UML objects.
Definition umlobject.h:70