diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-12-03 19:13:07 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-12-03 19:13:07 (GMT) |
commit | fe67b8eb68129713327965c201f2d7226b83202f (patch) | |
tree | 485fb83c5a301dd4b0edb3c534b1f31eeb08ab1f /src/ftvhelp.cpp | |
parent | a30c2e3c5ea41ae1947e9893c82ed8c8b6d7c5a2 (diff) | |
download | Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.zip Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.gz Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.bz2 |
Release-1.2.3-20001203
Diffstat (limited to 'src/ftvhelp.cpp')
-rw-r--r-- | src/ftvhelp.cpp | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp index 25ca875..cac212b 100644 --- a/src/ftvhelp.cpp +++ b/src/ftvhelp.cpp @@ -16,6 +16,7 @@ #include "ftvhelp.h" #include "config.h" #include "message.h" +#include "doxygen.h" const char treeview_data[]= @@ -272,7 +273,7 @@ static void generateFolderTreeViewData() { QTextStream t(&f); t << "<html><head><title>" << Config::projectName << "</title></head>" << endl; - t << "<frameset cols=\"250,*\">" << endl; + t << "<frameset cols=\"" << Config::treeViewWidth << ",*\">" << endl; t << " <frame src=\"tree.html\" name=\"treefrm\">" << endl; t << " <frame src=\"main.html\" name=\"basefrm\">" << endl; t << "</frameset>" << endl; @@ -360,7 +361,7 @@ void FTVHelp::initialize() } /* Write the header of the contents file */ m_cts.setDevice(m_cf); - m_cts << "foldersTree = gFld(\"<b>"; + m_cts << "foldersTree = gFld(\"\", \"<b>"; if (Config::projectName.isEmpty()) { m_cts << "Root"; @@ -409,18 +410,35 @@ int FTVHelp::decContentsDepth() * \param name the name of the item. * \param ref the URL of to the item. */ -void FTVHelp::addContentsItem(bool isDir,const char *name,const char *ref, - const char *anchor) +void FTVHelp::addContentsItem(bool isDir, + const char *ref, + const char *file, + const char *anchor, + const char *name + ) { int i; for (i=0;i<m_dc;i++) m_cts << " "; QCString parent; + QCString tagName = ref; + QCString tagDir; + if (ref) + { + tagName += ":"; + QCString *s = tagDestinationDict[ref]; + if (s) + { + tagDir = *s + "/"; + tagName += tagDir; + } + } if (m_dc==0) parent="foldersTree"; else parent.sprintf("aux%d",m_dc); if (isDir) // directory entry { - m_cts << "aux" << m_dc+1 << " = insFld(" << parent << ", gFld(\"" << name << "\", "; - if (ref) // ref optional param + m_cts << "aux" << m_dc+1 << " = insFld(" << parent << ", gFld(\"" + << name << "\", \"" << tagName << "\", "; + if (file) // file optional param { - m_cts << "\"" << ref << ".html\"))"; + m_cts << "\"" << tagDir << file << ".html\"))"; } else { @@ -429,10 +447,11 @@ void FTVHelp::addContentsItem(bool isDir,const char *name,const char *ref, } else // text entry { - m_cts << " insDoc(" << parent << ", gLnk(0, \"" << name << "\", "; - if (ref) // ref optional param + m_cts << " insDoc(" << parent << ", gLnk(\"" + << name << "\", \"" << tagName << "\", "; + if (file) // ref optional param { - m_cts << "\"" << ref << ".html"; + m_cts << "\"" << tagDir << file << ".html"; if (anchor) m_cts << "#" << anchor; m_cts << "\"))"; } |