umbrello: umbrello/diagram_utils.h Source File

umbrello 2.32.0 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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2017-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef DIAGRAM_UTILS_H
12 #define DIAGRAM_UTILS_H
13
14 #include "basictypes.h"
15
16 #include <QString>
17
18 class UMLScene;
19 class QMimeData;
20 class QStringList;
21
27 namespace Diagram_Utils {
28 typedef enum { Invalid, GDB, QtCreatorGDB, Simple} SequenceLineFormat;
29 SequenceLineFormat detectSequenceLineFormat(const QStringList &lines);
30 bool importSequences(const QStringList &lines, UMLScene *scene, const QString &fileName=QString());
31 bool importGraph(const QStringList &lines, UMLScene *scene, const QString &fileName=QString());
32 bool importGraph(const QString &fileName, UMLScene *scene);
33 bool importGraph(const QMimeData *mimeData, UMLScene *scene);
34 bool isUniqueDiagramName(Uml::DiagramType::Enum type, QString &name);
35 } // end namespace Diagram_Utils
36
37 #endif
basictypes.h
UMLScene
Definition: umlscene.h:70
Diagram_Utils
Definition: diagram_utils.cpp:39
Diagram_Utils::importGraph
bool importGraph(const QStringList &lines, UMLScene *scene, const QString &fileName)
Definition: diagram_utils.cpp:317
Diagram_Utils::SequenceLineFormat
SequenceLineFormat
Definition: diagram_utils.h:28
Diagram_Utils::Simple
@ Simple
Definition: diagram_utils.h:28
Diagram_Utils::GDB
@ GDB
Definition: diagram_utils.h:28
Diagram_Utils::Invalid
@ Invalid
Definition: diagram_utils.h:28
Diagram_Utils::QtCreatorGDB
@ QtCreatorGDB
Definition: diagram_utils.h:28
Diagram_Utils::detectSequenceLineFormat
SequenceLineFormat detectSequenceLineFormat(const QStringList &lines)
Definition: diagram_utils.cpp:46
Diagram_Utils::isUniqueDiagramName
bool isUniqueDiagramName(Uml::DiagramType::Enum type, QString &name)
Definition: diagram_utils.cpp:522
Diagram_Utils::importSequences
bool importSequences(const QStringList &lines, UMLScene *scene, const QString &fileName)
Definition: diagram_utils.cpp:202
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77