diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-12-03 19:13:07 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-12-03 19:13:07 (GMT) |
commit | fe67b8eb68129713327965c201f2d7226b83202f (patch) | |
tree | 485fb83c5a301dd4b0edb3c534b1f31eeb08ab1f /src/config.l | |
parent | a30c2e3c5ea41ae1947e9893c82ed8c8b6d7c5a2 (diff) | |
download | Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.zip Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.gz Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.bz2 |
Release-1.2.3-20001203
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/src/config.l b/src/config.l index 6d4d834..2fcef2f 100644 --- a/src/config.l +++ b/src/config.l @@ -1,4 +1,4 @@ -/* This file was generated by configgen on Sat Nov 25 21:38:08 2000 +/* This file was generated by configgen on Sun Dec 3 19:18:43 2000 * from config_templ.l * * DO NOT EDIT! @@ -135,6 +135,7 @@ bool Config::htmlHelpFlag = FALSE; bool Config::noIndexFlag = FALSE; int Config::enumValuesPerLine = 4; bool Config::ftvHelpFlag = FALSE; +int Config::treeViewWidth = 250; bool Config::generateLatex = TRUE; QCString Config::latexOutputDir = "latex"; bool Config::compactLatexFlag = FALSE; @@ -215,6 +216,7 @@ static int includeDepth; static QCString tabSizeString; static QCString colsInAlphaIndexString; static QCString enumValuesPerLineString; +static QCString treeViewWidthString; static QCString maxDotGraphWidthString; static QCString maxDotGraphHeightString; @@ -413,6 +415,7 @@ static void readIncludeFile(const char *incName) <Start>"DISABLE_INDEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::noIndexFlag; } <Start>"ENUM_VALUES_PER_LINE"[ \t]*"=" { BEGIN(GetString); s=&enumValuesPerLineString; s->resize(0); } <Start>"GENERATE_TREEVIEW"[ \t]*"=" { BEGIN(GetBool); b=&Config::ftvHelpFlag; } +<Start>"TREEVIEW_WIDTH"[ \t]*"=" { BEGIN(GetString); s=&treeViewWidthString; s->resize(0); } <Start>"GENERATE_LATEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateLatex; } <Start>"LATEX_OUTPUT"[ \t]*"=" { BEGIN(GetString); s=&Config::latexOutputDir; s->resize(0); } <Start>"COMPACT_LATEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::compactLatexFlag; } @@ -713,6 +716,7 @@ void dumpConfig() printf("noIndexFlag=`%d'\n",Config::noIndexFlag); printf("enumValuesPerLine=`%d'\n",Config::enumValuesPerLine); printf("ftvHelpFlag=`%d'\n",Config::ftvHelpFlag); + printf("treeViewWidth=`%d'\n",Config::treeViewWidth); printf("# configuration options related to the LaTeX output\n"); printf("generateLatex=`%d'\n",Config::generateLatex); printf("latexOutputDir=`%s'\n",Config::latexOutputDir.data()); @@ -882,6 +886,7 @@ void Config::init() Config::noIndexFlag = FALSE; Config::enumValuesPerLine = 4; Config::ftvHelpFlag = FALSE; + Config::treeViewWidth = 250; Config::generateLatex = TRUE; Config::latexOutputDir = "latex"; Config::compactLatexFlag = FALSE; @@ -1725,6 +1730,17 @@ void writeTemplateConfig(QFile *f,bool sl) if (!sl) { t << "\n"; + t << "# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be \n"; + t << "# used to set the initial width (in pixels) of the frame in which the tree \n"; + t << "# is shown. \n"; + t << "\n"; + } + t << "TREEVIEW_WIDTH = "; + writeIntValue(t,Config::treeViewWidth); + t << "\n"; + if (!sl) + { + t << "\n"; } t << "#---------------------------------------------------------------------------\n"; t << "# configuration options related to the LaTeX output\n"; @@ -2356,6 +2372,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; |