umbrello: umbrello/codegenerators/codeclassfielddeclarationblock.h Source File

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

codeclassfielddeclarationblock.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 CODECLASSFIELDDECLARATIONBLOCK_H
9#define CODECLASSFIELDDECLARATIONBLOCK_H
10
11class UMLObject;
12class CodeClassField;
13
14#include "codeblockwithcomments.h"
15#include "ownedcodeblock.h"
16
25 class CodeClassFieldDeclarationBlock : public OwnedCodeBlock, public CodeBlockWithComments
26{
27 friend class CodeClassField;
28 Q_OBJECT
29public:
30
31 explicit CodeClassFieldDeclarationBlock(CodeClassField * parent);
32 virtual ~CodeClassFieldDeclarationBlock();
33
34 CodeClassField * getParentClassField();
35
36 UMLObject * getParentObject();
37
38 virtual void setAttributesFromObject(TextBlock * obj);
39
40 virtual void updateContent() = 0;
41
42 virtual void saveToXMI1(QXmlStreamWriter& writer);
43
44 virtual void loadFromXMI1(QDomElement & root);
45
46protected:
47
48 virtual void release();
49
50 virtual void setAttributesOnNode(QXmlStreamWriter& writer);
51
52 virtual void setAttributesFromNode(QDomElement & element);
53
54 void forceRelease();
55
56private:
57
58 CodeClassField * m_parentclassfield;
59 void init(CodeClassField * parent);
60
61public slots:
62
63 virtual void syncToParent();
64
65};
66
67#endif // CODECLASSFIELDDECLARATIONBLOCK_H
CodeBlockWithComments
Definition: codeblockwithcomments.h:20
CodeClassFieldDeclarationBlock
Definition: codeclassfielddeclarationblock.h:26
CodeClassFieldDeclarationBlock::getParentObject
UMLObject * getParentObject()
Definition: codeclassfielddeclarationblock.cpp:46
CodeClassFieldDeclarationBlock::forceRelease
void forceRelease()
Definition: codeclassfielddeclarationblock.cpp:63
CodeClassFieldDeclarationBlock::init
void init(CodeClassField *parent)
Definition: codeclassfielddeclarationblock.cpp:160
CodeClassFieldDeclarationBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: codeclassfielddeclarationblock.cpp:120
CodeClassFieldDeclarationBlock::~CodeClassFieldDeclarationBlock
virtual ~CodeClassFieldDeclarationBlock()
Definition: codeclassfielddeclarationblock.cpp:28
CodeClassFieldDeclarationBlock::release
virtual void release()
Definition: codeclassfielddeclarationblock.cpp:55
CodeClassFieldDeclarationBlock::setAttributesOnNode
virtual void setAttributesOnNode(QXmlStreamWriter &writer)
Definition: codeclassfielddeclarationblock.cpp:97
CodeClassFieldDeclarationBlock::getParentClassField
CodeClassField * getParentClassField()
Definition: codeclassfielddeclarationblock.cpp:38
CodeClassFieldDeclarationBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: codeclassfielddeclarationblock.cpp:108
CodeClassFieldDeclarationBlock::updateContent
virtual void updateContent()=0
CodeClassFieldDeclarationBlock::saveToXMI1
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: codeclassfielddeclarationblock.cpp:78
CodeClassFieldDeclarationBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: codeclassfielddeclarationblock.cpp:88
CodeClassFieldDeclarationBlock::CodeClassFieldDeclarationBlock
CodeClassFieldDeclarationBlock(CodeClassField *parent)
Definition: codeclassfielddeclarationblock.cpp:18
CodeClassFieldDeclarationBlock::m_parentclassfield
CodeClassField * m_parentclassfield
Definition: codeclassfielddeclarationblock.h:58
CodeClassFieldDeclarationBlock::syncToParent
virtual void syncToParent()
Definition: codeclassfielddeclarationblock.cpp:134
CodeClassField
Definition: codeclassfield.h:26
OwnedCodeBlock
Definition: ownedcodeblock.h:24
TextBlock
Definition: textblock.h:23
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
codeblockwithcomments.h
ownedcodeblock.h