summaryrefslogtreecommitdiffstats
path: root/src/dirdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-12-28 15:52:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-12-28 15:52:58 (GMT)
commit1c51f44b5f0b3510618a283d522aab0741ddb3a1 (patch)
tree659ad23b069fb18276bbc9610ed0f2c48169722b /src/dirdef.cpp
parent939d1c84acd07060ee2b4bcbdc7dbccb80952385 (diff)
downloadDoxygen-1c51f44b5f0b3510618a283d522aab0741ddb3a1.zip
Doxygen-1c51f44b5f0b3510618a283d522aab0741ddb3a1.tar.gz
Doxygen-1c51f44b5f0b3510618a283d522aab0741ddb3a1.tar.bz2
Release-1.3.9.1-20041228
Diffstat (limited to 'src/dirdef.cpp')
-rw-r--r--src/dirdef.cpp31
1 files changed, 23 insertions, 8 deletions
diff --git a/src/dirdef.cpp b/src/dirdef.cpp
index e79601e..2ca264f 100644
--- a/src/dirdef.cpp
+++ b/src/dirdef.cpp
@@ -498,6 +498,10 @@ DirDef *DirDef::mergeDirectoryInTree(const QCString &path)
void DirDef::writeDepGraph(QTextStream &t)
{
t << "digraph G {\n";
+ if (Config_getBool("DOT_TRANSPARENT"))
+ {
+ t << " bgcolor=transparent;\n";
+ }
t << " compound=true\n";
t << " node [ fontsize=10, fontname=\"Helvetica\"];\n";
t << " edge [ labelfontsize=9, labelfontname=\"Helvetica\"];\n";
@@ -583,7 +587,11 @@ void DirDef::writeDepGraph(QTextStream &t)
<< usedDir->shortName() << "\"";
if (usedDir->isCluster())
{
- t << " color=\"red\" fillcolor=\"white\" style=\"filled\"";
+ if (!Config_getBool("DOT_TRANSPARENT"))
+ {
+ t << " fillcolor=\"white\" style=\"filled\"";
+ }
+ t << " color=\"red\"";
}
t << " URL=\"" << usedDir->getOutputFileBase()
<< Doxygen::htmlFileExtension << "\"];\n";
@@ -831,13 +839,20 @@ void writeDirDependencyGraph(const char *dirName)
dir->writeDepGraph(t);
}
f.close();
- QCString dotArgs(4096);
- QCString outFile = QCString(dirName)+"/"+dir->getOutputFileBase()+"_dep.gif";
- dotArgs.sprintf("%s -Tgif -o %s",path.data(),outFile.data());
- if (iSystem(Config_getString("DOT_PATH")+"dot",dotArgs)!=0)
- {
- err("Problems running dot. Check your installation!\n");
- }
+
+ QCString imgExt = Config_getEnum("DOT_IMAGE_FORMAT");
+ QCString outFile = QCString(dirName)+"/"+
+ dir->getOutputFileBase()+"_dep."+imgExt;
+ DotRunner dotRun(path);
+ dotRun.addJob(imgExt,outFile);
+ dotRun.run();
+
+ //QCString dotArgs(4096);
+ //dotArgs.sprintf("%s -Tgif -o %s",path.data(),outFile.data());
+ //if (iSystem(Config_getString("DOT_PATH")+"dot",dotArgs)!=0)
+ //{
+ // err("Problems running dot. Check your installation!\n");
+ //}
}
out << "</body></html>";
}