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

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-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef CODECLASSFIELDDECLARATIONBLOCK_H
9#define CODECLASSFIELDDECLARATIONBLOCK_H
10
11 class UMLObject;
12 class 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
29 public:
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 saveToXMI(QXmlStreamWriter& writer);
43
44 virtual void loadFromXMI(QDomElement & root);
45
46 protected:
47
48 virtual void release();
49
50 virtual void setAttributesOnNode(QXmlStreamWriter& writer);
51
52 virtual void setAttributesFromNode(QDomElement & element);
53
54 void forceRelease();
55
56 private:
57
58 CodeClassField * m_parentclassfield;
59 void init(CodeClassField * parent);
60
61 public Q_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::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: codeclassfielddeclarationblock.cpp:78
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::loadFromXMI
virtual void loadFromXMI(QDomElement &root)
Definition: codeclassfielddeclarationblock.cpp:88
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