diff options
Diffstat (limited to 'src/htmlhelp.cpp')
-rw-r--r-- | src/htmlhelp.cpp | 31 |
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. |