summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-08-19 18:13:14 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-08-19 18:13:14 (GMT)
commit8f7c9d9ba3b6c4e87c87deb6775d4bf642939e77 (patch)
tree3ff0575884709cdc92f9e462441672f3549ab054 /src/dot.cpp
parentb5cbb79d114ed13945bc882ac8eef1c2be967bbf (diff)
downloadDoxygen-8f7c9d9ba3b6c4e87c87deb6775d4bf642939e77.zip
Doxygen-8f7c9d9ba3b6c4e87c87deb6775d4bf642939e77.tar.gz
Doxygen-8f7c9d9ba3b6c4e87c87deb6775d4bf642939e77.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");
+ }
+}