summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-09-28 18:26:46 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-09-28 18:26:46 (GMT)
commitb7473cd86e57053b866a719f160cd4d01e92f092 (patch)
tree01f67df4c4005875230919c5f826290b6a17a2e4 /src/dot.cpp
parenta3133b16473d093f9c525cbf9d21fabbae7ae1ac (diff)
downloadDoxygen-b7473cd86e57053b866a719f160cd4d01e92f092.zip
Doxygen-b7473cd86e57053b866a719f160cd4d01e92f092.tar.gz
Doxygen-b7473cd86e57053b866a719f160cd4d01e92f092.tar.bz2
Release-1.3.8-20040928
Diffstat (limited to 'src/dot.cpp')
-rw-r--r--src/dot.cpp35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index 4b9f11b..670911e 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -33,6 +33,10 @@
#include <qtextstream.h>
#include <md5.h>
+// Enable this for transparent images
+// It doesn't seems to work very well with edge labels so I disabled it.
+//#define DOT_TRANSPARENT
+
//--------------------------------------------------------------------
static const int maxCmdLine = 40960;
@@ -68,6 +72,9 @@ static void writeGraphHeader(QTextStream &t)
{
t << "digraph G" << endl;
t << "{" << endl;
+#if defined(DOT_TRANSPARENT)
+ t << " bgcolor=\"transparent\"" << endl;
+#endif
t << " edge [fontname=\"Helvetica\",fontsize=10,"
"labelfontname=\"Helvetica\",labelfontsize=10];\n";
t << " node [fontname=\"Helvetica\",fontsize=10,shape=record];\n";
@@ -586,7 +593,11 @@ void DotNode::writeBox(QTextStream &t,
}
else
{
+#if defined(DOT_TRANSPARENT)
+ t << ",color=\"" << labCol << "\", fillcolor=\"white\", style=\"filled\"";
+#else
t << ",color=\"" << labCol << "\"";
+#endif
if (!m_url.isEmpty())
{
int anchorPos = m_url.findRev('#');
@@ -2327,8 +2338,30 @@ bool DotCallGraph::isTrivial() const
//-------------------------------------------------------------
-DotDirDeps::DotDirDeps(DirDef *)
+DotDirDeps::DotDirDeps(DirDef *dd)
{
+ FileList *fl = dd->getFiles();
+ if (fl)
+ {
+ QListIterator<FileDef> fli(*fl);
+ FileDef *fd;
+ for (fli.toFirst();(fd=fli.current());++fli) // foreach file in dir dd
+ {
+ QList<IncludeInfo> *ifl = fd->includeFileList();
+ if (ifl)
+ {
+ QListIterator<IncludeInfo> ifli(*ifl);
+ IncludeInfo *ii;
+ for (ifli.toFirst();(ii=ifli.current());++ifli) // foreach include file
+ {
+ if (ii->fileDef)
+ {
+ // add dependency
+ }
+ }
+ }
+ }
+ }
}
DotDirDeps::~DotDirDeps()