|
Than Ngo |
648c9e |
diff -up doxygen-1.6.2/src/configoptions.cpp.timestamp doxygen-1.6.2/src/configoptions.cpp
|
|
Than Ngo |
648c9e |
--- doxygen-1.6.2/src/configoptions.cpp.timestamp 2009-12-28 11:39:11.000000000 +0100
|
|
Than Ngo |
648c9e |
+++ doxygen-1.6.2/src/configoptions.cpp 2010-01-04 11:58:33.000000000 +0100
|
|
Than Ngo |
648c9e |
@@ -1088,6 +1088,14 @@ void addConfigOptions(Config *cfg)
|
|
Than Ngo |
ceaa53 |
cs->setWidgetType(ConfigString::File);
|
|
Than Ngo |
ceaa53 |
cs->addDependency("GENERATE_HTML");
|
|
Than Ngo |
ceaa53 |
//----
|
|
Than Ngo |
ceaa53 |
+ cb = cfg->addBool(
|
|
Than Ngo |
ceaa53 |
+ "HTML_TIMESTAMP",
|
|
Than Ngo |
ceaa53 |
+ "If the HTML_TIMESTAMP tag is set to YES then the generated HTML\n"
|
|
Than Ngo |
ceaa53 |
+ "documentation will contain the timesstamp.",
|
|
Than Ngo |
ceaa53 |
+ FALSE
|
|
Than Ngo |
ceaa53 |
+ );
|
|
Than Ngo |
ceaa53 |
+ cb->addDependency("GENERATE_HTML");
|
|
Than Ngo |
ceaa53 |
+ //----
|
|
Than Ngo |
ceaa53 |
cs = cfg->addString(
|
|
Than Ngo |
ceaa53 |
"HTML_STYLESHEET",
|
|
Than Ngo |
ceaa53 |
"The HTML_STYLESHEET tag can be used to specify a user-defined cascading\n"
|
|
Than Ngo |
648c9e |
diff -up doxygen-1.6.2/src/config.xml.timestamp doxygen-1.6.2/src/config.xml
|
|
Than Ngo |
648c9e |
--- doxygen-1.6.2/src/config.xml.timestamp 2009-12-28 11:38:55.000000000 +0100
|
|
Than Ngo |
648c9e |
+++ doxygen-1.6.2/src/config.xml 2010-01-04 11:58:33.000000000 +0100
|
|
Than Ngo |
648c9e |
@@ -761,6 +761,10 @@ The HTML_FOOTER tag can be used to speci
|
|
Than Ngo |
ceaa53 |
each generated HTML page. If it is left blank doxygen will generate a
|
|
Than Ngo |
ceaa53 |
standard footer.
|
|
Than Ngo |
ceaa53 |
' defval='' depends='GENERATE_HTML'/>
|
|
Than Ngo |
ceaa53 |
+
|
|
Than Ngo |
ceaa53 |
+If the HTML_TIMESTAMP tag is set to YES then the generated HTML
|
|
Than Ngo |
ceaa53 |
+documentation will contain the timesstamp.
|
|
Than Ngo |
ceaa53 |
+' defval='' depends='GENERATE_HTML'/>
|
|
Than Ngo |
ceaa53 |
|
|
Than Ngo |
ceaa53 |
The HTML_STYLESHEET tag can be used to specify a user-defined cascading
|
|
Than Ngo |
ceaa53 |
style sheet that is used by each HTML page. It can be used to
|
|
Than Ngo |
648c9e |
diff -up doxygen-1.6.2/src/htmlgen.cpp.timestamp doxygen-1.6.2/src/htmlgen.cpp
|
|
Than Ngo |
648c9e |
--- doxygen-1.6.2/src/htmlgen.cpp.timestamp 2009-12-21 11:24:22.000000000 +0100
|
|
Than Ngo |
648c9e |
+++ doxygen-1.6.2/src/htmlgen.cpp 2010-01-04 12:04:31.000000000 +0100
|
|
Than Ngo |
648c9e |
@@ -54,6 +54,7 @@ static const char search_script[]=
|
|
Than Ngo |
ceaa53 |
|
|
Than Ngo |
ceaa53 |
static QCString g_header;
|
|
Than Ngo |
ceaa53 |
static QCString g_footer;
|
|
Than Ngo |
ceaa53 |
+static bool timestamp=false;
|
|
Than Ngo |
ceaa53 |
|
|
Than Ngo |
ceaa53 |
//------------------------- Pictures for the Tabs ------------------------
|
|
Than Ngo |
ceaa53 |
|
|
Than Ngo |
648c9e |
@@ -693,6 +694,8 @@ void HtmlGenerator::init()
|
|
Than Ngo |
ceaa53 |
if (!Config_getString("HTML_FOOTER").isEmpty())
|
|
Than Ngo |
ceaa53 |
{
|
|
Than Ngo |
ceaa53 |
g_footer=fileToString(Config_getString("HTML_FOOTER"));
|
|
Than Ngo |
ceaa53 |
+ if (Config_getBool("HTML_TIMESTAMP"))
|
|
Than Ngo |
ceaa53 |
+ timestamp=true;
|
|
Than Ngo |
ceaa53 |
//printf("g_footer='%s'\n",g_footer.data());
|
|
Than Ngo |
ceaa53 |
}
|
|
Than Ngo |
ceaa53 |
createSubDirs(d);
|
|
Than Ngo |
648c9e |
@@ -932,7 +935,7 @@ static void writePageFooter(QTextStream
|
|
Than Ngo |
648c9e |
if (timeStamp)
|
|
Than Ngo |
648c9e |
{
|
|
Than Ngo |
648c9e |
t << theTranslator->trGeneratedAt(
|
|
Than Ngo |
648c9e |
- dateToString(TRUE),
|
|
Than Ngo |
648c9e |
+ dateToString(timestamp),
|
|
Than Ngo |
648c9e |
Config_getString("PROJECT_NAME")
|
|
Than Ngo |
648c9e |
);
|
|
Than Ngo |
648c9e |
}
|