Skip to content

Commit a49a5d4

Browse files
use boolean to add or remove uml details
1 parent 78f57f6 commit a49a5d4

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

Doxyfile

+1
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,4 @@ DOT_MULTI_TARGETS = NO
329329
GENERATE_LEGEND = YES
330330
DOT_CLEANUP = NO
331331
DOT_MAX_FOLD = 17
332+
DOT_UML_DETAILS = NO

src/config.xml

+8
Original file line numberDiff line numberDiff line change
@@ -3665,6 +3665,14 @@ remove the intermediate dot files that are used to generate the various graphs.
36653665
<docs>
36663666
<![CDATA[
36673667
The \c DOT_MAX_FOLD tag can be used to set the length to fold text of dot graphs.
3668+
]]>
3669+
</docs>
3670+
</option>
3671+
<option type='bool' id='DOT_UML_DETAILS' defval='0' depends='HAVE_DOT'>
3672+
<docs>
3673+
<![CDATA[
3674+
If the \c DOT_UML_DETAILS tag is set to \c YES, doxygen will
3675+
add details in the uml graphs.
36683676
]]>
36693677
</docs>
36703678
</option>

src/dotnode.cpp

+16-4
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,23 @@ static void writeBoxMemberList(FTextStream &t,
148148
else
149149
{
150150
t << prot << " ";
151-
t << DotNode::convertLabel(mma->typeString());
152-
t << " ";
151+
if(Config_getBool(DOT_UML_DETAILS))
152+
{
153+
t << DotNode::convertLabel(mma->typeString());
154+
t << " ";
155+
}
153156
t << DotNode::convertLabel(mma->name());
154-
if (!mma->isObjCMethod() &&
155-
(mma->isFunction() || mma->isSlot() || mma->isSignal())) t << DotNode::convertLabel(mma->argsString());
157+
if (!mma->isObjCMethod() && (mma->isFunction() || mma->isSlot() || mma->isSignal()))
158+
{
159+
if(Config_getBool(DOT_UML_DETAILS))
160+
{
161+
t << DotNode::convertLabel(mma->argsString());
162+
}
163+
else
164+
{
165+
t << "()";
166+
}
167+
}
156168
t << "\\l";
157169
count++;
158170
}

0 commit comments

Comments
 (0)