umbrello 26.07.70-c53146a 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

umlcategory.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2021 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
24 public:
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 saveToXMI(QXmlStreamWriter& writer);
42
43 UMLCategory::Category_Type getType();
44
45 void setType(Category_Type type);
46
47 protected:
48
49 bool load1(QDomElement & element);
50
51 private:
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: umlcategory.h:22
UMLCategory::copyInto
void copyInto(UMLObject *lhs) const
Definition: umlcategory.cpp:40
UMLCategory::m_CategoryType
Category_Type m_CategoryType
Definition: umlcategory.h:53
UMLCategory::getType
UMLCategory::Category_Type getType()
Definition: umlcategory.cpp:83
UMLCategory::init
virtual void init()
Definition: umlcategory.cpp:30
UMLCategory::Category_Type
Category_Type
Definition: umlcategory.h:26
UMLCategory::ct_Overlapping_Specialisation
@ ct_Overlapping_Specialisation
Definition: umlcategory.h:28
UMLCategory::ct_Union
@ ct_Union
Definition: umlcategory.h:29
UMLCategory::ct_Disjoint_Specialisation
@ ct_Disjoint_Specialisation
Definition: umlcategory.h:27
UMLCategory::setType
void setType(Category_Type type)
Definition: umlcategory.cpp:91
UMLCategory::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: umlcategory.cpp:63
UMLCategory::~UMLCategory
~UMLCategory()
Definition: umlcategory.cpp:23
UMLCategory::clone
virtual UMLObject * clone() const
Definition: umlcategory.cpp:53
UMLCategory::load1
bool load1(QDomElement &element)
Definition: umlcategory.cpp:73
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
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