summaryrefslogtreecommitdiffstats
path: root/src/treeview.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-12-03 19:13:07 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-12-03 19:13:07 (GMT)
commitfe67b8eb68129713327965c201f2d7226b83202f (patch)
tree485fb83c5a301dd4b0edb3c534b1f31eeb08ab1f /src/treeview.h
parenta30c2e3c5ea41ae1947e9893c82ed8c8b6d7c5a2 (diff)
downloadDoxygen-fe67b8eb68129713327965c201f2d7226b83202f.zip
Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.gz
Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.bz2
Release-1.2.3-20001203
Diffstat (limited to 'src/treeview.h')
-rw-r--r--src/treeview.h43
1 files changed, 25 insertions, 18 deletions
diff --git a/src/treeview.h b/src/treeview.h
index e74408a..213bc82 100644
--- a/src/treeview.h
+++ b/src/treeview.h
@@ -11,14 +11,17 @@
"// 27 Jan 98 - Root folder starts open; support for USETEXTLINKS; \n"
"// make the ftien4 a js file \n"
"// \n"
+"// DvH: Dec 2000 - Made some minor changes to support external \n"
+"// references\n"
" \n"
"// Definition of class Folder \n"
"// ***************************************************************** \n"
" \n"
-"function Folder(folderDescription, hreference) //constructor \n"
+"function Folder(folderDescription, tagName, hreference) //constructor \n"
"{ \n"
" //constant data \n"
" this.desc = folderDescription \n"
+" this.tagName = tagName\n"
" this.hreference = hreference \n"
" this.id = -1 \n"
" this.navObj = 0 \n"
@@ -186,6 +189,10 @@
" } \n"
" else \n"
" doc.write(this.desc) \n"
+" if (this.tagName!=\"\")\n"
+" {\n"
+" doc.write(\" [external]\")\n"
+" }\n"
" doc.write(\"</td>\") \n"
" doc.write(\"\\n</table>\\n\") \n"
" \n"
@@ -209,7 +216,12 @@
"{ \n"
" if (this.hreference) \n"
" { \n"
-" doc.write(\"<a href='\" + this.hreference + \"' TARGET=\\\"basefrm\\\" \") \n"
+" doc.write(\"<a \")\n"
+" if (this.tagName)\n"
+" {\n"
+" doc.write(\"doxygen='\" + this.tagName + \"' \");\n"
+" }\n"
+" doc.write(\"href='\" + this.hreference + \"' TARGET=\\\"basefrm\\\" \") \n"
" if (browserVersion > 0) \n"
" doc.write(\"onClick='javascript:clickOnFolder(\"+this.id+\")'\") \n"
" doc.write(\">\") \n"
@@ -242,10 +254,11 @@
"// Definition of class Item (a document or link inside a Folder) \n"
"// ************************************************************* \n"
" \n"
-"function Item(itemDescription, itemLink) // Constructor \n"
+"function Item(itemDescription, tagName, itemLink) // Constructor \n"
"{ \n"
" // constant data \n"
" this.desc = itemDescription \n"
+" this.tagName = tagName\n"
" this.link = itemLink \n"
" this.id = -1 //initialized in initalize() \n"
" this.navObj = 0 //initialized in render() \n"
@@ -319,6 +332,10 @@
" doc.write(\"<a href=\" + this.link + \">\" + this.desc + \"</a>\") \n"
" else \n"
" doc.write(this.desc) \n"
+" if (this.tagName!=\"\")\n"
+" {\n"
+" doc.write(\" [external]\");\n"
+" }\n"
" doc.write(\"\\n</table>\\n\") \n"
" \n"
" if (browserVersion == 2) \n"
@@ -422,32 +439,22 @@
"// Auxiliary Functions for Folder-Treee backward compatibility \n"
"// ********************************************************* \n"
" \n"
-"function gFld(description, hreference) \n"
+"function gFld(description, tagName, hreference) \n"
"{ \n"
-" folder = new Folder(description, hreference) \n"
+" folder = new Folder(description, tagName, hreference) \n"
" return folder \n"
"} \n"
" \n"
-"function gLnk(target, description, linkData) \n"
+"function gLnk(description, tagName, linkData) \n"
"{ \n"
" fullLink = \"\" \n"
" \n"
" if (linkData!=\"\")\n"
" {\n"
-" if (target==0) \n"
-" { \n"
-" fullLink = \"'\"+linkData+\"' target=\\\"basefrm\\\"\" \n"
-" } \n"
-" else \n"
-" { \n"
-" if (target==1) \n"
-" fullLink = \"'http://\"+linkData+\"' target=_blank\" \n"
-" else \n"
-" fullLink = \"'http://\"+linkData+\"' target=\\\"basefrm\\\"\" \n"
-" }\n"
+" fullLink = \"'\"+linkData+\"' target=\\\"basefrm\\\"\" \n"
" } \n"
" \n"
-" linkItem = new Item(description, fullLink) \n"
+" linkItem = new Item(description, tagName, fullLink) \n"
" return linkItem \n"
"} \n"
" \n"