summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-08-19 18:13:14 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-08-19 18:13:14 (GMT)
commit2f7902073680b977b74f3faeada95119ec767eb3 (patch)
tree3ff0575884709cdc92f9e462441672f3549ab054 /src/dot.cpp
parenteed6800521ab6f21c41f485820ec1ee2def42e94 (diff)
downloadDoxygen-2f7902073680b977b74f3faeada95119ec767eb3.zip
Doxygen-2f7902073680b977b74f3faeada95119ec767eb3.tar.gz
Doxygen-2f7902073680b977b74f3faeada95119ec767eb3.tar.bz2
Release-1.2.9-20010819
Diffstat (limited to 'src/dot.cpp')
-rw-r--r--src/dot.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index bd13f75..e9b739b 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -1506,3 +1506,23 @@ void generateGraphLegend(const char *path)
QDir::setCurrent(oldDir);
}
+
+void writeDotGraphFromFile(const char *inFile,const char *outFile,
+ GraphOutputFormat format)
+{
+ QCString dotArgs(4096);
+ if (format==GIF)
+ {
+ dotArgs.sprintf("-Tgif \"%s\" -o \"%s.gif\"",inFile,outFile);
+ }
+ else // format==EPS
+ {
+ dotArgs.sprintf("-Tps \"%s\" -o \"%s.eps\"",inFile,outFile);
+ }
+ QCString dotExe = Config_getString("DOT_PATH")+"dot";
+ //printf("Running: %s %s\n",dotExe.data(),dotArgs.data());
+ if (iSystem(dotExe,dotArgs)!=0)
+ {
+ err("Problems running dot. Check your installation!\n");
+ }
+}