SHA256
8
0
forked from pool/doxygen
Files
doxygen/doxygen-modify_footer.patch

56 lines
2.2 KiB
Diff
Raw Normal View History

--- src/config.xml.orig 2009-09-09 23:49:12.000000000 +0200
+++ src/config.xml 2009-09-09 23:50:15.000000000 +0200
@@ -736,6 +736,10 @@
If the GENERATE_HTML tag is set to YES (the default) Doxygen will
generate HTML output.
' defval='1'/>
+ <option type='bool' id='HTML_FOOTER_DESCRIPTION' docs='
+The HTML_FOOTER_DATE_AND_PROJECT_NAME tag can be used to add build date,
+project name and Doxygen version to HTML footer.
+' defval='0' depends='GENERATE_HTML'/>
<option type='string' id='HTML_OUTPUT' format='dir' docs='
The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
If a relative path is entered the value of OUTPUT_DIRECTORY will be
--- src/htmlgen.cpp.orig 2009-09-09 23:51:11.000000000 +0200
+++ src/htmlgen.cpp 2009-09-09 23:54:09.000000000 +0200
@@ -723,10 +723,18 @@
{
QTextStream t(&file);
t << "<hr size=\"1\"/><address style=\"text-align: right;\"><small>\n";
- t << theTranslator->trGeneratedAt( "$datetime", "$projectname" );
- t << "&nbsp;<a href=\"http://www.doxygen.org/index.html\">"
+ if (Config_getBool("HTML_FOOTER_DESCRIPTION"))
+ {
+ t << theTranslator->trGeneratedAt( "$datetime", "$projectname" );
+ t << "&nbsp";
+ }
+ t << "<a href=\"http://www.doxygen.org/index.html\">"
<< "<img class=\"footer\" src=\"doxygen.png\" alt=\"doxygen\"/>"
- << "</a> $doxygenversion";
+ << "</a>";
+ if (Config_getBool("HTML_FOOTER_DESCRIPTION"))
+ {
+ t << " $doxygenversion";
+ }
t << "</small></address>\n"
<< "</body>\n"
<< "</html>\n";
--- src/configoptions.cpp.orig 2009-09-09 23:50:25.000000000 +0200
+++ src/configoptions.cpp 2009-09-09 23:50:58.000000000 +0200
@@ -1043,6 +1043,15 @@
TRUE
);
//----
+ cb = cfg->addBool(
+ "HTML_FOOTER_DESCRIPTION",
+ "If the HTML_FOOTER_DESCRIPTION tag is set to YES, Doxygen will \n"
+ "add generated date, project name and doxygen version to HTML footer.",
+ FALSE
+ );
+ //cs->setDefaultValue("FALSE");
+ cs->addDependency("GENERATE_HTML");
+ //----
cs = cfg->addString(
"HTML_OUTPUT",
"The HTML_OUTPUT tag is used to specify where the HTML docs will be put.\n"