diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2011-06-06 19:49:53 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2011-06-06 19:49:53 (GMT) |
commit | 0bb78ec1f61b95b550b65361081c01a104728341 (patch) | |
tree | b158d4e26359c261b119f485d1d4c69a6034663c /src/reflist.cpp | |
parent | 3c0d4d412c7b6c2afa9e76fcfd5ef5ea8586ad68 (diff) | |
download | Doxygen-0bb78ec1f61b95b550b65361081c01a104728341.zip Doxygen-0bb78ec1f61b95b550b65361081c01a104728341.tar.gz Doxygen-0bb78ec1f61b95b550b65361081c01a104728341.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); } |