umbrello: umbrello/uml1model/instanceattribute.h Source File

umbrello 2.31.0 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

instanceattribute.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) 2016-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UMLINSTANCEATTRIBUTE_H
12 #define UMLINSTANCEATTRIBUTE_H
13
14 #include "attribute.h"
15 #include "basictypes.h"
16
25 class UMLInstanceAttribute : public UMLAttribute
26 {
27 Q_OBJECT
28 public:
29 UMLInstanceAttribute(UMLObject* parent, const QString& name,
30 Uml::ID::Type id = Uml::ID::None,
31 Uml::Visibility::Enum s = Uml::Visibility::Private,
32 UMLObject *type = 0, const QString& value = QString());
33
34 explicit UMLInstanceAttribute(UMLObject *parent);
35
36 void setAttributes(const QString& attributes);
37 QString getAttributes() const;
38
39 virtual void saveToXMI1(QDomDocument& qDoc, QDomElement& qElement);
40
41 virtual bool showPropertiesDialog(QWidget* parent = 0);
42
43 protected:
44 virtual bool load1(QDomElement &element);
45
46 private:
47 void init();
48 QString m_attributes;
49 };
50
51 #endif // UMLINSTANCEATTRIBUTE_H
UMLInstanceAttribute::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: instanceattribute.cpp:99
UMLInstanceAttribute::load1
virtual bool load1(QDomElement &element)
Definition: instanceattribute.cpp:87
instanceattribute.h
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLInstanceAttribute::setAttributes
void setAttributes(const QString &attributes)
Definition: instanceattribute.cpp:53
UMLAttribute::load1
bool load1(QDomElement &element)
Definition: attribute.cpp:281
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:370
UMLObject::m_SecondaryId
QString m_SecondaryId
Definition: umlobject.h:286
object_factory.h
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1280
UMLAttribute::m_InitialValue
QString m_InitialValue
text for the attribute's initial value.
Definition: attribute.h:83
UMLInstanceAttributeDialog
Definition: umlinstanceattributedialog.h:22
Uml::ID::Type
std::string Type
Definition: basictypes.h:368
UMLObject
The base class for UML objects.
Definition: umlobject.h:73
UMLObject::ot_InstanceAttribute
@ ot_InstanceAttribute
Definition: umlobject.h:110
UMLInstanceAttribute::m_attributes
QString m_attributes
Definition: instanceattribute.h:56
UMLObject::m_pSecondary
QPointer< UMLObject > m_pSecondary
Definition: umlobject.h:282
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:276
attribute.h
UMLObject::save1
QDomElement save1(const QString &tag, QDomDocument &qDoc)
Definition: umlobject.cpp:844
basictypes.h
UMLInstanceAttribute::UMLInstanceAttribute
UMLInstanceAttribute(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None, Uml::Visibility::Enum s=Uml::Visibility::Private, UMLObject *type=0, const QString &value=QString())
Definition: instanceattribute.cpp:25
UMLInstanceAttribute::getAttributes
QString getAttributes() const
Definition: instanceattribute.cpp:62
uDebug
#define uDebug()
Definition: debug_utils.h:122
UMLInstanceAttribute::init
void init()
UMLInstanceAttribute::init Initialize members of this class.
Definition: instanceattribute.cpp:44
UMLObject::ot_Instance
@ ot_Instance
Definition: umlobject.h:90
UMLAttribute
Sets up attribute information.
Definition: attribute.h:27
Uml::Visibility::Enum
Enum
Definition: basictypes.h:76
uml.h
UMLInstanceAttribute
Sets up instanceattribute information.
Definition: instanceattribute.h:25
debug_utils.h
UMLInstanceAttribute::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: instanceattribute.cpp:70
Uml::Visibility::Private
@ Private
Definition: basictypes.h:78
umlinstanceattributedialog.h
umldoc.h