summaryrefslogtreecommitdiffstats
path: root/addon/configgen
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-12-03 19:13:07 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-12-03 19:13:07 (GMT)
commitfe67b8eb68129713327965c201f2d7226b83202f (patch)
tree485fb83c5a301dd4b0edb3c534b1f31eeb08ab1f /addon/configgen
parenta30c2e3c5ea41ae1947e9893c82ed8c8b6d7c5a2 (diff)
downloadDoxygen-fe67b8eb68129713327965c201f2d7226b83202f.zip
Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.gz
Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.bz2
Release-1.2.3-20001203
Diffstat (limited to 'addon/configgen')
-rw-r--r--addon/configgen/config_templ.l17
-rw-r--r--addon/configgen/configgen.cpp10
2 files changed, 27 insertions, 0 deletions
diff --git a/addon/configgen/config_templ.l b/addon/configgen/config_templ.l
index 81d4acf..6cccca9 100644
--- a/addon/configgen/config_templ.l
+++ b/addon/configgen/config_templ.l
@@ -453,6 +453,23 @@ void configStrToVal()
Config::enumValuesPerLine=cols;
}
+ if (treeViewWidthString.isEmpty())
+ {
+ Config::treeViewWidth=250;
+ }
+ else
+ {
+ bool ok;
+ int width = treeViewWidthString.toInt(&ok);
+ if (!ok || width<0 || width>1500)
+ {
+ warn_cont("Warning: argument of TREEVIEW_WIDTH is not a valid number in the range [0..1500]!\n"
+ "Using the default of 250!\n");
+ width = 250;
+ }
+ Config::treeViewWidth=width;
+ }
+
if (maxDotGraphWidthString.isEmpty())
{
Config::maxDotGraphWidth=1024;
diff --git a/addon/configgen/configgen.cpp b/addon/configgen/configgen.cpp
index c05cca7..c7b4ab8 100644
--- a/addon/configgen/configgen.cpp
+++ b/addon/configgen/configgen.cpp
@@ -1313,6 +1313,16 @@ void init()
"or Internet explorer 4.0+). "
);
addDependency("ftvHelpFlag","generateHtml");
+ ConfigInt::add( "treeViewWidth",
+ "TREEVIEW_WIDTH",
+ "250",
+ "What is the width of the treeview panel?",
+ "If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be \n"
+ "used to set the initial width (in pixels) of the frame in which the tree \n"
+ "is shown. \n",
+ 0,1500
+ );
+ addDependency("treeViewWidth","generateHtml");
// TODO: integrate this option
// ConfigBool::add( "htmlHelpGroupsOnly",