umbrello/umbrello
import_utils.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
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
QString cap(int nth) const
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:113
UMLAssociation * findAssociation(Uml::AssociationType::Enum assocType, const UMLObject *roleAObj, const UMLObject *roleBObj, bool *swap=0)
Finds an association.
Definition: umldoc.cpp:1104
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:99
Uml::ParameterDirection::Enum getParmKind() const
Definition: attribute.cpp:122
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:431
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:355
Definition: basictypes.h:41
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString & prepend(QChar ch)
UMLObject * createArtifact(const QString &name, UMLPackage *parentPkg, const QString &comment)
Create an artifact with the given name.
Definition: import_utils.cpp:551
bool contains(const QString &str, Qt::CaseSensitivity cs) const
QString simplified() const
void setName(const QString &name)
Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.
Definition: attribute.cpp:76
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:273
QString join(const QString &separator) const
QString & remove(int position, int n)
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:910
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:141
Definition: basictypes.h:104
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype, bool searchInParentPackageOnly)
Find or create a document object.
Definition: import_utils.cpp:170
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:83
void setType(UMLObject *type)
Reimplement method from UMLClassifierListItem.
Definition: operation.cpp:88
UMLObject * createNewUMLObject(UMLObject::ObjectType type, const QString &name, UMLPackage *parentPkg, bool undoable)
Creates a new UMLObject of the given type.
Definition: object_factory.cpp:91
void assignUniqueIdOnCreation(bool yesno)
Control whether the createUMLObject() solicits a new unique ID for the created object.
Definition: object_factory.cpp:65
int indexIn(const QString &str, int offset, CaretMode caretMode) const
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Creates a UMLObject of the given type.
Definition: object_factory.cpp:192
static QString toString(ObjectType ot)
Helper function for debug output.
Definition: umlobject.cpp:1079
bool addOperation(UMLOperation *op, int position=-1)
Appends an operation to the classifier.
Definition: classifier.cpp:312
int count(const T &value) const
void append(const T &value)
bool isInterface() const
Returns true if this classifier represents an interface.
Definition: classifier.cpp:117
void pop_front()
void addParm(UMLAttribute *parameter, int position=-1)
Add a parameter to the operation.
Definition: operation.cpp:260
QString fileName() const
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:543
void removeObject(UMLObject *pObject)
Removes an object from this package.
Definition: package.cpp:193
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void setVisibilityCmd(Uml::Visibility::Enum visibility)
Method used by setVisibility: it is called by cmdSetVisibility, Don't use it!
Definition: umlobject.cpp:451
QStringList incPathList
The include path list (see addIncludePath() and includePathList())
Definition: import_utils.cpp:74
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:426
Definition: basictypes.h:254
typedef Iterator
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
T & front()
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Add an argument to a UMLOperation.
Definition: import_utils.cpp:498
T & first()
UMLAttribute * createAttribute(UMLObject *parent, const QString &name, UMLObject *type)
Definition: object_factory.cpp:263
bool isDatatype(const QString &name, UMLPackage *parentPkg)
Returns true if a type is an actual Datatype.
Definition: import_utils.cpp:617
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:2652
QString formatComment(const QString &comment)
Strip comment lines of leading whitespace and stars.
Definition: import_utils.cpp:121
void pop_back()
iterator end()
bool contains(QChar ch, Qt::CaseSensitivity cs) const
Definition: artifact.h:37
void addIncludePath(const QString &path)
Add a path to the include path list.
Definition: import_utils.cpp:608
Definition: umlobject.h:59
void setRelatedClassifier(UMLClassifier *c)
Set a related classifier for creation of dependencies on template parameters in createUMLObject().
Definition: import_utils.cpp:92
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
Definition: umlobject.h:54
Definition: umlobject.h:64
bool isStatic() const
Returns true if this UMLObject has classifier scope, otherwise false (the default).
Definition: umlobject.cpp:331
Definition: umlobject.h:58
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:639
QString mid(int position, int n) const
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Create a UMLOperation.
Definition: import_utils.cpp:345
void treeViewSetCurrentItem(UMLObject *object)
Set the given object to the current item in the tree view.
Definition: model_utils.cpp:361
Definition: umlobject.h:57
void assignUniqueIdOnCreation(bool yesno)
Control whether the creation methods solicit a new unique ID for the created object.
Definition: import_utils.cpp:104
Definition: umlobject.h:50
bool bPutAtGlobalScope
On encountering a scoped typename string where the scopes have not yet been seen, we synthesize UML o...
Definition: import_utils.cpp:69
T & last()
typedef ConstIterator
Definition: basictypes.h:39
UMLListViewItem * findUMLObject(const UMLObject *p) const
Find an UMLObject in the listview.
Definition: umllistview.cpp:1270
void setDrawAsType(Draw_Type type)
Sets m_drawAsType for which method to draw the artifact as.
Definition: artifact.cpp:77
QString fromLatin1(const char *str, int size)
UMLAttribute * addAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Creates and adds an attribute for the class.
Definition: classifier.cpp:818
Uml::ProgrammingLanguage::Enum activeLanguage() const
Get the language for import and code generation.
Definition: uml.cpp:2439
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment)
Add an enum literal to an UMLEnum.
Definition: import_utils.cpp:519
UMLTemplate * findTemplate(const QString &name)
Seeks the template parameter of the given name.
Definition: classifier.cpp:1145
void setOriginType(UMLClassifier *origType)
Set the origin type (in case of e.g.
Definition: classifier.cpp:1271
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:857
QObject * parent() const
void createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Create a generalization from the given child classifier to the given parent classifier.
Definition: import_utils.cpp:529
T & back()
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:825
iterator begin()
void setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:492
Definition: umlobject.h:55
UMLClassifier * gRelatedClassifier
Related classifier for creation of dependencies on template parameters in createUMLObject().
Definition: import_utils.cpp:59
QStringList includePathList()
Return the list of paths set by previous calls to addIncludePath() and the environment variable UMBRE...
Definition: import_utils.cpp:595
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Return the predefined root folder of the given type.
Definition: umldoc.cpp:2721
bool hasNext() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.