umbrello: umbrello/layoutgenerator.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

layoutgenerator.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2012-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef LAYOUTGENERATOR_H
7
8#include "dotgenerator.h"
9#include "optionstate.h"
10
12#include <QRectF>
13
33 class LayoutGenerator : public DotGenerator
34{
35public:
36 typedef QHash<QString,QRectF> NodeType;
37 typedef QList<QPointF> EdgePoints;
38 typedef QHash<QString,EdgePoints> EdgeType;
39 typedef QMap<QString,QStringList> ParameterList;
40
41 LayoutGenerator();
42
43 bool isEnabled() const;
44 bool generate(UMLScene *scene, const QString &variant = QString());
45 bool apply(UMLScene *scene);
46 static bool availableConfigFiles(UMLScene *scene, QHash<QString,QString> &configFiles);
47 QPointF origin(const QString &id);
48 bool readGeneratedDotFile(const QString &fileName);
49 bool parseLine(const QString &line);
50 bool splitParameters(QMap<QString,QStringList> &map, const QString &s);
51 QPointF mapToScene(const QPointF &p);
52
53protected:
54 QRectF m_boundingRect;
55 NodeType m_nodes;
56 EdgeType m_edges;
57 QHash<QString, QPointF> m_edgeLabelPosition;
58
59 friend QDebug operator<<(QDebug out, LayoutGenerator &c);
60};
61
62#if 0
63static QDebug operator<<(QDebug out, LayoutGenerator &c);
64#endif
65
66#endif
DotGenerator
Definition: dotgenerator.h:20
LayoutGenerator
Definition: layoutgenerator.h:34
LayoutGenerator::m_edges
EdgeType m_edges
list of edges found in parsed dot file
Definition: layoutgenerator.h:56
LayoutGenerator::EdgeType
QHash< QString, EdgePoints > EdgeType
Definition: layoutgenerator.h:38
LayoutGenerator::m_edgeLabelPosition
QHash< QString, QPointF > m_edgeLabelPosition
contains global node parameters
Definition: layoutgenerator.h:57
LayoutGenerator::splitParameters
bool splitParameters(QMap< QString, QStringList > &map, const QString &s)
LayoutGenerator::NodeType
QHash< QString, QRectF > NodeType
Definition: layoutgenerator.h:36
LayoutGenerator::apply
bool apply(UMLScene *scene)
Definition: layoutgenerator.cpp:189
LayoutGenerator::m_boundingRect
QRectF m_boundingRect
Definition: layoutgenerator.h:54
LayoutGenerator::ParameterList
QMap< QString, QStringList > ParameterList
Definition: layoutgenerator.h:39
LayoutGenerator::parseLine
bool parseLine(const QString &line)
Definition: layoutgenerator.cpp:385
LayoutGenerator::generate
bool generate(UMLScene *scene, const QString &variant=QString())
Definition: layoutgenerator.cpp:103
LayoutGenerator::LayoutGenerator
LayoutGenerator()
Definition: layoutgenerator.cpp:82
LayoutGenerator::isEnabled
bool isEnabled() const
Definition: layoutgenerator.cpp:93
LayoutGenerator::availableConfigFiles
static bool availableConfigFiles(UMLScene *scene, QHash< QString, QString > &configFiles)
Definition: layoutgenerator.cpp:301
LayoutGenerator::EdgePoints
QList< QPointF > EdgePoints
Definition: layoutgenerator.h:37
LayoutGenerator::m_nodes
NodeType m_nodes
list of nodes found in parsed dot file
Definition: layoutgenerator.h:55
LayoutGenerator::origin
QPointF origin(const QString &id)
Definition: layoutgenerator.cpp:333
LayoutGenerator::operator<<
friend QDebug operator<<(QDebug out, LayoutGenerator &c)
LayoutGenerator::readGeneratedDotFile
bool readGeneratedDotFile(const QString &fileName)
Definition: layoutgenerator.cpp:356
LayoutGenerator::mapToScene
QPointF mapToScene(const QPointF &p)
Definition: layoutgenerator.cpp:589
UMLScene
Definition: umlscene.h:65
dotgenerator.h
optionstate.h
operator<<
QDebug operator<<(QDebug out, const QXmlStreamAttribute &a)
Definition: shared.cpp:17