umbrello/umbrello
#include <enum.h>
Signals | |
void | enumLiteralAdded (UMLClassifierListItem *) |
void | enumLiteralRemoved (UMLClassifierListItem *) |
Signals inherited from UMLClassifier | |
void | attributeAdded (UMLClassifierListItem *) |
void | attributeRemoved (UMLClassifierListItem *) |
void | operationAdded (UMLClassifierListItem *) |
void | operationRemoved (UMLClassifierListItem *) |
void | templateAdded (UMLClassifierListItem *) |
void | templateRemoved (UMLClassifierListItem *) |
Signals inherited from UMLCanvasObject | |
void | sigAssociationEndAdded (UMLAssociation *assoc) |
void | sigAssociationEndRemoved (UMLAssociation *assoc) |
Signals inherited from UMLObject | |
void | modified () |
Protected Member Functions | |
bool | load (QDomElement &element) |
Protected Member Functions inherited from UMLObject | |
void | init () |
void | maybeSignalObjectCreated () |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Public Types inherited from UMLClassifier | |
enum | ClassifierType { ALL = 0, CLASS, INTERFACE, DATATYPE } |
Public Types inherited from UMLObject | |
enum | ObjectType { ot_Unknown = -1, ot_UMLObject = 100, ot_Actor, ot_UseCase, ot_Package, ot_Interface, ot_Datatype, ot_Enum, ot_Class, ot_Association, ot_Attribute, ot_Operation, ot_EnumLiteral, ot_Template, ot_Component, ot_Artifact, ot_Node, ot_Stereotype, ot_Role, ot_Entity, ot_EntityAttribute, ot_Folder, ot_EntityConstraint, ot_UniqueConstraint, ot_ForeignKeyConstraint, ot_CheckConstraint, ot_Category, ot_Port } |
Public Slots inherited from UMLObject | |
void | emitModified () |
Static Public Member Functions inherited from UMLObject | |
static QString | toString (ObjectType ot) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Protected Attributes inherited from UMLPackage | |
UMLObjectList | m_objects |
Protected Attributes inherited from UMLCanvasObject | |
UMLObjectList | m_List |
Protected Attributes inherited from UMLObject | |
bool | m_bAbstract |
ObjectType | m_BaseType |
bool | m_bCreationWasSignalled |
bool | m_bInPaste |
bool | m_bStatic |
QString | m_Doc |
QString | m_name |
Uml::ID::Type | m_nId |
UMLObject * | m_pSecondary |
UMLStereotype * | m_pStereotype |
UMLPackage * | m_pUMLPackage |
QString | m_SecondaryFallback |
QString | m_SecondaryId |
Uml::Visibility::Enum | m_visibility |
Properties inherited from QObject | |
objectName | |
Detailed Description
This class contains the non-graphical information required for a UML Enum.
This class inherits from UMLClassifier which contains most of the information.
Non-graphical Information for an Enum.
Constructor & Destructor Documentation
|
explicit |
Member Function Documentation
UMLObject * UMLEnum::addEnumLiteral | ( | const QString & | name, |
Uml::ID::Type | id = Uml::ID::None |
||
) |
bool UMLEnum::addEnumLiteral | ( | UMLEnumLiteral * | literal, |
IDChangeLog * | Log = 0 |
||
) |
Adds an already created enumliteral.
The enumliteral object must not belong to any other concept.
- Parameters
-
literal Pointer to the UMLEnumLiteral. Log Pointer to the IDChangeLog.
- Returns
- True if the enumliteral was successfully added.
bool UMLEnum::addEnumLiteral | ( | UMLEnumLiteral * | literal, |
int | position | ||
) |
Adds an enumliteral to the enum, at the given position.
If position is negative or too large, the enumliteral is added to the end of the list. TODO: give default value -1 to position (append) - now it conflicts with the method above..
- Parameters
-
literal Pointer to the UMLEnumLiteral. position Position index for the insertion.
- Returns
- True if the enumliteral was successfully added.
|
virtual |
Make a clone of this object.
Reimplemented from UMLClassifier.
|
virtual |
Copy the internal presentation of this object into the new object.
Reimplemented from UMLClassifier.
|
signal |
|
signal |
int UMLEnum::enumLiterals | ( | ) |
|
protectedvirtual |
Loads the <UML:Enum> element including its enumliterals.
Reimplemented from UMLClassifier.
|
virtual |
Create a new ClassifierListObject (enumLiteral) according to the given XMI tag.
Returns NULL if the string given does not contain one of the tags <UML:EnumLiteral> Used by the clipboard for paste operation. Reimplemented from UMLClassifier for UMLEnum
Reimplemented from UMLClassifier.
bool UMLEnum::operator== | ( | const UMLEnum & | rhs | ) | const |
int UMLEnum::removeEnumLiteral | ( | UMLEnumLiteral * | literal | ) |
|
virtual |
Creates the <UML:Enum> element including its enumliterals.
Reimplemented from UMLClassifier.
void UMLEnum::signalEnumLiteralRemoved | ( | UMLClassifierListItem * | elit | ) |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.