umbrello/umbrello
umlobject.cpp
Go to the documentation of this file.
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Return the corresponding Model_Type if the given object is one of the root folders.
Definition: umldoc.cpp:2691
UMLPackageList packages(bool includeRoot=false) const
Return a list of the packages in which this class is embedded.
Definition: umlobject.cpp:623
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: umlobject.cpp:287
Definition: umlobject.h:60
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
Definition: umlobject.h:62
virtual bool showPropertiesPagedDialog(int page=0, bool assoc=false)
This method is called if you wish to see the properties of a UMLObject.
Definition: umlobject.cpp:120
void setUMLStereotype(UMLStereotype *stereo)
Sets the class' UMLStereotype.
Definition: umlobject.cpp:468
bool newUMLObjectWasCreated()
Returns whether the last createUMLObject() actually created a new object or just returned an existing...
Definition: import_utils.cpp:112
virtual bool loadFromXMI(QDomElement &element)
This method loads the generic parts of the XMI common to most model classes.
Definition: umlobject.cpp:914
void incrRefCount()
Increments the reference count for this stereotype.
Definition: stereotype.cpp:122
Definition: umlobject.h:66
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:435
void decrRefCount()
Decrements the reference count for this stereotype.
Definition: stereotype.cpp:130
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3030
void showDocumentation(UMLObject *object, bool overwrite=false)
Called when a widget wishes to display its documentation in the doc window.
Definition: docwindow.cpp:87
void setVisibility(Uml::Visibility::Enum visibility)
Sets the visibility of the object.
Definition: umlobject.cpp:445
void setNameCmd(const QString &strName)
Method used by setName: it is called by cmdSetName, Don't use it!
Definition: umlobject.cpp:176
Definition: cmd_renameUMLObject.h:20
void updateDocumentation(bool clear=false, bool startup=false)
Call when you wish move changes in the doc window back into the members documentation.
Definition: docwindow.cpp:205
bool loadStereotype(QDomElement &element)
Analyzes the given QDomElement for a reference to a stereotype.
Definition: umlobject.cpp:875
Definition: umlobject.h:71
Definition: umlobject.h:59
Definition: umlobject.h:61
Definition: classpropdlg.h:34
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
UMLStereotype * findStereotypeById(Uml::ID::Type id)
Find a UMLStereotype by its unique ID.
Definition: umldoc.cpp:787
Definition: basictypes.h:58
#define ENUM_NAME(o, e, v)
In a Q_OBJECT class define any enum as Q_ENUMS.
Definition: debug_utils.h:114
void removeStereotype(UMLStereotype *s)
Remove a UMLStereotype from the application.
Definition: umldoc.cpp:935
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Creates a UMLObject of the given type.
Definition: object_factory.cpp:162
virtual bool acceptAssociationType(Uml::AssociationType::Enum)
This should be reimplemented by subclasses if they wish to accept certain types of associations...
Definition: umlobject.cpp:149
Definition: docwindow.h:28
static QString toString(ObjectType ot)
Helper function for debug output.
Definition: umlobject.cpp:1094
ListViewType type() const
Returns the type this instance represents.
Definition: umllistviewitem.cpp:231
virtual bool resolveRef()
Resolve referenced objects (if any.) Needs to be called after all UML objects are loaded from file...
Definition: umlobject.cpp:709
QString uniqObjectName(UMLObject::ObjectType type, UMLPackage *parentPkg, QString prefix)
Returns a name for the new object, appended with a number if the default name is taken e...
Definition: model_utils.cpp:452
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype)
Find or create a document object.
Definition: import_utils.cpp:169
void executeCommand(QUndoCommand *cmd)
Execute a command and pushit in the stack.
Definition: uml.cpp:3077
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:545
bool isCommonDataType(QString type)
Return true if the given type is common among the majority of programming languages, such as "bool" or "boolean".
Definition: model_utils.cpp:528
Definition: umlobject.h:69
Definition: basictypes.h:60
UMLObject(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None)
Creates a UMLObject.
Definition: umlobject.cpp:48
void setVisibilityCmd(Uml::Visibility::Enum visibility)
Method used by setVisibility: it is called by cmdSetVisibility, Don't use it!
Definition: umlobject.cpp:453
QString activeLanguageScopeSeparator()
Return the target language depedent scope separator.
Definition: uml.cpp:2373
QString m_SecondaryFallback
Last-chance backup for when m_SecondaryId is not found.
Definition: umlobject.h:189
void maybeSignalObjectCreated()
Calls UMLDoc::signalUMLObjectCreated() if m_BaseType affords doing so.
Definition: umlobject.cpp:686
QString toString(Enum item, bool mnemonic)
Convert Visibility item into QString representation.
Definition: basictypes.cpp:99
void setModified(bool modified=true)
Sets the modified flag for the document after a modifying action on the view connected to the documen...
Definition: umldoc.cpp:2607
Definition: umlobject.h:72
QDebug operator<<(QDebug out, const UMLObject &obj)
Print UML Object to debug output stream, so it can be used like uDebug() << "This object shouldn't be...
Definition: umlobject.cpp:1103
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:581
Definition: basictypes.h:57
Definition: umlobject.h:58
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:766
bool isStatic() const
Returns true if this UMLObject has classifier scope, otherwise false (the default).
Definition: umlobject.cpp:335
Definition: umlobject.h:57
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:808
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:641
UMLStereotype * findOrCreateStereotype(const QString &name)
Finds or creates a stereotype for the parent object.
Definition: umldoc.cpp:1054
void setSecondaryFallback(const QString &id)
Set the secondary ID fallback.
Definition: umlobject.cpp:677
Definition: basictypes.h:44
Definition: umlobject.h:56
UMLPackage * treeViewGetPackageFromCurrent()
Return the UMLPackage if the current item in the tree view is a package.
Definition: model_utils.cpp:391
QString package(const QString &separator=QString(), bool includeRoot=false)
Return the package(s) in which this UMLObject is contained as a text.
Definition: umlobject.cpp:603
Definition: umlobject.h:49
Uml::ID::Type modelID() const
Return the m_modelID (currently this a fixed value: Umbrello supports only a single document...
Definition: umldoc.cpp:1650
Definition: umlobject.h:65
int refCount() const
Returns the reference count for this stereotype.
Definition: stereotype.cpp:138
Definition: umlobject.h:52
virtual void setID(Uml::ID::Type NewID)
Assigns a new Id to the object.
Definition: umlobject.cpp:159
QString m_SecondaryId
xmi.id of the secondary object for intermediate use during loading.
Definition: umlobject.h:186
Definition: cmd_setVisibility.h:22
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Returns the fully qualified name, i.e.
Definition: umlobject.cpp:201
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Used to find a UMLObject by its type and name.
Definition: umldoc.cpp:809
void modified()
Definition: basictypes.h:59
void setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:494
Definition: umlobject.h:54
const UMLStereotype * umlStereotype()
Returns the classes UMLStereotype object.
Definition: umlobject.cpp:573
Definition: umlobject.h:68
UMLObject * m_pSecondary
pointer to an associated object Only a few of the classes inheriting from UMLObject use this...
Definition: umlobject.h:182
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:06:00 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:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.