diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-03-17 21:39:04 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-03-17 21:39:04 (GMT) |
commit | fc0deb3d8c9dad128e1d5f5c90a5dfc0b9d60eea (patch) | |
tree | eb947bb0b492c9a33c255c9ec3928913cbf938c7 /src/index.cpp | |
parent | 91ac89e271d81507ce5d8bf5b821d80aedd6ec3e (diff) | |
download | Doxygen-fc0deb3d8c9dad128e1d5f5c90a5dfc0b9d60eea.zip Doxygen-fc0deb3d8c9dad128e1d5f5c90a5dfc0b9d60eea.tar.gz Doxygen-fc0deb3d8c9dad128e1d5f5c90a5dfc0b9d60eea.tar.bz2 |
Release-1.3-rc3-20030317
Diffstat (limited to 'src/index.cpp')
-rw-r--r-- | src/index.cpp | 124 |
1 files changed, 67 insertions, 57 deletions
diff --git a/src/index.cpp b/src/index.cpp index eac41e1..95698b6 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -1397,9 +1397,10 @@ void writeAlphabeticalClassList(OutputList &ol) } else if (cd) // a real class, insert a link { - QCString namesp; - if (cd->getNamespaceDef()) namesp=cd->getNamespaceDef()->displayName(); - QCString cname=cd->className(); + QCString namesp,cname; + //if (cd->getNamespaceDef()) namesp=cd->getNamespaceDef()->displayName(); + //QCString cname=cd->className(); + extractNamespaceName(cd->name(),cname,namesp); ol.writeObjectLink(cd->getReference(), cd->getOutputFileBase(),0,cname); @@ -2401,30 +2402,36 @@ void writeGroupTreeNode(OutputList &ol, GroupDef *gd,int level) { if (members->count()>0) { - if(htmlHelp) - { - htmlHelp->addContentsItem(TRUE, convertToHtml(pMemInfo->name), gd->getOutputFileBase(),0); - htmlHelp->incContentsDepth(); - } - - if(ftvHelp) - { - - ftvHelp->addContentsItem(TRUE, gd->getReference(), gd->getOutputFileBase(), 0, pMemInfo->name); - ftvHelp->incContentsDepth(); - } - + bool first=TRUE; MemberDef *md=members->first(); while (md) { - GroupDef *gd=md->getGroupDef(); - if(htmlHelp) - { - htmlHelp->addContentsItem(FALSE,md->name(),gd->getOutputFileBase(),md->anchor()); - } - if(ftvHelp) + if (md->isDetailedSectionVisible(TRUE)) { - ftvHelp->addContentsItem(FALSE,gd->getReference(),gd->getOutputFileBase(),md->anchor(),md->name()); + if (first) + { + first=FALSE; + if(htmlHelp) + { + htmlHelp->addContentsItem(TRUE, convertToHtml(pMemInfo->name), gd->getOutputFileBase(),0); + htmlHelp->incContentsDepth(); + } + if(ftvHelp) + { + + ftvHelp->addContentsItem(TRUE, gd->getReference(), gd->getOutputFileBase(), 0, pMemInfo->name); + ftvHelp->incContentsDepth(); + } + } + GroupDef *gd=md->getGroupDef(); + if(htmlHelp) + { + htmlHelp->addContentsItem(FALSE,md->name(),gd->getOutputFileBase(),md->anchor()); + } + if(ftvHelp) + { + ftvHelp->addContentsItem(FALSE,gd->getReference(),gd->getOutputFileBase(),md->anchor(),md->name()); + } } md=members->next(); } @@ -2830,41 +2837,44 @@ void writeIndex(OutputList &ol) // parseText(ol,projPrefix+theTranslator->trPackageList()); // ol.endIndexSection(isPackageIndex); //} - if (documentedGroups>0) - { - ol.startIndexSection(isModuleIndex); - ol.parseText(projPrefix+theTranslator->trModuleIndex()); - ol.endIndexSection(isModuleIndex); - } - if (documentedNamespaces>0) + if (!Config_getBool("LATEX_HIDE_INDICES")) { - ol.startIndexSection(isNamespaceIndex); - ol.parseText(projPrefix+theTranslator->trNamespaceIndex()); - ol.endIndexSection(isNamespaceIndex); - } - if (hierarchyClasses>0) - { - ol.startIndexSection(isClassHierarchyIndex); - ol.parseText(projPrefix+theTranslator->trHierarchicalIndex()); - ol.endIndexSection(isClassHierarchyIndex); - } - if (annotatedClasses>0) - { - ol.startIndexSection(isCompoundIndex); - ol.parseText(projPrefix+theTranslator->trCompoundIndex()); - ol.endIndexSection(isCompoundIndex); - } - if (documentedFiles>0) - { - ol.startIndexSection(isFileIndex); - ol.parseText(projPrefix+theTranslator->trFileIndex()); - ol.endIndexSection(isFileIndex); - } - if (indexedPages>0) - { - ol.startIndexSection(isPageIndex); - ol.parseText(projPrefix+theTranslator->trPageIndex()); - ol.endIndexSection(isPageIndex); + if (documentedGroups>0) + { + ol.startIndexSection(isModuleIndex); + ol.parseText(projPrefix+theTranslator->trModuleIndex()); + ol.endIndexSection(isModuleIndex); + } + if (documentedNamespaces>0) + { + ol.startIndexSection(isNamespaceIndex); + ol.parseText(projPrefix+theTranslator->trNamespaceIndex()); + ol.endIndexSection(isNamespaceIndex); + } + if (hierarchyClasses>0) + { + ol.startIndexSection(isClassHierarchyIndex); + ol.parseText(projPrefix+theTranslator->trHierarchicalIndex()); + ol.endIndexSection(isClassHierarchyIndex); + } + if (annotatedClasses>0) + { + ol.startIndexSection(isCompoundIndex); + ol.parseText(projPrefix+theTranslator->trCompoundIndex()); + ol.endIndexSection(isCompoundIndex); + } + if (documentedFiles>0) + { + ol.startIndexSection(isFileIndex); + ol.parseText(projPrefix+theTranslator->trFileIndex()); + ol.endIndexSection(isFileIndex); + } + if (indexedPages>0) + { + ol.startIndexSection(isPageIndex); + ol.parseText(projPrefix+theTranslator->trPageIndex()); + ol.endIndexSection(isPageIndex); + } } ol.lastIndexPage(); //if (documentedPackages>0) |