umbrello: umbrello/dotgenerator.h Source File

umbrello 2.38.3 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

dotgenerator.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2012-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef DOTGENERATOR_H
7
8class UMLScene;
9#include <QHash>
10#include <QPointF>
11#include <QString>
12
13#define DOTGENERATOR_DEBUG
19 class DotGenerator
20{
21public:
22 DotGenerator();
23
24 bool usePosition() const;
25 void setUsePosition(bool state);
26
27 bool useFullNodeLabels() const;
28 void setUseFullNodeLabels(bool state);
29
30 static bool availableConfigFiles(UMLScene *scene, QHash<QString, QString> &configFiles);
31 bool readConfigFile(QString diagramType, const QString &variant = QStringLiteral("default"));
32
33 bool createDotFile(UMLScene *scene, const QString &fileName, const QString &variant = QStringLiteral("default"));
34
35 static QString currentDotPath();
36 void setGeneratorName(const QString &name);
37 QString generatorFullPath() const;
38
39protected:
40 bool findItem(QStringList &params, const QString &search);
41 QString fixID(const QString &_id);
42 int generatorVersion() const;
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::readConfigFile
bool readConfigFile(QString diagramType, const QString &variant=QStringLiteral("default"))
Definition dotgenerator.cpp:264
DotGenerator::generatorVersion
int generatorVersion() const
Definition dotgenerator.cpp:577
DotGenerator::setUseFullNodeLabels
void setUseFullNodeLabels(bool state)
Definition dotgenerator.cpp:226
DotGenerator::createDotFile
bool createDotFile(UMLScene *scene, const QString &fileName, const QString &variant=QStringLiteral("default"))
Definition dotgenerator.cpp:364
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:152
DotGenerator::usePosition
bool usePosition() const
Definition dotgenerator.cpp:194
DotGenerator::setUsePosition
void setUsePosition(bool state)
Definition dotgenerator.cpp:204
DotGenerator::findItem
bool findItem(QStringList &params, const QString &search)
Definition dotgenerator.cpp:553
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:565
DotGenerator::useFullNodeLabels
bool useFullNodeLabels() const
Definition dotgenerator.cpp:214
DotGenerator::m_generator
QString m_generator
name of graphviz generator
Definition dotgenerator.h:50
DotGenerator::m_usePosition
bool m_usePosition
use position tag from dot (not used yet)
Definition dotgenerator.h:51
DotGenerator::setGeneratorName
void setGeneratorName(const QString &name)
Definition dotgenerator.cpp:176
DotGenerator::generatorFullPath
QString generatorFullPath() const
Definition dotgenerator.cpp:184
DotGenerator::m_nodeParameters
QHash< QString, QString > m_nodeParameters
contains global node parameters
Definition dotgenerator.h:48
DotGenerator::DotGenerator
DotGenerator()
Definition dotgenerator.cpp:132
DotGenerator::availableConfigFiles
static bool availableConfigFiles(UMLScene *scene, QHash< QString, QString > &configFiles)
Definition dotgenerator.cpp:238
UMLScene
Definition umlscene.h:65