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()));
170 edgeStr.append(QString(" %1 = \"%2\" ").arg(QString(property)).arg(edge->property(property).toString()));
188 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)
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
void setError(Error error, QString message=QString())
Definition: GraphFilePluginInterface.cpp:83
DataStructurePtr activeDataStructure() const
Definition: Document.cpp:431
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 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
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.