1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
7 <meta name=
"Generator" content=
"Cocoa HTML Writer">
8 <meta name=
"CocoaVersion" content=
"1038.25">
9 <style type=
"text/css">
10 p
.p1
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
}
11 p
.p2
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; min-height: 12.0px}
12 p
.p3
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; min-height: 14.0px}
13 p
.p4
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; color: #0000ee}
14 p
.p5
{margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica
}
15 p
.p6
{margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica
; min-height: 14.0px}
16 p
.p7
{margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica
}
17 p
.p8
{margin: 0.0px 0.0px 0.0px 85.0px; text-indent: -85.0px; font: 12.0px Helvetica
}
18 p
.p9
{margin: 0.0px 0.0px 0.0px 85.0px; text-indent: -85.0px; font: 12.0px Helvetica
; min-height: 14.0px}
19 p
.p10
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
}
20 p
.p11
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #0000bf}
21 p
.p12
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #bf0000}
22 p
.p13
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #007300}
23 p
.p14
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #007300; min-height: 12.0px}
24 span
.s1
{font: 18.0px Helvetica
}
25 span
.s2
{font: 9.0px Monaco
}
26 span
.s3
{color: #2b30fa}
27 span
.s4
{color: #000000}
28 span
.s5
{text-decoration: underline
}
29 span
.s6
{color: #0a26c0}
30 span
.s7
{color: #0000bf}
31 span
.s8
{color: #007300}
32 span
.s9
{color: #bf0000}
33 span
.s10
{color: #606060}
34 span
.Apple-tab-span
{white-space:pre
}
38 <p class=
"p1"><span class=
"s1"><b>PdefAllGui
</b></span><span class=
"s2"> <span class=
"Apple-tab-span"> </span></span><b>see all Pdefs and their state.
</b></p>
39 <p class=
"p2"><br></p>
40 <p class=
"p1"><b>Inherits from:
</b> <a href=
"JITGui.html"><span class=
"s3">JITGui
</span></a> : TaskProxyAllGui
</p>
41 <p class=
"p3"><br></p>
42 <p class=
"p1">PdefAllGui uses PdefGui views to display all Pdefs, or a selection.
</p>
43 <p class=
"p4"><span class=
"s4">See also
<a href=
"TdefAllGui.html"><span class=
"s5">TdefAllGui
</span></a>,
<a href=
"PdefGui.html"><span class=
"s5">PdefGui
</span></a></span></p>
44 <p class=
"p1">Overview:
<a href=
"../JITLib.html"><span class=
"s6">JITLib
</span></a></p>
45 <p class=
"p2"><br></p>
46 <p class=
"p5"><b>Creation / Class Methods
</b></p>
47 <p class=
"p6"><br></p>
48 <p class=
"p7"><b><span class=
"Apple-tab-span"> </span>*new(numItems, parent, bounds, makeSkip, makeEdit)
</b></p>
49 <p class=
"p6"><b><span class=
"Apple-tab-span"> </span></b></p>
50 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><b>numItems
</b>- the maximum number of Pdefs that can be shown.
</p>
51 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><b>parent
</b>-
<span class=
"Apple-tab-span"> </span>a parent view on which to display. If nil, a new window is created;
</p>
52 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><b>parent
</b>can also be an existing window or a composite view.
</p>
53 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><b>bounds
</b>-
<span class=
"Apple-tab-span"> </span>a desired size and position where to display a JITGui. can be nil,
<span class=
"Apple-converted-space"> </span></p>
54 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>a point, or a rect. JITGuis know their minimum size (
<b>minSize),
<span class=
"Apple-converted-space"> </span></b></p>
55 <p class=
"p8"><b><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></b>and if bounds is nil, minSize is used.
</p>
56 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>if bounds is a point or rect, it will be set to at least minSize.
</p>
57 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>With a rect one can also supply a position where to display.
</p>
58 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>If a point,shown size is the maximum of bounds and minSize
<span class=
"Apple-converted-space"> </span></p>
59 <p class=
"p9"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></p>
60 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>/////
<b>Not Done Yet, but on the list:
<span class=
"Apple-converted-space"> </span></b></p>
61 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><b>options
</b> -
<span class=
"Apple-tab-span"> </span>the only option for PdefAllGui will be
<b>[\makeEdit]
</b><span class=
"Apple-converted-space"> </span></p>
62 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>- adding a
"front" PdefGui that also shows the front Pdef's envir.
<span class=
"Apple-converted-space"> </span></p>
63 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>like PxMix and NPGui
</p>
64 <p class=
"p9"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></p>
65 <p class=
"p8"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><b>makeSkip
</b>- A flag whether to make a skipjack.
</p>
66 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></p>
67 <p class=
"p10"><span class=
"Apple-tab-span"> </span>(
</p>
68 <p class=
"p10"><span class=
"Apple-tab-span"> </span><span class=
"s7">Pdef
</span>(
<span class=
"s8">\a
</span>, {
<span class=
"s7">|e|
</span> 100.do {
<span class=
"s7">|i|
</span> i.postln;
0.5.wait } });
</p>
69 <p class=
"p10"><span class=
"Apple-tab-span"> </span><span class=
"s7">Pdef
</span>(
<span class=
"s8">\b
</span>,
<span class=
"Apple-converted-space"> </span>{
<span class=
"s7">|e|
</span> 100.do {
<span class=
"s7">|i|
</span> <span class=
"s7">Pdef
</span>(
<span class=
"s8">\a
</span>).set(
<span class=
"s8">\otto
</span>,
8.rand); exprand(
0.1,
3.0).wait } });
</p>
70 <p class=
"p11"><span class=
"s4"><span class=
"Apple-tab-span"> </span>t =
</span>PdefAllGui
<span class=
"s4">(
8);
</span></p>
71 <p class=
"p10"><span class=
"s7"><span class=
"Apple-tab-span"> </span></span>)
</p>
72 <p class=
"p2"><span class=
"Apple-tab-span"> </span></p>
73 <p class=
"p12"><span class=
"s4"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></span>// if you have too many Pdefs, an ezscroller lets you select
</p>
74 <p class=
"p10"><span class=
"s9"><span class=
"Apple-tab-span"> </span></span><span class=
"s10">"abcdefghijk"</span>.do {
<span class=
"s7">|ch|
</span> <span class=
"s7">Pdef
</span>(ch.asSymbol) };
</p>
75 <p class=
"p2"><span class=
"Apple-tab-span"> </span></p>
76 <p class=
"p12"><span class=
"s4"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></span>// you can also filter which ones you see:
</p>
77 <p class=
"p13"><span class=
"s9"><span class=
"Apple-tab-span"> </span></span><span class=
"s7">Pdef
</span><span class=
"s4">(
</span>\a_otti
<span class=
"s4">);
</span></p>
78 <p class=
"p13"><span class=
"Apple-tab-span"> </span><span class=
"s7">Pdef
</span><span class=
"s4">(
</span>\a_annerl
<span class=
"s4">);
</span></p>
79 <p class=
"p13"><span class=
"Apple-tab-span"> </span><span class=
"s7">Pdef
</span><span class=
"s4">(
</span>\a_bebe
<span class=
"s4">);
</span></p>
80 <p class=
"p14"><span class=
"Apple-tab-span"> </span></p>
81 <p class=
"p12"><span class=
"s4"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></span>// or better from gui
</p>
82 <p class=
"p10"><span class=
"s9"><span class=
"Apple-tab-span"> </span></span>t.prefix_(
<span class=
"s10">"a_"</span>);
</p>
83 <p class=
"p10"><span class=
"Apple-tab-span"> </span>t.filtering_(
<span class=
"s7">true
</span>);
</p>
84 <p class=
"p2"><span class=
"Apple-tab-span"> </span></p>
85 <p class=
"p12"><span class=
"s4"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></span>// if prefix is
"", it will filter anything with
"_" in it.
</p>
86 <p class=
"p10"><span class=
"s9"><span class=
"Apple-tab-span"> </span></span>t.prefix_(
<span class=
"s10">""</span>);
</p>
87 <p class=
"p10"><span class=
"Apple-tab-span"> </span>t.filtering_(
<span class=
"s7">false
</span>);
</p>
88 <p class=
"p2"><span class=
"Apple-tab-span"> </span></p>