diff options
author | Alexandre Salconi <asalconi@cimeq.qc.ca> | 2020-09-29 20:45:47 (GMT) |
---|---|---|
committer | Alexandre Salconi <asalconi@cimeq.qc.ca> | 2020-09-29 20:45:47 (GMT) |
commit | a49a5d4c687742a6eaf516d79d2dff399aad12dc (patch) | |
tree | 6e7fd921c4d41fe280bd3f45cef6d04678053231 /src | |
parent | 78f57f623c45c92f4fb2740300b44b9b68c42bcc (diff) | |
download | Doxygen-a49a5d4c687742a6eaf516d79d2dff399aad12dc.zip Doxygen-a49a5d4c687742a6eaf516d79d2dff399aad12dc.tar.gz Doxygen-a49a5d4c687742a6eaf516d79d2dff399aad12dc.tar.bz2 |
use boolean to add or remove uml details
Diffstat (limited to 'src')
-rw-r--r-- | src/config.xml | 8 | ||||
-rw-r--r-- | src/dotnode.cpp | 20 |
2 files changed, 24 insertions, 4 deletions
diff --git a/src/config.xml b/src/config.xml index 474993b..14fafca 100644 --- a/src/config.xml +++ b/src/config.xml @@ -3668,6 +3668,14 @@ remove the intermediate dot files that are used to generate the various graphs. ]]> </docs> </option> + <option type='bool' id='DOT_UML_DETAILS' defval='0' depends='HAVE_DOT'> + <docs> +<![CDATA[ +If the \c DOT_UML_DETAILS tag is set to \c YES, doxygen will +add details in the uml graphs. +]]> + </docs> + </option> <option type='obsolete' id='USE_WINDOWS_ENCODING'/> <option type='obsolete' id='DETAILS_AT_TOP'/> <option type='obsolete' id='QTHELP_FILE'/> diff --git a/src/dotnode.cpp b/src/dotnode.cpp index 7d71168..89fe9a7 100644 --- a/src/dotnode.cpp +++ b/src/dotnode.cpp @@ -148,11 +148,23 @@ static void writeBoxMemberList(FTextStream &t, else { t << prot << " "; - t << DotNode::convertLabel(mma->typeString()); - t << " "; + if(Config_getBool(DOT_UML_DETAILS)) + { + t << DotNode::convertLabel(mma->typeString()); + t << " "; + } t << DotNode::convertLabel(mma->name()); - if (!mma->isObjCMethod() && - (mma->isFunction() || mma->isSlot() || mma->isSignal())) t << DotNode::convertLabel(mma->argsString()); + if (!mma->isObjCMethod() && (mma->isFunction() || mma->isSlot() || mma->isSignal())) + { + if(Config_getBool(DOT_UML_DETAILS)) + { + t << DotNode::convertLabel(mma->argsString()); + } + else + { + t << "()"; + } + } t << "\\l"; count++; } |