rocs/RocsCore
DotFileFormatPlugin.cpp
Go to the documentation of this file.
77 setError(CouldNotOpenFile, i18n("Could not open file \"%1\" in read mode: %2", file().toLocalFile(), fileHandle.errorString()));
107 setError(FileIsReadOnly, i18n("Cannot open file %1 to write document. Error: %2", file().fileName(), fileHandle.errorString()));
172 edgeStr.append(QString(" %1 = \"%2\" ").arg(QString(property)).arg(edge->property(property).toString()));
190 nodeStr.append(QString(" %1 = \"%2\" ").arg(QString(property)).arg(node->property(property).toString()));
static const KAboutData aboutdata("rocs_dotfileformat", 0, ki18nc("@title Displayed plugin name","Graphviz Graph File Backend"),"0.1", ki18n("Read and write Graphviz graph files."), KAboutData::License_GPL_V2)
std::string toStdString() const
QString & append(QChar ch)
iterator insert(const Key &key, const T &value)
QString errorString() const
void directedGraphDefaultTopology(DataStructurePtr dataStructure)
applies a default topology for undirected graphs
Definition: Topology.cpp:214
static DataStructureBackendManager & self()
Returns self reference to backend manager.
Definition: DataStructureBackendManager.cpp:233
QVariant property(const char *name) const
void setError(Error error, QString message=QString())
Definition: GraphFilePluginInterface.cpp:83
QByteArray readAll()
DataStructurePtr activeDataStructure() const
Definition: Document.cpp:431
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: Document.h:41
DotFileFormatPlugin(QObject *parent, const QList< QVariant > &)
Definition: DotFileFormatPlugin.cpp:56
void setBackend(const QString &pluginIdentifier)
Change the active backend.
Definition: DataStructureBackendManager.cpp:240
QList< int > pointerTypeList() const
Getter for all registered pointer types.
Definition: Document.cpp:165
QList< int > dataTypeList() const
Getter for all registered data types.
Definition: Document.cpp:160
virtual const QStringList extensions() const
File extensions that are common for this file type.
Definition: DotFileFormatPlugin.cpp:62
bool contains(const Key &key) const
bool parse(const std::string &str, Document *graphDoc)
Parse the given string str that represents the textual respresentation of a graph in DOT/Graphviz for...
Definition: DotGrammar.cpp:474
void setGraphDocument(Document *document)
Definition: GraphFilePluginInterface.cpp:108
Definition: DotFileFormatPlugin.h:28
virtual void writeFile(Document &graph)
Writes given graph document to formerly specified file.
Definition: DotFileFormatPlugin.cpp:94
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
const KUrl & file() const
Definition: GraphFilePluginInterface.cpp:120
This class provides an interface for graph file format plugins.
Definition: GraphFilePluginInterface.h:42
virtual void readFile()
Open given file and imports it into internal format.
Definition: DotFileFormatPlugin.cpp:69
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.