umbrello  2.31.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  * *
3  * This program is free software; you can redistribute it and/or modify *
4  * it under the terms of the GNU General Public License as published by *
5  * the Free Software Foundation; either version 2 of the License, or *
6  * (at your option) any later version. *
7  * *
8  * copyright (C) 2002-2020 *
9  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10  ***************************************************************************/
11 
12 #ifndef CATEGORY_H
13 #define CATEGORY_H
14 
15 #include "umlcanvasobject.h"
16 
28 class UMLCategory : public UMLCanvasObject {
29  Q_OBJECT
30 public:
31 
36  };
37 
38  explicit UMLCategory(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
39  ~UMLCategory();
40 
41  virtual void init();
42 
43  void copyInto(UMLObject *lhs) const;
44 
45  virtual UMLObject* clone() const;
46 
47  void saveToXMI1(QDomDocument & qDoc, QDomElement & qElement);
48 
50 
51  void setType(Category_Type type);
52 
53 protected:
54 
55  bool load1(QDomElement & element);
56 
57 private:
58 
60 };
61 
62 #endif
bool load1(QDomElement &element)
Definition: category.cpp:78
virtual void init()
Definition: category.cpp:35
Category_Type
Definition: category.h:32
Non-graphical information for a UMLCanvasObject.
Definition: umlcanvasobject.h:33
void copyInto(UMLObject *lhs) const
Definition: category.cpp:45
The base class for UML objects.
Definition: umlobject.h:73
UMLCategory(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: category.cpp:19
QString name() const
Definition: umlobject.cpp:211
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: category.cpp:68
~UMLCategory()
Definition: category.cpp:28
std::string Type
Definition: basictypes.h:351
Definition: category.h:35
void setType(Category_Type type)
Definition: category.cpp:96
Information for a non-graphical UML Category.
Definition: category.h:28
UMLCategory::Category_Type getType()
Definition: category.cpp:88
virtual UMLObject * clone() const
Definition: category.cpp:58
Category_Type m_CategoryType
Definition: category.h:59
const Type None
special value for uninitialized ID
Definition: basictypes.h:353