summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Salconi <asalconi@cimeq.qc.ca>2020-09-29 20:45:47 (GMT)
committerAlexandre Salconi <asalconi@cimeq.qc.ca>2020-09-29 20:45:47 (GMT)
commita49a5d4c687742a6eaf516d79d2dff399aad12dc (patch)
tree6e7fd921c4d41fe280bd3f45cef6d04678053231
parent78f57f623c45c92f4fb2740300b44b9b68c42bcc (diff)
downloadDoxygen-a49a5d4c687742a6eaf516d79d2dff399aad12dc.zip
Doxygen-a49a5d4c687742a6eaf516d79d2dff399aad12dc.tar.gz
Doxygen-a49a5d4c687742a6eaf516d79d2dff399aad12dc.tar.bz2
use boolean to add or remove uml details
-rw-r--r--Doxyfile1
-rw-r--r--src/config.xml8
-rw-r--r--src/dotnode.cpp20
3 files changed, 25 insertions, 4 deletions
diff --git a/Doxyfile b/Doxyfile
index dbac3e1..44eb5b5 100644
--- a/Doxyfile
+++ b/Doxyfile
@@ -329,3 +329,4 @@ DOT_MULTI_TARGETS = NO
GENERATE_LEGEND = YES
DOT_CLEANUP = NO
DOT_MAX_FOLD = 17
+DOT_UML_DETAILS = NO
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++;
}