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

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

- File List
- File Members

cppheaderclassdeclarationblock.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-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef CPPHEADERCLASSDECLARATIONBLOCK_H
9#define CPPHEADERCLASSDECLARATIONBLOCK_H
10
11#include "cppheadercodedocument.h"
12#include "ownedhierarchicalcodeblock.h"
13
14#include <QString>
15
16 class CPPHeaderClassDeclarationBlock : public OwnedHierarchicalCodeBlock
17{
18 Q_OBJECT
19 public:
20
24 explicit CPPHeaderClassDeclarationBlock (CPPHeaderCodeDocument * parentDoc, const QString &start = QString(), const QString &endText = QStringLiteral("}"), const QString &comment = QString());
25
29 virtual ~CPPHeaderClassDeclarationBlock ();
30
34 void updateContent ();
35
39 virtual void saveToXMI(QXmlStreamWriter& writer);
40
41 virtual void loadFromXMI (QDomElement & root);
42
43 protected:
44
48 virtual void setAttributesFromObject (TextBlock * obj);
49
50 private:
51
52 void init (CPPHeaderCodeDocument * parent, const QString &comment);
53
54};
55
56#endif // CPPHEADERCLASSDECLARATIONBLOCK_H
CPPHeaderClassDeclarationBlock
Definition: cppheaderclassdeclarationblock.h:17
CPPHeaderClassDeclarationBlock::init
void init(CPPHeaderCodeDocument *parent, const QString &comment)
Definition: cppheaderclassdeclarationblock.cpp:125
CPPHeaderClassDeclarationBlock::~CPPHeaderClassDeclarationBlock
virtual ~CPPHeaderClassDeclarationBlock()
Definition: cppheaderclassdeclarationblock.cpp:22
CPPHeaderClassDeclarationBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: cppheaderclassdeclarationblock.cpp:36
CPPHeaderClassDeclarationBlock::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: cppheaderclassdeclarationblock.cpp:44
CPPHeaderClassDeclarationBlock::loadFromXMI
virtual void loadFromXMI(QDomElement &root)
Definition: cppheaderclassdeclarationblock.cpp:29
CPPHeaderClassDeclarationBlock::updateContent
void updateContent()
Definition: cppheaderclassdeclarationblock.cpp:56
CPPHeaderCodeDocument
Definition: cppheadercodedocument.h:32
OwnedHierarchicalCodeBlock
Definition: ownedhierarchicalcodeblock.h:23
TextBlock
Definition: textblock.h:23
cppheadercodedocument.h
ownedhierarchicalcodeblock.h