summaryrefslogtreecommitdiffstats
path: root/src/classlist.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-04-30 17:13:40 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-04-30 17:13:40 (GMT)
commit3b8b750f05f52572bc72e6e3538345a51d51844a (patch)
treee8fc87186141ebce1c8547a44d7adcd0ec122e14 /src/classlist.cpp
parenta790b4aefe37b616ec4563877e01aa5f99447c85 (diff)
downloadDoxygen-3b8b750f05f52572bc72e6e3538345a51d51844a.zip
Doxygen-3b8b750f05f52572bc72e6e3538345a51d51844a.tar.gz
Doxygen-3b8b750f05f52572bc72e6e3538345a51d51844a.tar.bz2
Release-1.1.2-20000430
Diffstat (limited to 'src/classlist.cpp')
-rw-r--r--src/classlist.cpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/classlist.cpp b/src/classlist.cpp
index 527fa58..d037a77 100644
--- a/src/classlist.cpp
+++ b/src/classlist.cpp
@@ -18,6 +18,9 @@
#include "classlist.h"
#include "config.h"
#include "util.h"
+#include "outputlist.h"
+#include "language.h"
+#include "scanner.h"
ClassList::ClassList() : QList<ClassDef>()
{
@@ -43,3 +46,59 @@ ClassListIterator::ClassListIterator(const ClassList &cllist) :
QListIterator<ClassDef>(cllist)
{
}
+
+void ClassList::writeDeclaration(OutputList &ol)
+{
+ if (count()>0)
+ {
+ ClassDef *cd=first();
+ bool found=FALSE;
+ while (cd)
+ {
+ if (cd->name().find('@')==-1)
+ {
+ bool isLink = cd->isLinkable();
+ if (isLink || !Config::hideClassFlag)
+ {
+ if (!found)
+ {
+ ol.startMemberHeader();
+ parseText(ol,theTranslator->trCompounds());
+ ol.endMemberHeader();
+ ol.startMemberList();
+ found=TRUE;
+ }
+ ol.startMemberItem(FALSE);
+ switch (cd->compoundType())
+ {
+ case ClassDef::Class: ol.writeString("class"); break;
+ case ClassDef::Struct: ol.writeString("struct"); break;
+ case ClassDef::Union: ol.writeString("union"); break;
+ case ClassDef::Interface: ol.writeString("interface"); break;
+ case ClassDef::Exception: ol.writeString("exception"); break;
+ }
+ ol.writeString(" ");
+ ol.insertMemberAlign();
+ if (isLink)
+ {
+ ol.writeObjectLink(cd->getReference(),
+ cd->getOutputFileBase(),
+ 0,
+ cd->name()
+ );
+ }
+ else
+ {
+ ol.startBold();
+ ol.docify(cd->name());
+ ol.endBold();
+ }
+ ol.endMemberItem(FALSE);
+ }
+ }
+ cd=next();
+ }
+ if (found) ol.endMemberList();
+ }
+}
+