umbrello: umbrello/umlmodel/enumliteral.h Source File

umbrello 2.38.3 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

enumliteral.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 ENUMLITERAL_H
7#define ENUMLITERAL_H
8
9#include "classifierlistitem.h"
10
20 class UMLEnumLiteral : public UMLClassifierListItem
21{
22public:
23 UMLEnumLiteral(UMLObject* parent,
24 const QString& name, Uml::ID::Type id = Uml::ID::None,
25 const QString& v = QString());
26 explicit UMLEnumLiteral(UMLObject* parent);
27
28 bool operator==(const UMLEnumLiteral &rhs) const;
29
30 virtual void copyInto(UMLObject *lhs) const;
31
32 virtual UMLObject* clone() const;
33
34 virtual ~UMLEnumLiteral();
35
36 QString value() const;
37 void setValue(const QString &v);
38
39 QString toString(Uml::SignatureType::Enum sig = Uml::SignatureType::NoSig,
40 bool withStereotype=false) const;
41
42 virtual void saveToXMI(QXmlStreamWriter& writer);
43
44 virtual bool showPropertiesDialog(QWidget* parent = 0);
45
46protected:
47 bool load1(QDomElement& element);
48
55 QString m_Value;
56
57};
58
59#endif
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:25
UMLEnumLiteral
Sets up attribute information.
Definition: enumliteral.h:21
UMLEnumLiteral::clone
virtual UMLObject * clone() const
Definition: enumliteral.cpp:118
UMLEnumLiteral::setValue
void setValue(const QString &v)
Definition: enumliteral.cpp:63
UMLEnumLiteral::operator==
bool operator==(const UMLEnumLiteral &rhs) const
Definition: enumliteral.cpp:92
UMLEnumLiteral::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: enumliteral.cpp:107
UMLEnumLiteral::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: enumliteral.cpp:129
UMLEnumLiteral::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: enumliteral.cpp:77
UMLEnumLiteral::~UMLEnumLiteral
virtual ~UMLEnumLiteral()
Definition: enumliteral.cpp:44
UMLEnumLiteral::value
QString value() const
Definition: enumliteral.cpp:53
UMLEnumLiteral::load1
bool load1(QDomElement &element)
Definition: enumliteral.cpp:140
UMLEnumLiteral::m_Value
QString m_Value
Definition: enumliteral.h:55
UMLEnumLiteral::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: enumliteral.cpp:149
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
classifierlistitem.h
v
std::vector< std::string > v
Definition: cxx11-initializer-lists.h:19
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