umbrello 26.03.70-1a62d36 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

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
15 class TextBlock;
16 class UMLObject;
17 class QXmlStreamWriter;
18
23 class OwnedCodeBlock : public QObject
24{
25 Q_OBJECT
26 public:
27
28 explicit OwnedCodeBlock (UMLObject * parent);
29 virtual ~OwnedCodeBlock ();
30
31 UMLObject * getParentObject ();
32
33 virtual void updateContent () = 0;
34
35 protected:
36 virtual void release ();
37
38 virtual void setAttributesOnNode (QXmlStreamWriter& writer);
39 virtual void setAttributesFromNode (QDomElement & element);
40 virtual void setAttributesFromObject (TextBlock * obj);
41
42 private:
43 void initFields (UMLObject * parent);
44
45 UMLObject * m_parentObject;
46
47 public Q_SLOTS:
48 virtual void syncToParent ();
49
50};
51
52#endif // OWNEDCODEBLOCK_H
OwnedCodeBlock
Definition: ownedcodeblock.h:24
OwnedCodeBlock::syncToParent
virtual void syncToParent()
Definition: ownedcodeblock.cpp:163
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