umbrello  2.34.3
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-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 
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 
44 
45  void setType(Category_Type type);
46 
47 protected:
48 
49  bool load1(QDomElement & element);
50 
51 private:
52 
54 };
55 
56 #endif
UMLCategory::ct_Disjoint_Specialisation
@ ct_Disjoint_Specialisation
Definition: category.h:27
category.h
UMLCategory::init
virtual void init()
Definition: category.cpp:30
UMLCanvasObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlcanvasobject.cpp:297
UMLCategory::Category_Type
Category_Type
Definition: category.h:26
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
UMLCategory::load1
bool load1(QDomElement &element)
Definition: category.cpp:73
UMLCanvasObject
Non-graphical information for a UMLCanvasObject.
Definition: umlcanvasobject.h:31
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
UMLObject::emitModified
void emitModified()
Definition: umlobject.cpp:381
UMLCategory::copyInto
void copyInto(UMLObject *lhs) const
Definition: category.cpp:40
umlcanvasobject.h
UMLObject::save1end
void save1end(QXmlStreamWriter &writer)
Definition: umlobject.cpp:937
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
UMLObject
The base class for UML objects.
Definition: umlobject.h:69
UMLCategory::UMLCategory
UMLCategory(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: category.cpp:14
UMLCategory::~UMLCategory
~UMLCategory()
Definition: category.cpp:23
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:308
number
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Library General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: LGPL-2.0-only.txt:368
UMLCategory::setType
void setType(Category_Type type)
Definition: category.cpp:91
UMLObject::asUMLCategory
UMLCategory * asUMLCategory()
Definition: umlobject.cpp:1418
UMLCategory::clone
virtual UMLObject * clone() const
Definition: category.cpp:53
UMLCategory::ct_Overlapping_Specialisation
@ ct_Overlapping_Specialisation
Definition: category.h:28
UMLCategory::m_CategoryType
Category_Type m_CategoryType
Definition: category.h:53
UMLCategory
Information for a non-graphical UML Category.
Definition: category.h:22
UMLCategory::getType
UMLCategory::Category_Type getType()
Definition: category.cpp:83
UMLCategory::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: category.cpp:63
UMLObject::save1
void save1(QXmlStreamWriter &writer, const QString &type, const QString &tag=QString())
Definition: umlobject.cpp:861
UMLObject::ot_Category
@ ot_Category
Definition: umlobject.h:104
UMLCategory::ct_Union
@ ct_Union
Definition: category.h:29