umbrello 26.03.70-1a62d36 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

import_utils.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2005-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef IMPORT_UTILS_H
7#define IMPORT_UTILS_H
8
9#include "basictypes.h"
10#include "umlfolder.h"
11#include "umlattributelist.h"
12
13#include <QStringList>
14
15 class UMLObject;
16 class UMLClassifier;
17 class UMLPackage;
18 class UMLOperation;
19 class UMLEnum;
20 class UMLScene;
21
22 class QMimeData;
23
29 namespace Import_Utils {
30
31 UMLFolder *createSubDir(const QString& name,
32 UMLFolder *parentPkg,
33 const QString &comment = QString());
34
35 UMLObject *createArtifactFolder(const QString& name,
36 UMLPackage *parentPkg,
37 const QString &comment);
38
39 UMLObject *createArtifact(const QString& name,
40 UMLFolder *parentPkg = nullptr,
41 const QString &comment = QString());
42
43 void checkStdString(QString& typeName);
44
45 UMLObject* createUMLObject(UMLObject::ObjectType type,
46 const QString& name,
47 UMLPackage *parentPkg = nullptr,
48 const QString& comment = QString(),
49 const QString& stereotype = QString(),
50 bool searchInParentPackageOnly = false,
51 bool remapParent = true);
52
53 UMLObject* createUMLObjectHierarchy(UMLObject::ObjectType type, const QString &name, UMLPackage *parentPkg);
54
55 void putAtGlobalScope(bool yesno);
56
57 void setRelatedClassifier(UMLClassifier *c);
58
59 void assignUniqueIdOnCreation(bool yesno);
60
61 UMLAttribute* insertAttribute(UMLClassifier *klass, Uml::Visibility::Enum scope,
62 const QString& name,
63 const QString& type,
64 const QString& comment = QString(),
65 bool isStatic = false);
66 UMLAttribute *insertAttribute(UMLClassifier *klass, Uml::Visibility::Enum scope,
67 const QString& name,
68 UMLClassifier *attrType,
69 const QString& comment = QString(),
70 bool isStatic = false);
71
72 UMLOperation* makeOperation(UMLClassifier *parent, const QString &name);
73
74 void insertMethod(UMLClassifier *klass, UMLOperation* &op,
75 Uml::Visibility::Enum scope, const QString& type,
76 bool isStatic, bool isAbstract,
77 bool isFriend = false, bool isConstructor = false, bool isDestructor = false,
78 const QString& comment = QString());
79
80 UMLAttribute* addMethodParameter(UMLOperation *method,
81 const QString& type,
82 const QString& name);
83
84 void addEnumLiteral(UMLEnum *enumType, const QString &literal,
85 const QString &comment = QString(),
86 const QString &value = QString());
87
88 UMLAssociation *createGeneralization(UMLClassifier *child, UMLClassifier *parent);
89 void createGeneralization(UMLClassifier *child, const QString &parentName);
90
91 UMLEnum *remapUMLEnum(UMLObject *ns, UMLPackage *currentScope);
92
93 QString formatComment(const QString &comment);
94
95 QStringList includePathList();
96
97 void addIncludePath(const QString& path);
98
99 bool newUMLObjectWasCreated();
100
101 bool isDatatype(const QString& name, UMLPackage *parentPkg = nullptr);
102
103 UMLPackage *globalScope();
104
105} // end namespace Import_Utils
106
107#endif
basictypes.h
UMLAssociation
Sets up association information.
Definition: umlassociation.h:29
UMLAttribute
Sets up attribute information.
Definition: umlattribute.h:23
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
UMLEnum
Non-graphical Information for an Enum.
Definition: umlenum.h:24
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: umlfolder.h:30
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:76
UMLOperation
Definition: umloperation.h:20
UMLPackage
Non-graphical information for a Package.
Definition: umlpackage.h:28
UMLScene
Definition: umlscene.h:66
Import_Utils
Definition: import_utils.cpp:41
Import_Utils::globalScope
UMLPackage * globalScope()
Definition: import_utils.cpp:843
Import_Utils::formatComment
QString formatComment(const QString &comment)
Definition: import_utils.cpp:117
Import_Utils::putAtGlobalScope
void putAtGlobalScope(bool yesno)
Definition: import_utils.cpp:79
Import_Utils::checkStdString
void checkStdString(QString &typeName)
Definition: import_utils.cpp:167
Import_Utils::remapUMLEnum
UMLEnum * remapUMLEnum(UMLObject *ns, UMLPackage *currentScope)
Definition: import_utils.cpp:771
Import_Utils::createArtifact
UMLObject * createArtifact(const QString &name, UMLFolder *parentPkg, const QString &comment)
Definition: import_utils.cpp:704
Import_Utils::createGeneralization
UMLAssociation * createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Definition: import_utils.cpp:628
Import_Utils::isDatatype
bool isDatatype(const QString &name, UMLPackage *parentPkg)
Definition: import_utils.cpp:833
Import_Utils::assignUniqueIdOnCreation
void assignUniqueIdOnCreation(bool yesno)
Definition: import_utils.cpp:100
Import_Utils::addMethodParameter
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Definition: import_utils.cpp:597
Import_Utils::insertMethod
void insertMethod(UMLClassifier *klass, UMLOperation *&op, Uml::Visibility::Enum scope, const QString &type, bool isStatic, bool isAbstract, bool isFriend, bool isConstructor, bool isDestructor, const QString &comment)
Definition: import_utils.cpp:525
Import_Utils::createSubDir
UMLFolder * createSubDir(const QString &name, UMLFolder *parentPkg, const QString &comment)
Definition: import_utils.cpp:659
Import_Utils::addIncludePath
void addIncludePath(const QString &path)
Definition: import_utils.cpp:824
Import_Utils::makeOperation
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Definition: import_utils.cpp:443
Import_Utils::newUMLObjectWasCreated
bool newUMLObjectWasCreated()
Definition: import_utils.cpp:109
Import_Utils::insertAttribute
UMLAttribute * insertAttribute(UMLClassifier *owner, Uml::Visibility::Enum scope, const QString &name, UMLClassifier *attrType, const QString &comment, bool isStatic)
Definition: import_utils.cpp:453
Import_Utils::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype, bool searchInParentPackageOnly, bool remapParent)
Definition: import_utils.cpp:184
Import_Utils::createArtifactFolder
UMLObject * createArtifactFolder(const QString &name, UMLPackage *parentPkg, const QString &comment)
Definition: import_utils.cpp:682
Import_Utils::addEnumLiteral
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment, const QString &value)
Definition: import_utils.cpp:618
Import_Utils::includePathList
QStringList includePathList()
Definition: import_utils.cpp:811
Import_Utils::setRelatedClassifier
void setRelatedClassifier(UMLClassifier *c)
Definition: import_utils.cpp:88
Import_Utils::createUMLObjectHierarchy
UMLObject * createUMLObjectHierarchy(UMLObject::ObjectType type, const QString &name, UMLPackage *topLevelParent)
Definition: import_utils.cpp:403
Uml::Visibility::Enum
Enum
Definition: basictypes.h:45
umlattributelist.h
umlfolder.h