diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-02-08 22:33:01 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-02-08 22:33:01 (GMT) |
commit | 9434ecb13e1f3e2901b78d3e41e7f1d7d9469434 (patch) | |
tree | 2bfe20210fbbcf2f05bca002eca960061ecf1b66 /src/namespacedef.cpp | |
parent | ae3a22ba276a2e446a460274e0bff8a9bdf4af7d (diff) | |
download | Doxygen-9434ecb13e1f3e2901b78d3e41e7f1d7d9469434.zip Doxygen-9434ecb13e1f3e2901b78d3e41e7f1d7d9469434.tar.gz Doxygen-9434ecb13e1f3e2901b78d3e41e7f1d7d9469434.tar.bz2 |
Add template context for annotated class index
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp index 146e8da..777eb46 100644 --- a/src/namespacedef.cpp +++ b/src/namespacedef.cpp @@ -248,11 +248,17 @@ void NamespaceDef::computeAnchors() if (allMemberList) setAnchors(allMemberList); } +bool NamespaceDef::hasDetailedDescription() const +{ + static bool repeatBrief = Config_getBool("REPEAT_BRIEF"); + return ((!briefDescription().isEmpty() && repeatBrief) || + !documentation().isEmpty()); +} + + void NamespaceDef::writeDetailedDescription(OutputList &ol,const QCString &title) { - if ((!briefDescription().isEmpty() && Config_getBool("REPEAT_BRIEF")) || - !documentation().isEmpty() - ) + if (hasDetailedDescription()) { ol.pushGeneratorState(); ol.disable(OutputGenerator::Html); @@ -294,7 +300,7 @@ void NamespaceDef::writeDetailedDescription(OutputList &ol,const QCString &title void NamespaceDef::writeBriefDescription(OutputList &ol) { - if (!briefDescription().isEmpty() && Config_getBool("BRIEF_MEMBER_DESC")) + if (hasBriefDescription()) { DocRoot *rootNode = validatingParseDoc(briefFile(),briefLine(),this,0, briefDescription(),TRUE,FALSE,0,TRUE,FALSE); @@ -307,9 +313,7 @@ void NamespaceDef::writeBriefDescription(OutputList &ol) ol.writeString(" \n"); ol.enable(OutputGenerator::RTF); - if (Config_getBool("REPEAT_BRIEF") || - !documentation().isEmpty() - ) + if (hasDetailedDescription()) { ol.disableAllBut(OutputGenerator::Html); ol.startTextLink(0,"details"); |