umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
template.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef TEMPLATE_H
7#define TEMPLATE_H
8
10
22{
23public:
24
25 UMLTemplate(UMLObject *parent, const QString& name,
26 Uml::ID::Type id = Uml::ID::None, const QString& type = QLatin1String("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
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
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:25
The base class for UML objects.
Definition: umlobject.h:70
QString name() const
Definition: umlobject.cpp:207
Sets up template information.
Definition: template.h:22
bool operator==(const UMLTemplate &rhs) const
Definition: template.cpp:87
virtual ~UMLTemplate()
Definition: template.cpp:46
virtual bool showPropertiesDialog(QWidget *parent)
Definition: template.cpp:150
virtual QString getTypeName() const
Definition: template.cpp:77
UMLTemplate(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None, const QString &type=QLatin1String("class"))
Definition: template.cpp:24
void saveToXMI(QXmlStreamWriter &writer)
Definition: template.cpp:124
virtual void copyInto(UMLObject *lhs) const
Definition: template.cpp:105
bool load1(QDomElement &element)
Definition: template.cpp:139
virtual UMLObject * clone() const
Definition: template.cpp:113
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: template.cpp:50
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
std::string Type
Definition: basictypes.h:371
Enum
Definition: basictypes.h:160
@ NoSig
Definition: basictypes.h:161