diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-04-07 17:23:32 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-04-07 17:23:32 (GMT) |
commit | 63962ead8b355c4c93d5e442ab0a26005e1b863f (patch) | |
tree | c38e1a43019260d8c13223b0bab64424c575dfcb /src/util.cpp | |
parent | de20cde3d47c58a69c25afe75e4c476d61dbe631 (diff) | |
download | Doxygen-63962ead8b355c4c93d5e442ab0a26005e1b863f.zip Doxygen-63962ead8b355c4c93d5e442ab0a26005e1b863f.tar.gz Doxygen-63962ead8b355c4c93d5e442ab0a26005e1b863f.tar.bz2 |
Release-1.2.15-20020407
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/src/util.cpp b/src/util.cpp index d15cbff..66d87bf 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -3137,11 +3137,41 @@ const char *getOverloadDocs() void addMembersToMemberGroup(MemberList *ml, MemberGroupSDict *memberGroupSDict,Definition *context) { + //printf("addMemberToMemberGroup()\n"); MemberListIterator mli(*ml); MemberDef *md; uint index; for (index=0;(md=mli.current());) { + if (md->isEnumerate()) // insert enum value of this enum into groups + { + QList<MemberDef> *fmdl=md->enumFieldList(); + if (fmdl) + { + MemberDef *fmd=fmdl->first(); + while (fmd) + { + int groupId=fmd->getMemberGroupId(); + if (groupId!=-1) + { + QCString *pGrpHeader = Doxygen::memberHeaderDict[groupId]; + QCString *pDocs = Doxygen::memberDocDict[groupId]; + if (pGrpHeader) + { + MemberGroup *mg = memberGroupSDict->find(groupId); + if (mg==0) + { + mg = new MemberGroup(groupId,*pGrpHeader,pDocs ? pDocs->data() : 0); + memberGroupSDict->append(groupId,mg); + } + mg->insertMember(context,fmd); // insert in member group + fmd->setMemberGroup(mg); + } + } + fmd=fmdl->next(); + } + } + } int groupId=md->getMemberGroupId(); if (groupId!=-1) { @@ -3156,23 +3186,6 @@ void addMembersToMemberGroup(MemberList *ml, memberGroupSDict->append(groupId,mg); } md = ml->take(index); // remove from member list - //if (allMembers) // remove from all member list as well - //{ - // MemberNameInfo *mni = allMembers->find(md->name()); - // if (mni) - // { - // QListIterator<MemberInfo> mii(*mni); - // MemberInfo *mi; - // for (;(mi=mii.current());++mii) - // { - // if (mi->memberDef==md) - // { - // mni->remove(mi); - // break; - // } - // } - // } - //} mg->insertMember(context,md); // insert in member group md->setMemberGroup(mg); continue; |