umbrello: umbrello/uml1model/stereotype.h Source File

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

stereotype.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2003-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef STEREOTYPE_H
12 #define STEREOTYPE_H
13
14 #include "umlobject.h"
15
40 class UMLStereotype : public UMLObject
41 {
42 Q_OBJECT
43 public:
44 explicit UMLStereotype(const QString &name, Uml::ID::Type id = Uml::ID::None);
45 UMLStereotype();
46
47 virtual ~UMLStereotype();
48
49 bool operator==(const UMLStereotype &rhs) const;
50
51 virtual void copyInto(UMLObject *lhs) const;
52
53 virtual UMLObject* clone() const;
54
55 void incrRefCount();
56 void decrRefCount();
57
58 int refCount() const;
59
60 QString name(bool includeAdornments=false) const;
61
62 void saveToXMI1(QDomDocument& qDoc, QDomElement& qElement);
63
64 virtual bool showPropertiesDialog(QWidget* parent);
65
66 protected:
67 int m_refCount;
68
69 };
70
71 #endif
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
stereotype.h
UMLStereotype::incrRefCount
void incrRefCount()
Definition: stereotype.cpp:123
UMLStereotype::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: stereotype.cpp:98
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
UMLStereotype::m_refCount
int m_refCount
Definition: stereotype.h:67
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:192
UMLStereotype::UMLStereotype
UMLStereotype()
Definition: stereotype.cpp:44
UMLStereotype::decrRefCount
void decrRefCount()
Definition: stereotype.cpp:131
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
UMLStereotype::refCount
int refCount() const
Definition: stereotype.cpp:139
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:276
UMLStereotype::operator==
bool operator==(const UMLStereotype &rhs) const
Definition: stereotype.cpp:62
UMLStereotype
Sets up stereotype information.
Definition: stereotype.h:41
UMLObject::ot_Stereotype
@ ot_Stereotype
Definition: umlobject.h:99
UMLStereotype::~UMLStereotype
virtual ~UMLStereotype()
Definition: stereotype.cpp:54
UMLObject::save1
QDomElement save1(const QString &tag, QDomDocument &qDoc)
Definition: umlobject.cpp:844
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlobject.cpp:314
UMLStereotype::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: stereotype.cpp:79
UMLStereotype::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent)
Definition: stereotype.cpp:109
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
uError
#define uError()
Definition: debug_utils.h:123
uml.h
debug_utils.h
umlobject.h
UMLDoc::findStereotype
UMLStereotype * findStereotype(const QString &name)
Definition: umldoc.cpp:1310
dialog_utils.h
Dialog_Utils::askRenameName
bool askRenameName(WidgetBase::WidgetType type, QString &name)
Definition: dialog_utils.cpp:163
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1055
umldoc.h
UMLStereotype::clone
virtual UMLObject * clone() const
Definition: stereotype.cpp:87