umbrello/umbrello
#include <umlcanvasobject.h>
Signals | |
void | sigAssociationEndAdded (UMLAssociation *assoc) |
void | sigAssociationEndRemoved (UMLAssociation *assoc) |
Signals inherited from UMLObject | |
void | modified () |
Protected Attributes | |
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 |
Additional Inherited Members | |
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) |
Protected Member Functions inherited from UMLObject | |
void | init () |
virtual bool | load (QDomElement &element) |
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) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
This class contains the non-graphical information required for UMLObjects which appear as moveable widgets on the scene.
This class inherits from UMLObject which contains most of the information. It is not instantiated itself, it's just used as a super class for actual model objects.
Non-graphical information for a UMLCanvasObject.
- See also
- UMLObject Bugs and comments to umbre or llo- devel @kde .orghttp://bugs.kde.org
Definition at line 33 of file umlcanvasobject.h.
Constructor & Destructor Documentation
|
explicit |
Sets up a UMLCanvasObject.
- Parameters
-
name The name of the Concept. id The unique id of the Concept.
Definition at line 37 of file umlcanvasobject.cpp.
|
virtual |
Standard deconstructor.
Definition at line 45 of file umlcanvasobject.cpp.
Member Function Documentation
bool UMLCanvasObject::addAssociationEnd | ( | UMLAssociation * | assoc | ) |
Adds an association end to m_List.
- Parameters
-
assoc The association to add.
Definition at line 83 of file umlcanvasobject.cpp.
int UMLCanvasObject::associations | ( | ) |
Returns the number of associations for the CanvasObject.
This is the sum of the aggregations and compositions.
- Returns
- The number of associations for the Concept.
Definition at line 319 of file umlcanvasobject.cpp.
|
virtual |
Copy the internal presentation of this object into the new object.
Reimplemented from UMLObject.
Reimplemented in UMLClassifier, UMLCategory, UMLEntity, UMLPackage, and UMLEnum.
Definition at line 303 of file umlcanvasobject.cpp.
|
virtual |
Find a child object with the given name.
- Parameters
-
n The name of the object to find. t The type to find (optional.) If not given then any object type will match.
- Returns
- Pointer to the object found; NULL if none found.
Definition at line 240 of file umlcanvasobject.cpp.
|
virtual |
Find an association.
- Parameters
-
id The id of the object to find. considerAncestors boolean switch to consider ancestors while searching
- Returns
- Pointer to the object found (NULL if not found.)
Reimplemented in UMLClassifier.
Definition at line 266 of file umlcanvasobject.cpp.
UMLAssociationList UMLCanvasObject::getAggregations | ( | ) |
Shorthand for getSpecificAssocs(Uml::at_Aggregation)
- Returns
- The list of aggregations for the Concept.
Definition at line 423 of file umlcanvasobject.cpp.
UMLAssociationList UMLCanvasObject::getAssociations | ( | ) |
Return the list of associations for the CanvasObject.
- Returns
- The list of associations for the CanvasObject.
Definition at line 337 of file umlcanvasobject.cpp.
UMLAssociationList UMLCanvasObject::getCompositions | ( | ) |
Shorthand for getSpecificAssocs(Uml::at_Composition)
- Returns
- The list of compositions for the Concept.
Definition at line 433 of file umlcanvasobject.cpp.
|
virtual |
Shorthand for getSpecificAssocs(Uml::at_Realization)
- Returns
- The list of realizations for the Concept.
Definition at line 413 of file umlcanvasobject.cpp.
UMLAssociationList UMLCanvasObject::getRelationships | ( | ) |
Shorthand for getSpecificAssocs(Uml::at_Relationship)
- Returns
- The list of relationships for the entity.
Definition at line 443 of file umlcanvasobject.cpp.
UMLAssociationList UMLCanvasObject::getSpecificAssocs | ( | Uml::AssociationType::Enum | assocType | ) |
Return the subset of m_List that matches the given type.
- Parameters
-
assocType The AssociationType::Enum to match.
- Returns
- The list of associations that match assocType.
Definition at line 61 of file umlcanvasobject.cpp.
UMLClassifierList UMLCanvasObject::getSubClasses | ( | ) |
Return a list of the classes that inherit from this concept.
TODO: This overlaps with UMLClassifier::findSubClassConcepts(), see if we can merge the two.
- Returns
- The list of classes inheriting from the concept.
Definition at line 388 of file umlcanvasobject.cpp.
UMLClassifierList UMLCanvasObject::getSuperClasses | ( | bool | withRealizations = true | ) |
Return a list of the superclasses of this concept.
TODO: This overlaps with UMLClassifier::findSuperClassConcepts(), see if we can merge the two.
- Parameters
-
withRealizations include realizations in the returned list (default=yes)
- Returns
- The list of superclasses for the concept.
Definition at line 360 of file umlcanvasobject.cpp.
bool UMLCanvasObject::hasAssociation | ( | UMLAssociation * | assoc | ) |
Determine if this canvasobject has the given association.
- Parameters
-
assoc The association to check.
Definition at line 104 of file umlcanvasobject.cpp.
bool UMLCanvasObject::operator== | ( | const UMLCanvasObject & | rhs | ) | const |
Overloaded '==' operator.
Definition at line 282 of file umlcanvasobject.cpp.
void UMLCanvasObject::removeAllAssociationEnds | ( | ) |
Remove all association ends from the CanvasObject.
Definition at line 132 of file umlcanvasobject.cpp.
|
virtual |
Remove all child objects.
Just clear list, objects must be deleted where they were created (or we have bad crashes).
Definition at line 166 of file umlcanvasobject.cpp.
int UMLCanvasObject::removeAssociationEnd | ( | UMLAssociation * | assoc | ) |
Remove an association end from the CanvasObject.
- Parameters
-
assoc The association to remove.
Definition at line 117 of file umlcanvasobject.cpp.
|
virtual |
Reimplementation of UMLObject method.
Reimplemented from UMLObject.
Reimplemented in UMLClassifier, UMLEntity, and UMLPackage.
Definition at line 451 of file umlcanvasobject.cpp.
|
signal |
|
signal |
|
inline |
Definition at line 80 of file umlcanvasobject.h.
|
virtual |
Returns a name for the new association, operation, template or attribute appended with a number if the default name is taken e.g.
new_association, new_association_1 etc.
- Parameters
-
type The object type for which to make a name. prefix Optional prefix to use for the name. If not given then uniqChildName() will choose the prefix internally based on the object type.
- Returns
- Unique name string for the ObjectType given.
Definition at line 185 of file umlcanvasobject.cpp.
Member Data Documentation
|
protected |
List of all the associations in this object.
Inheriting classes add more types of objects that are possible in this list; for example, UMLClassifier adds operations, attributes, and templates.
- Todo:
- Only a pointer to the appropriate assocation end object (UMLRole) should be saved here, not the entire UMLAssociation.
Definition at line 99 of file umlcanvasobject.h.
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.