umbrello/umbrello
enum.cpp
Go to the documentation of this file.
UMLObject * addEnumLiteral(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an enumliteral to the enum.
Definition: enum.cpp:132
Definition: umlobject.h:60
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: enum.cpp:56
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
virtual bool loadFromXMI(QDomElement &element)
This method loads the generic parts of the XMI common to most model classes.
Definition: umlobject.cpp:914
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1019
Definition: umlobject.h:55
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3030
int removeEnumLiteral(UMLEnumLiteral *literal)
Removes an enumliteral from the class.
Definition: enum.cpp:204
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
void removeChangeByNewID(Uml::ID::Type OldID)
Definition: idchangelog.cpp:124
void signalEnumLiteralRemoved(UMLClassifierListItem *elit)
Emit the enumLiteralRemoved signal.
Definition: enum.cpp:231
void enumLiteralRemoved(UMLClassifierListItem *)
virtual UMLClassifierListItem * makeChildObject(const QString &xmiTag)
Create a new ClassifierListObject (enumLiteral) according to the given XMI tag.
Definition: enum.cpp:288
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
This class is used to set up information for an enum literal.
Definition: enumliteral.h:25
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: classifier.cpp:665
void enumLiteralAdded(UMLClassifierListItem *)
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:808
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)=0
bool showPropertiesDialog(QWidget *parent)
Display the properties configuration dialog for the enum literal.
Definition: enumliteral.cpp:101
virtual QString uniqChildName(const UMLObject::ObjectType type, const QString &prefix=QString())
Returns a name for the new association, operation, template or attribute appended with a number if th...
Definition: umlcanvasobject.cpp:185
UMLEnum(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Sets up an enum.
Definition: enum.cpp:31
UMLObject * createEnumLiteral(const QString &name=QString())
Creates a literal for the enum.
Definition: enum.cpp:85
bool load(QDomElement &element)
Loads the element including its enumliterals.
Definition: enum.cpp:253
void modified()
bool operator==(const UMLClassifier &rhs) const
Overloaded '==' operator.
Definition: classifier.cpp:648
void setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:494
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the element including its enumliterals.
Definition: enum.cpp:239
void signalUMLObjectCreated(UMLObject *o)
Signal that a UMLObject has been created.
Definition: umldoc.cpp:1619
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.