diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2011-12-03 18:14:19 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2011-12-03 18:14:19 (GMT) |
commit | cfb38c32173c3a16dc1c8e868b4cc23a68ed28b8 (patch) | |
tree | 018e8f5de990aedc2ea2b98065d07bc92253a8f1 /src/dot.cpp | |
parent | 4edf2204046b915a6244cde9be0df3ff60e312cb (diff) | |
download | Doxygen-cfb38c32173c3a16dc1c8e868b4cc23a68ed28b8.zip Doxygen-cfb38c32173c3a16dc1c8e868b4cc23a68ed28b8.tar.gz Doxygen-cfb38c32173c3a16dc1c8e868b4cc23a68ed28b8.tar.bz2 |
Release-1.7.6
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/src/dot.cpp b/src/dot.cpp index e72bf45..5d21b43 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -1524,15 +1524,35 @@ static void writeBoxMemberList(FTextStream &t, { MemberListIterator mlia(*ml); MemberDef *mma; + int totalCount=0; for (mlia.toFirst();(mma = mlia.current());++mlia) { if (mma->getClassDef() == scope) { - t << prot << " "; - t << convertLabel(mma->name()); - if (!mma->isObjCMethod() && - (mma->isFunction() || mma->isSlot() || mma->isSignal())) t << "()"; - t << "\\l"; + totalCount++; + } + } + + int count=0; + for (mlia.toFirst();(mma = mlia.current());++mlia) + { + if (mma->getClassDef() == scope) + { + if (totalCount>=15 && count>=10) + { + t << "and " << (totalCount-count-1) << " more..."; + // TODO: TRANSLATE ME + break; + } + else + { + t << prot << " "; + t << convertLabel(mma->name()); + if (!mma->isObjCMethod() && + (mma->isFunction() || mma->isSlot() || mma->isSignal())) t << "()"; + t << "\\l"; + count++; + } } } // write member groups within the memberlist @@ -1564,9 +1584,9 @@ void DotNode::writeBox(FTextStream &t, (hasNonReachableChildren) ? "red" : "black" ); t << " Node" << reNumberNode(m_number,reNumber) << " [label=\""; + static bool umlLook = Config_getBool("UML_LOOK"); - if (m_classDef && Config_getBool("UML_LOOK") && - (gt==Inheritance || gt==Collaboration)) + if (m_classDef && umlLook && (gt==Inheritance || gt==Collaboration)) { //printf("DotNode::writeBox for %s\n",m_classDef->name().data()); static bool extractPrivate = Config_getBool("EXTRACT_PRIVATE"); |