diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-08-19 18:13:14 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-08-19 18:13:14 (GMT) |
commit | 2f7902073680b977b74f3faeada95119ec767eb3 (patch) | |
tree | 3ff0575884709cdc92f9e462441672f3549ab054 /src/dot.cpp | |
parent | eed6800521ab6f21c41f485820ec1ee2def42e94 (diff) | |
download | Doxygen-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.cpp | 20 |
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"); + } +} |