diff --git a/umbrello/dotgenerator.h b/umbrello/dotgenerator.h index 80d42ada8..b0cdbd2f4 100644 --- a/umbrello/dotgenerator.h +++ b/umbrello/dotgenerator.h @@ -1,64 +1,64 @@ /*************************************************************************** * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * copyright (C) 2012-2020 * * Umbrello UML Modeller Authors * ***************************************************************************/ #ifndef DOTGENERATOR_H class UMLScene; #include #include #include #define DOTGENERATOR_DEBUG /** * The class DotGenerator provides export of diagrams as dot files. * * @author Ralf Habacker */ class DotGenerator { public: DotGenerator(); bool usePosition(); void setUsePosition(bool state); bool useFullNodeLabels(); void setUseFullNodeLabels(bool state); static bool availableConfigFiles(UMLScene *scene, QHash &configFiles); bool readConfigFile(QString diagramType, const QString &variant = QLatin1String("default")); bool createDotFile(UMLScene *scene, const QString &fileName, const QString &variant = QLatin1String("default")); static QString currentDotPath(); void setGeneratorName(const QString &name); QString generatorFullPath(); protected: bool findItem(QStringList ¶ms, const QString &search); QString fixID(const QString &_id); int generatorVersion(); double m_scale; ///< scale factor QString m_configFileName; ///< template filename QHash m_dotParameters; ///< contains global graph parameters QHash m_edgeParameters; ///< contains global edge parameters QHash m_nodeParameters; ///< contains global node parameters QPointF m_origin; QString m_generator; ///< name of graphviz generator bool m_usePosition; ///< use position tag from dot (not used yet) bool m_useFullNodeLabels; ///< use full node labels QString m_dotPath; ///< contains path to generator executable - int m_version; ///< version of graphviz generator + int m_version{0}; ///< version of graphviz generator friend QDebug operator<<(QDebug out, DotGenerator &c); }; #endif