From dca8960e21273ed8100fa1fdaeab99ccf141a1f3 Mon Sep 17 00:00:00 2001
From: mikl <>
Date: Tue, 6 May 2008 07:53:08 +0000
Subject: Imported JS documentor jGrouseDoc-2.0
---
buildscripts/jGrouseDoc/skins/common/css/jgdoc.css | 301 +++++++++
.../jGrouseDoc/skins/common/css/jgindex.css | 53 ++
.../jGrouseDoc/skins/common/img/closed.gif | Bin 0 -> 104 bytes
.../jGrouseDoc/skins/common/img/closedLarge.gif | Bin 0 -> 132 bytes
buildscripts/jGrouseDoc/skins/common/img/node.gif | Bin 0 -> 106 bytes
buildscripts/jGrouseDoc/skins/common/img/open.gif | Bin 0 -> 101 bytes
.../jGrouseDoc/skins/common/img/openLarge.gif | Bin 0 -> 128 bytes
buildscripts/jGrouseDoc/skins/common/js/jgdoc.js | 239 +++++++
buildscripts/jGrouseDoc/skins/common/js/jgindex.js | 96 +++
buildscripts/jGrouseDoc/skins/common/js/navTree.js | 213 +++++++
buildscripts/jGrouseDoc/skins/common/vm/common.vm | 604 ++++++++++++++++++
.../jGrouseDoc/skins/common/xslt/common.xslt | 704 +++++++++++++++++++++
12 files changed, 2210 insertions(+)
create mode 100644 buildscripts/jGrouseDoc/skins/common/css/jgdoc.css
create mode 100644 buildscripts/jGrouseDoc/skins/common/css/jgindex.css
create mode 100644 buildscripts/jGrouseDoc/skins/common/img/closed.gif
create mode 100644 buildscripts/jGrouseDoc/skins/common/img/closedLarge.gif
create mode 100644 buildscripts/jGrouseDoc/skins/common/img/node.gif
create mode 100644 buildscripts/jGrouseDoc/skins/common/img/open.gif
create mode 100644 buildscripts/jGrouseDoc/skins/common/img/openLarge.gif
create mode 100644 buildscripts/jGrouseDoc/skins/common/js/jgdoc.js
create mode 100644 buildscripts/jGrouseDoc/skins/common/js/jgindex.js
create mode 100644 buildscripts/jGrouseDoc/skins/common/js/navTree.js
create mode 100644 buildscripts/jGrouseDoc/skins/common/vm/common.vm
create mode 100644 buildscripts/jGrouseDoc/skins/common/xslt/common.xslt
(limited to 'buildscripts/jGrouseDoc/skins/common')
diff --git a/buildscripts/jGrouseDoc/skins/common/css/jgdoc.css b/buildscripts/jGrouseDoc/skins/common/css/jgdoc.css
new file mode 100644
index 00000000..a56481d5
--- /dev/null
+++ b/buildscripts/jGrouseDoc/skins/common/css/jgdoc.css
@@ -0,0 +1,301 @@
+
+@CHARSET "ISO-8859-1";
+/*
+ jGrouseDoc stylesheet file.
+ @Copyright (c) 2007 by Denis Riabtchik. All rights reserved. See license.txt and http://jgrouse.com for details@
+ $Id: jgdoc.css 340 2008-01-21 16:13:59Z broofa $
+*/
+
+body
+{
+ /*font-family: Helvetica,Arial,sans-serif;
+ font-size: 0.9em;*/
+}
+
+
+a
+{
+ text-decoration: none;
+}
+
+.overviewTitle
+{
+ font-weight: bold;
+ font-size: 1.3em;
+ padding-top: 1em;
+ clear: both;
+}
+
+.overviewItem
+{
+}
+
+
+.overviewSectionHeader
+{
+ font-weight: bold;
+ font-size: 1.1em;
+ padding-top: 0.5em;
+}
+
+.sectionHeader
+{
+ border: 2px groove black;
+ font-size: 1.7em;
+ text-align: left;
+ font-weight: bold;
+ background-color: #ccccff;
+ color: black;
+ padding: 3px;
+}
+
+.logicalSummary
+{
+}
+
+.summaryTable
+{
+ border: 2px groove black;
+}
+
+.summaryTableHeader
+{
+ font-size: 1.7em;
+ text-align: left;
+ font-weight: bold;
+ background-color: #ccccff;
+ color: black;
+ padding: 4px;
+}
+
+.summaryTable .summaryItem
+{
+ border-top: 1px solid;
+ padding: 2px;
+}
+
+.summaryTable .summaryItemRef
+{
+ font-weight: bold;
+}
+
+.summaryTable .summaryItemDef
+{
+}
+
+.summaryTable .inheritanceSummary
+{
+ border-top: 1px solid;
+ padding: 2px;
+}
+
+.summaryTable .summaryItemDesc
+{
+ padding-left: 2em;
+}
+
+.elementName
+{
+ font-weight: bold;
+}
+
+.descSection
+{
+ font-weight: bold;
+}
+
+
+.navbar
+{
+ font-size: 0.9em;
+ padding-bottom: 4px;
+}
+
+.currentPage
+{
+ font-weight: bold;
+}
+
+.navbaritem
+{
+ float: left;
+ width: 10em;
+ background-color: #ccccff;
+ color: black;
+ padding: 4px;
+ margin: 2px;
+ padding-top: 2px;
+ padding-bottom: 2px;
+ text-align: center;
+}
+
+.navbaritem a
+{
+ background-color: #ccccff;
+ color: black;
+ text-decoration: underline;
+}
+
+
+.projectDescRef
+{
+ font-weight: bold;
+}
+
+.paddedDetails
+{
+ padding-left: 5em;
+}
+
+.example
+{
+ font-size: 0.8em;
+ font-family: courier;
+ white-space: pre;
+}
+
+
+
+.searchItem
+{
+ cursor: pointer;
+}
+
+.jgdSelectedItem
+{
+ background-color: #0a246a;
+ color: white;
+}
+
+.jgdSearchRect
+{
+ width:60%;
+ height:20em;
+ border: 2px inset;
+ overflow: auto;
+}
+
+.jgdSearchString
+{
+ width:60%;
+}
+
+.jgsInfo
+{
+ white-space: pre
+}
+
+
+
+/*---------- NavTree ----------------*/
+
+
+#content {
+ font-size: .9em;
+ line-height:1.6;
+}
+.navTree a {
+ text-decoration: none;
+}
+.navTree a:hover {
+ text-decoration: underline;
+}
+
+.navTree .contents
+{
+ list-style: none;
+ padding-left: 6px;
+ margin-left: 0px;
+ clear: both;
+}
+
+.navTree .contents li
+{
+ clear: both;
+ white-space: nowrap;
+}
+
+
+.navTree .contents ul
+{
+ border-left: 1px solid #cccccc;
+ margin-left: 6px;
+ clear: both;
+}
+
+
+.navTree .contents span.node
+{
+ display: block;
+ float: left;
+}
+
+.navTree span.node
+{
+ cursor: pointer;
+ background-repeat: no-repeat;
+ background-position: 0em 0.2em;
+}
+
+.navTree .open span.node
+{
+ background-image: url(open.gif) ;
+}
+
+.navTree .closed span.node
+{
+ background-image: url(closed.gif) ;
+}
+
+.navTree .leaf span.node
+{
+ background-image: url(node.gif) ;
+}
+
+.navTree .closed .contents
+{
+ display: none;
+}
+
+.navTree .markerSpace
+{
+ padding-left: 12px;
+}
+
+.navTree .openAll,
+.navTree .closeAll {
+ font-size: .9em;
+ background-repeat: no-repeat;
+ padding-left: 16px;
+ padding-right: 7px;
+ background-position: left center;
+ cursor: pointer;
+}
+
+.navTree .openAll {
+ background-image: url(openLarge.gif);
+}
+
+.navTree .closeAll
+{
+ background-image: url(closedLarge.gif);
+}
+
+.comment
+{
+ padding-top: 0.5em;
+ padding-bottom: 0.5em;
+}
+
+ul.paramoption
+{
+ margin-top: 0px;
+ margin-bottom: 0px;
+}
+
+a.srcUrlLink
+{
+ color:#66f;
+ float: right;
+ font-size: 11px;
+}
diff --git a/buildscripts/jGrouseDoc/skins/common/css/jgindex.css b/buildscripts/jGrouseDoc/skins/common/css/jgindex.css
new file mode 100644
index 00000000..c113487f
--- /dev/null
+++ b/buildscripts/jGrouseDoc/skins/common/css/jgindex.css
@@ -0,0 +1,53 @@
+/*
+ jGrouseDoc stylesheet file for index page.
+ Copyright (c) 2007 by Robert Kieffer and jGrouseDoc contributors
+ $Id: jgindex.css 302 2007-12-24 22:51:11Z denis.riabtchik $
+*/
+@CHARSET "ISO-8859-1";
+
+ dt {
+ clear:both;
+ float:left;
+ width: 200px;
+ margin-left: 20px;
+ }
+ a {
+ color: #009;
+ text-decoration: none;
+ }
+ a:hover {
+ color: #009;
+ text-decoration: underline;
+ }
+ dd {
+ /*float:left;*/
+ }
+ dt, dd {
+ margin: 0px;
+ }
+ dt.even, dd.even {
+ border-bottom: dashed 1px #ddd;
+ }
+ dt.odd, dd.odd {
+ border-bottom: dotted 1px #eee;
+ }
+ dt.is_namespace {
+ font-weight:bold;
+ }
+
+ #toc {
+ font-size: 12pt;
+ font-weight: bold;
+ }
+ #toc .has_entries a,
+ #toc .no_entries {padding: 0px 3px;}
+ #toc .no_entries {color:#999}
+
+ .letter_section {
+ clear:both;
+ margin: 0px;
+ padding:15px 0px 6px;
+ }
+ .letter_section a {
+ color:#000;
+ }
diff --git a/buildscripts/jGrouseDoc/skins/common/img/closed.gif b/buildscripts/jGrouseDoc/skins/common/img/closed.gif
new file mode 100644
index 00000000..ab9701f2
Binary files /dev/null and b/buildscripts/jGrouseDoc/skins/common/img/closed.gif differ
diff --git a/buildscripts/jGrouseDoc/skins/common/img/closedLarge.gif b/buildscripts/jGrouseDoc/skins/common/img/closedLarge.gif
new file mode 100644
index 00000000..97e3ab95
Binary files /dev/null and b/buildscripts/jGrouseDoc/skins/common/img/closedLarge.gif differ
diff --git a/buildscripts/jGrouseDoc/skins/common/img/node.gif b/buildscripts/jGrouseDoc/skins/common/img/node.gif
new file mode 100644
index 00000000..82362651
Binary files /dev/null and b/buildscripts/jGrouseDoc/skins/common/img/node.gif differ
diff --git a/buildscripts/jGrouseDoc/skins/common/img/open.gif b/buildscripts/jGrouseDoc/skins/common/img/open.gif
new file mode 100644
index 00000000..01286477
Binary files /dev/null and b/buildscripts/jGrouseDoc/skins/common/img/open.gif differ
diff --git a/buildscripts/jGrouseDoc/skins/common/img/openLarge.gif b/buildscripts/jGrouseDoc/skins/common/img/openLarge.gif
new file mode 100644
index 00000000..d4162470
Binary files /dev/null and b/buildscripts/jGrouseDoc/skins/common/img/openLarge.gif differ
diff --git a/buildscripts/jGrouseDoc/skins/common/js/jgdoc.js b/buildscripts/jGrouseDoc/skins/common/js/jgdoc.js
new file mode 100644
index 00000000..0687c039
--- /dev/null
+++ b/buildscripts/jGrouseDoc/skins/common/js/jgdoc.js
@@ -0,0 +1,239 @@
+/**
+ * Searcher for JGrouseDoc
+ * $Id: jgdoc.js 324 2008-01-06 16:44:39Z denis.riabtchik $
+ */
+
+jgdoc = {}
+
+jgdoc.Searcher =
+{
+ initialize : function()
+ {
+ this._searchBox = document.getElementById("jgsSearchString");
+ this._searchResults = document.getElementById("jgsSearchResults");
+ this._info = document.getElementById("jgsInfo");
+ this._currentValue = "";
+ this._currentItems = [];
+ this._currentItem = -1;
+ this._data = null;
+ return this;
+ },
+
+ _getEvent : function(event)
+ {
+ return window.event? window.event : event;
+ },
+
+ _getTarget : function(event)
+ {
+ return event.target || event.srcElement
+ },
+
+ addClass : function(element, className)
+ {
+ var s = element.className;
+ var a = s.split(' ');
+ for (var i = 0; i < a.length; i++)
+ {
+ if (a[i] == className)
+ {
+ return;
+ }
+ }
+ a.push(className);
+ element.className = a.join(' ');
+ },
+
+ removeClass : function(element, className)
+ {
+ var s = element.className;
+ var a = s.split(' ');
+ for (var i = 0; i < a.length; i++)
+ {
+ if (a[i] == className)
+ {
+ a.splice(i, 1);
+ break;
+ }
+ }
+ element.className = a.join(' ');
+
+ },
+
+ dispatcher : function(event)
+ {
+ if (this != jgdoc.Searcher)
+ {
+ arguments.callee.apply(jgdoc.Searcher, arguments)
+ return;
+ }
+ event = this._getEvent(event);
+ var type = event.type;
+ var handler = "on" + type;
+ this[handler](event, this._getTarget(event));
+ },
+
+ onclick : function(event, target)
+ {
+ window.location.href = target._data.ref;
+ },
+
+ onmouseover : function(event, target)
+ {
+ this.selectItem(target.index);
+ },
+
+ onmouseout : function(event, target)
+ {
+ this.unselectItem(target.index);
+ },
+
+ selectItem : function(index)
+ {
+ if (index != this._currentItem)
+ {
+ this._currentItem = index;
+ var item = this._currentItems[index];
+ this.addClass(item, 'jgdSelectedItem');
+ var text = item._data.summary.split('\n').join('
');
+ this._info.innerHTML = text;
+ }
+ },
+
+ unselectItem : function(index)
+ {
+ this._currentItem = -1;
+ var item = this._currentItems[index];
+ this.removeClass(item, 'jgdSelectedItem');
+ this._info.innerHTML = '';
+ },
+
+
+ onTimer : function()
+ {
+ if (this != jgdoc.Searcher)
+ {
+ arguments.callee.apply(jgdoc.Searcher, arguments)
+ return;
+ }
+ var val = this._searchBox.value;
+ if (val != this._currentValue)
+ {
+ this._currentValue = val;
+ this.redraw();
+ }
+ },
+
+ setData : function(data)
+ {
+ this._data = data;
+ this.redraw();
+ this._searchBox.focus();
+ },
+
+ addListener : function(element, eventName, handler)
+ {
+ if (element.addEventListener)
+ {
+ element.addEventListener(eventName, handler, false);
+ }
+ else
+ {
+ element.attachEvent('on' + eventName, handler);
+ }
+ },
+
+ removeListener : function(element, eventName, handler)
+ {
+ if (element.removeEventListener)
+ {
+ element.removeEventListener(eventName, handler, false);
+ }
+ else
+ {
+ element.detachEvent('on' + eventName, handler);
+ }
+ },
+
+ findMatches : function()
+ {
+ var result = [];
+ if (this._currentValue)
+ {
+ var v = this._currentValue.toUpperCase();
+ for (var i = 0; i < this._data.length; i++)
+ {
+ var item = this._data[i];
+ if (item.localName.toUpperCase().indexOf(v) == 0)
+ {
+ result.push(item);
+ }
+ }
+ }
+ return result;
+ },
+
+
+ clearItem : function(item)
+ {
+ item._data = null;
+ this.removeListener(item, 'click', this.dispatcher);
+ this.removeListener(item, 'mouseover', this.dispatcher);
+ this.removeListener(item, 'mouseout', this.dispatcher);
+ },
+
+ clear : function()
+ {
+ for (var i = 0; i < this._currentItems.length; i++)
+ {
+ this.clearItem(this._currentItems[i]);
+ }
+ this._currentItems = [];
+ this._searchResults.innerHTML = "";
+ this._currentItem = -1;
+ },
+
+
+ createItem : function(item, index)
+ {
+ var d = document.createElement("div");
+ d.className = "searchItem";
+ //d.title = item.summary;
+ d.innerHTML = item.fullName;
+ d.index = index;
+ d._data = item;
+ this.addListener(d, 'click', this.dispatcher);
+ this.addListener(d, 'mouseover', this.dispatcher);
+ this.addListener(d, 'mouseout', this.dispatcher);
+ //todo - set listeners
+ return d;
+ },
+
+ redraw : function()
+ {
+ this.clear();
+ var res = this.findMatches();
+ if (res.length > 0)
+ {
+ for (var i = 0; i < res.length; i++)
+ {
+ var d = this.createItem(res[i], i);
+ this._currentItems.push(d);
+ this._searchResults.appendChild(d);
+ }
+ }
+ else
+ {
+ var s = (this._currentValue)? "Not found" : "Start typing the name of the item";
+ this._searchResults.innerHTML = s;
+ }
+ },
+
+ start : function()
+ {
+ var instance = jgdoc.Searcher.initialize();
+ instance.setData([]);
+ instance._timer = window.setInterval(instance.onTimer, 100);
+ }
+}
+
diff --git a/buildscripts/jGrouseDoc/skins/common/js/jgindex.js b/buildscripts/jGrouseDoc/skins/common/js/jgindex.js
new file mode 100644
index 00000000..5a0bf2de
--- /dev/null
+++ b/buildscripts/jGrouseDoc/skins/common/js/jgindex.js
@@ -0,0 +1,96 @@
+/**
+ * Script that builds jGrouseDoc Index Page
+ * Copyright (c) 2007 by Robert Kieffer and jGrouseDoc contributors
+ * $Id: jgindex.js 303 2007-12-24 22:52:30Z denis.riabtchik $
+ */
+
+var jgindex = {
+ load: function() {
+ // Sort data by localName
+ jgindex.data.sort(function(a,b) {
+ var c = (a.localName || a.fullName).toLowerCase();
+ var d = (b.localName || b.fullName).toLowerCase();
+ return c < d ? -1 : (c > d ? 1 : 0);
+ });
+
+ // Now render the index
+ jgindex.renderEntries();
+ },
+
+ renderEntries: function() {
+ var h = [];
+
+ // Use a DL, since this is the most semantically correct structure
+ h.push('
+ #if($paramOption.hasModifier("optional"))[#end
+ $paramOption.strModifiers
+ #writeType($paramOption.typeLink)
+ $paramOption.name
+ #if($paramOption.hasModifier("optional"))]#end
+
+ #writeContent($paramOption.content)
+
+ #if($param.hasModifier("optional"))[#end${param.name}#if($param.hasModifier("optional"))]#end
+
+ #writeContent($param.content)
+ #if($param.children.size() > 0)
+
+ $funcModifiers
+ #writeType($funcItself.comment.typeLink)
+ ${funcItself.localName}(#writeFunctionParams($paramSet))
+
+
+ $funcModifiers
+ #writeType($funcItself.comment.typeLink)
+ ${funcItself.localName}()
+
+
+ $obj.comment.modifiers
+ $obj.commentType
+ $obj.comment.name
+
+ [ ]
+ [
+
+
+
+ ]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ()
+
+