umbrello: umbrello/codeimport/import_utils.h Source File

umbrello 2.38.2 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 "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 void checkStdString(QString& typeName);
44
45 UMLObject* createUMLObject(UMLObject::ObjectType type,
46 const QString& name,
47 UMLPackage *parentPkg = 0,
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 = 0);
102
103 UMLPackage *globalScope();
104
105} // end namespace Import_Utils
106
107#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:42
Import_Utils::globalScope
UMLPackage * globalScope()
Definition: import_utils.cpp:842
Import_Utils::formatComment
QString formatComment(const QString &comment)
Definition: import_utils.cpp:118
Import_Utils::putAtGlobalScope
void putAtGlobalScope(bool yesno)
Definition: import_utils.cpp:80
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:770
Import_Utils::createArtifact
UMLObject * createArtifact(const QString &name, UMLFolder *parentPkg, const QString &comment)
Definition: import_utils.cpp:703
Import_Utils::createGeneralization
UMLAssociation * createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Definition: import_utils.cpp:627
Import_Utils::isDatatype
bool isDatatype(const QString &name, UMLPackage *parentPkg)
Definition: import_utils.cpp:832
Import_Utils::assignUniqueIdOnCreation
void assignUniqueIdOnCreation(bool yesno)
Definition: import_utils.cpp:101
Import_Utils::addMethodParameter
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Definition: import_utils.cpp:596
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:524
Import_Utils::createSubDir
UMLFolder * createSubDir(const QString &name, UMLFolder *parentPkg, const QString &comment)
Definition: import_utils.cpp:658
Import_Utils::addIncludePath
void addIncludePath(const QString &path)
Definition: import_utils.cpp:823
Import_Utils::makeOperation
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Definition: import_utils.cpp:442
Import_Utils::newUMLObjectWasCreated
bool newUMLObjectWasCreated()
Definition: import_utils.cpp:110
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:452
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:681
Import_Utils::addEnumLiteral
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment, const QString &value)
Definition: import_utils.cpp:617
Import_Utils::includePathList
QStringList includePathList()
Definition: import_utils.cpp:810
Import_Utils::setRelatedClassifier
void setRelatedClassifier(UMLClassifier *c)
Definition: import_utils.cpp:89
Import_Utils::createUMLObjectHierarchy
UMLObject * createUMLObjectHierarchy(UMLObject::ObjectType type, const QString &name, UMLPackage *topLevelParent)
Definition: import_utils.cpp:402
Uml::Visibility::Enum
Enum
Definition: basictypes.h:45
umlattributelist.h