umbrello: umbrello/codegenerators/ownedcodeblock.h Source File

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

ownedcodeblock.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 OWNEDCODEBLOCK_H
13 #define OWNEDCODEBLOCK_H
14
15 #include <QDomDocument>
16 #include <QDomElement>
17 #include <QObject>
18
19 class TextBlock;
20 class UMLObject;
21
26 class OwnedCodeBlock : public QObject
27 {
28 Q_OBJECT
29 public:
30
31 explicit OwnedCodeBlock (UMLObject * parent);
32 virtual ~OwnedCodeBlock ();
33
34 UMLObject * getParentObject ();
35
36 virtual void updateContent () = 0;
37
38 protected:
39
40 virtual void release ();
41
42 virtual void setAttributesOnNode (QDomDocument & doc, QDomElement & blockElement);
43 virtual void setAttributesFromNode (QDomElement & element);
44 virtual void setAttributesFromObject (TextBlock * obj);
45
46 private:
47
48 void initFields (UMLObject * parent);
49
50 UMLObject * m_parentObject;
51
52 public slots:
53
54 virtual void syncToParent ();
55
56 };
57
58 #endif // OWNEDCODEBLOCK_H
ownedcodeblock.h
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:425
umlrole.h
OwnedCodeBlock::updateContent
virtual void updateContent()=0
OwnedCodeBlock
Definition: ownedcodeblock.h:26
textblock.h
OwnedCodeBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: ownedcodeblock.cpp:72
Uml::RoleType::A
@ A
Definition: basictypes.h:256
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1280
association.h
UMLObject::asUMLAssociation
UMLAssociation * asUMLAssociation()
Definition: umlobject.cpp:1303
OwnedCodeBlock::m_parentObject
UMLObject * m_parentObject
Definition: ownedcodeblock.h:50
Uml::ID::Type
std::string Type
Definition: basictypes.h:368
UMLObject
The base class for UML objects.
Definition: umlobject.h:73
UMLRole
Definition: umlrole.h:24
OwnedCodeBlock::initFields
void initFields(UMLObject *parent)
Definition: ownedcodeblock.cpp:154
OwnedCodeBlock::getParentObject
UMLObject * getParentObject()
Definition: ownedcodeblock.cpp:64
OwnedCodeBlock::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: ownedcodeblock.cpp:81
UMLAssociation::getUMLRole
UMLRole * getUMLRole(Uml::RoleType::Enum role) const
Definition: association.cpp:585
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1285
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1036
UMLObject::asUMLRole
UMLRole * asUMLRole()
Definition: umlobject.cpp:1326
OwnedCodeBlock::OwnedCodeBlock
OwnedCodeBlock(UMLObject *parent)
Definition: ownedcodeblock.cpp:28
Uml::RoleType::B
@ B
Definition: basictypes.h:257
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
OwnedCodeBlock::~OwnedCodeBlock
virtual ~OwnedCodeBlock()
Definition: ownedcodeblock.cpp:38
OwnedCodeBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: ownedcodeblock.cpp:106
classifier.h
uError
#define uError()
Definition: debug_utils.h:123
uml.h
OwnedCodeBlock::release
virtual void release()
Definition: ownedcodeblock.cpp:52
debug_utils.h
UMLAssociation
Sets up association information.
Definition: association.h:32
umlobject.h
UMLRole::role
Uml::RoleType::Enum role() const
Definition: umlrole.cpp:169
TextBlock
Definition: textblock.h:24
OwnedCodeBlock::syncToParent
virtual void syncToParent()
Definition: ownedcodeblock.cpp:165
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1055
umldoc.h
UMLRole::parentAssociation
UMLAssociation * parentAssociation() const
Definition: umlrole.cpp:84