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

umbrello 2.32.0 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(QXmlStreamWriter& writer);
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
DClassDeclarationBlock
Definition: dclassdeclarationblock.h:21
DClassDeclarationBlock::init
void init(DClassifierCodeDocument *parent, const QString &comment)
Definition: dclassdeclarationblock.cpp:132
DClassDeclarationBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: dclassdeclarationblock.cpp:31
DClassDeclarationBlock::DClassDeclarationBlock
DClassDeclarationBlock(DClassifierCodeDocument *parentDoc, const QString &start=QString(), const QString &endText=QLatin1String("}"), const QString &comment=QString())
Definition: dclassdeclarationblock.cpp:21
DClassDeclarationBlock::saveToXMI1
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: dclassdeclarationblock.cpp:41
DClassDeclarationBlock::~DClassDeclarationBlock
virtual ~DClassDeclarationBlock()
Definition: dclassdeclarationblock.cpp:27
DClassDeclarationBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: dclassdeclarationblock.cpp:36
DClassDeclarationBlock::updateContent
void updateContent()
Definition: dclassdeclarationblock.cpp:50
DClassifierCodeDocument
Definition: dclassifiercodedocument.h:37
OwnedHierarchicalCodeBlock
Definition: ownedhierarchicalcodeblock.h:27
TextBlock
Definition: textblock.h:27
dclassifiercodedocument.h
ownedhierarchicalcodeblock.h