umbrello  2.32.2
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 
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(QXmlStreamWriter& writer);
50 
51 protected:
52 
53  bool load1(QDomElement & element);
54 
55 };
56 
57 #endif
template.h
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLTemplate::getTypeName
virtual QString getTypeName() const
Definition: template.cpp:80
UMLObject::save1
void save1(const QString &tag, QXmlStreamWriter &writer)
Definition: umlobject.cpp:854
UMLTemplate::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent)
Definition: template.cpp:150
UMLTemplate::~UMLTemplate
virtual ~UMLTemplate()
Definition: template.cpp:50
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:404
UMLObject::m_SecondaryId
QString m_SecondaryId
Definition: umlobject.h:291
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1331
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:678
UMLTemplateDialog
Definition: umltemplatedialog.h:31
Uml::ID::Type
std::string Type
Definition: basictypes.h:402
UMLTemplate::load1
bool load1(QDomElement &element)
Definition: template.cpp:139
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLTemplate::operator==
bool operator==(const UMLTemplate &rhs) const
Definition: template.cpp:90
UMLObject::m_pSecondary
QPointer< UMLObject > m_pSecondary
Definition: umlobject.h:287
umltemplatedialog.h
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:281
UMLClassifierListItem::setTypeName
void setTypeName(const QString &type)
Definition: classifierlistitem.cpp:141
classifierlistitem.h
UMLTemplate::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: template.cpp:127
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:191
UMLTemplate::clone
virtual UMLObject * clone() const
Definition: template.cpp:116
UMLObject::asUMLTemplate
UMLTemplate * asUMLTemplate()
Definition: umlobject.cpp:1413
uml.h
debug_utils.h
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:192
UMLObject::ot_Template
@ ot_Template
Definition: umlobject.h:96
UMLTemplate
Sets up template information.
Definition: template.h:26
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:559
UMLTemplate::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: template.cpp:108
UMLTemplate::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: template.cpp:54
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:29
umldoc.h
UMLClassifierListItem::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: classifierlistitem.cpp:75
UMLTemplate::UMLTemplate
UMLTemplate(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None, const QString &type=QLatin1String("class"))
Definition: template.cpp:28