umbrello: umbrello/codegenerators/d/dclassdeclarationblock.h Source File

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

dclassdeclarationblock.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) 2007 Jari-Matti Mäkelä <jmjm@iki.fi> *
8 * copyright (C) 2008-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef DCLASSDECLARATIONBLOCK_H
13 #define DCLASSDECLARATIONBLOCK_H
14
15 #include "dclassifiercodedocument.h"
16 #include "ownedhierarchicalcodeblock.h"
17
18 #include <QString>
19
20 class DClassDeclarationBlock : public OwnedHierarchicalCodeBlock
21 {
22 Q_OBJECT
23 public:
24
28 explicit DClassDeclarationBlock (DClassifierCodeDocument * parentDoc, const QString &start = QString(), const QString &endText = QLatin1String("}"), const QString &comment = QString());
29
33 virtual ~DClassDeclarationBlock ();
34
38 virtual void saveToXMI1 (QDomDocument & doc, QDomElement & root);
39
43 virtual void loadFromXMI1 (QDomElement & root);
44
48 void updateContent ();
49
50 protected:
51
55 virtual void setAttributesFromObject (TextBlock * obj);
56
57 private:
58
59 void init (DClassifierCodeDocument * parent, const QString &comment);
60
61 };
62
63 #endif // DHEADERCLASSDECLARATIONBLOCK_H
OwnedHierarchicalCodeBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: ownedhierarchicalcodeblock.cpp:83
HierarchicalCodeBlock::setEndText
void setEndText(const QString &new_var)
Definition: hierarchicalcodeblock.cpp:43
ClassifierCodeDocument::parentIsInterface
bool parentIsInterface()
Definition: classifiercodedocument.cpp:418
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
HierarchicalCodeBlock::setStartText
void setStartText(const QString &text)
Definition: hierarchicalcodeblock.cpp:199
dcodegenerationpolicy.h
TextBlock::setWriteOutText
void setWriteOutText(bool write)
Definition: textblock.cpp:131
DClassifierCodeDocument
Definition: dclassifiercodedocument.h:37
UMLClassifier::INTERFACE
@ INTERFACE
Definition: classifier.h:47
dclassdeclarationblock.h
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2274
ownedhierarchicalcodeblock.h
OwnedHierarchicalCodeBlock::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: ownedhierarchicalcodeblock.cpp:57
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:17
CodeBlockWithComments::getComment
CodeComment * getComment() const
Definition: codeblockwithcomments.cpp:47
DClassDeclarationBlock::~DClassDeclarationBlock
virtual ~DClassDeclarationBlock()
Definition: dclassdeclarationblock.cpp:27
model_utils.h
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:348
dcodegenerator.h
DClassDeclarationBlock
Definition: dclassdeclarationblock.h:21
dcodedocumentation.h
CodeBlockWithComments::setComment
void setComment(CodeComment *object)
Definition: codeblockwithcomments.cpp:39
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:466
DClassDeclarationBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: dclassdeclarationblock.cpp:36
DClassDeclarationBlock::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: dclassdeclarationblock.cpp:41
UMLClassifier::findSuperClassConcepts
UMLClassifierList findSuperClassConcepts(ClassifierType type=ALL)
Definition: classifier.cpp:609
OwnedHierarchicalCodeBlock
Definition: ownedhierarchicalcodeblock.h:27
DCodeDocumentation
Definition: dcodedocumentation.h:28
DClassDeclarationBlock::updateContent
void updateContent()
Definition: dclassdeclarationblock.cpp:50
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
CodeGenerationPolicy::getCodeVerboseDocumentComments
bool getCodeVerboseDocumentComments() const
Definition: codegenerationpolicy.cpp:152
DClassDeclarationBlock::init
void init(DClassifierCodeDocument *parent, const QString &comment)
Definition: dclassdeclarationblock.cpp:132
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
dclassifiercodedocument.h
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
CodeDocument::cleanName
QString cleanName(const QString &name)
Definition: codedocument.cpp:270
ClassifierCodeDocument::getParentClassifier
UMLClassifier * getParentClassifier()
Definition: classifiercodedocument.cpp:275
uml.h
OwnedHierarchicalCodeBlock::getParentDocument
CodeDocument * getParentDocument()
Definition: ownedhierarchicalcodeblock.cpp:93
DClassDeclarationBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: dclassdeclarationblock.cpp:31
CodeGenerationPolicy::getNewLineEndingChars
QString getNewLineEndingChars() const
Definition: codegenerationpolicy.cpp:253
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLClassifier::CLASS
@ CLASS
Definition: classifier.h:47
TextBlock
Definition: textblock.h:25
Uml::Visibility::Private
@ Private
Definition: basictypes.h:61
TextBlock::setText
void setText(const QString &text)
Definition: textblock.cpp:80
DClassifierCodeDocument::getDClassName
QString getDClassName(const QString &name)
Definition: dclassifiercodedocument.cpp:87
DClassDeclarationBlock::DClassDeclarationBlock
DClassDeclarationBlock(DClassifierCodeDocument *parentDoc, const QString &start=QString(), const QString &endText=QLatin1String("}"), const QString &comment=QString())
Definition: dclassdeclarationblock.cpp:21
HierarchicalCodeBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: hierarchicalcodeblock.cpp:297