umbrello: umbrello/codegenerators/codeclassfielddeclarationblock.h Source File

umbrello 2.32.1 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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
8 * copyright (C) 2004-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef CODECLASSFIELDDECLARATIONBLOCK_H
13 #define CODECLASSFIELDDECLARATIONBLOCK_H
14
15 class UMLObject;
16 class CodeClassField;
17
18 #include "codeblockwithcomments.h"
19 #include "ownedcodeblock.h"
20
29 class CodeClassFieldDeclarationBlock : public OwnedCodeBlock, public CodeBlockWithComments
30 {
31 friend class CodeClassField;
32 Q_OBJECT
33 public:
34
35 explicit CodeClassFieldDeclarationBlock(CodeClassField * parent);
36 virtual ~CodeClassFieldDeclarationBlock();
37
38 CodeClassField * getParentClassField();
39
40 UMLObject * getParentObject();
41
42 virtual void setAttributesFromObject(TextBlock * obj);
43
44 virtual void updateContent() = 0;
45
46 virtual void saveToXMI1(QDomDocument & doc, QDomElement & root);
47
48 virtual void loadFromXMI1(QDomElement & root);
49
50 protected:
51
52 virtual void release();
53
54 virtual void setAttributesOnNode(QDomDocument & doc, QDomElement & blockElement);
55
56 virtual void setAttributesFromNode(QDomElement & element);
57
58 void forceRelease();
59
60 private:
61
62 CodeClassField * m_parentclassfield;
63 void init(CodeClassField * parent);
64
65 public slots:
66
67 virtual void syncToParent();
68
69 };
70
71 #endif // CODECLASSFIELDDECLARATIONBLOCK_H
ownedcodeblock.h
umlrole.h
CodeClassFieldDeclarationBlock::m_parentclassfield
CodeClassField * m_parentclassfield
Definition: codeclassfielddeclarationblock.h:62
codeclassfield.h
OwnedCodeBlock
Definition: ownedcodeblock.h:27
CodeClassFieldDeclarationBlock
Definition: codeclassfielddeclarationblock.h:30
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
codeblockwithcomments.h
CodeClassFieldDeclarationBlock::CodeClassFieldDeclarationBlock
CodeClassFieldDeclarationBlock(CodeClassField *parent)
Definition: codeclassfielddeclarationblock.cpp:20
TextBlock::setWriteOutText
void setWriteOutText(bool write)
Definition: textblock.cpp:131
CodeClassFieldDeclarationBlock::~CodeClassFieldDeclarationBlock
virtual ~CodeClassFieldDeclarationBlock()
Definition: codeclassfielddeclarationblock.cpp:30
CodeClassFieldDeclarationBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: codeclassfielddeclarationblock.cpp:90
CodeClassFieldDeclarationBlock::forceRelease
void forceRelease()
Definition: codeclassfielddeclarationblock.cpp:65
CodeBlockWithComments::getComment
CodeComment * getComment() const
Definition: codeblockwithcomments.cpp:47
CodeClassFieldDeclarationBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: codeclassfielddeclarationblock.cpp:110
CodeClassField
Definition: codeclassfield.h:30
CodeDocument
Definition: codedocument.h:33
CodeClassFieldDeclarationBlock::getParentObject
UMLObject * getParentObject()
Definition: codeclassfielddeclarationblock.cpp:48
CodeClassFieldDeclarationBlock::syncToParent
virtual void syncToParent()
Definition: codeclassfielddeclarationblock.cpp:136
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLRole
Definition: umlrole.h:25
OwnedCodeBlock::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: ownedcodeblock.cpp:81
UMLObject::asUMLRole
UMLRole * asUMLRole()
Definition: umlobject.cpp:1326
codeclassfielddeclarationblock.h
CodeClassFieldDeclarationBlock::release
virtual void release()
Definition: codeclassfielddeclarationblock.cpp:57
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
CodeBlockWithComments
Definition: codeblockwithcomments.h:24
CodeClassFieldDeclarationBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: codeclassfielddeclarationblock.cpp:122
CodeBlock::contentType
ContentType contentType() const
Definition: codeblock.cpp:54
TextBlock::release
virtual void release()
Definition: textblock.cpp:275
CodeBlock::AutoGenerated
@ AutoGenerated
the content was generated by code generation itself
Definition: codeblock.h:28
CodeBlockWithComments::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: codeblockwithcomments.cpp:106
TextBlock::setCanDelete
void setCanDelete(bool canDelete)
Definition: textblock.cpp:50
OwnedCodeBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: ownedcodeblock.cpp:106
CodeClassFieldDeclarationBlock::init
void init(CodeClassField *parent)
Definition: codeclassfielddeclarationblock.cpp:162
OwnedCodeBlock::release
virtual void release()
Definition: ownedcodeblock.cpp:52
TextBlock
Definition: textblock.h:25
CodeClassFieldDeclarationBlock::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: codeclassfielddeclarationblock.cpp:99
CodeBlockWithComments::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: codeblockwithcomments.cpp:69
CodeClassFieldDeclarationBlock::getParentClassField
CodeClassField * getParentClassField()
Definition: codeclassfielddeclarationblock.cpp:40
CodeClassFieldDeclarationBlock::updateContent
virtual void updateContent()=0
CodeParameter::getParentObject
UMLObject * getParentObject()
Definition: codeparameter.cpp:141
CodeClassFieldDeclarationBlock::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: codeclassfielddeclarationblock.cpp:80
CodeBlockWithComments::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: codeblockwithcomments.cpp:84