diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-04-21 17:27:45 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-04-21 17:27:45 (GMT) |
commit | ff31b2f109848ea3e08fb17d5821beb7af879193 (patch) | |
tree | 4859bfed167f695f5ce9e9c0f2f6f02313de2ed3 /src/dot.cpp | |
parent | bc629c9003d59b736cc996a05b95bac8ab50123a (diff) | |
download | Doxygen-ff31b2f109848ea3e08fb17d5821beb7af879193.zip Doxygen-ff31b2f109848ea3e08fb17d5821beb7af879193.tar.gz Doxygen-ff31b2f109848ea3e08fb17d5821beb7af879193.tar.bz2 |
Release-1.2.15-20020421
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/src/dot.cpp b/src/dot.cpp index 77faf6e..6ed5daa 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -468,7 +468,7 @@ void DotNode::write(QTextStream &t, } } -void DotNode::writeXML(QTextStream &t) +void DotNode::writeXML(QTextStream &t,bool isClassGraph) { t << " <node id=\"" << m_number << "\">" << endl; t << " <label>" << convertToXML(m_label) << "</label>" << endl; @@ -498,14 +498,21 @@ void DotNode::writeXML(QTextStream &t) { edgeInfo=eli.current(); t << " <childnode id=\"" << childNode->m_number << "\" relation=\""; - switch(edgeInfo->m_color) + if (isClassGraph) { - case EdgeInfo::Blue: t << "public-inheritance"; break; - case EdgeInfo::Green: t << "protected-inheritance"; break; - case EdgeInfo::Red: t << "private-inheritance"; break; - case EdgeInfo::Purple: t << "usage"; break; - case EdgeInfo::Orange: t << "template-instance"; break; - case EdgeInfo::Grey: ASSERT(0); break; + switch(edgeInfo->m_color) + { + case EdgeInfo::Blue: t << "public-inheritance"; break; + case EdgeInfo::Green: t << "protected-inheritance"; break; + case EdgeInfo::Red: t << "private-inheritance"; break; + case EdgeInfo::Purple: t << "usage"; break; + case EdgeInfo::Orange: t << "template-instance"; break; + case EdgeInfo::Grey: ASSERT(0); break; + } + } + else // include graph + { + t << "include"; } t << "\">" << endl; if (!edgeInfo->m_label.isEmpty()) @@ -1430,7 +1437,7 @@ void DotClassGraph::writeXML(QTextStream &t) DotNode *node; for (;(node=dni.current());++dni) { - node->writeXML(t); + node->writeXML(t,TRUE); } } @@ -1661,7 +1668,7 @@ void DotInclDepGraph::writeXML(QTextStream &t) DotNode *node; for (;(node=dni.current());++dni) { - node->writeXML(t); + node->writeXML(t,FALSE); } } |