diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-20 13:33:35 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-20 13:33:35 (GMT) |
commit | 173211aed6e2d2560d60f7434ebb5aada0a2196b (patch) | |
tree | 81a54b59e975c2bd1a20f0e9e0e98deefbd00b5d /src | |
parent | fa878fbcf1bdc85617550adfab382d4a7e5bc8c6 (diff) | |
parent | 456a1ef0ca5f96dbbd93d9cd4c35fecbb2f07ae1 (diff) | |
download | Doxygen-173211aed6e2d2560d60f7434ebb5aada0a2196b.zip Doxygen-173211aed6e2d2560d60f7434ebb5aada0a2196b.tar.gz Doxygen-173211aed6e2d2560d60f7434ebb5aada0a2196b.tar.bz2 |
Merge branch 'test/uml' of https://github.com/cimeq/doxygen into cimeq-test/uml
Diffstat (limited to 'src')
-rw-r--r-- | src/config.xml | 15 | ||||
-rw-r--r-- | src/dotnode.cpp | 20 |
2 files changed, 32 insertions, 3 deletions
diff --git a/src/config.xml b/src/config.xml index 793b7d1..b90e243 100644 --- a/src/config.xml +++ b/src/config.xml @@ -3671,6 +3671,21 @@ remove the intermediate dot files that are used to generate the various graphs. ]]> </docs> </option> + <option type='int' id='DOT_MAX_FOLD' defval='17' minval='0' maxval='1000' depends='HAVE_DOT'> + <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> <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 c02827f..89fe9a7 100644 --- a/src/dotnode.cpp +++ b/src/dotnode.cpp @@ -148,9 +148,23 @@ static void writeBoxMemberList(FTextStream &t, else { t << prot << " "; + 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 << "()"; + 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++; } @@ -185,7 +199,7 @@ QCString DotNode::convertLabel(const QCString &l) int len=p.length(); int charsLeft=len; int sinceLast=0; - int foldLen=17; // ideal text length + int foldLen = Config_getInt(DOT_MAX_FOLD); // ideal text length while (idx < p.length()) { c = p[idx++]; |