diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-01-05 19:00:26 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-01-05 19:00:26 (GMT) |
commit | ee63f0e064142addc300e0411b141d2697b73500 (patch) | |
tree | 278be3215f40b4fffddab1ec6dc2b8d47da895ac /src/filedef.cpp | |
parent | 4369f8dfd78c7d6666a604026017cfe6e4c9fbc4 (diff) | |
download | Doxygen-ee63f0e064142addc300e0411b141d2697b73500.zip Doxygen-ee63f0e064142addc300e0411b141d2697b73500.tar.gz Doxygen-ee63f0e064142addc300e0411b141d2697b73500.tar.bz2 |
Release-1.3.5-20040105
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r-- | src/filedef.cpp | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp index 161d1fc..10851a1 100644 --- a/src/filedef.cpp +++ b/src/filedef.cpp @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2003 by Dimitri van Heesch. + * Copyright (C) 1997-2004 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -539,33 +539,46 @@ void FileDef::insertMember(MemberDef *md) { //printf("%s:FileDef::insertMember(%s)\n",name().data(),md->name().data()); allMemberList.append(md); + bool sortBriefDocs = Config_getBool("SORT_BRIEF_DOCS"); bool sortMemberDocs = Config_getBool("SORT_MEMBER_DOCS"); switch(md->memberType()) { case MemberDef::Variable: case MemberDef::Property: - decVarMembers.append(md); + if (sortBriefDocs) + decVarMembers.inSort(md); + else + decVarMembers.append(md); if (sortMemberDocs) docVarMembers.inSort(md); else docVarMembers.append(md); break; case MemberDef::Function: - decFuncMembers.append(md); + if (sortBriefDocs) + decFuncMembers.inSort(md); + else + decFuncMembers.append(md); if (sortMemberDocs) docFuncMembers.inSort(md); else docFuncMembers.append(md); break; case MemberDef::Typedef: - decTypedefMembers.append(md); + if (sortBriefDocs) + decTypedefMembers.inSort(md); + else + decTypedefMembers.append(md); if (sortMemberDocs) docTypedefMembers.inSort(md); else docTypedefMembers.append(md); break; case MemberDef::Enumeration: - decEnumMembers.append(md); + if (sortBriefDocs) + decEnumMembers.inSort(md); + else + decEnumMembers.append(md); if (sortMemberDocs) docEnumMembers.inSort(md); else @@ -574,14 +587,20 @@ void FileDef::insertMember(MemberDef *md) case MemberDef::EnumValue: // enum values are shown inside their enums break; case MemberDef::Prototype: - decProtoMembers.append(md); + if (sortBriefDocs) + decProtoMembers.inSort(md); + else + decProtoMembers.append(md); if (sortMemberDocs) docProtoMembers.inSort(md); else docProtoMembers.append(md); break; case MemberDef::Define: - decDefineMembers.append(md); + if (sortBriefDocs) + decDefineMembers.inSort(md); + else + decDefineMembers.append(md); if (sortMemberDocs) docDefineMembers.inSort(md); else @@ -600,7 +619,7 @@ void FileDef::insertMember(MemberDef *md) /*! Adds compound definition \a cd to the list of all compounds of this file */ void FileDef::insertClass(ClassDef *cd) { - if (Config_getBool("SORT_MEMBER_DOCS")) + if (Config_getBool("SORT_BRIEF_DOCS")) classSDict->inSort(cd->name(),cd); else classSDict->append(cd->name(),cd); @@ -611,7 +630,7 @@ void FileDef::insertNamespace(NamespaceDef *nd) { if (!nd->name().isEmpty() && namespaceSDict->find(nd->name())==0) { - if (Config_getBool("SORT_MEMBER_DOCS")) + if (Config_getBool("SORT_BRIEF_DOCS")) namespaceSDict->inSort(nd->name(),nd); else namespaceSDict->append(nd->name(),nd); |