summaryrefslogtreecommitdiffstats
path: root/src/htmlhelp.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-10-01 17:23:42 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-10-01 17:23:42 (GMT)
commit499475795ed160e3a1e9cb571adc1ad86dc6a8ba (patch)
treeff3e5497c510b749f3d2e73414320758618faa42 /src/htmlhelp.cpp
parent168b741da042373d667e226cace55c9e82ec8faa (diff)
downloadDoxygen-499475795ed160e3a1e9cb571adc1ad86dc6a8ba.zip
Doxygen-499475795ed160e3a1e9cb571adc1ad86dc6a8ba.tar.gz
Doxygen-499475795ed160e3a1e9cb571adc1ad86dc6a8ba.tar.bz2
Release-1.2.2-20001001
Diffstat (limited to 'src/htmlhelp.cpp')
-rw-r--r--src/htmlhelp.cpp31
1 files changed, 26 insertions, 5 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index 599e39c..064aec2 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -287,9 +287,12 @@ void HtmlHelp::initialize()
"<param name=\"ImageType\" value=\"Folder\">\n"
"</OBJECT>\n"
"<UL>\n";
+}
+void HtmlHelp::createProjectFile()
+{
/* Write the project file */
- fName = Config::htmlOutputDir + "/index.hhp";
+ QCString fName = Config::htmlOutputDir + "/index.hhp";
QFile f(fName);
if (f.open(IO_WriteOnly))
{
@@ -298,12 +301,23 @@ void HtmlHelp::initialize()
"Compatibility=1.1\n"
"Full-text search=Yes\n"
"Contents file=index.hhc\n"
- "Default Window=indexHelp\n"
+ "Default Window=main\n"
"Default topic=index.html\n"
"Index file=index.hhk\n"
- "Title=" << Config::projectName << endl << endl
- << "[FILES]\n"
- "index.html";
+ "Title=" << Config::projectName << endl << endl;
+
+ t << "[WINDOWS]" << endl;
+ t << "main=\"" << Config::projectName << "\",\"index.hhc\","
+ "\"index.hhk\",\"index.html\",\"index.html\",,,,,0x23520,,"
+ "0x3006,,,,,,,,0" << endl << endl;
+
+ t << "[FILES]" << endl;
+ char *s = indexFiles.first();
+ while (s)
+ {
+ t << s << endl;
+ s=indexFiles.next();
+ }
f.close();
}
else
@@ -312,6 +326,11 @@ void HtmlHelp::initialize()
}
}
+void HtmlHelp::addIndexFile(const char *s)
+{
+ indexFiles.append(s);
+}
+
/*! Finalizes the HTML help. This will finish and close the
* contents file (index.hhc) and the index file (index.hhk).
* \sa initialize()
@@ -331,6 +350,8 @@ void HtmlHelp::finalize()
kts.unsetDevice();
kf->close();
delete kf;
+
+ createProjectFile();
}
/*! Increase the level of the contents hierarchy.