umbrello: umbrello/uml1model/category.h Source File

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

category.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef CATEGORY_H
7#define CATEGORY_H
8
9#include "umlcanvasobject.h"
10
22 class UMLCategory : public UMLCanvasObject {
23 Q_OBJECT
24public:
25
26 enum Category_Type {
27 ct_Disjoint_Specialisation,
28 ct_Overlapping_Specialisation,
29 ct_Union
30 };
31
32 explicit UMLCategory(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
33 ~UMLCategory();
34
35 virtual void init();
36
37 void copyInto(UMLObject *lhs) const;
38
39 virtual UMLObject* clone() const;
40
41 void saveToXMI1(QXmlStreamWriter& writer);
42
43 UMLCategory::Category_Type getType();
44
45 void setType(Category_Type type);
46
47protected:
48
49 bool load1(QDomElement & element);
50
51private:
52
53 Category_Type m_CategoryType;
54};
55
56#endif
UMLCanvasObject
Non-graphical information for a UMLCanvasObject.
Definition: umlcanvasobject.h:32
UMLCategory
Information for a non-graphical UML Category.
Definition: category.h:22
UMLCategory::UMLCategory
UMLCategory(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: category.cpp:14
UMLCategory::copyInto
void copyInto(UMLObject *lhs) const
Definition: category.cpp:40
UMLCategory::m_CategoryType
Category_Type m_CategoryType
Definition: category.h:53
UMLCategory::getType
UMLCategory::Category_Type getType()
Definition: category.cpp:83
UMLCategory::init
virtual void init()
Definition: category.cpp:30
UMLCategory::Category_Type
Category_Type
Definition: category.h:26
UMLCategory::ct_Overlapping_Specialisation
@ ct_Overlapping_Specialisation
Definition: category.h:28
UMLCategory::ct_Union
@ ct_Union
Definition: category.h:29
UMLCategory::ct_Disjoint_Specialisation
@ ct_Disjoint_Specialisation
Definition: category.h:27
UMLCategory::setType
void setType(Category_Type type)
Definition: category.cpp:91
UMLCategory::~UMLCategory
~UMLCategory()
Definition: category.cpp:23
UMLCategory::clone
virtual UMLObject * clone() const
Definition: category.cpp:53
UMLCategory::load1
bool load1(QDomElement &element)
Definition: category.cpp:73
UMLCategory::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: category.cpp:63
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:206
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
umlcanvasobject.h