diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2001-02-04 18:02:44 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2001-02-04 18:02:44 (GMT) |
commit | f376c26e3dbe33a773a2f424df4b9c62c8c880ef (patch) | |
tree | 0079dfe633e79bae80c0743850c85fb68f276f60 /addon | |
parent | 1c75d01c701209261a5b6af831280957681e557f (diff) | |
download | Doxygen-f376c26e3dbe33a773a2f424df4b9c62c8c880ef.zip Doxygen-f376c26e3dbe33a773a2f424df4b9c62c8c880ef.tar.gz Doxygen-f376c26e3dbe33a773a2f424df4b9c62c8c880ef.tar.bz2 |
Release-1.2.5
Diffstat (limited to 'addon')
-rw-r--r-- | addon/configgen/config_templ.l | 25 | ||||
-rw-r--r-- | addon/configgen/configgen.cpp | 13 |
2 files changed, 38 insertions, 0 deletions
diff --git a/addon/configgen/config_templ.l b/addon/configgen/config_templ.l index 69886d7..6b6b248 100644 --- a/addon/configgen/config_templ.l +++ b/addon/configgen/config_templ.l @@ -519,6 +519,31 @@ void configStrToVal() } Config::maxDotGraphHeight=height; } + + if (maxInitLinesString.isEmpty()) + { + Config::maxInitLines=30; + } + else + { + bool ok; + int maxLines =maxInitLinesString.toInt(&ok); + if (!ok) + { + warn_cont("Warning: argument of MAX_DOT_GRAPH_WIDTH is not a valid number in the range [100..30000]!\n" + "Using the default of 1024 pixels!\n"); + maxLines=30; + } + else if (maxLines<0) // clip to lower bound + { + maxLines=0; + } + else if (maxLines>10000) // clip to upper bound + { + maxLines=10000; + } + Config::maxInitLines=maxLines; + } } static void substEnvVarsInString(QCString &s) diff --git a/addon/configgen/configgen.cpp b/addon/configgen/configgen.cpp index 6f62235..69dcca3 100644 --- a/addon/configgen/configgen.cpp +++ b/addon/configgen/configgen.cpp @@ -1046,6 +1046,19 @@ void init() "will result in a user defined paragraph with heading \"Side Effects:\". \n" "You can put \\n's in the value part of an alias to insert newlines. \n" ); + ConfigInt::add( "maxInitLines", + "MAX_INITIALIZER_LINES", + "30", + "when do we hide values of variable and defines?", + "The MAX_INITIALIZER_LINES tag determines the maximum number of lines \n" + "the initial value of a variable or define consist of for it to appear in \n" + "the documentation. If the initializer consists of more lines than specified \n" + "here it will be hidden. Use a value of 0 to hide initializers completely. \n" + "The appearance of the initializer of individual variables and defines in the \n" + "documentation can be controlled using \\showinitializer or \\hideinitializer \n" + "command in the documentation regardless of this setting. \n", + 0,10000 + ); ConfigBool::add( "optimizeForCFlag", "OPTIMIZE_OUTPUT_FOR_C", "FALSE", |