Commit 5ad8b41e authored by Dimitri van Heesch's avatar Dimitri van Heesch

Release-1.2.0-20000731

parent 7ce8e31b
DOXYGEN Version 1.2.0 DOXYGEN Version 1.2.0-20000731
Please read the installation section of the manual for instructions. Please read the installation section of the manual for instructions.
-------- --------
Dimitri van Heesch (30 July 2000) Dimitri van Heesch (31 July 2000)
DOXYGEN Version 1.2.0 DOXYGEN Version 1.2.0-20000731
Please read INSTALL for compilation instructions. Please read INSTALL for compilation instructions.
...@@ -7,4 +7,4 @@ The latest version of doxygen can be obtained at ...@@ -7,4 +7,4 @@ The latest version of doxygen can be obtained at
Enjoy, Enjoy,
Dimitri van Heesch (30 July 2000) Dimitri van Heesch (31 July 2000)
1.2.0 1.2.0-20000731
...@@ -272,6 +272,8 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -272,6 +272,8 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# All text after a hash (#) is considered a comment and will be ignored\n"; t << "# All text after a hash (#) is considered a comment and will be ignored\n";
t << "# The format is:\n"; t << "# The format is:\n";
t << "# TAG = value [value, ...]\n"; t << "# TAG = value [value, ...]\n";
t << "# For lists items can also be appended using:\n";
t << "# TAG += value [value, ...]\n";
t << "# Values that contain spaces should be placed between quotes (\" \")\n"; t << "# Values that contain spaces should be placed between quotes (\" \")\n";
} }
#CONFIG Template #CONFIG Template
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#define MAX_OPTION_LENGTH 22 #define MAX_OPTION_LENGTH 23
static QString spaces=" "; static QString spaces=" ";
...@@ -259,10 +259,17 @@ class ConfigList : public ConfigOption ...@@ -259,10 +259,17 @@ class ConfigList : public ConfigOption
const char * short_,const char * long_,WidgetType w=String); const char * short_,const char * long_,WidgetType w=String);
virtual void printRules(QTextStream &t) virtual void printRules(QTextStream &t)
{ {
// rule for assignment
t << "<Start>\"" << cfgName << "\"[ \\t]*\"=\""; t << "<Start>\"" << cfgName << "\"[ \\t]*\"=\"";
t << spaces.left(MAX_OPTION_LENGTH-cfgName.length()); t << spaces.left(MAX_OPTION_LENGTH-cfgName.length());
t << "{ BEGIN(GetStrList); l=&Config::" << varName; t << "{ BEGIN(GetStrList); l=&Config::" << varName;
t << "; l->clear(); elemStr=\"\"; }" << endl; t << "; l->clear(); elemStr=\"\"; }" << endl;
// rule for appending
t << "<Start>\"" << cfgName << "\"[ \\t]*\"+=\"";
t << spaces.left(MAX_OPTION_LENGTH-cfgName.length()-1);
t << "{ BEGIN(GetStrList); l=&Config::" << varName;
t << "; elemStr=\"\"; }" << endl;
} }
virtual void printInit(QTextStream &t) virtual void printInit(QTextStream &t)
{ {
......
...@@ -2,7 +2,7 @@ This is a small utility that is used to test and validate the ...@@ -2,7 +2,7 @@ This is a small utility that is used to test and validate the
XML output generated by doxygen (when GENERATE_XML = YES). XML output generated by doxygen (when GENERATE_XML = YES).
It uses the Xerces-C XML parser/validator (see http://xml.apache.org) It uses the Xerces-C XML parser/validator (see http://xml.apache.org)
and expects the environment variable XERCES_ROOT to point to the root and expects the environment variable XERCESCROOT to point to the root
of the Xerces package. of the Xerces package.
Currently is reads an XML file, validates it, and prints the class Currently is reads an XML file, validates it, and prints the class
......
...@@ -3,5 +3,5 @@ CONFIG = console qt warn_on debug ...@@ -3,5 +3,5 @@ CONFIG = console qt warn_on debug
HEADERS = saxhandler.h strx.h compounddef.h HEADERS = saxhandler.h strx.h compounddef.h
SOURCES = main.cpp \ SOURCES = main.cpp \
saxhandlers.cpp saxhandlers.cpp
LIBS = -lxerces-c1_1 -L$(XERCES_ROOT) LIBS = -lxerces-c1_2 -L$(XERCESCROOT)/lib
INCLUDEPATH = $(XERCES_ROOT)/include INCLUDEPATH = $(XERCESCROOT)/include
...@@ -30,12 +30,15 @@ line. ...@@ -30,12 +30,15 @@ line.
The file essentially consists of a list of assignment statements. The file essentially consists of a list of assignment statements.
Each statement consists of a \c TAG_NAME written in capitals, Each statement consists of a \c TAG_NAME written in capitals,
followed by the \c = character and one or more values. followed by the <code>=</code> character and one or more values. If the same tag
Values are sequences of non-blanks. If the value should contain one or more is assigned more than once, the last assignment overwrites any earlier
blanks it must be surrounded by quotes (&quot;...&quot;). assignment. For options that take a list as their argument,
the <code>+=</code> operator can be used instead of <code>=</code> to append
new values to the list. Values are sequences of non-blanks. If the value should
contain one or more blanks it must be surrounded by quotes (&quot;...&quot;).
Multiple lines can be concatenated by inserting a backslash (\\) Multiple lines can be concatenated by inserting a backslash (\\)
as the last character of a line. as the last character of a line. Environment variables can be expanded
Environment variables can expanded using the pattern \c $(ENV_VARIABLE_NAME). using the pattern \c $(ENV_VARIABLE_NAME).
The configuration options can be divided into several categories. The configuration options can be divided into several categories.
Below is an alphabetical index of the tags that are recognized Below is an alphabetical index of the tags that are recognized
......
Name: doxygen Name: doxygen
Version: 1.2.0 Version: 1.2.0-20000731
Summary: documentation system for C, C++ and IDL Summary: documentation system for C, C++ and IDL
Release: 1 Release: 1
Source0: doxygen-%{version}.src.tar.gz Source0: doxygen-%{version}.src.tar.gz
......
...@@ -281,12 +281,23 @@ static void addVariable() ...@@ -281,12 +281,23 @@ static void addVariable()
} }
else else
{ {
//printf("adding variable `%s' `%s'\n",g_cvd.type.data(),g_cvd.name.data()); int i;
if ((getResolvedClass(g_cvd.type)) || (g_codeClassDict[g_cvd.type])) if ((getResolvedClass(g_cvd.type)) || (g_codeClassDict[g_cvd.type]))
{ {
//printf("adding variable `%s' `%s'\n",g_cvd.type.data(),g_cvd.name.data());
g_cvd.classScope=g_classScope; g_cvd.classScope=g_classScope;
g_codeVarList.append(new CodeVarDef(g_cvd)); // add it to a list g_codeVarList.append(new CodeVarDef(g_cvd)); // add it to a list
} }
else if ((i=g_cvd.type.find('<'))>0)
{
g_cvd.type = g_cvd.type.left(i);
if ((getResolvedClass(g_cvd.type)) || (g_codeClassDict[g_cvd.type.left(i)]))
{
//printf("adding template type variable `%s' `%s'\n",g_cvd.type.data(),g_cvd.name.data());
g_cvd.classScope=g_classScope;
g_codeVarList.append(new CodeVarDef(g_cvd));
}
}
} }
} }
...@@ -300,12 +311,23 @@ static void addParameter() ...@@ -300,12 +311,23 @@ static void addParameter()
} }
else else
{ {
//printf("adding parameter `%s' `%s'\n",g_cvd.type.data(),g_cvd.name.data()); int i;
if ((getClass(g_cvd.type)) || (g_codeClassDict[g_cvd.type])) if ((getResolvedClass(g_cvd.type)) || (g_codeClassDict[g_cvd.type]))
{ {
//printf("adding parameter `%s' `%s'\n",g_cvd.type.data(),g_cvd.name.data());
g_cvd.classScope=g_classScope; g_cvd.classScope=g_classScope;
g_codeParmList.append(new CodeVarDef(g_cvd)); // add it to a list g_codeParmList.append(new CodeVarDef(g_cvd)); // add it to a list
} }
else if ((i=g_cvd.type.find('<'))>0)
{
g_cvd.type = g_cvd.type.left(i);
if ((getResolvedClass(g_cvd.type)) || (g_codeClassDict[g_cvd.type.left(i)]))
{
//printf("adding template type parameter `%s' `%s'\n",g_cvd.type.data(),g_cvd.name.data());
g_cvd.classScope=g_classScope;
g_codeParmList.append(new CodeVarDef(g_cvd));
}
}
} }
} }
...@@ -948,15 +970,11 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned" ...@@ -948,15 +970,11 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
addType(); addType();
g_name+=yytext; g_name+=yytext;
} }
/* <Body>{SCOPENAME}{B}*"<"[^\n\>]*">"/{B}* { // A<T> *pt;
<Body>{SCOPETNAME}/{B}* { generateClassLink(*g_code,yytext);
int i;
generateClassLink(*g_code,yytext,&i);
addType(); addType();
QCString text=yytext; g_name+=yytext;
g_name+=text.left(i); }
}
*/
<Body>{SCOPENAME}/{B}* { // p->func() <Body>{SCOPENAME}/{B}* { // p->func()
generateClassLink(*g_code,yytext); generateClassLink(*g_code,yytext);
addType(); addType();
...@@ -1094,7 +1112,7 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned" ...@@ -1094,7 +1112,7 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
g_code->codify(yytext); g_code->codify(yytext);
endFontClass(); endFontClass();
} }
<MemberCall2,FuncCall>[a-z_A-Z][:a-z_A-Z0-9]* { <MemberCall2,FuncCall>[a-z_A-Z][:a-z_A-Z0-9]*({B}*"<"[^\n\>]*">")? {
addParmType(); addParmType();
g_parmName=yytext; g_parmName=yytext;
generateClassLink(*g_code,yytext); generateClassLink(*g_code,yytext);
......
/* This file was generated by configgen on Fri Jul 28 19:43:36 2000 /* This file was generated by configgen on Mon Jul 31 16:07:18 2000
* from config_templ.h * from config_templ.h
* *
* DO NOT EDIT! * DO NOT EDIT!
......
/* This file was generated by configgen on Fri Jul 28 19:43:36 2000 /* This file was generated by configgen on Mon Jul 31 16:11:27 2000
* from config_templ.l * from config_templ.l
* *
* DO NOT EDIT! * DO NOT EDIT!
...@@ -225,107 +225,124 @@ static int yyread(char *buf,int max_size) ...@@ -225,107 +225,124 @@ static int yyread(char *buf,int max_size)
<*>\0x0d <*>\0x0d
<Start,GetString,GetStrList,GetBool>"#" { BEGIN(SkipComment); } <Start,GetString,GetStrList,GetBool>"#" { BEGIN(SkipComment); }
<Start>"PROJECT_NAME"[ \t]*"=" { BEGIN(GetString); s=&Config::projectName; s->resize(0); } <Start>"PROJECT_NAME"[ \t]*"=" { BEGIN(GetString); s=&Config::projectName; s->resize(0); }
<Start>"PROJECT_NUMBER"[ \t]*"=" { BEGIN(GetString); s=&Config::projectNumber; s->resize(0); } <Start>"PROJECT_NUMBER"[ \t]*"=" { BEGIN(GetString); s=&Config::projectNumber; s->resize(0); }
<Start>"OUTPUT_DIRECTORY"[ \t]*"=" { BEGIN(GetString); s=&Config::outputDir; s->resize(0); } <Start>"OUTPUT_DIRECTORY"[ \t]*"=" { BEGIN(GetString); s=&Config::outputDir; s->resize(0); }
<Start>"OUTPUT_LANGUAGE"[ \t]*"=" { BEGIN(GetString); s=&Config::outputLanguage; s->resize(0); } <Start>"OUTPUT_LANGUAGE"[ \t]*"=" { BEGIN(GetString); s=&Config::outputLanguage; s->resize(0); }
<Start>"DISABLE_INDEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::noIndexFlag; } <Start>"DISABLE_INDEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::noIndexFlag; }
<Start>"EXTRACT_ALL"[ \t]*"=" { BEGIN(GetBool); b=&Config::extractAllFlag; } <Start>"EXTRACT_ALL"[ \t]*"=" { BEGIN(GetBool); b=&Config::extractAllFlag; }
<Start>"EXTRACT_PRIVATE"[ \t]*"=" { BEGIN(GetBool); b=&Config::extractPrivateFlag; } <Start>"EXTRACT_PRIVATE"[ \t]*"=" { BEGIN(GetBool); b=&Config::extractPrivateFlag; }
<Start>"EXTRACT_STATIC"[ \t]*"=" { BEGIN(GetBool); b=&Config::extractStaticFlag; } <Start>"EXTRACT_STATIC"[ \t]*"=" { BEGIN(GetBool); b=&Config::extractStaticFlag; }
<Start>"HIDE_UNDOC_MEMBERS"[ \t]*"=" { BEGIN(GetBool); b=&Config::hideMemberFlag; } <Start>"HIDE_UNDOC_MEMBERS"[ \t]*"=" { BEGIN(GetBool); b=&Config::hideMemberFlag; }
<Start>"HIDE_UNDOC_CLASSES"[ \t]*"=" { BEGIN(GetBool); b=&Config::hideClassFlag; } <Start>"HIDE_UNDOC_CLASSES"[ \t]*"=" { BEGIN(GetBool); b=&Config::hideClassFlag; }
<Start>"BRIEF_MEMBER_DESC"[ \t]*"=" { BEGIN(GetBool); b=&Config::briefMemDescFlag; } <Start>"BRIEF_MEMBER_DESC"[ \t]*"=" { BEGIN(GetBool); b=&Config::briefMemDescFlag; }
<Start>"REPEAT_BRIEF"[ \t]*"=" { BEGIN(GetBool); b=&Config::repeatBriefFlag; } <Start>"REPEAT_BRIEF"[ \t]*"=" { BEGIN(GetBool); b=&Config::repeatBriefFlag; }
<Start>"ALWAYS_DETAILED_SEC"[ \t]*"=" { BEGIN(GetBool); b=&Config::alwaysDetailsFlag; } <Start>"ALWAYS_DETAILED_SEC"[ \t]*"=" { BEGIN(GetBool); b=&Config::alwaysDetailsFlag; }
<Start>"FULL_PATH_NAMES"[ \t]*"=" { BEGIN(GetBool); b=&Config::fullPathNameFlag; } <Start>"FULL_PATH_NAMES"[ \t]*"=" { BEGIN(GetBool); b=&Config::fullPathNameFlag; }
<Start>"STRIP_FROM_PATH"[ \t]*"=" { BEGIN(GetStrList); l=&Config::stripFromPath; l->clear(); elemStr=""; } <Start>"STRIP_FROM_PATH"[ \t]*"=" { BEGIN(GetStrList); l=&Config::stripFromPath; l->clear(); elemStr=""; }
<Start>"INTERNAL_DOCS"[ \t]*"=" { BEGIN(GetBool); b=&Config::internalDocsFlag; } <Start>"STRIP_FROM_PATH"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::stripFromPath; elemStr=""; }
<Start>"CLASS_DIAGRAMS"[ \t]*"=" { BEGIN(GetBool); b=&Config::classDiagramFlag; } <Start>"INTERNAL_DOCS"[ \t]*"=" { BEGIN(GetBool); b=&Config::internalDocsFlag; }
<Start>"SOURCE_BROWSER"[ \t]*"=" { BEGIN(GetBool); b=&Config::sourceBrowseFlag; } <Start>"CLASS_DIAGRAMS"[ \t]*"=" { BEGIN(GetBool); b=&Config::classDiagramFlag; }
<Start>"INLINE_SOURCES"[ \t]*"=" { BEGIN(GetBool); b=&Config::inlineSourceFlag; } <Start>"SOURCE_BROWSER"[ \t]*"=" { BEGIN(GetBool); b=&Config::sourceBrowseFlag; }
<Start>"STRIP_CODE_COMMENTS"[ \t]*"=" { BEGIN(GetBool); b=&Config::stripCommentsFlag; } <Start>"INLINE_SOURCES"[ \t]*"=" { BEGIN(GetBool); b=&Config::inlineSourceFlag; }
<Start>"CASE_SENSE_NAMES"[ \t]*"=" { BEGIN(GetBool); b=&Config::caseSensitiveNames; } <Start>"STRIP_CODE_COMMENTS"[ \t]*"=" { BEGIN(GetBool); b=&Config::stripCommentsFlag; }
<Start>"HIDE_SCOPE_NAMES"[ \t]*"=" { BEGIN(GetBool); b=&Config::hideScopeNames; } <Start>"CASE_SENSE_NAMES"[ \t]*"=" { BEGIN(GetBool); b=&Config::caseSensitiveNames; }
<Start>"VERBATIM_HEADERS"[ \t]*"=" { BEGIN(GetBool); b=&Config::verbatimHeaderFlag; } <Start>"HIDE_SCOPE_NAMES"[ \t]*"=" { BEGIN(GetBool); b=&Config::hideScopeNames; }
<Start>"SHOW_INCLUDE_FILES"[ \t]*"=" { BEGIN(GetBool); b=&Config::showIncFileFlag; } <Start>"VERBATIM_HEADERS"[ \t]*"=" { BEGIN(GetBool); b=&Config::verbatimHeaderFlag; }
<Start>"JAVADOC_AUTOBRIEF"[ \t]*"=" { BEGIN(GetBool); b=&Config::autoBriefFlag; } <Start>"SHOW_INCLUDE_FILES"[ \t]*"=" { BEGIN(GetBool); b=&Config::showIncFileFlag; }
<Start>"INHERIT_DOCS"[ \t]*"=" { BEGIN(GetBool); b=&Config::inheritDocsFlag; } <Start>"JAVADOC_AUTOBRIEF"[ \t]*"=" { BEGIN(GetBool); b=&Config::autoBriefFlag; }
<Start>"INLINE_INFO"[ \t]*"=" { BEGIN(GetBool); b=&Config::inlineInfoFlag; } <Start>"INHERIT_DOCS"[ \t]*"=" { BEGIN(GetBool); b=&Config::inheritDocsFlag; }
<Start>"SORT_MEMBER_DOCS"[ \t]*"=" { BEGIN(GetBool); b=&Config::sortMembersFlag; } <Start>"INLINE_INFO"[ \t]*"=" { BEGIN(GetBool); b=&Config::inlineInfoFlag; }
<Start>"TAB_SIZE"[ \t]*"=" { BEGIN(GetString); s=&tabSizeString; s->resize(0); } <Start>"SORT_MEMBER_DOCS"[ \t]*"=" { BEGIN(GetBool); b=&Config::sortMembersFlag; }
<Start>"ENABLED_SECTIONS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::sectionFilterList; l->clear(); elemStr=""; } <Start>"TAB_SIZE"[ \t]*"=" { BEGIN(GetString); s=&tabSizeString; s->resize(0); }
<Start>"GENERATE_TODOLIST"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateTodoList; } <Start>"ENABLED_SECTIONS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::sectionFilterList; l->clear(); elemStr=""; }
<Start>"GENERATE_TESTLIST"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateTestList; } <Start>"ENABLED_SECTIONS"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::sectionFilterList; elemStr=""; }
<Start>"QUIET"[ \t]*"=" { BEGIN(GetBool); b=&Config::quietFlag; } <Start>"GENERATE_TODOLIST"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateTodoList; }
<Start>"WARNINGS"[ \t]*"=" { BEGIN(GetBool); b=&Config::warningFlag; } <Start>"GENERATE_TESTLIST"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateTestList; }
<Start>"WARN_IF_UNDOCUMENTED"[ \t]*"=" { BEGIN(GetBool); b=&Config::warningUndocFlag; } <Start>"QUIET"[ \t]*"=" { BEGIN(GetBool); b=&Config::quietFlag; }
<Start>"WARN_FORMAT"[ \t]*"=" { BEGIN(GetString); s=&Config::warnFormat; s->resize(0); } <Start>"WARNINGS"[ \t]*"=" { BEGIN(GetBool); b=&Config::warningFlag; }
<Start>"INPUT"[ \t]*"=" { BEGIN(GetStrList); l=&Config::inputSources; l->clear(); elemStr=""; } <Start>"WARN_IF_UNDOCUMENTED"[ \t]*"=" { BEGIN(GetBool); b=&Config::warningUndocFlag; }
<Start>"FILE_PATTERNS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::filePatternList; l->clear(); elemStr=""; } <Start>"WARN_FORMAT"[ \t]*"=" { BEGIN(GetString); s=&Config::warnFormat; s->resize(0); }
<Start>"RECURSIVE"[ \t]*"=" { BEGIN(GetBool); b=&Config::recursiveFlag; } <Start>"INPUT"[ \t]*"=" { BEGIN(GetStrList); l=&Config::inputSources; l->clear(); elemStr=""; }
<Start>"EXCLUDE"[ \t]*"=" { BEGIN(GetStrList); l=&Config::excludeSources; l->clear(); elemStr=""; } <Start>"INPUT"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::inputSources; elemStr=""; }
<Start>"EXCLUDE_PATTERNS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::excludePatternList; l->clear(); elemStr=""; } <Start>"FILE_PATTERNS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::filePatternList; l->clear(); elemStr=""; }
<Start>"EXAMPLE_PATH"[ \t]*"=" { BEGIN(GetStrList); l=&Config::examplePath; l->clear(); elemStr=""; } <Start>"FILE_PATTERNS"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::filePatternList; elemStr=""; }
<Start>"EXAMPLE_PATTERNS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::examplePatternList; l->clear(); elemStr=""; } <Start>"RECURSIVE"[ \t]*"=" { BEGIN(GetBool); b=&Config::recursiveFlag; }
<Start>"IMAGE_PATH"[ \t]*"=" { BEGIN(GetStrList); l=&Config::imagePath; l->clear(); elemStr=""; } <Start>"EXCLUDE"[ \t]*"=" { BEGIN(GetStrList); l=&Config::excludeSources; l->clear(); elemStr=""; }
<Start>"INPUT_FILTER"[ \t]*"=" { BEGIN(GetString); s=&Config::inputFilter; s->resize(0); } <Start>"EXCLUDE"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::excludeSources; elemStr=""; }
<Start>"ALPHABETICAL_INDEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::alphaIndexFlag; } <Start>"EXCLUDE_PATTERNS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::excludePatternList; l->clear(); elemStr=""; }
<Start>"COLS_IN_ALPHA_INDEX"[ \t]*"=" { BEGIN(GetString); s=&colsInAlphaIndexString; s->resize(0); } <Start>"EXCLUDE_PATTERNS"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::excludePatternList; elemStr=""; }
<Start>"IGNORE_PREFIX"[ \t]*"=" { BEGIN(GetStrList); l=&Config::ignorePrefixList; l->clear(); elemStr=""; } <Start>"EXAMPLE_PATH"[ \t]*"=" { BEGIN(GetStrList); l=&Config::examplePath; l->clear(); elemStr=""; }
<Start>"GENERATE_HTML"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateHtml; } <Start>"EXAMPLE_PATH"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::examplePath; elemStr=""; }
<Start>"HTML_OUTPUT"[ \t]*"=" { BEGIN(GetString); s=&Config::htmlOutputDir; s->resize(0); } <Start>"EXAMPLE_PATTERNS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::examplePatternList; l->clear(); elemStr=""; }
<Start>"HTML_HEADER"[ \t]*"=" { BEGIN(GetString); s=&Config::headerFile; s->resize(0); } <Start>"EXAMPLE_PATTERNS"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::examplePatternList; elemStr=""; }
<Start>"HTML_FOOTER"[ \t]*"=" { BEGIN(GetString); s=&Config::footerFile; s->resize(0); } <Start>"IMAGE_PATH"[ \t]*"=" { BEGIN(GetStrList); l=&Config::imagePath; l->clear(); elemStr=""; }
<Start>"HTML_STYLESHEET"[ \t]*"=" { BEGIN(GetString); s=&Config::htmlStyleSheet; s->resize(0); } <Start>"IMAGE_PATH"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::imagePath; elemStr=""; }
<Start>"HTML_ALIGN_MEMBERS"[ \t]*"=" { BEGIN(GetBool); b=&Config::htmlAlignMemberFlag; } <Start>"INPUT_FILTER"[ \t]*"=" { BEGIN(GetString); s=&Config::inputFilter; s->resize(0); }
<Start>"GENERATE_HTMLHELP"[ \t]*"=" { BEGIN(GetBool); b=&Config::htmlHelpFlag; } <Start>"ALPHABETICAL_INDEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::alphaIndexFlag; }
<Start>"GENERATE_LATEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateLatex; } <Start>"COLS_IN_ALPHA_INDEX"[ \t]*"=" { BEGIN(GetString); s=&colsInAlphaIndexString; s->resize(0); }
<Start>"LATEX_OUTPUT"[ \t]*"=" { BEGIN(GetString); s=&Config::latexOutputDir; s->resize(0); } <Start>"IGNORE_PREFIX"[ \t]*"=" { BEGIN(GetStrList); l=&Config::ignorePrefixList; l->clear(); elemStr=""; }
<Start>"COMPACT_LATEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::compactLatexFlag; } <Start>"IGNORE_PREFIX"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::ignorePrefixList; elemStr=""; }
<Start>"PAPER_TYPE"[ \t]*"=" { BEGIN(GetString); s=&Config::paperType; s->resize(0); } <Start>"GENERATE_HTML"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateHtml; }
<Start>"EXTRA_PACKAGES"[ \t]*"=" { BEGIN(GetStrList); l=&Config::extraPackageList; l->clear(); elemStr=""; } <Start>"HTML_OUTPUT"[ \t]*"=" { BEGIN(GetString); s=&Config::htmlOutputDir; s->resize(0); }
<Start>"LATEX_HEADER"[ \t]*"=" { BEGIN(GetString); s=&Config::latexHeaderFile; s->resize(0); } <Start>"HTML_HEADER"[ \t]*"=" { BEGIN(GetString); s=&Config::headerFile; s->resize(0); }
<Start>"PDF_HYPERLINKS"[ \t]*"=" { BEGIN(GetBool); b=&Config::pdfHyperFlag; } <Start>"HTML_FOOTER"[ \t]*"=" { BEGIN(GetString); s=&Config::footerFile; s->resize(0); }
<Start>"USE_PDFLATEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::usePDFLatexFlag; } <Start>"HTML_STYLESHEET"[ \t]*"=" { BEGIN(GetString); s=&Config::htmlStyleSheet; s->resize(0); }
<Start>"LATEX_BATCHMODE"[ \t]*"=" { BEGIN(GetBool); b=&Config::latexBatchModeFlag; } <Start>"HTML_ALIGN_MEMBERS"[ \t]*"=" { BEGIN(GetBool); b=&Config::htmlAlignMemberFlag; }
<Start>"GENERATE_RTF"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateRTF; } <Start>"GENERATE_HTMLHELP"[ \t]*"=" { BEGIN(GetBool); b=&Config::htmlHelpFlag; }
<Start>"RTF_OUTPUT"[ \t]*"=" { BEGIN(GetString); s=&Config::rtfOutputDir; s->resize(0); } <Start>"GENERATE_LATEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateLatex; }
<Start>"COMPACT_RTF"[ \t]*"=" { BEGIN(GetBool); b=&Config::compactRTFFlag; } <Start>"LATEX_OUTPUT"[ \t]*"=" { BEGIN(GetString); s=&Config::latexOutputDir; s->resize(0); }
<Start>"RTF_HYPERLINKS"[ \t]*"=" { BEGIN(GetBool); b=&Config::rtfHyperFlag; } <Start>"COMPACT_LATEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::compactLatexFlag; }
<Start>"RTF_STYLESHEET_FILE"[ \t]*"=" { BEGIN(GetString); s=&Config::rtfStylesheetFile; s->resize(0); } <Start>"PAPER_TYPE"[ \t]*"=" { BEGIN(GetString); s=&Config::paperType; s->resize(0); }
<Start>"GENERATE_MAN"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateMan; } <Start>"EXTRA_PACKAGES"[ \t]*"=" { BEGIN(GetStrList); l=&Config::extraPackageList; l->clear(); elemStr=""; }
<Start>"MAN_OUTPUT"[ \t]*"=" { BEGIN(GetString); s=&Config::manOutputDir; s->resize(0); } <Start>"EXTRA_PACKAGES"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::extraPackageList; elemStr=""; }
<Start>"MAN_EXTENSION"[ \t]*"=" { BEGIN(GetString); s=&Config::manExtension; s->resize(0); } <Start>"LATEX_HEADER"[ \t]*"=" { BEGIN(GetString); s=&Config::latexHeaderFile; s->resize(0); }
<Start>"GENERATE_XML"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateXML; } <Start>"PDF_HYPERLINKS"[ \t]*"=" { BEGIN(GetBool); b=&Config::pdfHyperFlag; }
<Start>"ENABLE_PREPROCESSING"[ \t]*"=" { BEGIN(GetBool); b=&Config::preprocessingFlag; } <Start>"USE_PDFLATEX"[ \t]*"=" { BEGIN(GetBool); b=&Config::usePDFLatexFlag; }
<Start>"MACRO_EXPANSION"[ \t]*"=" { BEGIN(GetBool); b=&Config::macroExpansionFlag; } <Start>"LATEX_BATCHMODE"[ \t]*"=" { BEGIN(GetBool); b=&Config::latexBatchModeFlag; }
<Start>"EXPAND_ONLY_PREDEF"[ \t]*"=" { BEGIN(GetBool); b=&Config::onlyPredefinedFlag; } <Start>"GENERATE_RTF"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateRTF; }
<Start>"SEARCH_INCLUDES"[ \t]*"=" { BEGIN(GetBool); b=&Config::searchIncludeFlag; } <Start>"RTF_OUTPUT"[ \t]*"=" { BEGIN(GetString); s=&Config::rtfOutputDir; s->resize(0); }
<Start>"INCLUDE_PATH"[ \t]*"=" { BEGIN(GetStrList); l=&Config::includePath; l->clear(); elemStr=""; } <Start>"COMPACT_RTF"[ \t]*"=" { BEGIN(GetBool); b=&Config::compactRTFFlag; }
<Start>"INCLUDE_FILE_PATTERNS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::includeFilePatternList; l->clear(); elemStr=""; } <Start>"RTF_HYPERLINKS"[ \t]*"=" { BEGIN(GetBool); b=&Config::rtfHyperFlag; }
<Start>"PREDEFINED"[ \t]*"=" { BEGIN(GetStrList); l=&Config::predefined; l->clear(); elemStr=""; } <Start>"RTF_STYLESHEET_FILE"[ \t]*"=" { BEGIN(GetString); s=&Config::rtfStylesheetFile; s->resize(0); }
<Start>"EXPAND_AS_DEFINED"[ \t]*"=" { BEGIN(GetStrList); l=&Config::expandAsDefinedList; l->clear(); elemStr=""; } <Start>"GENERATE_MAN"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateMan; }
<Start>"TAGFILES"[ \t]*"=" { BEGIN(GetStrList); l=&Config::tagFileList; l->clear(); elemStr=""; } <Start>"MAN_OUTPUT"[ \t]*"=" { BEGIN(GetString); s=&Config::manOutputDir; s->resize(0); }
<Start>"GENERATE_TAGFILE"[ \t]*"=" { BEGIN(GetString); s=&Config::genTagFile; s->resize(0); } <Start>"MAN_EXTENSION"[ \t]*"=" { BEGIN(GetString); s=&Config::manExtension; s->resize(0); }
<Start>"ALLEXTERNALS"[ \t]*"=" { BEGIN(GetBool); b=&Config::allExtFlag; } <Start>"GENERATE_XML"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateXML; }
<Start>"PERL_PATH"[ \t]*"=" { BEGIN(GetString); s=&Config::perlPath; s->resize(0); } <Start>"ENABLE_PREPROCESSING"[ \t]*"=" { BEGIN(GetBool); b=&Config::preprocessingFlag; }
<Start>"HAVE_DOT"[ \t]*"=" { BEGIN(GetBool); b=&Config::haveDotFlag; } <Start>"MACRO_EXPANSION"[ \t]*"=" { BEGIN(GetBool); b=&Config::macroExpansionFlag; }
<Start>"CLASS_GRAPH"[ \t]*"=" { BEGIN(GetBool); b=&Config::classGraphFlag; } <Start>"EXPAND_ONLY_PREDEF"[ \t]*"=" { BEGIN(GetBool); b=&Config::onlyPredefinedFlag; }
<Start>"COLLABORATION_GRAPH"[ \t]*"=" { BEGIN(GetBool); b=&Config::collGraphFlag; } <Start>"SEARCH_INCLUDES"[ \t]*"=" { BEGIN(GetBool); b=&Config::searchIncludeFlag; }
<Start>"INCLUDE_GRAPH"[ \t]*"=" { BEGIN(GetBool); b=&Config::includeGraphFlag; } <Start>"INCLUDE_PATH"[ \t]*"=" { BEGIN(GetStrList); l=&Config::includePath; l->clear(); elemStr=""; }
<Start>"INCLUDED_BY_GRAPH"[ \t]*"=" { BEGIN(GetBool); b=&Config::includedByGraphFlag; } <Start>"INCLUDE_PATH"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::includePath; elemStr=""; }
<Start>"GRAPHICAL_HIERARCHY"[ \t]*"=" { BEGIN(GetBool); b=&Config::gfxHierarchyFlag; } <Start>"INCLUDE_FILE_PATTERNS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::includeFilePatternList; l->clear(); elemStr=""; }
<Start>"DOT_PATH"[ \t]*"=" { BEGIN(GetString); s=&Config::dotPath; s->resize(0); } <Start>"INCLUDE_FILE_PATTERNS"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::includeFilePatternList; elemStr=""; }
<Start>"MAX_DOT_GRAPH_WIDTH"[ \t]*"=" { BEGIN(GetString); s=&maxDotGraphWidthString; s->resize(0); } <Start>"PREDEFINED"[ \t]*"=" { BEGIN(GetStrList); l=&Config::predefined; l->clear(); elemStr=""; }
<Start>"MAX_DOT_GRAPH_HEIGHT"[ \t]*"=" { BEGIN(GetString); s=&maxDotGraphHeightString; s->resize(0); } <Start>"PREDEFINED"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::predefined; elemStr=""; }
<Start>"SEARCHENGINE"[ \t]*"=" { BEGIN(GetBool); b=&Config::searchEngineFlag; } <Start>"EXPAND_AS_DEFINED"[ \t]*"=" { BEGIN(GetStrList); l=&Config::expandAsDefinedList; l->clear(); elemStr=""; }
<Start>"CGI_NAME"[ \t]*"=" { BEGIN(GetString); s=&Config::cgiName; s->resize(0); } <Start>"EXPAND_AS_DEFINED"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::expandAsDefinedList; elemStr=""; }
<Start>"CGI_URL"[ \t]*"=" { BEGIN(GetString); s=&Config::cgiURL; s->resize(0); } <Start>"TAGFILES"[ \t]*"=" { BEGIN(GetStrList); l=&Config::tagFileList; l->clear(); elemStr=""; }
<Start>"DOC_URL"[ \t]*"=" { BEGIN(GetString); s=&Config::docURL; s->resize(0); } <Start>"TAGFILES"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::tagFileList; elemStr=""; }
<Start>"DOC_ABSPATH"[ \t]*"=" { BEGIN(GetString); s=&Config::docAbsPath; s->resize(0); } <Start>"GENERATE_TAGFILE"[ \t]*"=" { BEGIN(GetString); s=&Config::genTagFile; s->resize(0); }
<Start>"BIN_ABSPATH"[ \t]*"=" { BEGIN(GetString); s=&Config::binAbsPath; s->resize(0); } <Start>"ALLEXTERNALS"[ \t]*"=" { BEGIN(GetBool); b=&Config::allExtFlag; }
<Start>"EXT_DOC_PATHS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::extDocPathList; l->clear(); elemStr=""; } <Start>"PERL_PATH"[ \t]*"=" { BEGIN(GetString); s=&Config::perlPath; s->resize(0); }
<Start>"HAVE_DOT"[ \t]*"=" { BEGIN(GetBool); b=&Config::haveDotFlag; }
<Start>"CLASS_GRAPH"[ \t]*"=" { BEGIN(GetBool); b=&Config::classGraphFlag; }
<Start>"COLLABORATION_GRAPH"[ \t]*"=" { BEGIN(GetBool); b=&Config::collGraphFlag; }
<Start>"INCLUDE_GRAPH"[ \t]*"=" { BEGIN(GetBool); b=&Config::includeGraphFlag; }
<Start>"INCLUDED_BY_GRAPH"[ \t]*"=" { BEGIN(GetBool); b=&Config::includedByGraphFlag; }
<Start>"GRAPHICAL_HIERARCHY"[ \t]*"=" { BEGIN(GetBool); b=&Config::gfxHierarchyFlag; }
<Start>"DOT_PATH"[ \t]*"=" { BEGIN(GetString); s=&Config::dotPath; s->resize(0); }
<Start>"MAX_DOT_GRAPH_WIDTH"[ \t]*"=" { BEGIN(GetString); s=&maxDotGraphWidthString; s->resize(0); }
<Start>"MAX_DOT_GRAPH_HEIGHT"[ \t]*"=" { BEGIN(GetString); s=&maxDotGraphHeightString; s->resize(0); }
<Start>"SEARCHENGINE"[ \t]*"=" { BEGIN(GetBool); b=&Config::searchEngineFlag; }
<Start>"CGI_NAME"[ \t]*"=" { BEGIN(GetString); s=&Config::cgiName; s->resize(0); }
<Start>"CGI_URL"[ \t]*"=" { BEGIN(GetString); s=&Config::cgiURL; s->resize(0); }
<Start>"DOC_URL"[ \t]*"=" { BEGIN(GetString); s=&Config::docURL; s->resize(0); }
<Start>"DOC_ABSPATH"[ \t]*"=" { BEGIN(GetString); s=&Config::docAbsPath; s->resize(0); }
<Start>"BIN_ABSPATH"[ \t]*"=" { BEGIN(GetString); s=&Config::binAbsPath; s->resize(0); }
<Start>"EXT_DOC_PATHS"[ \t]*"=" { BEGIN(GetStrList); l=&Config::extDocPathList; l->clear(); elemStr=""; }
<Start>"EXT_DOC_PATHS"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::extDocPathList; elemStr=""; }
<Start>[a-z_A-Z0-9]+ { err("Warning: ignoring unknown tag `%s' at line %d\n",yytext,yyLineNr); } <Start>[a-z_A-Z0-9]+ { err("Warning: ignoring unknown tag `%s' at line %d\n",yytext,yyLineNr); }
<GetString,GetBool>\n { yyLineNr++; BEGIN(Start); } <GetString,GetBool>\n { yyLineNr++; BEGIN(Start); }
<GetStrList>\n { <GetStrList>\n {
...@@ -813,6 +830,8 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -813,6 +830,8 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# All text after a hash (#) is considered a comment and will be ignored\n"; t << "# All text after a hash (#) is considered a comment and will be ignored\n";
t << "# The format is:\n"; t << "# The format is:\n";
t << "# TAG = value [value, ...]\n"; t << "# TAG = value [value, ...]\n";
t << "# For lists items can also be appended using:\n";
t << "# TAG += value [value, ...]\n";
t << "# Values that contain spaces should be placed between quotes (\" \")\n"; t << "# Values that contain spaces should be placed between quotes (\" \")\n";
} }
if (!sl) if (!sl)
...@@ -829,7 +848,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -829,7 +848,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# by quotes) that should identify the project. \n"; t << "# by quotes) that should identify the project. \n";
t << "\n"; t << "\n";
} }
t << "PROJECT_NAME = "; t << "PROJECT_NAME = ";
writeStringValue(t,Config::projectName); writeStringValue(t,Config::projectName);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -840,7 +859,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -840,7 +859,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# if some version control system is used.\n"; t << "# if some version control system is used.\n";
t << "\n"; t << "\n";
} }
t << "PROJECT_NUMBER = "; t << "PROJECT_NUMBER = ";
writeStringValue(t,Config::projectNumber); writeStringValue(t,Config::projectNumber);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -852,7 +871,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -852,7 +871,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# where doxygen was started. If left blank the current directory will be used.\n"; t << "# where doxygen was started. If left blank the current directory will be used.\n";
t << "\n"; t << "\n";
} }
t << "OUTPUT_DIRECTORY = "; t << "OUTPUT_DIRECTORY = ";
writeStringValue(t,Config::outputDir); writeStringValue(t,Config::outputDir);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -866,7 +885,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -866,7 +885,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# Spanish, Russian, Croatian, Polish, and Portuguese.\n"; t << "# Spanish, Russian, Croatian, Polish, and Portuguese.\n";
t << "\n"; t << "\n";
} }
t << "OUTPUT_LANGUAGE = "; t << "OUTPUT_LANGUAGE = ";
writeStringValue(t,Config::outputLanguage); writeStringValue(t,Config::outputLanguage);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -877,7 +896,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -877,7 +896,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# the value YES disables it. \n"; t << "# the value YES disables it. \n";
t << "\n"; t << "\n";
} }
t << "DISABLE_INDEX = "; t << "DISABLE_INDEX = ";
writeBoolValue(t,Config::noIndexFlag); writeBoolValue(t,Config::noIndexFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -889,7 +908,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -889,7 +908,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES \n"; t << "# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES \n";
t << "\n"; t << "\n";
} }
t << "EXTRACT_ALL = "; t << "EXTRACT_ALL = ";
writeBoolValue(t,Config::extractAllFlag); writeBoolValue(t,Config::extractAllFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -899,7 +918,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -899,7 +918,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# will be included in the documentation. \n"; t << "# will be included in the documentation. \n";
t << "\n"; t << "\n";
} }
t << "EXTRACT_PRIVATE = "; t << "EXTRACT_PRIVATE = ";
writeBoolValue(t,Config::extractPrivateFlag); writeBoolValue(t,Config::extractPrivateFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -909,7 +928,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -909,7 +928,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# will be included in the documentation. \n"; t << "# will be included in the documentation. \n";
t << "\n"; t << "\n";
} }
t << "EXTRACT_STATIC = "; t << "EXTRACT_STATIC = ";
writeBoolValue(t,Config::extractStaticFlag); writeBoolValue(t,Config::extractStaticFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -922,7 +941,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -922,7 +941,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# This option has no effect if EXTRACT_ALL is enabled. \n"; t << "# This option has no effect if EXTRACT_ALL is enabled. \n";
t << "\n"; t << "\n";
} }
t << "HIDE_UNDOC_MEMBERS = "; t << "HIDE_UNDOC_MEMBERS = ";
writeBoolValue(t,Config::hideMemberFlag); writeBoolValue(t,Config::hideMemberFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -934,7 +953,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -934,7 +953,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# overviews. This option has no effect if EXTRACT_ALL is enabled. \n"; t << "# overviews. This option has no effect if EXTRACT_ALL is enabled. \n";
t << "\n"; t << "\n";
} }
t << "HIDE_UNDOC_CLASSES = "; t << "HIDE_UNDOC_CLASSES = ";
writeBoolValue(t,Config::hideClassFlag); writeBoolValue(t,Config::hideClassFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -946,7 +965,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -946,7 +965,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# Set to NO to disable this. \n"; t << "# Set to NO to disable this. \n";
t << "\n"; t << "\n";
} }
t << "BRIEF_MEMBER_DESC = "; t << "BRIEF_MEMBER_DESC = ";
writeBoolValue(t,Config::briefMemDescFlag); writeBoolValue(t,Config::briefMemDescFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -958,7 +977,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -958,7 +977,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# brief descriptions will be completely suppressed. \n"; t << "# brief descriptions will be completely suppressed. \n";
t << "\n"; t << "\n";
} }
t << "REPEAT_BRIEF = "; t << "REPEAT_BRIEF = ";
writeBoolValue(t,Config::repeatBriefFlag); writeBoolValue(t,Config::repeatBriefFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -969,7 +988,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -969,7 +988,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# description. \n"; t << "# description. \n";
t << "\n"; t << "\n";
} }
t << "ALWAYS_DETAILED_SEC = "; t << "ALWAYS_DETAILED_SEC = ";
writeBoolValue(t,Config::alwaysDetailsFlag); writeBoolValue(t,Config::alwaysDetailsFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -980,7 +999,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -980,7 +999,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# to NO the shortest path that makes the file name unique will be used. \n"; t << "# to NO the shortest path that makes the file name unique will be used. \n";
t << "\n"; t << "\n";
} }
t << "FULL_PATH_NAMES = "; t << "FULL_PATH_NAMES = ";
writeBoolValue(t,Config::fullPathNameFlag); writeBoolValue(t,Config::fullPathNameFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -992,7 +1011,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -992,7 +1011,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# the path. It is allowed to use relative paths in the argument list.\n"; t << "# the path. It is allowed to use relative paths in the argument list.\n";
t << "\n"; t << "\n";
} }
t << "STRIP_FROM_PATH = "; t << "STRIP_FROM_PATH = ";
writeStringList(t,Config::stripFromPath); writeStringList(t,Config::stripFromPath);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1004,7 +1023,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1004,7 +1023,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# Set it to YES to include the internal documentation. \n"; t << "# Set it to YES to include the internal documentation. \n";
t << "\n"; t << "\n";
} }
t << "INTERNAL_DOCS = "; t << "INTERNAL_DOCS = ";
writeBoolValue(t,Config::internalDocsFlag); writeBoolValue(t,Config::internalDocsFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1015,7 +1034,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1015,7 +1034,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# super classes. Setting the tag to NO turns the diagrams off. \n"; t << "# super classes. Setting the tag to NO turns the diagrams off. \n";
t << "\n"; t << "\n";
} }
t << "CLASS_DIAGRAMS = "; t << "CLASS_DIAGRAMS = ";
writeBoolValue(t,Config::classDiagramFlag); writeBoolValue(t,Config::classDiagramFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1025,7 +1044,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1025,7 +1044,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# be generated. Documented entities will be cross-referenced with these sources. \n"; t << "# be generated. Documented entities will be cross-referenced with these sources. \n";
t << "\n"; t << "\n";
} }
t << "SOURCE_BROWSER = "; t << "SOURCE_BROWSER = ";
writeBoolValue(t,Config::sourceBrowseFlag); writeBoolValue(t,Config::sourceBrowseFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1035,7 +1054,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1035,7 +1054,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# of functions and classes directly in the documentation. \n"; t << "# of functions and classes directly in the documentation. \n";
t << "\n"; t << "\n";
} }
t << "INLINE_SOURCES = "; t << "INLINE_SOURCES = ";
writeBoolValue(t,Config::inlineSourceFlag); writeBoolValue(t,Config::inlineSourceFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1046,7 +1065,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1046,7 +1065,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# fragments. Normal C and C++ comments will always remain visible. \n"; t << "# fragments. Normal C and C++ comments will always remain visible. \n";
t << "\n"; t << "\n";
} }
t << "STRIP_CODE_COMMENTS = "; t << "STRIP_CODE_COMMENTS = ";
writeBoolValue(t,Config::stripCommentsFlag); writeBoolValue(t,Config::stripCommentsFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1059,7 +1078,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1059,7 +1078,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# supports case sensitive file names. \n"; t << "# supports case sensitive file names. \n";
t << "\n"; t << "\n";
} }
t << "CASE_SENSE_NAMES = "; t << "CASE_SENSE_NAMES = ";
writeBoolValue(t,Config::caseSensitiveNames); writeBoolValue(t,Config::caseSensitiveNames);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1070,7 +1089,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1070,7 +1089,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# documentation. If set to YES the scope will be hidden. \n"; t << "# documentation. If set to YES the scope will be hidden. \n";
t << "\n"; t << "\n";
} }
t << "HIDE_SCOPE_NAMES = "; t << "HIDE_SCOPE_NAMES = ";
writeBoolValue(t,Config::hideScopeNames); writeBoolValue(t,Config::hideScopeNames);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1081,7 +1100,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1081,7 +1100,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# which an include is specified. Set to NO to disable this. \n"; t << "# which an include is specified. Set to NO to disable this. \n";
t << "\n"; t << "\n";
} }
t << "VERBATIM_HEADERS = "; t << "VERBATIM_HEADERS = ";
writeBoolValue(t,Config::verbatimHeaderFlag); writeBoolValue(t,Config::verbatimHeaderFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1092,7 +1111,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1092,7 +1111,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# of that file. \n"; t << "# of that file. \n";
t << "\n"; t << "\n";
} }
t << "SHOW_INCLUDE_FILES = "; t << "SHOW_INCLUDE_FILES = ";
writeBoolValue(t,Config::showIncFileFlag); writeBoolValue(t,Config::showIncFileFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1104,7 +1123,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1104,7 +1123,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# behave just like the Qt-style comments. \n"; t << "# behave just like the Qt-style comments. \n";
t << "\n"; t << "\n";
} }
t << "JAVADOC_AUTOBRIEF = "; t << "JAVADOC_AUTOBRIEF = ";
writeBoolValue(t,Config::autoBriefFlag); writeBoolValue(t,Config::autoBriefFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1115,7 +1134,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1115,7 +1134,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# reimplements. \n"; t << "# reimplements. \n";
t << "\n"; t << "\n";
} }
t << "INHERIT_DOCS = "; t << "INHERIT_DOCS = ";
writeBoolValue(t,Config::inheritDocsFlag); writeBoolValue(t,Config::inheritDocsFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1125,7 +1144,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1125,7 +1144,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# is inserted in the documentation for inline members. \n"; t << "# is inserted in the documentation for inline members. \n";
t << "\n"; t << "\n";
} }
t << "INLINE_INFO = "; t << "INLINE_INFO = ";
writeBoolValue(t,Config::inlineInfoFlag); writeBoolValue(t,Config::inlineInfoFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1137,7 +1156,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1137,7 +1156,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# declaration order. \n"; t << "# declaration order. \n";
t << "\n"; t << "\n";
} }
t << "SORT_MEMBER_DOCS = "; t << "SORT_MEMBER_DOCS = ";
writeBoolValue(t,Config::sortMembersFlag); writeBoolValue(t,Config::sortMembersFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1147,7 +1166,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1147,7 +1166,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# Doxygen uses this value to replace tabs by spaces in code fragments. \n"; t << "# Doxygen uses this value to replace tabs by spaces in code fragments. \n";
t << "\n"; t << "\n";
} }
t << "TAB_SIZE = "; t << "TAB_SIZE = ";
writeIntValue(t,Config::tabSize); writeIntValue(t,Config::tabSize);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1157,7 +1176,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1157,7 +1176,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# documentation sections, marked by \\if sectionname ... \\endif. \n"; t << "# documentation sections, marked by \\if sectionname ... \\endif. \n";
t << "\n"; t << "\n";
} }
t << "ENABLED_SECTIONS = "; t << "ENABLED_SECTIONS = ";
writeStringList(t,Config::sectionFilterList); writeStringList(t,Config::sectionFilterList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1168,7 +1187,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1168,7 +1187,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# commands in the documentation.\n"; t << "# commands in the documentation.\n";
t << "\n"; t << "\n";
} }
t << "GENERATE_TODOLIST = "; t << "GENERATE_TODOLIST = ";
writeBoolValue(t,Config::generateTodoList); writeBoolValue(t,Config::generateTodoList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1179,7 +1198,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1179,7 +1198,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# commands in the documentation.\n"; t << "# commands in the documentation.\n";
t << "\n"; t << "\n";
} }
t << "GENERATE_TESTLIST = "; t << "GENERATE_TESTLIST = ";
writeBoolValue(t,Config::generateTestList); writeBoolValue(t,Config::generateTestList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1196,7 +1215,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1196,7 +1215,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# by doxygen. Possible values are YES and NO. If left blank NO is used. \n"; t << "# by doxygen. Possible values are YES and NO. If left blank NO is used. \n";
t << "\n"; t << "\n";
} }
t << "QUIET = "; t << "QUIET = ";
writeBoolValue(t,Config::quietFlag); writeBoolValue(t,Config::quietFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1207,7 +1226,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1207,7 +1226,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# NO is used. \n"; t << "# NO is used. \n";
t << "\n"; t << "\n";
} }
t << "WARNINGS = "; t << "WARNINGS = ";
writeBoolValue(t,Config::warningFlag); writeBoolValue(t,Config::warningFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1218,7 +1237,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1218,7 +1237,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# automatically be disabled. \n"; t << "# automatically be disabled. \n";
t << "\n"; t << "\n";
} }
t << "WARN_IF_UNDOCUMENTED = "; t << "WARN_IF_UNDOCUMENTED = ";
writeBoolValue(t,Config::warningUndocFlag); writeBoolValue(t,Config::warningUndocFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1230,7 +1249,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1230,7 +1249,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# warning originated and the warning text. \n"; t << "# warning originated and the warning text. \n";
t << "\n"; t << "\n";
} }
t << "WARN_FORMAT = "; t << "WARN_FORMAT = ";
writeStringValue(t,Config::warnFormat); writeStringValue(t,Config::warnFormat);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1249,7 +1268,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1249,7 +1268,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# with spaces. \n"; t << "# with spaces. \n";
t << "\n"; t << "\n";
} }
t << "INPUT = "; t << "INPUT = ";
writeStringList(t,Config::inputSources); writeStringList(t,Config::inputSources);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1261,7 +1280,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1261,7 +1280,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# blank all files are included. \n"; t << "# blank all files are included. \n";
t << "\n"; t << "\n";
} }
t << "FILE_PATTERNS = "; t << "FILE_PATTERNS = ";
writeStringList(t,Config::filePatternList); writeStringList(t,Config::filePatternList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1272,7 +1291,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1272,7 +1291,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# If left blank NO is used. \n"; t << "# If left blank NO is used. \n";
t << "\n"; t << "\n";
} }
t << "RECURSIVE = "; t << "RECURSIVE = ";
writeBoolValue(t,Config::recursiveFlag); writeBoolValue(t,Config::recursiveFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1283,7 +1302,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1283,7 +1302,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# subdirectory from a directory tree whose root is specified with the INPUT tag. \n"; t << "# subdirectory from a directory tree whose root is specified with the INPUT tag. \n";
t << "\n"; t << "\n";
} }
t << "EXCLUDE = "; t << "EXCLUDE = ";
writeStringList(t,Config::excludeSources); writeStringList(t,Config::excludeSources);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1294,7 +1313,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1294,7 +1313,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# certain files from those directories. \n"; t << "# certain files from those directories. \n";
t << "\n"; t << "\n";
} }
t << "EXCLUDE_PATTERNS = "; t << "EXCLUDE_PATTERNS = ";
writeStringList(t,Config::excludePatternList); writeStringList(t,Config::excludePatternList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1305,7 +1324,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1305,7 +1324,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# the \\include command). \n"; t << "# the \\include command). \n";
t << "\n"; t << "\n";
} }
t << "EXAMPLE_PATH = "; t << "EXAMPLE_PATH = ";
writeStringList(t,Config::examplePath); writeStringList(t,Config::examplePath);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1317,7 +1336,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1317,7 +1336,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# blank all files are included. \n"; t << "# blank all files are included. \n";
t << "\n"; t << "\n";
} }
t << "EXAMPLE_PATTERNS = "; t << "EXAMPLE_PATTERNS = ";
writeStringList(t,Config::examplePatternList); writeStringList(t,Config::examplePatternList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1328,7 +1347,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1328,7 +1347,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# the \\image command). \n"; t << "# the \\image command). \n";
t << "\n"; t << "\n";
} }
t << "IMAGE_PATH = "; t << "IMAGE_PATH = ";
writeStringList(t,Config::imagePath); writeStringList(t,Config::imagePath);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1342,7 +1361,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1342,7 +1361,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# to standard output. \n"; t << "# to standard output. \n";
t << "\n"; t << "\n";
} }
t << "INPUT_FILTER = "; t << "INPUT_FILTER = ";
writeStringValue(t,Config::inputFilter); writeStringValue(t,Config::inputFilter);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1360,7 +1379,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1360,7 +1379,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# contains a lot of classes, structs, unions or interfaces. \n"; t << "# contains a lot of classes, structs, unions or interfaces. \n";
t << "\n"; t << "\n";
} }
t << "ALPHABETICAL_INDEX = "; t << "ALPHABETICAL_INDEX = ";
writeBoolValue(t,Config::alphaIndexFlag); writeBoolValue(t,Config::alphaIndexFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1371,7 +1390,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1371,7 +1390,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# in which this list will be split (can be a number in the range [1..20]) \n"; t << "# in which this list will be split (can be a number in the range [1..20]) \n";
t << "\n"; t << "\n";
} }
t << "COLS_IN_ALPHA_INDEX = "; t << "COLS_IN_ALPHA_INDEX = ";
writeIntValue(t,Config::colsInAlphaIndex); writeIntValue(t,Config::colsInAlphaIndex);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1383,7 +1402,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1383,7 +1402,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# should be ignored while generating the index headers. \n"; t << "# should be ignored while generating the index headers. \n";
t << "\n"; t << "\n";
} }
t << "IGNORE_PREFIX = "; t << "IGNORE_PREFIX = ";
writeStringList(t,Config::ignorePrefixList); writeStringList(t,Config::ignorePrefixList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1400,7 +1419,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1400,7 +1419,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# generate HTML output. \n"; t << "# generate HTML output. \n";
t << "\n"; t << "\n";
} }
t << "GENERATE_HTML = "; t << "GENERATE_HTML = ";
writeBoolValue(t,Config::generateHtml); writeBoolValue(t,Config::generateHtml);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1411,7 +1430,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1411,7 +1430,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# put in front of it. If left blank `html' will be used as the default path. \n"; t << "# put in front of it. If left blank `html' will be used as the default path. \n";
t << "\n"; t << "\n";
} }
t << "HTML_OUTPUT = "; t << "HTML_OUTPUT = ";
writeStringValue(t,Config::htmlOutputDir); writeStringValue(t,Config::htmlOutputDir);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1422,7 +1441,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1422,7 +1441,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# standard header.\n"; t << "# standard header.\n";
t << "\n"; t << "\n";
} }
t << "HTML_HEADER = "; t << "HTML_HEADER = ";
writeStringValue(t,Config::headerFile); writeStringValue(t,Config::headerFile);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1433,7 +1452,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1433,7 +1452,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# standard footer.\n"; t << "# standard footer.\n";
t << "\n"; t << "\n";
} }
t << "HTML_FOOTER = "; t << "HTML_FOOTER = ";
writeStringValue(t,Config::footerFile); writeStringValue(t,Config::footerFile);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1445,7 +1464,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1445,7 +1464,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# will generate a default style sheet \n"; t << "# will generate a default style sheet \n";
t << "\n"; t << "\n";
} }
t << "HTML_STYLESHEET = "; t << "HTML_STYLESHEET = ";
writeStringValue(t,Config::htmlStyleSheet); writeStringValue(t,Config::htmlStyleSheet);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1456,7 +1475,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1456,7 +1475,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# NO a bullet list will be used. \n"; t << "# NO a bullet list will be used. \n";
t << "\n"; t << "\n";
} }
t << "HTML_ALIGN_MEMBERS = "; t << "HTML_ALIGN_MEMBERS = ";
writeBoolValue(t,Config::htmlAlignMemberFlag); writeBoolValue(t,Config::htmlAlignMemberFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1468,7 +1487,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1468,7 +1487,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# of the generated HTML documentation. \n"; t << "# of the generated HTML documentation. \n";
t << "\n"; t << "\n";
} }
t << "GENERATE_HTMLHELP = "; t << "GENERATE_HTMLHELP = ";
writeBoolValue(t,Config::htmlHelpFlag); writeBoolValue(t,Config::htmlHelpFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1485,7 +1504,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1485,7 +1504,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# generate Latex output. \n"; t << "# generate Latex output. \n";
t << "\n"; t << "\n";
} }
t << "GENERATE_LATEX = "; t << "GENERATE_LATEX = ";
writeBoolValue(t,Config::generateLatex); writeBoolValue(t,Config::generateLatex);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1496,7 +1515,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1496,7 +1515,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# put in front of it. If left blank `latex' will be used as the default path. \n"; t << "# put in front of it. If left blank `latex' will be used as the default path. \n";
t << "\n"; t << "\n";
} }
t << "LATEX_OUTPUT = "; t << "LATEX_OUTPUT = ";
writeStringValue(t,Config::latexOutputDir); writeStringValue(t,Config::latexOutputDir);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1507,7 +1526,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1507,7 +1526,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# save some trees in general. \n"; t << "# save some trees in general. \n";
t << "\n"; t << "\n";
} }
t << "COMPACT_LATEX = "; t << "COMPACT_LATEX = ";
writeBoolValue(t,Config::compactLatexFlag); writeBoolValue(t,Config::compactLatexFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1518,7 +1537,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1518,7 +1537,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# executive. If left blank a4wide will be used. \n"; t << "# executive. If left blank a4wide will be used. \n";
t << "\n"; t << "\n";
} }
t << "PAPER_TYPE = "; t << "PAPER_TYPE = ";
writeStringValue(t,Config::paperType); writeStringValue(t,Config::paperType);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1528,7 +1547,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1528,7 +1547,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# packages that should be included in the LaTeX output. \n"; t << "# packages that should be included in the LaTeX output. \n";
t << "\n"; t << "\n";
} }
t << "EXTRA_PACKAGES = "; t << "EXTRA_PACKAGES = ";
writeStringList(t,Config::extraPackageList); writeStringList(t,Config::extraPackageList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1540,7 +1559,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1540,7 +1559,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# standard header. Notice: only use this tag if you know what you are doing! \n"; t << "# standard header. Notice: only use this tag if you know what you are doing! \n";
t << "\n"; t << "\n";
} }
t << "LATEX_HEADER = "; t << "LATEX_HEADER = ";
writeStringValue(t,Config::latexHeaderFile); writeStringValue(t,Config::latexHeaderFile);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1552,7 +1571,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1552,7 +1571,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# This makes the output suitable for online browsing using a pdf viewer. \n"; t << "# This makes the output suitable for online browsing using a pdf viewer. \n";
t << "\n"; t << "\n";
} }
t << "PDF_HYPERLINKS = "; t << "PDF_HYPERLINKS = ";
writeBoolValue(t,Config::pdfHyperFlag); writeBoolValue(t,Config::pdfHyperFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1563,7 +1582,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1563,7 +1582,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# higher quality PDF documentation. \n"; t << "# higher quality PDF documentation. \n";
t << "\n"; t << "\n";
} }
t << "USE_PDFLATEX = "; t << "USE_PDFLATEX = ";
writeBoolValue(t,Config::usePDFLatexFlag); writeBoolValue(t,Config::usePDFLatexFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1575,7 +1594,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1575,7 +1594,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# This option is also used when generating formulas in HTML. \n"; t << "# This option is also used when generating formulas in HTML. \n";
t << "\n"; t << "\n";
} }
t << "LATEX_BATCHMODE = "; t << "LATEX_BATCHMODE = ";
writeBoolValue(t,Config::latexBatchModeFlag); writeBoolValue(t,Config::latexBatchModeFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1593,7 +1612,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1593,7 +1612,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# other RTF readers or editors.\n"; t << "# other RTF readers or editors.\n";
t << "\n"; t << "\n";
} }
t << "GENERATE_RTF = "; t << "GENERATE_RTF = ";
writeBoolValue(t,Config::generateRTF); writeBoolValue(t,Config::generateRTF);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1604,7 +1623,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1604,7 +1623,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# put in front of it. If left blank `rtf' will be used as the default path. \n"; t << "# put in front of it. If left blank `rtf' will be used as the default path. \n";
t << "\n"; t << "\n";
} }
t << "RTF_OUTPUT = "; t << "RTF_OUTPUT = ";
writeStringValue(t,Config::rtfOutputDir); writeStringValue(t,Config::rtfOutputDir);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1615,7 +1634,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1615,7 +1634,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# save some trees in general. \n"; t << "# save some trees in general. \n";
t << "\n"; t << "\n";
} }
t << "COMPACT_RTF = "; t << "COMPACT_RTF = ";
writeBoolValue(t,Config::compactRTFFlag); writeBoolValue(t,Config::compactRTFFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1629,7 +1648,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1629,7 +1648,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# Note: wordpad (write) and others do not support links. \n"; t << "# Note: wordpad (write) and others do not support links. \n";
t << "\n"; t << "\n";
} }
t << "RTF_HYPERLINKS = "; t << "RTF_HYPERLINKS = ";
writeBoolValue(t,Config::rtfHyperFlag); writeBoolValue(t,Config::rtfHyperFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1640,7 +1659,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1640,7 +1659,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# replacements, missing definitions are set to their default value. \n"; t << "# replacements, missing definitions are set to their default value. \n";
t << "\n"; t << "\n";
} }
t << "RTF_STYLESHEET_FILE = "; t << "RTF_STYLESHEET_FILE = ";
writeStringValue(t,Config::rtfStylesheetFile); writeStringValue(t,Config::rtfStylesheetFile);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1657,7 +1676,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1657,7 +1676,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# generate man pages \n"; t << "# generate man pages \n";
t << "\n"; t << "\n";
} }
t << "GENERATE_MAN = "; t << "GENERATE_MAN = ";
writeBoolValue(t,Config::generateMan); writeBoolValue(t,Config::generateMan);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1668,7 +1687,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1668,7 +1687,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# put in front of it. If left blank `man' will be used as the default path. \n"; t << "# put in front of it. If left blank `man' will be used as the default path. \n";
t << "\n"; t << "\n";
} }
t << "MAN_OUTPUT = "; t << "MAN_OUTPUT = ";
writeStringValue(t,Config::manOutputDir); writeStringValue(t,Config::manOutputDir);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1678,7 +1697,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1678,7 +1697,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# the generated man pages (default is the subroutine's section .3) \n"; t << "# the generated man pages (default is the subroutine's section .3) \n";
t << "\n"; t << "\n";
} }
t << "MAN_EXTENSION = "; t << "MAN_EXTENSION = ";
writeStringValue(t,Config::manExtension); writeStringValue(t,Config::manExtension);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1697,7 +1716,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1697,7 +1716,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# is still experimental and very incomplete.\n"; t << "# is still experimental and very incomplete.\n";
t << "\n"; t << "\n";
} }
t << "GENERATE_XML = "; t << "GENERATE_XML = ";
writeBoolValue(t,Config::generateXML); writeBoolValue(t,Config::generateXML);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1715,7 +1734,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1715,7 +1734,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# files. \n"; t << "# files. \n";
t << "\n"; t << "\n";
} }
t << "ENABLE_PREPROCESSING = "; t << "ENABLE_PREPROCESSING = ";
writeBoolValue(t,Config::preprocessingFlag); writeBoolValue(t,Config::preprocessingFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1727,7 +1746,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1727,7 +1746,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# way by setting EXPAND_ONLY_PREDEF to YES. \n"; t << "# way by setting EXPAND_ONLY_PREDEF to YES. \n";
t << "\n"; t << "\n";
} }
t << "MACRO_EXPANSION = "; t << "MACRO_EXPANSION = ";
writeBoolValue(t,Config::macroExpansionFlag); writeBoolValue(t,Config::macroExpansionFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1738,7 +1757,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1738,7 +1757,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# PREDEFINED and EXPAND_AS_PREDEFINED tags. \n"; t << "# PREDEFINED and EXPAND_AS_PREDEFINED tags. \n";
t << "\n"; t << "\n";
} }
t << "EXPAND_ONLY_PREDEF = "; t << "EXPAND_ONLY_PREDEF = ";
writeBoolValue(t,Config::onlyPredefinedFlag); writeBoolValue(t,Config::onlyPredefinedFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1748,7 +1767,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1748,7 +1767,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# in the INCLUDE_PATH (see below) will be search if a #include is found. \n"; t << "# in the INCLUDE_PATH (see below) will be search if a #include is found. \n";
t << "\n"; t << "\n";
} }
t << "SEARCH_INCLUDES = "; t << "SEARCH_INCLUDES = ";
writeBoolValue(t,Config::searchIncludeFlag); writeBoolValue(t,Config::searchIncludeFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1759,7 +1778,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1759,7 +1778,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# the preprocessor. \n"; t << "# the preprocessor. \n";
t << "\n"; t << "\n";
} }
t << "INCLUDE_PATH = "; t << "INCLUDE_PATH = ";
writeStringList(t,Config::includePath); writeStringList(t,Config::includePath);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1771,7 +1790,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1771,7 +1790,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# be used. \n"; t << "# be used. \n";
t << "\n"; t << "\n";
} }
t << "INCLUDE_FILE_PATTERNS = "; t << "INCLUDE_FILE_PATTERNS = ";
writeStringList(t,Config::includeFilePatternList); writeStringList(t,Config::includeFilePatternList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1784,7 +1803,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1784,7 +1803,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# omitted =1 is assumed. \n"; t << "# omitted =1 is assumed. \n";
t << "\n"; t << "\n";
} }
t << "PREDEFINED = "; t << "PREDEFINED = ";
writeStringList(t,Config::predefined); writeStringList(t,Config::predefined);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1796,7 +1815,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1796,7 +1815,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# Use the PREDEFINED tag if you want to use a different macro definition. \n"; t << "# Use the PREDEFINED tag if you want to use a different macro definition. \n";
t << "\n"; t << "\n";
} }
t << "EXPAND_AS_DEFINED = "; t << "EXPAND_AS_DEFINED = ";
writeStringList(t,Config::expandAsDefinedList); writeStringList(t,Config::expandAsDefinedList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1812,7 +1831,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1812,7 +1831,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# The TAGFILES tag can be used to specify one or more tagfiles. \n"; t << "# The TAGFILES tag can be used to specify one or more tagfiles. \n";
t << "\n"; t << "\n";
} }
t << "TAGFILES = "; t << "TAGFILES = ";
writeStringList(t,Config::tagFileList); writeStringList(t,Config::tagFileList);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1822,7 +1841,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1822,7 +1841,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# a tag file that is based on the input files it reads. \n"; t << "# a tag file that is based on the input files it reads. \n";
t << "\n"; t << "\n";
} }
t << "GENERATE_TAGFILE = "; t << "GENERATE_TAGFILE = ";
writeStringValue(t,Config::genTagFile); writeStringValue(t,Config::genTagFile);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1833,7 +1852,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1833,7 +1852,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# will be listed. \n"; t << "# will be listed. \n";
t << "\n"; t << "\n";
} }
t << "ALLEXTERNALS = "; t << "ALLEXTERNALS = ";
writeBoolValue(t,Config::allExtFlag); writeBoolValue(t,Config::allExtFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1843,7 +1862,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1843,7 +1862,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# interpreter (i.e. the result of `which perl'). \n"; t << "# interpreter (i.e. the result of `which perl'). \n";
t << "\n"; t << "\n";
} }
t << "PERL_PATH = "; t << "PERL_PATH = ";
writeStringValue(t,Config::perlPath); writeStringValue(t,Config::perlPath);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1862,7 +1881,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1862,7 +1881,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# have no effect if this option is set to NO (the default) \n"; t << "# have no effect if this option is set to NO (the default) \n";
t << "\n"; t << "\n";
} }
t << "HAVE_DOT = "; t << "HAVE_DOT = ";
writeBoolValue(t,Config::haveDotFlag); writeBoolValue(t,Config::haveDotFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1874,7 +1893,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1874,7 +1893,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# the CLASS_DIAGRAMS tag to NO.\n"; t << "# the CLASS_DIAGRAMS tag to NO.\n";
t << "\n"; t << "\n";
} }
t << "CLASS_GRAPH = "; t << "CLASS_GRAPH = ";
writeBoolValue(t,Config::classGraphFlag); writeBoolValue(t,Config::classGraphFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1886,7 +1905,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1886,7 +1905,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# class references variables) of the class with other documented classes. \n"; t << "# class references variables) of the class with other documented classes. \n";
t << "\n"; t << "\n";
} }
t << "COLLABORATION_GRAPH = "; t << "COLLABORATION_GRAPH = ";
writeBoolValue(t,Config::collGraphFlag); writeBoolValue(t,Config::collGraphFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1898,7 +1917,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1898,7 +1917,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# documented files. \n"; t << "# documented files. \n";
t << "\n"; t << "\n";
} }
t << "INCLUDE_GRAPH = "; t << "INCLUDE_GRAPH = ";
writeBoolValue(t,Config::includeGraphFlag); writeBoolValue(t,Config::includeGraphFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1909,7 +1928,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1909,7 +1928,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# the documented files that directly or indirectly include this file \n"; t << "# the documented files that directly or indirectly include this file \n";
t << "\n"; t << "\n";
} }
t << "INCLUDED_BY_GRAPH = "; t << "INCLUDED_BY_GRAPH = ";
writeBoolValue(t,Config::includedByGraphFlag); writeBoolValue(t,Config::includedByGraphFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1919,7 +1938,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1919,7 +1938,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# will graphical hierarchy of all classes instead of a textual one. \n"; t << "# will graphical hierarchy of all classes instead of a textual one. \n";
t << "\n"; t << "\n";
} }
t << "GRAPHICAL_HIERARCHY = "; t << "GRAPHICAL_HIERARCHY = ";
writeBoolValue(t,Config::gfxHierarchyFlag); writeBoolValue(t,Config::gfxHierarchyFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1929,7 +1948,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1929,7 +1948,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# found. If left blank, it is assumed the dot tool can be found on the path. \n"; t << "# found. If left blank, it is assumed the dot tool can be found on the path. \n";
t << "\n"; t << "\n";
} }
t << "DOT_PATH = "; t << "DOT_PATH = ";
writeStringValue(t,Config::dotPath); writeStringValue(t,Config::dotPath);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1942,7 +1961,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1942,7 +1961,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# large images. \n"; t << "# large images. \n";
t << "\n"; t << "\n";
} }
t << "MAX_DOT_GRAPH_WIDTH = "; t << "MAX_DOT_GRAPH_WIDTH = ";
writeIntValue(t,Config::maxDotGraphWidth); writeIntValue(t,Config::maxDotGraphWidth);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1955,7 +1974,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1955,7 +1974,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# large images. \n"; t << "# large images. \n";
t << "\n"; t << "\n";
} }
t << "MAX_DOT_GRAPH_HEIGHT = "; t << "MAX_DOT_GRAPH_HEIGHT = ";
writeIntValue(t,Config::maxDotGraphHeight); writeIntValue(t,Config::maxDotGraphHeight);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1972,7 +1991,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1972,7 +1991,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# used. If set to NO the values of all tags below this one will be ignored. \n"; t << "# used. If set to NO the values of all tags below this one will be ignored. \n";
t << "\n"; t << "\n";
} }
t << "SEARCHENGINE = "; t << "SEARCHENGINE = ";
writeBoolValue(t,Config::searchEngineFlag); writeBoolValue(t,Config::searchEngineFlag);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1983,7 +2002,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1983,7 +2002,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# A script with this name will be generated by doxygen. \n"; t << "# A script with this name will be generated by doxygen. \n";
t << "\n"; t << "\n";
} }
t << "CGI_NAME = "; t << "CGI_NAME = ";
writeStringValue(t,Config::cgiName); writeStringValue(t,Config::cgiName);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -1994,7 +2013,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -1994,7 +2013,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# details. \n"; t << "# details. \n";
t << "\n"; t << "\n";
} }
t << "CGI_URL = "; t << "CGI_URL = ";
writeStringValue(t,Config::cgiURL); writeStringValue(t,Config::cgiURL);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -2005,7 +2024,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -2005,7 +2024,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# documentation, with file:// prepended to it, will be used. \n"; t << "# documentation, with file:// prepended to it, will be used. \n";
t << "\n"; t << "\n";
} }
t << "DOC_URL = "; t << "DOC_URL = ";
writeStringValue(t,Config::docURL); writeStringValue(t,Config::docURL);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -2016,7 +2035,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -2016,7 +2035,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# will be used. \n"; t << "# will be used. \n";
t << "\n"; t << "\n";
} }
t << "DOC_ABSPATH = "; t << "DOC_ABSPATH = ";
writeStringValue(t,Config::docAbsPath); writeStringValue(t,Config::docAbsPath);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -2026,7 +2045,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -2026,7 +2045,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# is installed. \n"; t << "# is installed. \n";
t << "\n"; t << "\n";
} }
t << "BIN_ABSPATH = "; t << "BIN_ABSPATH = ";
writeStringValue(t,Config::binAbsPath); writeStringValue(t,Config::binAbsPath);
t << "\n"; t << "\n";
if (!sl) if (!sl)
...@@ -2037,7 +2056,7 @@ void writeTemplateConfig(QFile *f,bool sl) ...@@ -2037,7 +2056,7 @@ void writeTemplateConfig(QFile *f,bool sl)
t << "# the documentation for these projects as well. \n"; t << "# the documentation for these projects as well. \n";
t << "\n"; t << "\n";
} }
t << "EXT_DOC_PATHS = "; t << "EXT_DOC_PATHS = ";
writeStringList(t,Config::extDocPathList); writeStringList(t,Config::extDocPathList);
t << "\n"; t << "\n";
} }
......
...@@ -189,7 +189,7 @@ void FormulaList::generateBitmaps(const char *path) ...@@ -189,7 +189,7 @@ void FormulaList::generateBitmaps(const char *path)
"gswin32.exe", /* file to execute */ "gswin32.exe", /* file to execute */
gsArgs, /* argument list */ gsArgs, /* argument list */
NULL, /* use current working dir */ NULL, /* use current working dir */
SW_HIDE /* minimize on start-up */ SW_HIDE, /* minimize on start-up */
0, /* application instance handle */ 0, /* application instance handle */
NULL, /* ignored: id list */ NULL, /* ignored: id list */
NULL, /* ignored: class name */ NULL, /* ignored: class name */
......
...@@ -586,18 +586,38 @@ static void newDocState(); ...@@ -586,18 +586,38 @@ static void newDocState();
//----------------------------------------------------------------- //-----------------------------------------------------------------
static QStack<int> listIndentStack; struct IndentInfo
{
public:
IndentInfo(int i,bool e) : indent(i), enumerated(e) {};
~IndentInfo() {}
void startList()
{
if (enumerated) outDoc->startEnumList(); else outDoc->startItemList();
}
void endList()
{
if (enumerated) outDoc->endEnumList(); else outDoc->endItemList();
}
void writeItem()
{
outDoc->writeListItem();
}
int indent;
bool enumerated;
};
static QStack<IndentInfo> listIndentStack;
static bool insideItemList = FALSE; static bool insideItemList = FALSE;
static void addListItemMarker(const char *marker) static void addListItemMarker(const char *marker,int dashPos,bool enumerated)
{ {
// find the actual position at which the bullet was found // find the actual position at which the bullet was found
int i;
int indent=0; int indent=0;
const char *p=marker; for (i=0;i<dashPos;i++)
char c;
while ((c=*p++))
{ {
if (c=='\t') if (marker[i]=='\t')
{ {
indent+=Config::tabSize - (indent%Config::tabSize); indent+=Config::tabSize - (indent%Config::tabSize);
} }
...@@ -606,32 +626,42 @@ static void addListItemMarker(const char *marker) ...@@ -606,32 +626,42 @@ static void addListItemMarker(const char *marker)
indent++; indent++;
} }
} }
//printf("list marker found at column %d\n",indent); //printf("list marker found at column %d enumerated %d\n",indent,enumerated);
if (!insideItemList) if (!insideItemList)
{ {
outDoc->startItemList(); listIndentStack.push(new IndentInfo(indent,enumerated));
outDoc->writeListItem(); listIndentStack.top()->startList();
listIndentStack.push(new int(indent)); listIndentStack.top()->writeItem();
insideItemList=TRUE; insideItemList=TRUE;
} }
else else
{ {
int *pPrevIndent = listIndentStack.top(); IndentInfo *pPrevInfo = listIndentStack.top();
if (*pPrevIndent==indent) // new item at the same indent level if (pPrevInfo->indent==indent && pPrevInfo->enumerated==enumerated)
// new item of same kind at the same indent level
{ {
outDoc->writeListItem(); pPrevInfo->writeItem();
} }
else if (*pPrevIndent<indent) // start sub item list else if (pPrevInfo->indent==indent)
// new item of diffent kind at the same indent level
{ {
outDoc->startItemList(); // switch to a diffent list type
outDoc->writeListItem(); pPrevInfo->endList();
listIndentStack.push(new int(indent)); pPrevInfo->enumerated=enumerated;
pPrevInfo->startList();
pPrevInfo->writeItem();
}
else if (pPrevInfo->indent<indent) // start sub item list
{
listIndentStack.push(new IndentInfo(indent,enumerated));
listIndentStack.top()->startList();
listIndentStack.top()->writeItem();
} }
else // end sub item list else // end sub item list
{ {
pPrevInfo->endList();
listIndentStack.pop(); listIndentStack.pop();
delete pPrevIndent; delete pPrevInfo;
outDoc->endItemList();
// safe guard against wrong indenting // safe guard against wrong indenting
if (listIndentStack.isEmpty()) if (listIndentStack.isEmpty())
{ {
...@@ -641,35 +671,24 @@ static void addListItemMarker(const char *marker) ...@@ -641,35 +671,24 @@ static void addListItemMarker(const char *marker)
} }
else else
{ {
outDoc->writeListItem(); listIndentStack.top()->writeItem();
} }
} }
} }
} }
// end the current (nested) list regardless of the nesting level.
static void forceEndItemList() static void forceEndItemList()
{ {
int *indent; IndentInfo *info;
while ((indent=listIndentStack.pop())!=0) while ((info=listIndentStack.pop())!=0)
{ {
outDoc->endItemList(); info->endList();
delete indent; delete info;
} }
insideItemList=FALSE; insideItemList=FALSE;
} }
#if 0
static void tryEndItemList()
{
if (listIndentStack.count()==1) // no subitems => end list
{
outDoc->endItemList();
delete listIndentStack.pop();
insideItemList=FALSE;
}
}
#endif
//----------------------------------------------------------------- //-----------------------------------------------------------------
static bool inBlock() static bool inBlock()
...@@ -1144,25 +1163,19 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"") ...@@ -1144,25 +1163,19 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"")
BEGIN( FindMembers ); BEGIN( FindMembers );
} }
<*>\x0d <*>\x0d
/* <DocScan>^{B}*(("//"{B}*)?)"*"*{B}*"-"("#")?{B}+ { /* found list item marker */
<DocScan>^{BL} { QCString text=yytext;
if (insideArgumentList) int dashPos = text.findRev('-');
{ //printf("dashPos=%d char='%c'\n",dashPos,text.at(dashPos+1));
insideArgumentList=FALSE; bool isEnumerated = text.at(dashPos+1)=='#';
outDoc->endItemList(); addListItemMarker(yytext,dashPos,isEnumerated);
} }
else <DocScan>\n{B}*(("//"{B}*)?)"*"*{B}*"-"("#")?{B}+ { /* found list item marker */
{ QCString text=yytext;
outDoc->newParagraph(); int dashPos = text.findRev('-');
} //printf("dashPos=%d char='%c'\n",dashPos,text.at(dashPos+1));
if (inBlock()) endBlock(); bool isEnumerated = text.at(dashPos+1)=='#';
} addListItemMarker(yytext+1,dashPos,isEnumerated);
*/
<DocScan>^{B}*(("//"{B}*)?)"*"*{B}*"-"{B}+ { /* found list item marker */
addListItemMarker(yytext);
}
<DocScan>\n{B}*(("//"{B}*)?)"*"*{B}*"-"{B}+ {
addListItemMarker(yytext+1);
} }
<DocScan,Text>"&copy;" { outDoc->writeCopyright(); } <DocScan,Text>"&copy;" { outDoc->writeCopyright(); }
<DocScan,Text>"&quot;" { outDoc->writeQuote(); } <DocScan,Text>"&quot;" { outDoc->writeQuote(); }
...@@ -2222,19 +2235,19 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"") ...@@ -2222,19 +2235,19 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"")
<DocScan>"%"[a-zA-Z_0-9\-]+ { <DocScan>"%"[a-zA-Z_0-9\-]+ {
outDoc->docify(yytext+1); outDoc->docify(yytext+1);
} }
<DocEmphasis>{WORD} { <DocEmphasis>[a-z_A-Z][a-z_A-Z:0-9<>&\-=^%~!\[\]()|\*/]*"("[a-z_A-Z0-9,:\<\> \t\*\&]*")" {
outDoc->startEmphasis(); outDoc->startEmphasis();
linkifyText(TextGeneratorOLImpl(*outDoc),className,0,yytext,FALSE,FALSE); generateRef(*outDoc,className,yytext,inSeeBlock);
outDoc->endEmphasis(); outDoc->endEmphasis();
BEGIN( DocScan ); BEGIN( DocScan );
} }
<DocEmphasis>[a-z_A-Z][a-z_A-Z:0-9<>&\-=^%~!\[\]()|\*/]*"()" { <DocEmphasis>{WORD} {
outDoc->startEmphasis(); outDoc->startEmphasis();
generateRef(*outDoc,className,yytext,inSeeBlock); linkifyText(TextGeneratorOLImpl(*outDoc),className,0,yytext,FALSE,FALSE);
outDoc->endEmphasis(); outDoc->endEmphasis();
BEGIN( DocScan ); BEGIN( DocScan );
} }
<DocBold>[a-z_A-Z][a-z_A-Z:0-9<>&\-=^%~!\[\]()|\*/]*"()" { <DocBold>[a-z_A-Z][a-z_A-Z:0-9<>&\-=^%~!\[\]()|\*/]*"("[a-z_A-Z0-9,:\<\> \t\*\&]*")" {
outDoc->startBold(); outDoc->startBold();
generateRef(*outDoc,className,yytext,inSeeBlock); generateRef(*outDoc,className,yytext,inSeeBlock);
outDoc->endBold(); outDoc->endBold();
...@@ -2246,7 +2259,7 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"") ...@@ -2246,7 +2259,7 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"")
outDoc->endBold(); outDoc->endBold();
BEGIN( DocScan ); BEGIN( DocScan );
} }
<DocCode>[a-z_A-Z][a-z_A-Z:0-9<>&\-=^%~!\[\]()|\*/]*"()" { <DocCode>[a-z_A-Z][a-z_A-Z:0-9<>&\-=^%~!\[\]()!\*/]*"("[a-z_A-Z0-9,:\<\> \t\*\&]*")" {
outDoc->startTypewriter(); outDoc->startTypewriter();
generateRef(*outDoc,className,yytext,inSeeBlock); generateRef(*outDoc,className,yytext,inSeeBlock);
outDoc->endTypewriter(); outDoc->endTypewriter();
...@@ -2278,7 +2291,10 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"") ...@@ -2278,7 +2291,10 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"")
outDoc->docify(yytext); outDoc->docify(yytext);
} }
<DocCode,DocEmphasis,DocBold>"\n" { outDoc->writeChar('\n'); } <DocCode,DocEmphasis,DocBold>"\n" { outDoc->writeChar('\n'); }
<DocScan>({B}*"\n"){2,}{B}*"*"*{B}*"-"{B}+ { // new paragraph & start of a list <DocScan>({B}*"\n"){2,}{B}*"*"*{B}*"-"("#")?{B}+ { // new paragraph & start of a list
QCString text=yytext;
int dashPos = text.findRev('-');
bool isEnumerated = text.at(dashPos+1)=='#';
if (insideArgumentList) if (insideArgumentList)
{ {
insideArgumentList=FALSE; insideArgumentList=FALSE;
...@@ -2293,7 +2309,7 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"") ...@@ -2293,7 +2309,7 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"")
outDoc->newParagraph(); outDoc->newParagraph();
} }
if (inBlock()) endBlock(); if (inBlock()) endBlock();
addListItemMarker(strrchr(yytext,'\n')+1); addListItemMarker(strrchr(yytext,'\n')+1,dashPos,isEnumerated);
} }
<DocScan>({B}*"\n"){2,}{B}* { // new paragraph <DocScan>({B}*"\n"){2,}{B}* { // new paragraph
if (insideArgumentList) if (insideArgumentList)
...@@ -5163,7 +5179,7 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"") ...@@ -5163,7 +5179,7 @@ DOCPARAM ([a-z_A-Z0-9:\<\>\=\.\-]+)|("\"".*"\"")
unput('/');unput('*'); unput('/');unput('*');
BEGIN( tmpDocType ); BEGIN( tmpDocType );
} }
<Doc,JavaDoc,ClassDoc,PageDoc,ExampleDoc,ReadFormulaShort,ReadFormulaLong,ClassDocBrief,AfterDoc,AfterDocBrief>^{B}*(("//"{B}*)?)"*"+[ \t]*"-"{B}+ { <Doc,JavaDoc,ClassDoc,PageDoc,ExampleDoc,ReadFormulaShort,ReadFormulaLong,ClassDocBrief,AfterDoc,AfterDocBrief>^{B}*(("//"{B}*)?)"*"+[ \t]*"-"("#")?{B}+ {
current->doc += yytext; current->doc += yytext;
} }
<Doc,JavaDoc,ClassDoc,PageDoc,ExampleDoc,ReadFormulaShort,ReadFormulaLong,ClassDocBrief,AfterDoc,AfterDocBrief>^{B}*(("//"{B}*)?)"*"+/[^/] <Doc,JavaDoc,ClassDoc,PageDoc,ExampleDoc,ReadFormulaShort,ReadFormulaLong,ClassDocBrief,AfterDoc,AfterDocBrief>^{B}*(("//"{B}*)?)"*"+/[^/]
......
...@@ -838,6 +838,23 @@ QCString fileToString(const char *name) ...@@ -838,6 +838,23 @@ QCString fileToString(const char *name)
if (name[0]=='-' && name[1]==0) // read from stdin if (name[0]=='-' && name[1]==0) // read from stdin
{ {
fileOpened=f.open(IO_ReadOnly,stdin); fileOpened=f.open(IO_ReadOnly,stdin);
if (fileOpened)
{
const int bSize=4096;
QCString contents(bSize);
int totalSize=0;
int size;
while ((size=f.readBlock(contents.data()+totalSize,bSize))==bSize)
{
totalSize+=bSize;
contents.resize(totalSize+bSize);
}
totalSize+=size+2;
contents.resize(totalSize);
contents.at(totalSize-2)='\n'; // to help the scanner
contents.at(totalSize-1)='\0';
return contents;
}
} }
else // read from file else // read from file
{ {
...@@ -849,22 +866,25 @@ QCString fileToString(const char *name) ...@@ -849,22 +866,25 @@ QCString fileToString(const char *name)
} }
f.setName(name); f.setName(name);
fileOpened=f.open(IO_ReadOnly); fileOpened=f.open(IO_ReadOnly);
if (fileOpened)
{
int fsize=f.size();
QCString contents(fsize+2);
f.readBlock(contents.data(),fsize);
if (fsize==0 || contents[fsize-1]=='\n')
contents[fsize]='\0';
else
contents[fsize]='\n'; // to help the scanner
contents[fsize+1]='\0';
f.close();
return contents;
}
} }
if (!fileOpened) if (!fileOpened)
{ {
err("Error: cannot open file `%s' for reading\n",name); err("Error: cannot open file `%s' for reading\n",name);
return "";
} }
int fsize=f.size(); return "";
QCString contents(fsize+2);
f.readBlock(contents.data(),fsize);
if (fsize==0 || contents[fsize-1]=='\n')
contents[fsize]='\0';
else
contents[fsize]='\n';
contents[fsize+1]='\0';
f.close();
return contents;
} }
QCString dateToString(bool includeTime) QCString dateToString(bool includeTime)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment