diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-08-24 20:00:14 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-08-24 20:00:14 (GMT) |
commit | 4b77f4fc83a7954a741c1b35ec50e918a2786559 (patch) | |
tree | acf5ce8ed64ee56e5f7eec664f2f00260d068e9c /src/index.cpp | |
parent | bb18b811e8f1a4a939eadf28d12bc5f99dd74b82 (diff) | |
download | Doxygen-4b77f4fc83a7954a741c1b35ec50e918a2786559.zip Doxygen-4b77f4fc83a7954a741c1b35ec50e918a2786559.tar.gz Doxygen-4b77f4fc83a7954a741c1b35ec50e918a2786559.tar.bz2 |
Release-1.3.8-20040824
Diffstat (limited to 'src/index.cpp')
-rw-r--r-- | src/index.cpp | 69 |
1 files changed, 46 insertions, 23 deletions
diff --git a/src/index.cpp b/src/index.cpp index 77c01d6..72c8f64 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -544,31 +544,32 @@ void writeClassTree(BaseClassList *cl,int level) void writeClassTreeNode(ClassDef *cd,bool hasHtmlHelp,bool hasFtvHelp,bool &started,int level) { - if (cd->isVisibleInHierarchy() && !cd->visited) + //printf("writeClassTreeNode(%s) visited=%d\n",cd->name().data(),cd->visited); + if (cd->isVisibleInHierarchy() && !cd->visited) + { + if (!started) { - if (!started) + started=TRUE; + } + bool hasChildren = classHasVisibleChildren(cd); + //printf("node: Has children %s: %d\n",cd->name().data(),hasChildren); + if (cd->isLinkable()) + { + if (hasHtmlHelp) { - started=TRUE; + HtmlHelp::getInstance()->addContentsItem(hasChildren,cd->displayName(),cd->getOutputFileBase()); } - bool hasChildren = classHasVisibleChildren(cd); - //printf("node: Has children %s: %d\n",cd->name().data(),hasChildren); - if (cd->isLinkable()) + if (hasFtvHelp) { - if (hasHtmlHelp) - { - HtmlHelp::getInstance()->addContentsItem(hasChildren,cd->displayName(),cd->getOutputFileBase()); - } - if (hasFtvHelp) - { - FTVHelp::getInstance()->addContentsItem(hasChildren,cd->getReference(),cd->getOutputFileBase(),0,cd->displayName()); - } + FTVHelp::getInstance()->addContentsItem(hasChildren,cd->getReference(),cd->getOutputFileBase(),0,cd->displayName()); } - if (hasChildren) - { - writeClassTree(cd->subClasses(),level+1); - } - cd->visited=TRUE; } + if (hasChildren) + { + writeClassTree(cd->subClasses(),level+1); + } + cd->visited=TRUE; + } } void writeClassTree(ClassList *cl,int level) @@ -578,7 +579,11 @@ void writeClassTree(ClassList *cl,int level) bool hasFtvHelp = generateHtml && Config_getBool("GENERATE_TREEVIEW"); ClassListIterator cli(*cl); bool started=FALSE; - for ( ; cli.current() ; ++cli) + for ( cli.toFirst() ; cli.current() ; ++cli) + { + cli.current()->visited=FALSE; + } + for ( cli.toFirst() ; cli.current() ; ++cli) { writeClassTreeNode(cli.current(),hasHtmlHelp,hasFtvHelp,started,level); } @@ -591,7 +596,11 @@ void writeClassTree(ClassSDict *d,int level) bool hasFtvHelp = generateHtml && Config_getBool("GENERATE_TREEVIEW"); ClassSDict::Iterator cli(*d); bool started=FALSE; - for ( ; cli.current() ; ++cli) + for ( cli.toFirst() ; cli.current() ; ++cli) + { + cli.current()->visited=FALSE; + } + for ( cli.toFirst() ; cli.current() ; ++cli) { writeClassTreeNode(cli.current(),hasHtmlHelp,hasFtvHelp,started,level); } @@ -1356,7 +1365,7 @@ void writeAlphabeticalClassList(OutputList &ol) alphaLinks += "</div><p>\n"; ol.writeString(alphaLinks); - ol.writeString("<table align=center width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"); + ol.writeString("<table align=\"center\" width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"); // the number of columns in the table const int columns = Config_getInt("COLS_IN_ALPHA_INDEX"); @@ -2835,7 +2844,21 @@ void writeGroupTreeNode(OutputList &ol, GroupDef *gd,int level) ftvHelp->incContentsDepth(); } - writeClassTree(gd->classSDict,1); + ClassDef *cd; + ClassSDict::Iterator cdi(*gd->classSDict); + for (cdi.toFirst();(cd=cdi.current());++cdi) + { + if (cd->isLinkable()) + { + //printf("node: Has children %s\n",cd->name().data()); + if (htmlHelp) + htmlHelp->addContentsItem(FALSE,cd->displayName(),cd->getOutputFileBase()); + if (ftvHelp) + ftvHelp->addContentsItem(FALSE,cd->getReference(),cd->getOutputFileBase(),0,cd->displayName()); + } + } + + //writeClassTree(gd->classSDict,1); if(htmlHelp) htmlHelp->decContentsDepth(); if(ftvHelp) ftvHelp->decContentsDepth(); } |