umbrello 26.07.70-c53146a 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

umltemplate.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 "umlclassifierlistitem.h"
10
21 class UMLTemplate : public UMLClassifierListItem
22{
23 public:
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
47 protected:
48
49 bool load1(QDomElement & element);
50
51};
52
53#endif
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: umlclassifierlistitem.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: umltemplate.h:22
UMLTemplate::operator==
bool operator==(const UMLTemplate &rhs) const
Definition: umltemplate.cpp:87
UMLTemplate::~UMLTemplate
virtual ~UMLTemplate()
Definition: umltemplate.cpp:46
UMLTemplate::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent)
Definition: umltemplate.cpp:150
UMLTemplate::getTypeName
virtual QString getTypeName() const
Definition: umltemplate.cpp:77
UMLTemplate::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: umltemplate.cpp:124
UMLTemplate::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umltemplate.cpp:105
UMLTemplate::load1
bool load1(QDomElement &element)
Definition: umltemplate.cpp:139
UMLTemplate::clone
virtual UMLObject * clone() const
Definition: umltemplate.cpp:113
UMLTemplate::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: umltemplate.cpp:50
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
umlclassifierlistitem.h