umbrello: umbrello/uml1model/template.h Source File

umbrello 2.32.3 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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2003-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef TEMPLATE_H
12 #define TEMPLATE_H
13
14 #include "classifierlistitem.h"
15
26 class UMLTemplate : public UMLClassifierListItem
27 {
28 public:
29
30 UMLTemplate(UMLObject *parent, const QString& name,
31 Uml::ID::Type id = Uml::ID::None, const QString& type = QLatin1String("class"));
32
33 explicit UMLTemplate(UMLObject *parent);
34
35 bool operator==(const UMLTemplate &rhs) const;
36
37 virtual void copyInto(UMLObject *lhs) const;
38
39 virtual UMLObject* clone() const;
40
41 virtual ~UMLTemplate();
42
43 QString toString(Uml::SignatureType::Enum sig = Uml::SignatureType::NoSig, bool withStereotype=false);
44
45 virtual QString getTypeName() const;
46
47 virtual bool showPropertiesDialog(QWidget* parent);
48
49 void saveToXMI1(QDomDocument & qDoc, QDomElement & qElement);
50
51 protected:
52
53 bool load1(QDomElement & element);
54
55 };
56
57 #endif
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLTemplate
Sets up template information.
Definition: template.h:27
UMLTemplate::operator==
bool operator==(const UMLTemplate &rhs) const
Definition: template.cpp:90
UMLTemplate::~UMLTemplate
virtual ~UMLTemplate()
Definition: template.cpp:50
UMLTemplate::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent)
Definition: template.cpp:150
UMLTemplate::getTypeName
virtual QString getTypeName() const
Definition: template.cpp:80
UMLTemplate::UMLTemplate
UMLTemplate(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None, const QString &type=QLatin1String("class"))
Definition: template.cpp:28
UMLTemplate::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: template.cpp:54
UMLTemplate::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: template.cpp:108
UMLTemplate::load1
bool load1(QDomElement &element)
Definition: template.cpp:139
UMLTemplate::clone
virtual UMLObject * clone() const
Definition: template.cpp:116
UMLTemplate::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: template.cpp:127
classifierlistitem.h
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:162
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:163