umbrello/umbrello
petaltree2uml.cpp
Go to the documentation of this file.
85 UMLObject::ObjectType t = (n.contains(QRegExp("\\W")) ? UMLObject::ot_Datatype : UMLObject::ot_Class);
328 bool handleControlledUnit(PetalNode *node, const QString& name, Uml::ID::Type id, UMLPackage * parentPkg)
bool addUMLObject(UMLObject *object)
Adds a UMLObject thats already created but doesn't change any ids or signal.
Definition: umldoc.cpp:901
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
void setAssociationType(Uml::AssociationType::Enum assocType)
Sets the assocType of the UMLAssociation.
Definition: association.cpp:589
Definition: basictypes.h:209
Definition: basictypes.h:41
This class contains the non-graphical information required for a UML Component.
Definition: component.h:27
void setVisibility(Uml::Visibility::Enum visibility)
Sets the visibility of the object.
Definition: umlobject.cpp:445
Definition: umllistviewitem.h:73
Definition: basictypes.h:210
Definition: umllistviewitem.h:90
void setBaseType(UMLObject::ObjectType ot)
Reimplementation of method from class UMLObject for controlling the exact type of this classifier: cl...
Definition: classifier.cpp:82
Definition: umllistviewitem.h:57
Definition: umllistviewitem.h:56
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
StringOrNode findAttribute(const QString &name) const
Find an attribute by name.
Definition: petalnode.cpp:67
Uml::ID::Type quid(const PetalNode *node)
Extract the quid attribute from a petal node and return it as a Uml::IDType.
Definition: petaltree2uml.cpp:55
This class contains the non-graphic representation of an association.
Definition: association.h:32
This class contains the non-graphical information required for a UML Node.
Definition: node.h:26
void setObject(UMLObject *obj, Uml::RoleType::Enum role)
Sets the UMLObject playing the given role in the association.
Definition: association.cpp:608
ListViewType type() const
Returns the type this instance represents.
Definition: umllistviewitem.cpp:231
void transferVisibility(const PetalNode *from, UMLObject *to)
Transfer the Rose attribute "exportControl" to the Umbrello object given.
Definition: petaltree2uml.cpp:95
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 setCurrentRoot(Uml::ModelType::Enum rootType)
Set the current root folder.
Definition: umldoc.cpp:1515
bool importView(PetalNode *root, const QString &rootName, const QString &modelsName, UMLListViewItem *lvParent)
Auxiliary function for UseCase/Component/Deployment view import.
Definition: petaltree2uml.cpp:572
Definition: basictypes.h:40
UMLRole * getUMLRole(Uml::RoleType::Enum role) const
Get the underlying UMLRole object for the given role.
Definition: association.cpp:563
bool handleControlledUnit(PetalNode *node, const QString &name, Uml::ID::Type id, UMLPackage *parentPkg)
Handle a controlled unit.
Definition: petaltree2uml.cpp:328
bool umbrellify(PetalNode *node, UMLPackage *parentPkg=NULL)
Create an Umbrello object from a PetalNode of the Logical View.
Definition: petaltree2uml.cpp:352
Definition: umlobject.h:53
UMLListViewItem::ListViewType folderType(UMLListViewItem *parent)
Definition: petaltree2uml.cpp:473
bool petalTree2Uml(PetalNode *root)
This is really an auxiliary method for loadFromMDL() but is kept in a separate file to reflect that i...
Definition: petaltree2uml.cpp:601
void setSecondaryFallback(const QString &id)
Set the secondary ID fallback.
Definition: umlobject.cpp:677
QString quidu(const PetalNode *node)
Extract the quidu attribute from a petal node.
Definition: petaltree2uml.cpp:67
Definition: umlobject.h:56
void assignUniqueIdOnCreation(bool yesno)
Control whether the creation methods solicit a new unique ID for the created object.
Definition: import_utils.cpp:103
This class contains the non-graphic representation of an association role.
Definition: umlrole.h:24
void setMultiplicity(const QString &multi)
Sets the multiplicity of the role.
Definition: umlrole.cpp:139
This class contains the non-graphical information required for a UML UseCase.
Definition: usecase.h:24
Definition: basictypes.h:39
QString clean(const QString &s)
Return the given string without surrounding quotation marks.
Definition: petaltree2uml.cpp:42
This class contains the non-graphical information required for a UML Actor.
Definition: actor.h:27
Definition: umlobject.h:52
virtual void setID(Uml::ID::Type NewID)
Assigns a new Id to the object.
Definition: umlobject.cpp:159
Definition: basictypes.h:42
void setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:494
Definition: umlobject.h:54
Enum fromString(const QString &item)
Convert a string item into Visibility representation.
Definition: basictypes.cpp:119
UMLObject::ObjectType typeToCreate(const QString &name)
Determine the model type corresponding to a name.
Definition: petaltree2uml.cpp:81
Enum fromInt(int item)
Convert a integer item into RoleType representation.
Definition: basictypes.cpp:739
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.