SHA256
1
0
forked from pool/doxygen
doxygen/doxygen-1.7.0-modify_footer.patch
Dirk Mueller f302010c0e Accepting request 46588 from home:elvigia:branches:devel:tools
Copy from home:elvigia:branches:devel:tools/doxygen via accept of submit request 46588 revision 2.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/46588
OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=20
2010-08-30 11:15:04 +00:00

69 lines
3.9 KiB
Diff

Index: src/config.xml
===================================================================
--- src/config.xml.orig 2010-06-20 11:49:46.000000000 +0200
+++ src/config.xml 2010-08-29 22:56:28.559367000 +0200
@@ -761,6 +761,11 @@ The HTML_FOOTER tag can be used to speci
each generated HTML page. If it is left blank doxygen will generate a
standard footer.
' defval='' depends='GENERATE_HTML'/>
+ <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.
+standard footer.
+' defval='' depends='GENERATE_HTML'/>
<option type='string' id='HTML_STYLESHEET' format='file' docs='
The HTML_STYLESHEET tag can be used to specify a user-defined cascading
style sheet that is used by each HTML page. It can be used to
Index: src/htmlgen.cpp
===================================================================
--- src/htmlgen.cpp.orig 2010-06-23 13:42:37.000000000 +0200
+++ src/htmlgen.cpp 2010-08-29 22:56:28.573365000 +0200
@@ -951,10 +951,16 @@ void HtmlGenerator::writeFooterFile(QFil
{
FTextStream t(&file);
t << "<hr class=\"footer\"/><address class=\"footer\"><small>\n";
+ if (Config_getBool("HTML_FOOTER_DESCRIPTION")) {
t << theTranslator->trGeneratedAt( "$datetime", "$projectname" );
- t << "&nbsp;<a href=\"http://www.doxygen.org/index.html\">"
+ t << "&nbsp;";
+ }
+ t << "<a href=\"http://www.doxygen.org/index.html\">"
<< "<img class=\"footer\" src=\"$relpath$doxygen.png\" alt=\"doxygen\"/>"
- << "</a> $doxygenversion";
+ << "</a>";
+ if (Config_getBool("HTML_FOOTER_DESCRIPTION")) {
+ t << " $doxygenversion";
+ }
t << "</small></address>\n"
<< "</body>\n"
<< "</html>\n";
Index: src/configoptions.cpp
===================================================================
--- src/configoptions.cpp.orig 2010-06-20 11:49:52.000000000 +0200
+++ src/configoptions.cpp 2010-08-29 22:59:38.992606000 +0200
@@ -1095,6 +1095,15 @@ void addConfigOptions(Config *cfg)
cs->setWidgetType(ConfigString::File);
cs->addDependency("GENERATE_HTML");
//----
+ 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_STYLESHEET",
"The HTML_STYLESHEET tag can be used to specify a user-defined cascading\n"
@@ -1145,7 +1154,7 @@ void addConfigOptions(Config *cfg)
"If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML\n"
"page will contain the date and time when the page was generated. Setting\n"
"this to NO can help when comparing the output of multiple runs.",
- TRUE
+ FALSE
);
cb->addDependency("GENERATE_HTML");
//----