umbrello  2.35.1
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 
9 #include "classifierlistitem.h"
10 
22 {
23 public:
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 
47 protected:
48 
49  bool load1(QDomElement & element);
50 
51 };
52 
53 #endif
template.h
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
UMLTemplate::getTypeName
virtual QString getTypeName() const
Definition: template.cpp:77
UMLTemplate::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent)
Definition: template.cpp:150
UMLTemplate::~UMLTemplate
virtual ~UMLTemplate()
Definition: template.cpp:46
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
UMLObject::m_SecondaryId
QString m_SecondaryId
Definition: umlobject.h:317
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1306
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:676
UMLTemplateDialog
Definition: umltemplatedialog.h:26
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
Settings::OptionState::generalState
GeneralState generalState
Definition: optionstate.h:322
UMLTemplate::load1
bool load1(QDomElement &element)
Definition: template.cpp:139
UMLObject
The base class for UML objects.
Definition: umlobject.h:69
UMLTemplate::operator==
bool operator==(const UMLTemplate &rhs) const
Definition: template.cpp:87
UMLObject::m_pSecondary
QPointer< UMLObject > m_pSecondary
Definition: umlobject.h:313
umltemplatedialog.h
optionstate.h
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:357
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:308
UMLClassifierListItem::setTypeName
void setTypeName(const QString &type)
Definition: classifierlistitem.cpp:137
classifierlistitem.h
UMLObject::asUMLTemplate
UMLTemplate * asUMLTemplate()
Definition: umlobject.cpp:1442
UMLTemplate::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: template.cpp:124
Settings::GeneralState::uml2
bool uml2
Definition: optionstate.h:66
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:160
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
uml.h
debug_utils.h
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:161
UMLObject::ot_Template
@ ot_Template
Definition: umlobject.h:91
UMLTemplate
Sets up template information.
Definition: template.h:21
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:555
UMLTemplate::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: template.cpp:105
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:24
umldoc.h
UMLClassifierListItem::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: classifierlistitem.cpp:72
UMLObject::save1
void save1(QXmlStreamWriter &writer, const QString &type, const QString &tag=QString())
Definition: umlobject.cpp:861
UMLTemplate::UMLTemplate
UMLTemplate(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None, const QString &type=QLatin1String("class"))
Definition: template.cpp:24