Changeset View
Changeset View
Standalone View
Standalone View
src/part/graphexporter.h
Show All 29 Lines | |||||
30 | 30 | | |||
31 | #ifndef GRAPH_EXPORTER_H | 31 | #ifndef GRAPH_EXPORTER_H | ||
32 | #define GRAPH_EXPORTER_H | 32 | #define GRAPH_EXPORTER_H | ||
33 | 33 | | |||
34 | #include <QString> | 34 | #include <QString> | ||
35 | 35 | | |||
36 | #include <graphviz/gvc.h> | 36 | #include <graphviz/gvc.h> | ||
37 | 37 | | |||
38 | | ||||
39 | namespace KGraphViewer | 38 | namespace KGraphViewer | ||
40 | { | 39 | { | ||
41 | class DotGraph; | 40 | class DotGraph; | ||
42 | 41 | | |||
43 | /** | 42 | /** | ||
44 | * GraphExporter | 43 | * GraphExporter | ||
45 | * | 44 | * | ||
46 | * Generates a graph file for "dot" | 45 | * Generates a graph file for "dot" | ||
47 | */ | 46 | */ | ||
48 | class GraphExporter | 47 | class GraphExporter | ||
49 | { | 48 | { | ||
50 | public: | 49 | public: | ||
51 | GraphExporter(); | 50 | GraphExporter(); | ||
52 | ~GraphExporter(); | 51 | ~GraphExporter(); | ||
53 | 52 | | |||
54 | QString writeDot(const DotGraph* graph, const QString& fileName = QString()); | 53 | QString writeDot(const DotGraph *graph, const QString &fileName = QString()); | ||
55 | graph_t* exportToGraphviz(const DotGraph* graph); | 54 | graph_t *exportToGraphviz(const DotGraph *graph); | ||
56 | }; | 55 | }; | ||
57 | 56 | | |||
58 | } | 57 | } | ||
59 | 58 | | |||
60 | #endif | 59 | #endif | ||
61 | | ||||
62 | | ||||
63 | |