Skip to content

Commit

Permalink
use boolean to add or remove uml details
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreSalconiDenis committed Sep 29, 2020
1 parent 78f57f6 commit a49a5d4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
1 change: 1 addition & 0 deletions Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,4 @@ DOT_MULTI_TARGETS = NO
GENERATE_LEGEND = YES
DOT_CLEANUP = NO
DOT_MAX_FOLD = 17
DOT_UML_DETAILS = NO
8 changes: 8 additions & 0 deletions src/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3665,6 +3665,14 @@ remove the intermediate dot files that are used to generate the various graphs.
<docs>
<![CDATA[
The \c DOT_MAX_FOLD tag can be used to set the length to fold text of dot 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>
Expand Down
20 changes: 16 additions & 4 deletions src/dotnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
Expand Down

0 comments on commit a49a5d4

Please sign in to comment.