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.29">
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: 14.0px Helvetica
}
20 p
.p11
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
}
21 p
.p12
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #0000bf}
22 p
.p13
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #bf0000}
23 p
.p14
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #007300}
24 p
.p15
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #007300; min-height: 12.0px}
25 span
.s1
{font: 18.0px Helvetica
}
26 span
.s2
{font: 9.0px Monaco
}
27 span
.s3
{color: #2b30fa}
28 span
.s4
{color: #000000}
29 span
.s5
{text-decoration: underline
}
30 span
.s6
{text-decoration: underline
; color: #0000ee}
31 span
.s7
{color: #1e26c0}
32 span
.s8
{color: #0000bf}
33 span
.s9
{color: #007300}
34 span
.s10
{color: #bf0000}
35 span
.s11
{color: #606060}
36 span
.Apple-tab-span
{white-space:pre
}
40 <p class=
"p1"><span class=
"s1"><b>TdefAllGui
</b></span><span class=
"s2"> <span class=
"Apple-tab-span"> </span></span><b>see all Tdefs and their state.
</b></p>
41 <p class=
"p2"><br></p>
42 <p class=
"p1"><b>Inherits from:
</b> <a href=
"JITGui.html"><span class=
"s3">JITGui
</span></a> : TaskProxyAllGui
</p>
43 <p class=
"p3"><br></p>
44 <p class=
"p1">TdefAllGui uses TdefGui views to display all Tdefs, or a selection.
</p>
45 <p class=
"p4"><span class=
"s4">See also
<span class=
"Apple-converted-space"> </span><a href=
"TdefGui.html"><span class=
"s5">TdefGui
</span></a>,
<a href=
"PdefGui.html"><span class=
"s5">PdefGui
</span></a></span><span class=
"s3">,
<a href=
"PdefAllGui.html"><span class=
"s6">PdefAllGui
</span></a></span></p>
46 <p class=
"p1">Overview:
<a href=
"../JITLib.html"><span class=
"s7">JITLib
</span></a></p>
47 <p class=
"p2"><br></p>
48 <p class=
"p5"><b>Creation / Class Methods
</b></p>
49 <p class=
"p6"><br></p>
50 <p class=
"p7"><b><span class=
"Apple-tab-span"> </span>*new(numItems, parent, bounds, makeSkip, makeEdit)
</b></p>
51 <p class=
"p6"><b><span class=
"Apple-tab-span"> </span></b></p>
52 <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>
53 <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>
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><b>parent
</b>can also be an existing window or a composite view.
</p>
55 <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>
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>a point, or a rect. JITGuis know their minimum size (
<b>minSize),
<span class=
"Apple-converted-space"> </span></b></p>
57 <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>
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 bounds is a point or rect, it will be set to at least minSize.
</p>
59 <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>
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>If a point,shown size is the maximum of bounds and minSize
<span class=
"Apple-converted-space"> </span></p>
61 <p class=
"p9"><br></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>/////
<b>Not Done Yet, but on the list:
<span class=
"Apple-converted-space"> </span></b></p>
63 <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>
64 <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>
65 <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>
66 <p class=
"p9"><br></p>
67 <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>
68 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></p>
69 <p class=
"p10"><b>Examples
</b></p>
70 <p class=
"p3"><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>
71 <p class=
"p11"><span class=
"Apple-tab-span"> </span>(
</p>
72 <p class=
"p11"><span class=
"Apple-tab-span"> </span><span class=
"s8">Tdef
</span>(
<span class=
"s9">\a
</span>, {
<span class=
"s8">|e|
</span> 100.do {
<span class=
"s8">|i|
</span> i.postln;
0.5.wait } });
</p>
73 <p class=
"p11"><span class=
"Apple-tab-span"> </span><span class=
"s8">Tdef
</span>(
<span class=
"s9">\b
</span>,
<span class=
"Apple-converted-space"> </span>{
<span class=
"s8">|e|
</span> 100.do {
<span class=
"s8">|i|
</span> <span class=
"s8">Tdef
</span>(
<span class=
"s9">\a
</span>).set(
<span class=
"s9">\otto
</span>,
8.rand); exprand(
0.1,
3.0).wait } });
</p>
74 <p class=
"p12"><span class=
"s4"><span class=
"Apple-tab-span"> </span>t =
</span>TdefAllGui
<span class=
"s4">(
8);
</span></p>
75 <p class=
"p11"><span class=
"s8"><span class=
"Apple-tab-span"> </span></span>)
</p>
76 <p class=
"p2"><span class=
"Apple-tab-span"> </span></p>
77 <p class=
"p13"><span class=
"s4"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></span>// if you have too many Tdefs, an ezscroller lets you select
</p>
78 <p class=
"p11"><span class=
"s10"><span class=
"Apple-tab-span"> </span></span><span class=
"s11">"abcdefghijk"</span>.do {
<span class=
"s8">|ch|
</span> <span class=
"s8">Tdef
</span>(ch.asSymbol) };
</p>
79 <p class=
"p2"><span class=
"Apple-tab-span"> </span></p>
80 <p class=
"p13"><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>
81 <p class=
"p14"><span class=
"s10"><span class=
"Apple-tab-span"> </span></span><span class=
"s8">Tdef
</span><span class=
"s4">(
</span>\a_otti
<span class=
"s4">);
</span></p>
82 <p class=
"p14"><span class=
"Apple-tab-span"> </span><span class=
"s8">Tdef
</span><span class=
"s4">(
</span>\a_hannerl
<span class=
"s4">);
</span></p>
83 <p class=
"p14"><span class=
"Apple-tab-span"> </span><span class=
"s8">Tdef
</span><span class=
"s4">(
</span>\a_dede
<span class=
"s4">);
</span></p>
84 <p class=
"p15"><span class=
"Apple-tab-span"> </span></p>
85 <p class=
"p13"><span class=
"s4"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></span>// or better from gui
</p>
86 <p class=
"p11"><span class=
"s10"><span class=
"Apple-tab-span"> </span></span>t.filtering_(
<span class=
"s8">true
</span>);
</p>
87 <p class=
"p11"><span class=
"Apple-tab-span"> </span>t.prefix_(
<span class=
"s11">"a_"</span>);
</p>
88 <p class=
"p2"><span class=
"Apple-tab-span"> </span></p>
89 <p class=
"p13"><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>
90 <p class=
"p11"><span class=
"s10"><span class=
"Apple-tab-span"> </span></span>t.prefix_(
<span class=
"s11">""</span>);
</p>
91 <p class=
"p11"><span class=
"Apple-tab-span"> </span>t.filtering_(
<span class=
"s8">false
</span>);
</p>
92 <p class=
"p2"><span class=
"Apple-tab-span"> </span></p>