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/treeview.js | |
parent | a30c2e3c5ea41ae1947e9893c82ed8c8b6d7c5a2 (diff) | |
download | Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.zip Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.gz Doxygen-fe67b8eb68129713327965c201f2d7226b83202f.tar.bz2 |
Release-1.2.3-20001203
Diffstat (limited to 'src/treeview.js')
-rw-r--r-- | src/treeview.js | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/src/treeview.js b/src/treeview.js index 8fd91b1..58ca384 100644 --- a/src/treeview.js +++ b/src/treeview.js @@ -11,14 +11,17 @@ // 27 Jan 98 - Root folder starts open; support for USETEXTLINKS; // make the ftien4 a js file // +// DvH: Dec 2000 - Made some minor changes to support external +// references // Definition of class Folder // ***************************************************************** -function Folder(folderDescription, hreference) //constructor +function Folder(folderDescription, tagName, hreference) //constructor { //constant data this.desc = folderDescription + this.tagName = tagName this.hreference = hreference this.id = -1 this.navObj = 0 @@ -186,6 +189,10 @@ function drawFolder(leftSide) } else doc.write(this.desc) + if (this.tagName!="") + { + doc.write(" [external]") + } doc.write("</td>") doc.write("\n</table>\n") @@ -209,7 +216,12 @@ function outputFolderLink() { if (this.hreference) { - doc.write("<a href='" + this.hreference + "' TARGET=\"basefrm\" ") + doc.write("<a ") + if (this.tagName) + { + doc.write("doxygen='" + this.tagName + "' "); + } + doc.write("href='" + this.hreference + "' TARGET=\"basefrm\" ") if (browserVersion > 0) doc.write("onClick='javascript:clickOnFolder("+this.id+")'") doc.write(">") @@ -242,10 +254,11 @@ function folderSubEntries() // Definition of class Item (a document or link inside a Folder) // ************************************************************* -function Item(itemDescription, itemLink) // Constructor +function Item(itemDescription, tagName, itemLink) // Constructor { // constant data this.desc = itemDescription + this.tagName = tagName this.link = itemLink this.id = -1 //initialized in initalize() this.navObj = 0 //initialized in render() @@ -319,6 +332,10 @@ function drawItem(leftSide) doc.write("<a href=" + this.link + ">" + this.desc + "</a>") else doc.write(this.desc) + if (this.tagName!="") + { + doc.write(" [external]"); + } doc.write("\n</table>\n") if (browserVersion == 2) @@ -422,32 +439,22 @@ function initializeDocument() // Auxiliary Functions for Folder-Treee backward compatibility // ********************************************************* -function gFld(description, hreference) +function gFld(description, tagName, hreference) { - folder = new Folder(description, hreference) + folder = new Folder(description, tagName, hreference) return folder } -function gLnk(target, description, linkData) +function gLnk(description, tagName, linkData) { fullLink = "" if (linkData!="") { - if (target==0) - { - fullLink = "'"+linkData+"' target=\"basefrm\"" - } - else - { - if (target==1) - fullLink = "'http://"+linkData+"' target=_blank" - else - fullLink = "'http://"+linkData+"' target=\"basefrm\"" - } + fullLink = "'"+linkData+"' target=\"basefrm\"" } - linkItem = new Item(description, fullLink) + linkItem = new Item(description, tagName, fullLink) return linkItem } |