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

- Main Page
- Related Pages
- Topics
- 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
37 virtual void release ();
38
39 virtual void setAttributesOnNode (QXmlStreamWriter& writer);
40 virtual void setAttributesFromNode (QDomElement & element);
41 virtual void setAttributesFromObject (TextBlock * obj);
42
43 private:
44
45 void initFields (UMLObject * parent);
46
47 UMLObject * m_parentObject;
48
49 public slots:
50
51 virtual void syncToParent ();
52
53};
54
55#endif // OWNEDCODEBLOCK_H
OwnedCodeBlock
Definition ownedcodeblock.h:24
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:47
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