summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-08-24 20:00:14 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-08-24 20:00:14 (GMT)
commit3aaaf142be657201a2664c10b96447acb1610187 (patch)
treeacf5ce8ed64ee56e5f7eec664f2f00260d068e9c /src/dot.cpp
parentedeb82c1e0cebe5437fb637c9d239a8cecfca0cb (diff)
downloadDoxygen-3aaaf142be657201a2664c10b96447acb1610187.zip
Doxygen-3aaaf142be657201a2664c10b96447acb1610187.tar.gz
Doxygen-3aaaf142be657201a2664c10b96447acb1610187.tar.bz2
Release-1.3.8-20040824
Diffstat (limited to 'src/dot.cpp')
-rw-r--r--src/dot.cpp26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index 4bde818..9e26576 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -962,7 +962,7 @@ void DotGfxHierarchyTable::writeGraph(QTextStream &out,const char *path)
QDir thisDir;
// put each connected subgraph of the hierarchy in a row of the HTML output
- out << "<table border=0 cellspacing=10 cellpadding=0>" << endl;
+ out << "<table border=\"0\" cellspacing=\"10\" cellpadding=\"0\">" << endl;
QListIterator<DotNode> dnli(*m_rootSubgraphs);
DotNode *n;
@@ -2105,11 +2105,21 @@ DotCallGraph::DotCallGraph(MemberDef *md,int maxRecursionDepth)
m_maxDistance = 0;
m_recDepth = maxRecursionDepth;
m_diskName = md->getOutputFileBase()+"_"+md->anchor();
+ m_scope = md->getOuterScope();
QCString uniqueId;
uniqueId = md->getReference()+"$"+
md->getOutputFileBase()+"#"+md->anchor();
+ QCString name;
+ if (Config_getBool("HIDE_SCOPE_NAMES"))
+ {
+ name = md->name();
+ }
+ else
+ {
+ name = md->qualifiedName();
+ }
m_startNode = new DotNode(m_curNodeNumber++,
- md->qualifiedName(),
+ linkToText(name,FALSE),
uniqueId.data(),
0, // distance
TRUE // root node
@@ -2280,9 +2290,19 @@ void DotCallGraph::buildGraph(DotNode *n,MemberDef *md,int distance)
}
else
{
+ QCString name;
+ if (Config_getBool("HIDE_SCOPE_NAMES"))
+ {
+ name = rmd->getOuterScope()==m_scope ?
+ rmd->name() : rmd->qualifiedName();
+ }
+ else
+ {
+ name = rmd->qualifiedName();
+ }
bn = new DotNode(
m_curNodeNumber++,
- rmd->qualifiedName(),
+ linkToText(name,FALSE),
uniqueId,
distance
);