umbrello: umbrello/diagram_utils.h Source File

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

diagram_utils.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2017-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef DIAGRAM_UTILS_H
7#define DIAGRAM_UTILS_H
8
9#include "basictypes.h"
10
11#include <QString>
12
13class UMLScene;
14class QMimeData;
15
21namespace Diagram_Utils {
22 typedef enum { Invalid, GDB, QtCreatorGDB, Simple} SequenceLineFormat;
23 SequenceLineFormat detectSequenceLineFormat(const QStringList &lines);
24 bool importSequences(const QStringList &lines, UMLScene *scene, const QString &sourceHint=QString());
25 bool importClassGraph(const QStringList &lines, UMLScene *scene, const QString &sourceHint=QString());
26 bool importGraph(const QStringList &lines, UMLScene *scene, const QString &sourceHint=QString());
27 bool importGraph(const QString &fileName, UMLScene *scene);
28 bool importGraph(const QMimeData *mimeData, UMLScene *scene);
29 bool isUniqueDiagramName(Uml::DiagramType::Enum type, QString &name);
30} // end namespace Diagram_Utils
31
32#endif
basictypes.h
UMLScene
Definition umlscene.h:65
Diagram_Utils
Definition diagram_utils.cpp:34
Diagram_Utils::importGraph
bool importGraph(const QStringList &lines, UMLScene *scene, const QString &sourceHint)
Definition diagram_utils.cpp:449
Diagram_Utils::SequenceLineFormat
SequenceLineFormat
Definition diagram_utils.h:22
Diagram_Utils::Simple
@ Simple
Definition diagram_utils.h:22
Diagram_Utils::GDB
@ GDB
Definition diagram_utils.h:22
Diagram_Utils::Invalid
@ Invalid
Definition diagram_utils.h:22
Diagram_Utils::QtCreatorGDB
@ QtCreatorGDB
Definition diagram_utils.h:22
Diagram_Utils::detectSequenceLineFormat
SequenceLineFormat detectSequenceLineFormat(const QStringList &lines)
Definition diagram_utils.cpp:41
Diagram_Utils::importSequences
bool importSequences(const QStringList &lines, UMLScene *scene, const QString &sourceHint)
Definition diagram_utils.cpp:198
Diagram_Utils::isUniqueDiagramName
bool isUniqueDiagramName(Uml::DiagramType::Enum type, QString &name)
Definition diagram_utils.cpp:522
Diagram_Utils::importClassGraph
bool importClassGraph(const QStringList &lines, UMLScene *scene, const QString &sourceHint)
Definition diagram_utils.cpp:305
Uml::DiagramType::Enum
Enum
Definition basictypes.h:63