umbrello/umbrello
import_utils.cpp
Go to the documentation of this file.
254 UMLObject::ObjectType ot = (wantNamespace == KMessageBox::Yes ? UMLObject::ot_Package : UMLObject::ot_Class);
UMLObject * addEnumLiteral(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an enumliteral to the enum.
Definition: enum.cpp:132
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
bool newUMLObjectWasCreated()
Returns whether the last createUMLObject() actually created a new object or just returned an existing...
Definition: import_utils.cpp:112
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=0)
Finds an association.
Definition: umldoc.cpp:1102
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:98
Uml::ParameterDirection::Enum getParmKind() const
Definition: attribute.cpp:121
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:435
UMLObject * insertAttribute(UMLClassifier *owner, Uml::Visibility::Enum scope, const QString &name, UMLClassifier *attrType, const QString &comment, bool isStatic)
Create a UMLAttribute and insert it into the document.
Definition: import_utils.cpp:364
Definition: basictypes.h:41
Definition: basictypes.h:244
void setVisibility(Uml::Visibility::Enum visibility)
Sets the visibility of the object.
Definition: umlobject.cpp:445
void setName(const QString &name)
Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.
Definition: attribute.cpp:75
void setBaseType(UMLObject::ObjectType ot)
Reimplementation of method from class UMLObject for controlling the exact type of this classifier: cl...
Definition: classifier.cpp:82
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
UMLOperation * createOperation(UMLClassifier *parent, const QString &name)
Definition: object_factory.cpp:228
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
UMLOperation * checkOperationSignature(const QString &name, UMLAttributeList opParams, UMLOperation *exemptOp=NULL)
Checks whether an operation is valid based on its signature - An operation is "valid" if the operatio...
Definition: classifier.cpp:136
Definition: basictypes.h:102
This class contains the non-graphic representation of an association.
Definition: association.h:32
void putAtGlobalScope(bool yesno)
Control whether an object which is newly created by createUMLObject() is put at the global scope...
Definition: import_utils.cpp:82
void setType(UMLObject *type)
Reimplement method from UMLClassifierListItem.
Definition: operation.cpp:87
void assignUniqueIdOnCreation(bool yesno)
Control whether the createUMLObject() solicits a new unique ID for the created object.
Definition: object_factory.cpp:64
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Creates a UMLObject of the given type.
Definition: object_factory.cpp:162
static QString toString(ObjectType ot)
Helper function for debug output.
Definition: umlobject.cpp:1094
bool addOperation(UMLOperation *op, int position=-1)
Appends an operation to the classifier.
Definition: classifier.cpp:304
bool isInterface() const
Returns true if this classifier represents an interface.
Definition: classifier.cpp:112
void addParm(UMLAttribute *parameter, int position=-1)
Add a parameter to the operation.
Definition: operation.cpp:259
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
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:545
QListIterator< UMLAttribute * > UMLAttributeListIt
Definition: umlattributelist.h:20
void removeObject(UMLObject *pObject)
Removes an object from this package.
Definition: package.cpp:193
QStringList incPathList
The include path list (see addIncludePath() and includePathList())
Definition: import_utils.cpp:73
void insertMethod(UMLClassifier *klass, UMLOperation *&op, Uml::Visibility::Enum scope, const QString &type, bool isStatic, bool isAbstract, bool isFriend, bool isConstructor, const QString &comment)
Insert the UMLOperation into the given classifier.
Definition: import_utils.cpp:435
Definition: basictypes.h:248
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Add an argument to a UMLOperation.
Definition: import_utils.cpp:507
UMLAttribute * createAttribute(UMLObject *parent, const QString &name, UMLObject *type)
Definition: object_factory.cpp:218
bool isDatatype(const QString &name, UMLPackage *parentPkg)
Returns true if a type is an actual Datatype.
Definition: import_utils.cpp:596
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
QString formatComment(const QString &comment)
Strip comment lines of leading whitespace and stars.
Definition: import_utils.cpp:120
Definition: artifact.h:37
void addIncludePath(const QString &path)
Add a path to the include path list.
Definition: import_utils.cpp:587
Definition: umlobject.h:58
void setRelatedClassifier(UMLClassifier *c)
Set a related classifier for creation of dependencies on template parameters in createUMLObject().
Definition: import_utils.cpp:91
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
Definition: umlobject.h:53
Definition: umlobject.h:63
bool isStatic() const
Returns true if this UMLObject has classifier scope, otherwise false (the default).
Definition: umlobject.cpp:335
This class contains the non-graphical information required for a UML Artifact.
Definition: artifact.h:27
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:641
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Create a UMLOperation.
Definition: import_utils.cpp:354
void treeViewSetCurrentItem(UMLObject *object)
Set the given object to the current item in the tree view.
Definition: model_utils.cpp:352
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
Definition: umlobject.h:49
bool bPutAtGlobalScope
On encountering a scoped typename string where the scopes have not yet been seen, we synthesize UML o...
Definition: import_utils.cpp:68
Definition: basictypes.h:39
void setDrawAsType(Draw_Type type)
Sets m_drawAsType for which method to draw the artifact as.
Definition: artifact.cpp:77
UMLAttribute * addAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Creates and adds an attribute for the class.
Definition: classifier.cpp:810
Uml::ProgrammingLanguage::Enum activeLanguage() const
Get the language for import and code generation.
Definition: uml.cpp:2353
Definition: umlobject.h:52
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment)
Add an enum literal to an UMLEnum.
Definition: import_utils.cpp:528
UMLTemplate * findTemplate(const QString &name)
Seeks the template parameter of the given name.
Definition: classifier.cpp:1137
void setOriginType(UMLClassifier *origType)
Set the origin type (in case of e.g.
Definition: classifier.cpp:1263
UMLObject * findUMLObjectRaw(Uml::ModelType::Enum, const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject)
Used to find a UMLObject by its type and raw name.
Definition: umldoc.cpp:841
void createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Create a generalization from the given child classifier to the given parent classifier.
Definition: import_utils.cpp:538
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 setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:494
Definition: umlobject.h:54
UMLClassifier * gRelatedClassifier
Related classifier for creation of dependencies on template parameters in createUMLObject().
Definition: import_utils.cpp:58
QStringList includePathList()
Return the list of paths set by previous calls to addIncludePath() and the environment variable UMBRE...
Definition: import_utils.cpp:574
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Return the predefined root folder of the given type.
Definition: umldoc.cpp:2676
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.