diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2011-06-06 19:49:53 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2011-06-06 19:49:53 (GMT) |
commit | de297f6d77f3861b649f3fcba443483d6be6afe9 (patch) | |
tree | b158d4e26359c261b119f485d1d4c69a6034663c /src/reflist.cpp | |
parent | c604d141eb8b0708022a3e4b48b0b1871b692aa6 (diff) | |
download | Doxygen-de297f6d77f3861b649f3fcba443483d6be6afe9.zip Doxygen-de297f6d77f3861b649f3fcba443483d6be6afe9.tar.gz Doxygen-de297f6d77f3861b649f3fcba443483d6be6afe9.tar.bz2 |
Release-1.7.4-20110606
Diffstat (limited to 'src/reflist.cpp')
-rw-r--r-- | src/reflist.cpp | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/src/reflist.cpp b/src/reflist.cpp index b06013c..cd19d53 100644 --- a/src/reflist.cpp +++ b/src/reflist.cpp @@ -19,6 +19,7 @@ #include <stdio.h> #include "reflist.h" #include "util.h" +#include "ftextstream.h" /*! Create a list of items that are cross referenced with documentation blocks * @param listName String representing the name of the list. @@ -128,26 +129,33 @@ void RefList::insertIntoList(const char *key,RefItem *item) } } + void RefList::generatePage() { if (m_itemList==0) return; m_itemList->sort(); SDict<RefItem>::Iterator it(*m_itemList); RefItem *item; + QCString doc; + doc += "<dl class=\"reflist\">"; for (it.toFirst();(item=it.current());++it) { - QCString doc; - doc = "\\anchor "; + doc += " <dt>"; + doc += "\\anchor "; doc += item->listAnchor; - doc += " <dl><dt>"; + doc += "\n"; doc += item->prefix; doc += " \\_internalref "; doc += item->name; doc += " \""; doc += item->title; - doc += "\""; - if (!item->args.isEmpty()) doc += item->args; - doc += "</dt>\n<dd>"; + doc += "\" "; + // write declaration in case a function with arguments + if (!item->args.isEmpty()) + { + doc += item->args; + } + doc += "</dt><dd> "; doc += item->text; QListIterator<RefItem> li(item->extraItems); RefItem *extraItem; @@ -155,8 +163,9 @@ void RefList::generatePage() { doc += "<p>" + extraItem->text; } - doc += "</dd></dl>\n"; - addRelatedPage(m_listName,m_pageTitle,doc,0,m_listName,1,0,0,0); + doc += "</dd>"; } + doc += "</dl>\n"; + addRelatedPage(m_listName,m_pageTitle,doc,0,m_listName,1,0,0,0); } |