4 <link rel='stylesheet' href='../scdoc.css' type='text/css'
/>
5 <meta http-equiv='Content-Type' content='text/html; charset=UTF-
8'
/>
6 <script src=
"../docmap.js" type=
"text/javascript"></script>
7 <script src=
"../scdoc.js" type=
"text/javascript"></script>
23 div.met_subclasses a {
26 div.met_subclasses a.seemore {
32 font-family: Andale Mono, monospace;
38 border-top:
1px solid #ddd;
55 <p>The method index needs JavaScript.
58 <script type=
"text/javascript">
60 var subclassCache
= {};
62 function buildMethodList() {
64 for(var k
in docmap
) {
66 var mets
= doc
.methods
;
68 for(var j
=0;j
<mets
.length
;j
++) {
70 var mname
= m
.slice(2);
72 var undoc
= m
[0]=="?";
73 if(!methods
.hasOwnProperty(mname
))
75 methods
[mname
].push({doc
:doc
,pfx
:pfx
,undoc
:undoc
});
80 function getSubClasses(doc
) {
83 for(var i
=0;i
<doc
.subclasses
.length
;i
++) {
84 var x
= doc
.subclasses
[i
];
85 var v
= docmap
["Classes/"+x
];
88 a
= a
.concat(getSubClasses(v
));
94 function showMethod(mname
, node
) {
95 var div
= document
.createElement("div");
96 div
.className
= "method_item";
97 var x
= document
.createElement("div");
98 x
.className
= "method_name";
99 x
.appendChild(document
.createTextNode(mname
));
102 var x
= methods
[mname
].sort(function(a
,b
) {
103 a
= a
.pfx
+ a
.doc
.title
;
104 b
= b
.pfx
+ b
.doc
.title
;
112 for(var i
=0;i
<x
.length
;i
++) {
116 var div2
= document
.createElement("div");
117 div2
.className
= "method_doc";
118 div
.appendChild(div2
);
122 div2
.appendChild(document
.createTextNode(p
+" "));
123 var a
= document
.createElement("a");
124 a
.setAttribute("href",helpRoot
+"/"+v
.path
+".html#"+m
.pfx
+mname
);
125 a
.innerHTML
= v
.title
;
127 a
.className
= "undoc";
129 div2
.appendChild(document
.createTextNode(" - "+v
.summary
+" "));
130 var n
= document
.createElement("span");
131 n
.className
= "soft";
132 var res
= "["+v
.path
.split("/")[0];
133 if(v
.installed
=="extension")
135 else if(v
.installed
=="missing")
136 res
+= " - missing!";
137 n
.innerHTML
= res
+"]";
140 if(v
.path
=="Classes/Object") {
141 var n
= document
.createElement("div");
142 n
.className
= "met_subclasses";
143 n
.appendChild(document
.createTextNode("Inherited by: All classes"));
146 if(v
.subclasses
&& v
.subclasses
.length
>0) {
148 if(subclassCache
[v
.path
]) {
149 n
= subclassCache
[v
.path
].cloneNode(true);
151 var subs
= getSubClasses(v
);
152 n
= document
.createElement("div");
154 n
.className
= "met_subclasses";
155 n
.appendChild(document
.createTextNode("Inherited by: "));
156 for(var j
=0;j
<subs
.length
;j
++) {
157 var a
= document
.createElement("a");
158 a
.setAttribute("href", helpRoot
+"/Classes/"+subs
[j
]+".html");
159 if(j
==10 && subs
.length
> 14) {
160 m
= document
.createElement("span");
161 m
.className
= "hiddenspan";
162 m
.style
.display
= "none";
164 var a2
= document
.createElement("a");
165 a2
.setAttribute("href","#");
166 a2
.className
= "seemore";
167 a2
.innerHTML
= "… see "+(subs
.length
-10)+" more";
168 n
.appendChild(document
.createTextNode(" "));
172 m
.appendChild(document
.createTextNode(", "));
173 a
.innerHTML
= subs
[j
];
176 subclassCache
[v
.path
] = n
;
179 var a
= n
.getElementsByClassName("seemore")[0];
181 var m
= n
.getElementsByClassName("hiddenspan")[0];
182 a
.onclick = function() {
183 m
.style
.display
= "";
184 a
.parentNode
.removeChild(a
);
194 node
.appendChild(div
);
197 function did_load() {
198 var hash
= unescape(window
.location
.hash
.slice(1));
200 helpRoot
=".."; fixTOC();
207 function showmethods() {
208 var hash
= unescape(window
.location
.hash
.slice(1));
209 var res
= document
.getElementById("methods");
212 var section
= undefined;
213 if(/^section_/.test(hash
))
216 var div
= document
.createElement("p");
217 div
.className
= "searchlink";
218 div
.appendChild(document
.createTextNode("Do you want to "));
219 var a
= document
.createElement("a");
220 a
.setAttribute("href","../Search.html#"+hash
);
221 a
.appendChild(document
.createTextNode("search for '"+hash
+"'"));
223 div
.appendChild(document
.createTextNode(" instead?"));
224 res
.appendChild(div
);
225 document
.getElementById("total_count").innerHTML
= "Showing single method:";
226 document
.getElementById("method_note").innerHTML
= "";
228 showMethod(hash
,res
);
231 var div
= document
.createElement("p");
232 div
.appendChild(document
.createTextNode("Method not found: "+hash
));
233 res
.appendChild(div
);
234 window
.location
= "../Search.html#"+hash
;
239 var div
= document
.createElement("p");
240 div
.className
= "jump";
241 div
.innerHTML
= "Show section: ";
244 for(var k
in methods
) {
249 for(var i
=0;i
<mets
.length
;i
++) {
253 if(section
== undefined)
255 var a
= document
.createElement("a");
256 a
.setAttribute("href","#section_"+cap
);
257 a
.innerHTML
=cap
.toUpperCase();
259 div
.appendChild(document
.createTextNode(" "));
262 res
.appendChild(div
);
264 var x
= document
.createElement("h2");
265 x
.innerHTML
= section
.toUpperCase();
269 for(var i
= 0; i
<mets
.length
;i
++) {
276 document
.getElementById("total_count").innerHTML
= count
+ " methods (" + mets
.length
+ " total)";
279 window
.onhashchange
= showmethods
;
283 <ul id=
"menubar"></ul>
285 <body onload=
"did_load()">
286 <div class='contents'
>
288 <div id='label'
>SuperCollider OVERVIEWS
</div>
290 <div id='summary'
>Alphabetical index of all methods
</div>
292 <div id=
"total_count"></div>
294 Generating method index, please wait...
296 <div id='method_note'
>
297 You can show a specific method by appending '#NAME' to this page url, where NAME is the name of the method.