summaryrefslogtreecommitdiffstats
path: root/src/ftvhelp.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-04-30 19:40:09 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-04-30 19:40:09 (GMT)
commitea4b32cb910635a50467b02f36b5521337451cf0 (patch)
tree88964bce49d3ab4b0f329d945d43a87b443ed019 /src/ftvhelp.cpp
parent2eef94da7bc476987b1a46690bbdaeb76a05dd82 (diff)
downloadDoxygen-ea4b32cb910635a50467b02f36b5521337451cf0.zip
Doxygen-ea4b32cb910635a50467b02f36b5521337451cf0.tar.gz
Doxygen-ea4b32cb910635a50467b02f36b5521337451cf0.tar.bz2
Release-1.3-20030430
Diffstat (limited to 'src/ftvhelp.cpp')
-rw-r--r--src/ftvhelp.cpp53
1 files changed, 29 insertions, 24 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp
index 605181b..54514e6 100644
--- a/src/ftvhelp.cpp
+++ b/src/ftvhelp.cpp
@@ -5,8 +5,6 @@
* Modified by Dimitri van Heesch (c) 2003
*
* Folder Tree View for offline help on browsers that do not support HTML Help.
- * Uses the FTV structure from:
- * http://www.geocities.com/Paris/LeftBank/2178/ftexample.html
*/
#include <stdio.h>
@@ -506,30 +504,37 @@ void FTVHelp::generateLink(QTextStream &t,FTVNode *n)
QCString *dest;
//printf("FTVHelp::generateLink(ref=%s,file=%s,anchor=%s\n",
// n->ref.data(),n->file.data(),n->anchor.data());
- if (!n->ref.isEmpty()) // link to entity imported via tag file
+ if (n->file.isEmpty()) // no link
{
- t << "<a class=\"elRef\" ";
- t << "doxygen=\"" << n->ref << ":";
- if ((dest=Doxygen::tagDestinationDict[n->ref])) t << *dest << "/";
- t << "\" ";
+ t << "<b>" << n->name << "</b>";
}
- else // local link
+ else // link into other frame
{
- t << "<a class=\"el\" ";
- }
- t << "href=\"";
- if (!n->ref.isEmpty())
- {
- if ((dest=Doxygen::tagDestinationDict[n->ref])) t << *dest << "/";
- }
- if (!n->file.isEmpty()) t << n->file << Doxygen::htmlFileExtension;
- if (!n->anchor.isEmpty()) t << "#" << n->anchor;
- t << "\" target=\"basefrm\">";
- t << n->name;
- t << "</a>";
- if (!n->ref.isEmpty())
- {
- t << "&nbsp;[external]";
+ if (!n->ref.isEmpty()) // link to entity imported via tag file
+ {
+ t << "<a class=\"elRef\" ";
+ t << "doxygen=\"" << n->ref << ":";
+ if ((dest=Doxygen::tagDestinationDict[n->ref])) t << *dest << "/";
+ t << "\" ";
+ }
+ else // local link
+ {
+ t << "<a class=\"el\" ";
+ }
+ t << "href=\"";
+ if (!n->ref.isEmpty())
+ {
+ if ((dest=Doxygen::tagDestinationDict[n->ref])) t << *dest << "/";
+ }
+ t << n->file << Doxygen::htmlFileExtension;
+ if (!n->anchor.isEmpty()) t << "#" << n->anchor;
+ t << "\" target=\"basefrm\">";
+ t << n->name;
+ t << "</a>";
+ if (!n->ref.isEmpty())
+ {
+ t << "&nbsp;[external]";
+ }
}
}
@@ -634,7 +639,7 @@ void FTVHelp::generateTreeView()
t << cssfi.fileName();
}
t << "\">" << endl;
- t << " <title>Test</title>\n";
+ t << " <title>TreeView</title>\n";
t << " <style type=\"text/css\">\n";
t << " <!--\n";
t << " .directory { font-size: 10pt; font-weight: bold; }\n";