umbrello: umbrello/dotgenerator.h Source File

umbrello 2.32.0 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 * 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) 2012-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef DOTGENERATOR_H
12
13 class UMLScene;
14 #include <QHash>
15 #include <QPointF>
16 #include <QString>
17
18 #define DOTGENERATOR_DEBUG
24 class DotGenerator
25 {
26 public:
27 DotGenerator();
28
29 bool usePosition();
30 void setUsePosition(bool state);
31
32 bool useFullNodeLabels();
33 void setUseFullNodeLabels(bool state);
34
35 static bool availableConfigFiles(UMLScene *scene, QHash<QString, QString> &configFiles);
36 bool readConfigFile(QString diagramType, const QString &variant = QLatin1String("default"));
37
38 bool createDotFile(UMLScene *scene, const QString &fileName, const QString &variant = QLatin1String("default"));
39
40 static QString currentDotPath();
41 void setGeneratorName(const QString &name);
42 QString generatorFullPath();
43
44 protected:
45 bool findItem(QStringList &params, const QString &search);
46 QString fixID(const QString &_id);
47 int generatorVersion();
48
49 double m_scale;
50 QString m_configFileName;
51 QHash<QString, QString> m_dotParameters;
52 QHash<QString, QString> m_edgeParameters;
53 QHash<QString, QString> m_nodeParameters;
54 QPointF m_origin;
55 QString m_generator;
56 bool m_usePosition;
57 bool m_useFullNodeLabels;
58 QString m_dotPath;
59 int m_version{0};
60
61 friend QDebug operator<<(QDebug out, DotGenerator &c);
62 };
63
64 #endif
DotGenerator
Definition: dotgenerator.h:25
DotGenerator::operator<<
friend QDebug operator<<(QDebug out, DotGenerator &c)
DotGenerator::m_origin
QPointF m_origin
Definition: dotgenerator.h:54
DotGenerator::m_version
int m_version
version of graphviz generator
Definition: dotgenerator.h:59
DotGenerator::useFullNodeLabels
bool useFullNodeLabels()
Definition: dotgenerator.cpp:224
DotGenerator::setUseFullNodeLabels
void setUseFullNodeLabels(bool state)
Definition: dotgenerator.cpp:236
DotGenerator::readConfigFile
bool readConfigFile(QString diagramType, const QString &variant=QLatin1String("default"))
Definition: dotgenerator.cpp:280
DotGenerator::m_edgeParameters
QHash< QString, QString > m_edgeParameters
contains global edge parameters
Definition: dotgenerator.h:52
DotGenerator::m_scale
double m_scale
scale factor
Definition: dotgenerator.h:49
DotGenerator::currentDotPath
static QString currentDotPath()
Definition: dotgenerator.cpp:159
DotGenerator::setUsePosition
void setUsePosition(bool state)
Definition: dotgenerator.cpp:214
DotGenerator::findItem
bool findItem(QStringList &params, const QString &search)
Definition: dotgenerator.cpp:561
DotGenerator::m_configFileName
QString m_configFileName
template filename
Definition: dotgenerator.h:50
DotGenerator::m_useFullNodeLabels
bool m_useFullNodeLabels
use full node labels
Definition: dotgenerator.h:57
DotGenerator::m_dotPath
QString m_dotPath
contains path to generator executable
Definition: dotgenerator.h:58
DotGenerator::m_dotParameters
QHash< QString, QString > m_dotParameters
contains global graph parameters
Definition: dotgenerator.h:51
DotGenerator::fixID
QString fixID(const QString &_id)
Definition: dotgenerator.cpp:573
DotGenerator::m_generator
QString m_generator
name of graphviz generator
Definition: dotgenerator.h:55
DotGenerator::usePosition
bool usePosition()
Definition: dotgenerator.cpp:204
DotGenerator::m_usePosition
bool m_usePosition
use position tag from dot (not used yet)
Definition: dotgenerator.h:56
DotGenerator::createDotFile
bool createDotFile(UMLScene *scene, const QString &fileName, const QString &variant=QLatin1String("default"))
Definition: dotgenerator.cpp:377
DotGenerator::setGeneratorName
void setGeneratorName(const QString &name)
Definition: dotgenerator.cpp:187
DotGenerator::generatorVersion
int generatorVersion()
Definition: dotgenerator.cpp:585
DotGenerator::m_nodeParameters
QHash< QString, QString > m_nodeParameters
contains global node parameters
Definition: dotgenerator.h:53
DotGenerator::generatorFullPath
QString generatorFullPath()
Definition: dotgenerator.cpp:194
DotGenerator::DotGenerator
DotGenerator()
Definition: dotgenerator.cpp:139
DotGenerator::availableConfigFiles
static bool availableConfigFiles(UMLScene *scene, QHash< QString, QString > &configFiles)
Definition: dotgenerator.cpp:248
UMLScene
Definition: umlscene.h:70
Import_Rose::diagramType
Uml::DiagramType::Enum diagramType(QString objType)
Definition: petaltree2uml.cpp:609