umbrello: umbrello/umlmodel/template.h Source File

umbrello 2.38.2 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

template.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef TEMPLATE_H
7#define TEMPLATE_H
8
9#include "classifierlistitem.h"
10
21 class UMLTemplate : public UMLClassifierListItem
22{
23public:
24
25 UMLTemplate(UMLObject *parent, const QString& name,
26 Uml::ID::Type id = Uml::ID::None, const QString& type = QStringLiteral("class"));
27
28 explicit UMLTemplate(UMLObject *parent);
29
30 bool operator==(const UMLTemplate &rhs) const;
31
32 virtual void copyInto(UMLObject *lhs) const;
33
34 virtual UMLObject* clone() const;
35
36 virtual ~UMLTemplate();
37
38 QString toString(Uml::SignatureType::Enum sig = Uml::SignatureType::NoSig,
39 bool withStereotype=false) const;
40
41 virtual QString getTypeName() const;
42
43 virtual bool showPropertiesDialog(QWidget* parent);
44
45 void saveToXMI(QXmlStreamWriter& writer);
46
47protected:
48
49 bool load1(QDomElement & element);
50
51};
52
53#endif
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:25
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
UMLTemplate
Sets up template information.
Definition: template.h:22
UMLTemplate::operator==
bool operator==(const UMLTemplate &rhs) const
Definition: template.cpp:87
UMLTemplate::~UMLTemplate
virtual ~UMLTemplate()
Definition: template.cpp:46
UMLTemplate::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent)
Definition: template.cpp:150
UMLTemplate::getTypeName
virtual QString getTypeName() const
Definition: template.cpp:77
UMLTemplate::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: template.cpp:124
UMLTemplate::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: template.cpp:105
UMLTemplate::load1
bool load1(QDomElement &element)
Definition: template.cpp:139
UMLTemplate::clone
virtual UMLObject * clone() const
Definition: template.cpp:113
UMLTemplate::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: template.cpp:50
classifierlistitem.h
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:160
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:161