umbrello: umbrello/codeimport/import_utils.h Source File

umbrello 2.32.2 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

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 "folder.h"
11#include "umlattributelist.h"
12
13#include <QStringList>
14
15class UMLObject;
16class UMLClassifier;
17class UMLPackage;
18class UMLOperation;
19class UMLEnum;
20class UMLScene;
21
22class QMimeData;
23
29namespace 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 = NULL,
41 const QString &comment = QString());
42
43 UMLObject* createUMLObject(UMLObject::ObjectType type,
44 const QString& name,
45 UMLPackage *parentPkg = 0,
46 const QString& comment = QString(),
47 const QString& stereotype = QString(),
48 bool searchInParentPackageOnly = false,
49 bool remapParent = true);
50
51 UMLObject* createUMLObjectHierarchy(UMLObject::ObjectType type, const QString &name, UMLPackage *parentPkg);
52
53 void putAtGlobalScope(bool yesno);
54
55 void setRelatedClassifier(UMLClassifier *c);
56
57 void assignUniqueIdOnCreation(bool yesno);
58
59 UMLAttribute* insertAttribute(UMLClassifier *klass, Uml::Visibility::Enum scope,
60 const QString& name,
61 const QString& type,
62 const QString& comment = QString(),
63 bool isStatic = false);
64 UMLAttribute *insertAttribute(UMLClassifier *klass, Uml::Visibility::Enum scope,
65 const QString& name,
66 UMLClassifier *attrType,
67 const QString& comment = QString(),
68 bool isStatic = false);
69
70 UMLOperation* makeOperation(UMLClassifier *parent, const QString &name);
71
72 void insertMethod(UMLClassifier *klass, UMLOperation* &op,
73 Uml::Visibility::Enum scope, const QString& type,
74 bool isStatic, bool isAbstract,
75 bool isFriend = false, bool isConstructor = false, bool isDestructor = false,
76 const QString& comment = QString());
77
78 UMLAttribute* addMethodParameter(UMLOperation *method,
79 const QString& type,
80 const QString& name);
81
82 void addEnumLiteral(UMLEnum *enumType, const QString &literal,
83 const QString &comment = QString(),
84 const QString &value = QString());
85
86 UMLAssociation *createGeneralization(UMLClassifier *child, UMLClassifier *parent);
87 void createGeneralization(UMLClassifier *child, const QString &parentName);
88
89 UMLEnum *remapUMLEnum(UMLObject *ns, UMLPackage *currentScope);
90
91 QString formatComment(const QString &comment);
92
93 QStringList includePathList();
94
95 void addIncludePath(const QString& path);
96
97 bool newUMLObjectWasCreated();
98
99 bool isDatatype(const QString& name, UMLPackage *parentPkg = 0);
100
101 UMLPackage *globalScope();
102
103} // end namespace Import_Utils
104
105#endif
basictypes.h
UMLAssociation
Sets up association information.
Definition: association.h:29
UMLAttribute
Sets up attribute information.
Definition: attribute.h:23
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
UMLEnum
Non-graphical Information for an Enum.
Definition: enum.h:24
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:30
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:76
UMLOperation
Definition: operation.h:20
UMLPackage
Non-graphical information for a Package.
Definition: package.h:28
UMLScene
Definition: umlscene.h:65
folder.h
Import_Utils
Definition: import_utils.cpp:40
Import_Utils::globalScope
UMLPackage * globalScope()
Definition: import_utils.cpp:811
Import_Utils::formatComment
QString formatComment(const QString &comment)
Definition: import_utils.cpp:116
Import_Utils::putAtGlobalScope
void putAtGlobalScope(bool yesno)
Definition: import_utils.cpp:78
Import_Utils::remapUMLEnum
UMLEnum * remapUMLEnum(UMLObject *ns, UMLPackage *currentScope)
Definition: import_utils.cpp:741
Import_Utils::createArtifact
UMLObject * createArtifact(const QString &name, UMLFolder *parentPkg, const QString &comment)
Definition: import_utils.cpp:674
Import_Utils::createGeneralization
UMLAssociation * createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Definition: import_utils.cpp:598
Import_Utils::isDatatype
bool isDatatype(const QString &name, UMLPackage *parentPkg)
Definition: import_utils.cpp:801
Import_Utils::assignUniqueIdOnCreation
void assignUniqueIdOnCreation(bool yesno)
Definition: import_utils.cpp:99
Import_Utils::addMethodParameter
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Definition: import_utils.cpp:567
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:493
Import_Utils::createSubDir
UMLFolder * createSubDir(const QString &name, UMLFolder *parentPkg, const QString &comment)
Definition: import_utils.cpp:629
Import_Utils::addIncludePath
void addIncludePath(const QString &path)
Definition: import_utils.cpp:792
Import_Utils::makeOperation
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Definition: import_utils.cpp:411
Import_Utils::newUMLObjectWasCreated
bool newUMLObjectWasCreated()
Definition: import_utils.cpp:108
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:421
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:173
Import_Utils::createArtifactFolder
UMLObject * createArtifactFolder(const QString &name, UMLPackage *parentPkg, const QString &comment)
Definition: import_utils.cpp:652
Import_Utils::addEnumLiteral
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment, const QString &value)
Definition: import_utils.cpp:588
Import_Utils::includePathList
QStringList includePathList()
Definition: import_utils.cpp:779
Import_Utils::setRelatedClassifier
void setRelatedClassifier(UMLClassifier *c)
Definition: import_utils.cpp:87
Import_Utils::createUMLObjectHierarchy
UMLObject * createUMLObjectHierarchy(UMLObject::ObjectType type, const QString &name, UMLPackage *topLevelParent)
Definition: import_utils.cpp:371
Uml::Visibility::Enum
Enum
Definition: basictypes.h:45
umlattributelist.h