diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-12-24 16:12:24 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-12-24 16:12:24 (GMT) |
commit | 48f4fd9c2d9ba8b374e3c052f888df9bc220df92 (patch) | |
tree | 2e3f5d0757e53645fc902d0a87aa44dfd31d2d4d /src/dirdef.cpp | |
parent | dd7602fdd31d8f3e0f88be553da084a1e3fdec45 (diff) | |
download | Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.zip Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.tar.gz Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.tar.bz2 |
Release-1.7.2-20101224
Diffstat (limited to 'src/dirdef.cpp')
-rw-r--r-- | src/dirdef.cpp | 74 |
1 files changed, 32 insertions, 42 deletions
diff --git a/src/dirdef.cpp b/src/dirdef.cpp index 333513b..2a88c06 100644 --- a/src/dirdef.cpp +++ b/src/dirdef.cpp @@ -191,12 +191,12 @@ void DirDef::writeDirectoryGraph(OutputList &ol) { msg("Generating dependency graph for directory %s\n",displayName().data()); ol.disable(OutputGenerator::Man); - ol.startParagraph(); + //ol.startParagraph(); ol.startDirDepGraph(); //TODO: ol.parseText(theTranslator->trDirDepGraph()); ol.parseText((QCString)"Directory dependency graph for "+displayName()+":"); ol.endDirDepGraph(dirDep); - ol.endParagraph(); + //ol.endParagraph(); ol.enableAll(); } } @@ -318,16 +318,19 @@ void DirDef::endMemberDeclarations(OutputList &ol) void DirDef::writeDocumentation(OutputList &ol) { + static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW"); ol.pushGeneratorState(); QCString shortTitle=theTranslator->trDirReference(m_shortName); QCString title=theTranslator->trDirReference(m_dispName); - startFile(ol,getOutputFileBase(),name(),title,HLI_None,TRUE); + startFile(ol,getOutputFileBase(),name(),title,HLI_None,!generateTreeView); - // write navigation path - writeNavigationPath(ol); - - ol.endQuickIndices(); + if (!generateTreeView) + { + // write navigation path + writeNavigationPath(ol); + ol.endQuickIndices(); + } startTitle(ol,getOutputFileBase()); ol.pushGeneratorState(); @@ -422,35 +425,18 @@ void DirDef::writeDocumentation(OutputList &ol) Doxygen::tagFile << " </compound>" << endl; } - endFile(ol); - ol.popGeneratorState(); - - -} + ol.endContents(); -#if 0 -void DirDef::writePathFragment(OutputList &ol) const -{ - if (m_parent) + if (generateTreeView) { - m_parent->writePathFragment(ol); - ol.writeString(" / "); + writeNavigationPath(ol); } - ol.writeObjectLink(getReference(),getOutputFileBase(),0,shortName()); -} -void DirDef::writeNavigationPath(OutputList &ol) -{ - ol.pushGeneratorState(); - ol.disableAllBut(OutputGenerator::Html); + endFile(ol,TRUE); + ol.popGeneratorState(); - ol.writeString("<div class=\"nav\">\n"); - writePathFragment(ol); - ol.writeString("</div>\n"); - ol.popGeneratorState(); } -#endif void DirDef::setLevel() { @@ -701,6 +687,7 @@ static void writePartialFilePath(OutputList &ol,const DirDef *root,const FileDef void DirRelation::writeDocumentation(OutputList &ol) { + static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW"); ol.pushGeneratorState(); ol.disableAllBut(OutputGenerator::Html); @@ -710,28 +697,24 @@ void DirRelation::writeDocumentation(OutputList &ol) QCString title=theTranslator->trDirRelation( m_src->displayName()+" -> "+ m_dst->dir()->shortName()); - startFile(ol,getOutputFileBase(),getOutputFileBase(),title); + startFile(ol,getOutputFileBase(),getOutputFileBase(), + title,HLI_None,!generateTreeView,m_src->getOutputFileBase()); - // write navigation path - m_src->writeNavigationPath(ol); + if (!generateTreeView) + { + // write navigation path + m_src->writeNavigationPath(ol); + ol.endQuickIndices(); + } ol.startContents(); - //startTitle(ol,getOutputFileBase()); - // ol.parseText(shortTitle); - //endTitle(ol,getOutputFileBase(),title); ol.writeString("<h3>"+shortTitle+"</h3>"); - ol.writeString("<table class=\"dirtab\">"); ol.writeString("<tr class=\"dirtab\">"); - // TODO: translate me! "File in %s" ol.writeString("<th class=\"dirtab\">"); ol.parseText(theTranslator->trFileIn(m_src->pathFragment())); - //m_src->writePathFragment(ol); ol.writeString("</th>"); - // TODO: translate me! "Includes file in %s" ol.writeString("<th class=\"dirtab\">"); - //ol.writeString("Includes file in "); - //m_dst->dir()->writePathFragment(ol); ol.parseText(theTranslator->trIncludesFileIn(m_dst->dir()->pathFragment())); ol.writeString("</th>"); ol.writeString("</tr>"); @@ -750,8 +733,15 @@ void DirRelation::writeDocumentation(OutputList &ol) ol.writeString("</tr>"); } ol.writeString("</table>"); + + ol.endContents(); - endFile(ol); + if (generateTreeView) + { + m_src->writeNavigationPath(ol); + } + + endFile(ol,TRUE); ol.popGeneratorState(); } |