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

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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

dclassdeclarationblock.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2007 Jari-Matti Mäkelä <jmjm@iki.fi>
5 SPDX-FileCopyrightText: 2008-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef DCLASSDECLARATIONBLOCK_H
9#define DCLASSDECLARATIONBLOCK_H
10
11#include "dclassifiercodedocument.h"
12#include "ownedhierarchicalcodeblock.h"
13
14#include <QString>
15
16 class DClassDeclarationBlock : public OwnedHierarchicalCodeBlock
17{
18 Q_OBJECT
19public:
20
24 explicit DClassDeclarationBlock (DClassifierCodeDocument * parentDoc, const QString &start = QString(), const QString &endText = QStringLiteral("}"), const QString &comment = QString());
25
29 virtual ~DClassDeclarationBlock ();
30
34 virtual void saveToXMI(QXmlStreamWriter& writer);
35
39 virtual void loadFromXMI (QDomElement & root);
40
44 void updateContent ();
45
46protected:
47
51 virtual void setAttributesFromObject (TextBlock * obj);
52
53private:
54
55 void init (DClassifierCodeDocument * parent, const QString &comment);
56
57};
58
59#endif // DHEADERCLASSDECLARATIONBLOCK_H
DClassDeclarationBlock
Definition dclassdeclarationblock.h:17
DClassDeclarationBlock::init
void init(DClassifierCodeDocument *parent, const QString &comment)
Definition dclassdeclarationblock.cpp:128
DClassDeclarationBlock::loadFromXMI
virtual void loadFromXMI(QDomElement &root)
Definition dclassdeclarationblock.cpp:27
DClassDeclarationBlock::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition dclassdeclarationblock.cpp:37
DClassDeclarationBlock::~DClassDeclarationBlock
virtual ~DClassDeclarationBlock()
Definition dclassdeclarationblock.cpp:23
DClassDeclarationBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition dclassdeclarationblock.cpp:32
DClassDeclarationBlock::updateContent
void updateContent()
Definition dclassdeclarationblock.cpp:46
DClassifierCodeDocument
Definition dclassifiercodedocument.h:33
OwnedHierarchicalCodeBlock
Definition ownedhierarchicalcodeblock.h:23
TextBlock
Definition textblock.h:23
dclassifiercodedocument.h
ownedhierarchicalcodeblock.h