umbrello  2.34.3
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  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 
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 
48 
49 public slots:
50 
51  virtual void syncToParent ();
52 
53 };
54 
55 #endif // OWNEDCODEBLOCK_H
ownedcodeblock.h
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:421
umlrole.h
OwnedCodeBlock::updateContent
virtual void updateContent()=0
OwnedCodeBlock
Definition: ownedcodeblock.h:23
textblock.h
OwnedCodeBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: ownedcodeblock.cpp:71
Uml::RoleType::A
@ A
Definition: basictypes.h:237
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1306
logError1
#define logError1(s, a)
Definition: uml.h:543
association.h
OwnedCodeBlock::m_parentObject
UMLObject * m_parentObject
Definition: ownedcodeblock.h:47
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
UMLObject
The base class for UML objects.
Definition: umlobject.h:69
UMLRole
Definition: umlrole.h:19
OwnedCodeBlock::initFields
void initFields(UMLObject *parent)
Definition: ownedcodeblock.cpp:152
OwnedCodeBlock::getParentObject
UMLObject * getParentObject()
Definition: ownedcodeblock.cpp:63
UMLAssociation::getUMLRole
UMLRole * getUMLRole(Uml::RoleType::Enum role) const
Definition: association.cpp:595
UMLObject::asUMLAssociation
UMLAssociation * asUMLAssociation()
Definition: umlobject.cpp:1415
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1311
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1051
number
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Library General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: LGPL-2.0-only.txt:368
OwnedCodeBlock::OwnedCodeBlock
OwnedCodeBlock(UMLObject *parent)
Definition: ownedcodeblock.cpp:27
Uml::RoleType::B
@ B
Definition: basictypes.h:238
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:276
OwnedCodeBlock::~OwnedCodeBlock
virtual ~OwnedCodeBlock()
Definition: ownedcodeblock.cpp:37
OwnedCodeBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: ownedcodeblock.cpp:105
classifier.h
uml.h
OwnedCodeBlock::release
virtual void release()
Definition: ownedcodeblock.cpp:51
debug_utils.h
UMLAssociation
Sets up association information.
Definition: association.h:28
umlobject.h
UMLRole::role
Uml::RoleType::Enum role() const
Definition: umlrole.cpp:168
TextBlock
Definition: textblock.h:22
OwnedCodeBlock::syncToParent
virtual void syncToParent()
Definition: ownedcodeblock.cpp:163
UMLObject::asUMLRole
UMLRole * asUMLRole()
Definition: umlobject.cpp:1438
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1063
umldoc.h
UMLRole::parentAssociation
UMLAssociation * parentAssociation() const
Definition: umlrole.cpp:83
OwnedCodeBlock::setAttributesOnNode
virtual void setAttributesOnNode(QXmlStreamWriter &writer)
Definition: ownedcodeblock.cpp:80
logError2
#define logError2(s, a, b)
Definition: uml.h:549