umbrello: umbrello/dotgenerator.h Source File

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

dotgenerator.h
Go to the documentation of this file.
1 /*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2012-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5
6 #ifndef DOTGENERATOR_H
7
8 class UMLScene;
9 #include <QHash>
10 #include <QPointF>
11 #include <QString>
12
13 #define DOTGENERATOR_DEBUG
19 class DotGenerator
20 {
21 public:
22 DotGenerator();
23
24 bool usePosition();
25 void setUsePosition(bool state);
26
27 bool useFullNodeLabels();
28 void setUseFullNodeLabels(bool state);
29
30 static bool availableConfigFiles(UMLScene *scene, QHash<QString, QString> &configFiles);
31 bool readConfigFile(QString diagramType, const QString &variant = QLatin1String("default"));
32
33 bool createDotFile(UMLScene *scene, const QString &fileName, const QString &variant = QLatin1String("default"));
34
35 static QString currentDotPath();
36 void setGeneratorName(const QString &name);
37 QString generatorFullPath();
38
39 protected:
40 bool findItem(QStringList &params, const QString &search);
41 QString fixID(const QString &_id);
42 int generatorVersion();
43
44 double m_scale;
45 QString m_configFileName;
46 QHash<QString, QString> m_dotParameters;
47 QHash<QString, QString> m_edgeParameters;
48 QHash<QString, QString> m_nodeParameters;
49 QPointF m_origin;
50 QString m_generator;
51 bool m_usePosition;
52 bool m_useFullNodeLabels;
53 QString m_dotPath;
54 int m_version{0};
55
56 friend QDebug operator<<(QDebug out, DotGenerator &c);
57 };
58
59 #endif
DotGenerator
Definition: dotgenerator.h:20
DotGenerator::operator<<
friend QDebug operator<<(QDebug out, DotGenerator &c)
DotGenerator::m_origin
QPointF m_origin
Definition: dotgenerator.h:49
DotGenerator::m_version
int m_version
version of graphviz generator
Definition: dotgenerator.h:54
DotGenerator::useFullNodeLabels
bool useFullNodeLabels()
Definition: dotgenerator.cpp:219
DotGenerator::setUseFullNodeLabels
void setUseFullNodeLabels(bool state)
Definition: dotgenerator.cpp:231
DotGenerator::readConfigFile
bool readConfigFile(QString diagramType, const QString &variant=QLatin1String("default"))
Definition: dotgenerator.cpp:275
DotGenerator::m_edgeParameters
QHash< QString, QString > m_edgeParameters
contains global edge parameters
Definition: dotgenerator.h:47
DotGenerator::m_scale
double m_scale
scale factor
Definition: dotgenerator.h:44
DotGenerator::currentDotPath
static QString currentDotPath()
Definition: dotgenerator.cpp:154
DotGenerator::setUsePosition
void setUsePosition(bool state)
Definition: dotgenerator.cpp:209
DotGenerator::findItem
bool findItem(QStringList &params, const QString &search)
Definition: dotgenerator.cpp:556
DotGenerator::m_configFileName
QString m_configFileName
template filename
Definition: dotgenerator.h:45
DotGenerator::m_useFullNodeLabels
bool m_useFullNodeLabels
use full node labels
Definition: dotgenerator.h:52
DotGenerator::m_dotPath
QString m_dotPath
contains path to generator executable
Definition: dotgenerator.h:53
DotGenerator::m_dotParameters
QHash< QString, QString > m_dotParameters
contains global graph parameters
Definition: dotgenerator.h:46
DotGenerator::fixID
QString fixID(const QString &_id)
Definition: dotgenerator.cpp:568
DotGenerator::m_generator
QString m_generator
name of graphviz generator
Definition: dotgenerator.h:50
DotGenerator::usePosition
bool usePosition()
Definition: dotgenerator.cpp:199
DotGenerator::m_usePosition
bool m_usePosition
use position tag from dot (not used yet)
Definition: dotgenerator.h:51
DotGenerator::createDotFile
bool createDotFile(UMLScene *scene, const QString &fileName, const QString &variant=QLatin1String("default"))
Definition: dotgenerator.cpp:372
DotGenerator::setGeneratorName
void setGeneratorName(const QString &name)
Definition: dotgenerator.cpp:182
DotGenerator::generatorVersion
int generatorVersion()
Definition: dotgenerator.cpp:580
DotGenerator::m_nodeParameters
QHash< QString, QString > m_nodeParameters
contains global node parameters
Definition: dotgenerator.h:48
DotGenerator::generatorFullPath
QString generatorFullPath()
Definition: dotgenerator.cpp:189
DotGenerator::DotGenerator
DotGenerator()
Definition: dotgenerator.cpp:134
DotGenerator::availableConfigFiles
static bool availableConfigFiles(UMLScene *scene, QHash< QString, QString > &configFiles)
Definition: dotgenerator.cpp:243
UMLScene
Definition: umlscene.h:65
Import_Rose::diagramType
Uml::DiagramType::Enum diagramType(QString objType)
Definition: petaltree2uml.cpp:604