diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2005-02-27 20:01:29 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2005-02-27 20:01:29 (GMT) |
commit | 47b04448404f708d25de41246b04fb2219cc81df (patch) | |
tree | 2d189d04d6f9413eb324fae5f56f273f3855ff8b /src/namespacedef.cpp | |
parent | 2ed43d4c3890c98475d4deb87d4a14ab949f90c4 (diff) | |
download | Doxygen-47b04448404f708d25de41246b04fb2219cc81df.zip Doxygen-47b04448404f708d25de41246b04fb2219cc81df.tar.gz Doxygen-47b04448404f708d25de41246b04fb2219cc81df.tar.bz2 |
Release-1.4.1-20050227
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 94 |
1 files changed, 83 insertions, 11 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp index 8ced35a..5e629e9 100644 --- a/src/namespacedef.cpp +++ b/src/namespacedef.cpp @@ -360,6 +360,39 @@ void NamespaceDef::writeDocumentation(OutputList &ol) writeDetailedDocumentation(ol); } + writeMemberDocumentation(ol); + + // write Author section (Man only) + ol.pushGeneratorState(); + ol.disableAllBut(OutputGenerator::Man); + ol.startGroupHeader(); + ol.parseText(theTranslator->trAuthor(TRUE,TRUE)); + ol.endGroupHeader(); + ol.parseText(theTranslator->trGeneratedAutomatically(Config_getString("PROJECT_NAME"))); + + if (!Config_getString("GENERATE_TAGFILE").isEmpty()) + { + writeDocAnchorsToTagFile(); + Doxygen::tagFile << " </compound>" << endl; + } + + ol.popGeneratorState(); + endFile(ol); + + if (Config_getBool("SEPARATE_MEMBER_PAGES")) + { + allMemberList.sort(); + writeMemberPages(ol); + } +} + +void NamespaceDef::writeMemberDocumentation(OutputList &ol) +{ + if (Config_getBool("SEPARATE_MEMBER_PAGES")) + { + ol.disable(OutputGenerator::Html); + } + docDefineMembers.writeDocumentation(ol,name(),this, theTranslator->trDefineDocumentation()); @@ -378,22 +411,61 @@ void NamespaceDef::writeDocumentation(OutputList &ol) docVarMembers.writeDocumentation(ol,name(),this, theTranslator->trVariableDocumentation()); - // write Author section (Man only) + if (Config_getBool("SEPARATE_MEMBER_PAGES")) + { + ol.enable(OutputGenerator::Html); + } +} + +void NamespaceDef::writeMemberPages(OutputList &ol) +{ ol.pushGeneratorState(); - ol.disableAllBut(OutputGenerator::Man); - ol.startGroupHeader(); - ol.parseText(theTranslator->trAuthor(TRUE,TRUE)); - ol.endGroupHeader(); - ol.parseText(theTranslator->trGeneratedAutomatically(Config_getString("PROJECT_NAME"))); + ol.disableAllBut(OutputGenerator::Html); - if (!Config_getString("GENERATE_TAGFILE").isEmpty()) + docDefineMembers.writeDocumentationPage(ol,name(),this); + docProtoMembers.writeDocumentationPage(ol,name(),this); + docTypedefMembers.writeDocumentationPage(ol,name(),this); + docEnumMembers.writeDocumentationPage(ol,name(),this); + docFuncMembers.writeDocumentationPage(ol,name(),this); + docVarMembers.writeDocumentationPage(ol,name(),this); + + ol.popGeneratorState(); +} + +void NamespaceDef::writeQuickMemberLinks(OutputList &ol,MemberDef *currentMd) const +{ + ol.writeString(" <div class=\"navtab\">\n"); + ol.writeString(" <table>\n"); + + MemberListIterator mli(allMemberList); + MemberDef *md; + for (mli.toFirst();(md=mli.current());++mli) { - writeDocAnchorsToTagFile(); - Doxygen::tagFile << " </compound>" << endl; + if (md->getNamespaceDef()==this && md->isLinkable()) + { + ol.writeString(" <tr><td class=\"navtab\">"); + if (md->isLinkableInProject()) + { + if (md==currentMd) // selected item => highlight + { + ol.writeString("<a class=\"qindexHL\" "); + } + else + { + ol.writeString("<a class=\"qindex\" "); + } + ol.writeString("href=\""); + ol.writeString(md->getOutputFileBase()+Doxygen::htmlFileExtension+"#"+md->anchor()); + ol.writeString("\">"); + ol.writeString(md->localName()); + ol.writeString("</a>"); + } + ol.writeString("</td></tr>\n"); + } } - ol.popGeneratorState(); - endFile(ol); + ol.writeString(" </table>\n"); + ol.writeString(" </div>\n"); } int NamespaceDef::countMembers() |