author | Claus Gittinger <cg@exept.de> |
Tue, 08 Apr 2014 18:30:47 +0200 | |
changeset 3102 | 41fb8ae89eac |
parent 3079 | 25a38a666be1 |
child 3104 | 59230707e466 |
permissions | -rw-r--r-- |
2748 | 1 |
" |
2 |
COPYRIGHT (c) 2007 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
2177 | 12 |
"{ Package: 'stx:libtool2' }" |
13 |
||
14 |
"{ NameSpace: Tools }" |
|
15 |
||
2744 | 16 |
ToolApplicationModel subclass:#ViewTreeInspectorApplication |
2177 | 17 |
instanceVariableNames:'model treeView hasSingleSelectionHolder clickedItem clickedPoint |
2770 | 18 |
motionAction process followFocusChannel showNamesHolder |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
19 |
inspectorView inspectorModeIndexHolder' |
2177 | 20 |
classVariableNames:'' |
21 |
poolDictionaries:'' |
|
2744 | 22 |
category:'Interface-Smalltalk' |
2177 | 23 |
! |
24 |
||
25 |
Object subclass:#MenuDesc |
|
26 |
instanceVariableNames:'title value action' |
|
27 |
classVariableNames:'' |
|
28 |
poolDictionaries:'' |
|
2744 | 29 |
privateIn:ViewTreeInspectorApplication |
30 |
! |
|
31 |
||
32 |
HierarchicalItem subclass:#ViewTreeItem |
|
33 |
instanceVariableNames:'widget isDrawnShown exists xOffsetAdditionalName' |
|
34 |
classVariableNames:'HandleExtent' |
|
35 |
poolDictionaries:'' |
|
36 |
privateIn:ViewTreeInspectorApplication |
|
2177 | 37 |
! |
38 |
||
2744 | 39 |
ValueModel subclass:#ViewTreeModel |
40 |
instanceVariableNames:'lockSema selectedSuperItems selection hiddenLevel listOfItems |
|
41 |
inputEventAction mappedViewAction beforeSelectionChangedAction |
|
42 |
icons timedUpdateTask selectOnClickHolder testModeChannel |
|
2978
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
43 |
hasTargetWidgetChannel catchEvents' |
2744 | 44 |
classVariableNames:'' |
45 |
poolDictionaries:'' |
|
46 |
privateIn:ViewTreeInspectorApplication |
|
47 |
! |
|
48 |
||
49 |
HierarchicalList subclass:#ItemList |
|
50 |
instanceVariableNames:'treeModel eventHook eventHookInitialized showWidgetNames' |
|
51 |
classVariableNames:'' |
|
52 |
poolDictionaries:'' |
|
53 |
privateIn:ViewTreeInspectorApplication::ViewTreeModel |
|
54 |
! |
|
55 |
||
56 |
!ViewTreeInspectorApplication class methodsFor:'documentation'! |
|
2177 | 57 |
|
2748 | 58 |
copyright |
59 |
" |
|
60 |
COPYRIGHT (c) 2007 by eXept Software AG |
|
61 |
All Rights Reserved |
|
62 |
||
63 |
This software is furnished under a license and may be used |
|
64 |
only in accordance with the terms of that license and with the |
|
65 |
inclusion of the above copyright notice. This software may not |
|
66 |
be provided or otherwise made available to, or used by, any |
|
67 |
other person. No title to or ownership of the software is |
|
68 |
hereby transferred. |
|
69 |
" |
|
70 |
! |
|
71 |
||
2177 | 72 |
documentation |
73 |
" |
|
74 |
Small application showing a ViewTreeModel use. |
|
75 |
||
76 |
It displays a hierarchical list of a selected TopView and |
|
77 |
all its contained subViews. |
|
78 |
Useful to have a look at subcomponents - to see how views |
|
79 |
are structured. |
|
80 |
||
81 |
||
82 |
[Instance variables:] |
|
83 |
model <ViewTreeModel> the used ViewTreeModel |
|
84 |
clickedItem <ViewTreeItem> item under the clickedPoint (motion action) |
|
85 |
clickedPoint <Point> point where the motion action started from. |
|
86 |
motionAction <Action> (oneArg-) action called durring buttonMotion. |
|
87 |
||
88 |
||
89 |
[author:] |
|
90 |
Claus Atzkern |
|
91 |
||
92 |
[see also:] |
|
93 |
ViewTreeModel |
|
94 |
ViewTreeItem |
|
95 |
" |
|
96 |
! ! |
|
97 |
||
2744 | 98 |
!ViewTreeInspectorApplication class methodsFor:'initialization'! |
2177 | 99 |
|
100 |
initialize |
|
101 |
"add myself to the launcher menu |
|
102 |
" |
|
103 |
self installInLauncher. |
|
104 |
! |
|
105 |
||
106 |
installInLauncher |
|
2744 | 107 |
"add myself to the launcher menu" |
108 |
||
2177 | 109 |
|menuItem icon| |
110 |
||
111 |
NewLauncher isNil ifTrue:[^ self]. |
|
2744 | 112 |
"/ cg - disabled. the icon is too ugly. |
113 |
^ self. |
|
2177 | 114 |
|
115 |
icon := ToolbarIconLibrary inspectLocals20x20Icon magnifiedTo:28@28. |
|
116 |
||
117 |
menuItem := MenuItem new |
|
2744 | 118 |
label: 'View Tree Inspector'; |
119 |
value: [ ViewTreeInspectorApplication open]; |
|
2177 | 120 |
isButton: true; |
121 |
icon: icon; |
|
122 |
nameKey: #viewInspect. |
|
123 |
||
124 |
menuItem startGroup:#right. |
|
125 |
NewLauncher addMenuItem:menuItem in:'toolbar' |
|
126 |
position:#( #before #help) |
|
127 |
space:false. |
|
128 |
||
129 |
" |
|
130 |
self installInLauncher |
|
131 |
self removeFromLauncher |
|
132 |
" |
|
133 |
! |
|
134 |
||
135 |
postAutoload |
|
136 |
"add myself to the launcher menu |
|
137 |
" |
|
138 |
self installInLauncher. |
|
139 |
" |
|
140 |
self installInLauncher |
|
141 |
self removeFromLauncher |
|
142 |
" |
|
143 |
! |
|
144 |
||
145 |
removeFromLauncher |
|
146 |
"remove myself from the launcher menu |
|
147 |
" |
|
148 |
NewLauncher isNil ifTrue:[^ self]. |
|
149 |
NewLauncher removeUserTool:#viewInspect |
|
150 |
||
151 |
" |
|
152 |
self installInLauncher |
|
153 |
self removeFromLauncher |
|
154 |
" |
|
155 |
! |
|
156 |
||
157 |
unload |
|
158 |
"class is about to be unloaded - remove myself from the launcher menu |
|
159 |
" |
|
160 |
self removeFromLauncher. |
|
161 |
super unload. |
|
162 |
! ! |
|
163 |
||
3070
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
164 |
!ViewTreeInspectorApplication class methodsFor:'help specs'! |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
165 |
|
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
166 |
flyByHelpSpec |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
167 |
<resource: #help> |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
168 |
|
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
169 |
^super flyByHelpSpec addPairsFrom:#( |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
170 |
|
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
171 |
#doUncatchEvents |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
172 |
'Release Picked View and Uncatch Events (Currently Locked)' |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
173 |
|
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
174 |
#doCatchEvents |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
175 |
'Release Picked View and Uncatch Events (Currently Unlocked)' |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
176 |
|
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
177 |
) |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
178 |
! ! |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
179 |
|
2744 | 180 |
!ViewTreeInspectorApplication class methodsFor:'image specs'! |
181 |
||
2759 | 182 |
crossHairIcon |
183 |
"This resource specification was automatically generated |
|
184 |
by the ImageEditor of ST/X." |
|
185 |
||
186 |
"Do not manually edit this!! If it is corrupted, |
|
187 |
the ImageEditor may not be able to read the specification." |
|
188 |
||
189 |
" |
|
190 |
self crossHairIcon inspect |
|
191 |
ImageEditor openOnClass:self andSelector:#crossHairIcon |
|
192 |
Icon flushCachedIcons |
|
193 |
" |
|
194 |
||
195 |
<resource: #image> |
|
196 |
||
197 |
^Icon |
|
198 |
constantNamed:'Tools::ViewTreeInspectorApplication class crossHairIcon' |
|
199 |
ifAbsentPut:[(Depth1Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@F0@@XL@@>>@A8O@A>?@B,Z B(J @@@@B(J B,Z A>?@A8O@@>>@@XL@@F0@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[255 255 255 0 0 0]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@G0@@_<@@?>@A??@C?? C?? G??0G<_0G<_0G<_0G??0C?? C?? A??@@?>@@_<@@G0@@@@@@@@@@@@@@@@@') ; yourself); yourself] |
|
200 |
! |
|
201 |
||
3070
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
202 |
lockViewIcon |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
203 |
"This resource specification was automatically generated |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
204 |
by the ImageEditor of ST/X." |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
205 |
|
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
206 |
"Do not manually edit this!! If it is corrupted, |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
207 |
the ImageEditor may not be able to read the specification." |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
208 |
|
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
209 |
" |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
210 |
self lockViewIcon inspect |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
211 |
ImageEditor openOnClass:self andSelector:#lockViewIcon |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
212 |
Icon flushCachedIcons |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
213 |
" |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
214 |
|
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
215 |
<resource: #image> |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
216 |
|
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
217 |
^Icon |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
218 |
constantNamed:'Tools::ViewTreeInspectorApplication lockViewIcon' |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
219 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
220 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
221 |
@@@@@@@@@@@@@@A8^G!!7O3ACP5*P@@A8^G @@@@@@@@@@@A8^@@@OE0/!!P0S#0@@^G @@@@@@@@@@@B (@D''D#48"1.CX5H@(J@@@@@@@@@@@@B (B(>SAT" |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
222 |
''%!!/P7,@(J@@@@@@@@@@@@@%IB0#M"H%IRTQV5P@IRT@@@@@@@@@@@ANSX:U]PANS$8:T80@S$8@@@@@@@@@@@AN&UYWK(EYQ@\FUPQHXT8@@@@@@@@@@@AN |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
223 |
HC2!!TVY:Y#-%I*IKMD8@@@@@@@@@@@A$\@83XBEG%).GGX _!!&P@@@@@@@@@@@AO[P5+ &(WPYN@["!!E\$<@@@@@@@@@@@B_F''FQPAXX_!!&TGH4HB9<@@@@@ |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
224 |
@@@@@@B_%3HCJ7=BKPU,Q)01B9<@@@@@@@@@@@@PBP8T_F!!''JPI)_Y"D&!!@@@@@@@@@@@@@$B)I9TGXO''WQIWQ93W0@@@@@@@@@@@@@$"U=JR$)JR$)JR$)_ |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
225 |
"P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
226 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[132 141 152 147 150 154 250 223 1 246 214 0 205 172 133 238 195 0 213 180 146 217 186 150 188 136 0 206 151 0 183 125 9 208 208 202 196 204 214 255 255 210 255 255 219 210 178 65 242 242 235 106 112 117 96 107 126 250 255 255 255 241 0 154 154 151 255 227 0 67 35 0 52 17 0 253 211 0 208 159 0 167 178 193 222 168 0 248 231 45 208 174 26 199 152 26 225 184 36 255 249 75 220 220 215 77 88 108 241 241 235 245 245 239 255 250 109 242 249 255 255 255 142 255 237 1 142 148 162 242 212 1 143 154 176 174 133 0 222 189 144 169 179 192 177 184 193 184 129 0 255 255 194 253 241 60 210 210 205 214 214 209 77 83 92 230 230 225 98 106 114 243 243 238 117 117 114 255 252 115 255 255 255 115 123 147 130 140 156 152 156 159 241 210 0 53 18 0 151 116 0 162 170 184 218 187 150 193 143 4 220 165 0 206 188 46 181 130 21 204 173 44 206 206 201 208 167 44 72 84 108 240 240 234 244 244 238 243 243 237 212 182 79 255 255 126 131 135 141 119 133 159 132 141 163 195 162 126 219 188 133 218 185 135 180 180 176 221 190 150 175 181 191 176 183 196 181 189 201 202 170 38 209 209 204 207 207 202 251 241 74 229 229 224 238 238 233 226 234 245 244 244 237 255 251 113 255 255 124 255 241 2 255 234 3 249 219 0 255 249 29 252 243 30 227 181 0 212 165 5 222 170 0 173 179 194 216 171 19 255 255 198 208 208 203 156 90 7 206 175 50 91 91 95 211 180 71 242 242 237 246 246 241 212 182 80 255 255 123 129 137 152 255 239 8 251 223 0 59 25 0 251 215 0 228 183 0 222 191 149 249 238 43 177 186 197 187 129 0 186 194 206 209 209 203 249 238 67 255 255 211 226 226 221 235 235 229 100 103 111 76 93 127 255 255 112 88 104 139 130 135 148 149 155 158 247 218 0 224 194 126 255 217 0 228 184 0 13 30 68 161 138 32 204 152 0 255 255 53 206 155 18 207 207 201 255 250 72 255 255 82 209 176 59 232 232 227 243 243 236 245 245 240 255 255 115 255 255 251]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@G8@@O<@@_>@@^^@@\N@@\N@@?? @?? @?? @?? @?? @?? @?? @?? @_?@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself] |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
227 |
! |
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
228 |
|
2744 | 229 |
pickWindowIcon |
230 |
"This resource specification was automatically generated |
|
231 |
by the ImageEditor of ST/X." |
|
232 |
||
233 |
"Do not manually edit this!! If it is corrupted, |
|
234 |
the ImageEditor may not be able to read the specification." |
|
235 |
||
236 |
" |
|
237 |
self pickWindowIcon inspect |
|
238 |
ImageEditor openOnClass:self andSelector:#pickWindowIcon |
|
239 |
Icon flushCachedIcons |
|
240 |
" |
|
241 |
||
242 |
<resource: #image> |
|
243 |
||
244 |
^Icon |
|
245 |
constantNamed:'Tools::ViewTreeInspectorApplication class pickWindowIcon' |
|
246 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
247 |
,;N3,;N3,;N3,;N3,;N3,;N3,;N3,3H<P38;M3P,H2@^GA(VEQHQCP0KA D<[&-%XU=WST%BN#D!!GQ$TD@(IBP\BQF)+Z6E_U4-FPCX+G1,WEA@JBP$HAT23 |
|
248 |
,;N3,;N3,;N3,;N$():Z&IRR&1!!^,;N3,;N3,;N3,;N$)JJ^&)"T$),0W[N3,;N3,;N3,;N3,:R"'')*X%IJWK523,;N3,;N3,0@@@KN3)JJ^&)"T$"5Z,;N3 |
|
249 |
,;N3@@B3-KL@@JJ^&)"T$)D*V[N3,;N3@KN3-KR4)JH@&)"T$)*MJE"3,;N3,0B3)JJ4&*R"@I*X%IJZ#RYV,;N3,0B3@JR"-JR"-I(@%IJV%H %U[N3,;L@ |
|
250 |
-@B4-KR4-KR4@IRR%IJEIER3,;N3@KL@)JJ4():4&@BO#9RR!!RIS,;N3,;L@,:R"-JJ^& BT#8>O#8H"T+N3,;N3@KN$@@@@'')(@%H>O#(>AH%F3,;N3,;L@ |
|
251 |
@JR4'' @@%IJO#8>O RIO,;N3,;N3):P@@@BX%IJO#8>O#7<"S*63,;N$():Z&IRR&IRR#8>O#8=>H"&-,;N$():Z&IRR&)"T$(>O#8>O @<)R$!!GQTD?OS$8 |
|
252 |
MSL.I2H"H"H"H"HO,;N3,;N3,;N3,;N3,;N3,;N3,;N3,0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 0 50 164 0 50 171 0 137 0 0 206 0 1 50 177 2 56 178 3 64 241 3 67 246 3 73 255 4 74 255 5 63 191 7 66 194 10 71 196 10 79 255 12 59 167 12 82 255 14 77 199 18 83 201 19 88 255 21 91 255 23 89 204 27 95 206 28 97 255 29 72 179 30 100 255 32 101 209 36 106 255 36 107 211 39 109 255 41 113 214 45 115 255 45 119 216 48 118 255 50 87 176 50 125 219 51 88 176 51 88 177 52 89 178 52 90 178 53 90 178 53 127 212 54 91 179 54 123 255 54 131 221 55 92 180 55 95 181 56 93 180 56 94 181 57 127 255 57 149 229 58 99 184 58 137 224 61 104 187 63 132 255 63 143 226 64 108 190 66 113 193 66 135 255 67 149 229 68 157 232 69 117 196 71 155 231 72 122 199 72 141 255 75 126 202 75 144 255 75 160 234 77 163 236 78 131 206 80 149 255 81 136 209 84 140 212 84 153 255 87 145 215 88 157 255 91 168 235 93 161 255 94 154 222 96 157 223 96 165 255 97 159 225 98 160 225 98 162 226 99 163 227 100 165 228 101 166 229 101 170 255 102 167 230 103 169 231 104 170 232 104 173 255 105 172 233 105 174 234 106 175 235 109 178 255 112 180 255 117 186 255 119 187 255 122 154 245 125 160 253 125 193 255 126 161 253 126 194 255 127 162 254 130 165 254 132 200 255 132 201 255 133 60 36 135 170 255 139 207 255 140 175 255 144 179 255 149 184 255 153 188 255 157 192 255 162 196 255 166 200 255 170 204 255 174 208 255 174 218 230 177 212 255 181 215 255 185 219 255 188 222 255 191 225 255 212 211 224 218 217 230 219 219 230 220 220 231 222 221 232 223 223 233 225 224 234 225 225 234 226 226 237 227 226 235 227 227 236 227 227 238 228 228 237 229 229 239 231 230 238 231 231 238 231 231 240 232 232 241 233 232 239 233 233 240 234 234 242 235 234 241 236 236 243 237 236 242 237 237 244 238 237 243 238 238 244 239 238 243 239 239 245 240 239 244 241 240 245 241 241 246 241 241 247 242 242 246 242 242 247 243 243 247 243 243 248 244 244 248 244 244 249 245 244 247 246 246 249 246 246 250 247 246 249 247 247 250 248 248 251 249 249 250 249 249 251 250 250 251 250 250 252 251 251 252 251 251 253 253 253 254 254 254 255 255 255 255 0 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@C????????????????????????????????????????????????????????????????????????????????@@@C') ; yourself); yourself] |
|
2759 | 253 |
! |
254 |
||
255 |
pickWindowIcon2 |
|
256 |
"This resource specification was automatically generated |
|
257 |
by the ImageEditor of ST/X." |
|
258 |
||
259 |
"Do not manually edit this!! If it is corrupted, |
|
260 |
the ImageEditor may not be able to read the specification." |
|
261 |
||
262 |
" |
|
263 |
self pickWindowIcon2 inspect |
|
264 |
ImageEditor openOnClass:self andSelector:#pickWindowIcon2 |
|
265 |
Icon flushCachedIcons |
|
266 |
" |
|
267 |
||
268 |
<resource: #image> |
|
269 |
||
270 |
^Icon |
|
271 |
constantNamed:'Tools::ViewTreeInspectorApplication class pickWindowIcon2' |
|
272 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 23; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
273 |
@CH<O#,7MB0#HA8\F!!XUD!!DMC@,F@P@<[&U!!W5]MRTH:LRD]FQPPB $IA0H@QF)+XU=WR4Y@M",_F1\TD@(IBP E@D23,;N3,;N3,;N3,;N"'')*X%IJ[F@A^ |
|
274 |
,;N3,;N3,0@@@@@@():Z&IRR&3@@W+N3,;N3@@B3,0B3)@@@&)"T$),0@E63,;N3@KN3@@@@@@B"'' BX%IJWK0A\,;N3@KN3,;N3@JR"'')*X@IRR&24@V+N3 |
|
275 |
@KN3,;L@@@@@@I:Z&IP@$),*@E&3,0B3,;N3,:P@():Z&IRT@IJ[J@AX,0B3@KL@,;L@@@B^& BT@IP@&2X@U+L@,0B3@KL@)JJ^@I @%@BT@I,%@EV3@@@@ |
|
276 |
@@@@@JR"'' @@@@@@@@B[I@AT,0B3@KL@)@B$()8@&@BZ@IP@&2H@T;L@,0B3@JR$@@@@%I @& BT@I,"@EJ3,0B3,:R$)I8@&IRX%I*X@IJ[H AQ,;L@,:R$ |
|
277 |
)@@@@@@@&IRO#0BO RH@S;N3,0B$)JR"'' BX%I"T#0BO#7<"@D:-,;N$@JR$@@@@@@BR#0BO#8=>H AN+[N$)JH@@I"T@I"T@@BO#8>O_"H@JZ63)JJ^&) @ |
|
278 |
@@@@@IJO#8>O#8@O@B&3,;N3,;N3,;N3,;N"'')*X%IJ[C0@)R$]EPS<=NS 5L28''H"H"H"H"H <b') ; colorMapFromArray:#[0 0 0 0 50 164 0 50 171 0 137 0 0 206 0 1 50 177 2 56 178 3 64 241 3 67 246 3 73 255 4 74 255 5 63 191 7 66 194 10 71 196 10 79 255 12 59 167 12 82 255 14 77 199 18 83 201 19 88 255 21 91 255 23 89 204 27 95 206 28 97 255 29 72 179 30 100 255 32 101 209 36 106 255 36 107 211 39 109 255 41 113 214 45 115 255 45 119 216 48 118 255 50 87 176 50 125 219 51 88 176 51 88 177 52 89 178 52 90 178 53 90 178 53 127 212 54 91 179 54 123 255 54 131 221 55 92 180 55 95 181 56 93 180 56 94 181 57 127 255 57 149 229 58 99 184 58 137 224 61 104 187 63 132 255 63 143 226 64 108 190 66 113 193 66 135 255 67 149 229 68 157 232 69 117 196 71 155 231 72 122 199 72 141 255 75 126 202 75 144 255 75 160 234 77 163 236 78 131 206 80 149 255 81 136 209 84 140 212 84 153 255 87 145 215 88 157 255 91 168 235 93 161 255 94 154 222 96 157 223 96 165 255 97 159 225 98 160 225 98 162 226 99 163 227 100 165 228 101 166 229 101 170 255 102 167 230 103 169 231 104 170 232 104 173 255 105 172 233 105 174 234 106 175 235 109 178 255 112 180 255 117 186 255 119 187 255 122 154 245 125 160 253 125 193 255 126 161 253 126 194 255 127 162 254 130 165 254 132 200 255 132 201 255 133 60 36 135 170 255 139 207 255 140 175 255 144 179 255 149 184 255 153 188 255 157 192 255 162 196 255 166 200 255 170 204 255 174 208 255 174 218 230 177 212 255 181 215 255 185 219 255 188 222 255 191 225 255 212 211 224 218 217 230 219 219 230 220 220 231 222 221 232 223 223 233 225 224 234 225 225 234 226 226 237 227 226 235 227 227 236 227 227 238 228 228 237 229 229 239 231 230 238 231 231 238 231 231 240 232 232 241 233 232 239 233 233 240 234 234 242 235 234 241 236 236 243 237 236 242 237 237 244 238 237 243 238 238 244 239 238 243 239 239 245 240 239 244 241 240 245 241 241 246 241 241 247 242 242 246 242 242 247 243 243 247 243 243 248 244 244 248 244 244 249 245 244 247 246 246 249 246 246 250 247 246 249 247 247 250 248 248 251 249 249 250 249 249 251 250 250 251 250 250 252 251 251 252 251 251 253 253 253 254 254 254 255 255 255 255]; mask:((Depth1Image new) width: 22; height: 23; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<_??<') ; yourself); yourself] |
|
3000
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
279 |
! |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
280 |
|
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
281 |
releaseViewIcon |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
282 |
"This resource specification was automatically generated |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
283 |
by the ImageEditor of ST/X." |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
284 |
|
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
285 |
"Do not manually edit this!! If it is corrupted, |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
286 |
the ImageEditor may not be able to read the specification." |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
287 |
|
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
288 |
" |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
289 |
self releaseViewIcon inspect |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
290 |
ImageEditor openOnClass:self andSelector:#releaseViewIcon |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
291 |
Icon flushCachedIcons |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
292 |
" |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
293 |
<resource: #image> |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
294 |
|
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
295 |
^Icon |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
296 |
constantNamed:'Tools::ViewTreeInspectorApplication releaseViewIcon' |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
297 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
298 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
299 |
@@@@@@@@@@@@@@A8^G!!7O3ACP5*P@@A8^G @@@@@@@@@@@A8^@@@OE0/!!P0S#0@@^G @@@@@@@@@@@B (@@''D#48"1.CX5H@(J@@@@@@@@@@@@B (@@@@@@" |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
300 |
''%!!/P7,@(J@@@@@@@@@@@@@%I@@@@BH%IRTQV5P@IRT@@@@@@@@@@@ANSP@@@@ANS$8:T80@S$8@@@@@@@@@@@AN&UYWK(EYQ@\FUPQHXT8@@@@@@@@@@@AN |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
301 |
HC2!!TVY:Y#-%I*IKMD8@@@@@@@@@@@A$\@83XBEG%).GGX _!!&P@@@@@@@@@@@AO[P5+ &(WPYN@["!!E\$<@@@@@@@@@@@B_F''FQPAXX_!!&TGH4HB9<@@@@@ |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
302 |
@@@@@@B_%3HCJ7=BKPU,Q)01B9<@@@@@@@@@@@@PBP8T_F!!''JPI)_Y"D&!!@@@@@@@@@@@@@$B)I9TGXO''WQIWQ93W0@@@@@@@@@@@@@$"U=JR$)JR$)JR$)_ |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
303 |
"P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
7b530cc76688
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2978
diff
changeset
|
304 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[132 141 152 147 150 154 250 223 1 246 214 0 205 172 133 238 195 0 213 180 146 217 186 150 188 136 0 206 151 0 183 125 9 208 208 202 196 204 214 255 255 210 255 255 219 210 178 65 242 242 235 106 112 117 96 107 126 250 255 255 255 241 0 154 154 151 255 227 0 67 35 0 52 17 0 253 211 0 208 159 0 167 178 193 222 168 0 248 231 45 208 174 26 199 152 26 225 184 36 255 249 75 220 220 215 77 88 108 241 241 235 245 245 239 255 250 109 242 249 255 255 255 142 255 237 1 142 148 162 242 212 1 143 154 176 174 133 0 222 189 144 169 179 192 177 184 193 184 129 0 255 255 194 253 241 60 210 210 205 214 214 209 77 83 92 230 230 225 98 106 114 243 243 238 117 117 114 255 252 115 255 255 255 115 123 147 130 140 156 152 156 159 241 210 0 53 18 0 151 116 0 162 170 184 218 187 150 193 143 4 220 165 0 206 188 46 181 130 21 204 173 44 206 206 201 208 167 44 72 84 108 240 240 234 244 244 238 243 243 237 212 182 79 255 255 126 131 135 141 119 133 159 132 141 163 195 162 126 219 188 133 218 185 135 180 180 176 221 190 150 175 181 191 176 183 196 181 189 201 202 170 38 209 209 204 207 207 202 251 241 74 229 229 224 238 238 233 226 234 245 244 244 237 255 251 113 255 255 124 255 241 2 255 234 3 249 219 0 255 249 29 252 243 30 227 181 0 212 165 5 222 170 0 173 179 194 216 171 19 255 255 198 208 208 203 156 90 7 206 175 50 91 91 95 211 180 71 242 242 237 246 246 241 212 182 80 255 255 123 129 137 152 255 239 8 251 223 0 59 25 0 251 215 0 228 183 0 222 191 149 249 238 43 177 186 197 187 129 0 186 194 206 209 209 203 249 238 67 255 255 211 226 226 221 235 235 229 100 103 111 76 93 127 255 255 112 88 104 139 130 135 148 149 155 158 247 218 0 224 194 126 255 217 0 228 184 0 13 30 68 161 138 32 204 152 0 255 255 53 206 155 18 207 207 201 255 250 72 255 255 82 209 176 59 232 232 227 243 243 236 245 245 240 255 255 115 255 255 251]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@G8@@O<@@O>@@@^@@@N@@@N@@?? @?? @?? @?? @?? @?? @?? @?? @_?@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself] |
2744 | 305 |
! ! |
306 |
||
307 |
!ViewTreeInspectorApplication class methodsFor:'interface specs'! |
|
2177 | 308 |
|
309 |
windowSpec |
|
310 |
"This resource specification was automatically generated |
|
311 |
by the UIPainter of ST/X." |
|
312 |
||
313 |
"Do not manually edit this!! If it is corrupted, |
|
314 |
the UIPainter may not be able to read the specification." |
|
315 |
||
316 |
" |
|
2757 | 317 |
UIPainter new openOnClass:Tools::ViewTreeInspectorApplication andSelector:#windowSpec |
318 |
Tools::ViewTreeInspectorApplication new openInterface:#windowSpec |
|
319 |
Tools::ViewTreeInspectorApplication open |
|
2177 | 320 |
" |
321 |
||
322 |
<resource: #canvas> |
|
323 |
||
324 |
^ |
|
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
325 |
#(FullSpec |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
326 |
name: windowSpec |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
327 |
window: |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
328 |
(WindowSpec |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
329 |
label: 'View Tree Inspector' |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
330 |
name: 'View Tree Inspector' |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
331 |
min: (Point 10 10) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
332 |
max: (Point 1024 9999) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
333 |
bounds: (Rectangle 0 0 381 654) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
334 |
menu: menu |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
335 |
) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
336 |
component: |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
337 |
(SpecCollection |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
338 |
collection: ( |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
339 |
(MenuPanelSpec |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
340 |
name: 'toolbarMenu' |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
341 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
342 |
menu: toolbarMenu |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
343 |
textDefault: true |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
344 |
) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
345 |
(VariableVerticalPanelSpec |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
346 |
name: 'VariableVerticalPanel1' |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
347 |
layout: (LayoutFrame 0 0.0 40 0.0 0 1.0 0 1.0) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
348 |
component: |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
349 |
(SpecCollection |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
350 |
collection: ( |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
351 |
(HierarchicalListViewSpec |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
352 |
name: 'List' |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
353 |
level: 1 |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
354 |
model: model |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
355 |
menu: middleButtonMenu |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
356 |
hasHorizontalScrollBar: true |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
357 |
hasVerticalScrollBar: true |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
358 |
miniScrollerHorizontal: true |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
359 |
miniScrollerVertical: false |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
360 |
listModel: listOfItems |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
361 |
multipleSelectOk: true |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
362 |
useIndex: false |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
363 |
highlightMode: label |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
364 |
showLeftIndicators: false |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
365 |
indicatorSelector: indicatorClicked: |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
366 |
useDefaultIcons: false |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
367 |
postBuildCallback: postBuildTree: |
2770 | 368 |
) |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
369 |
(ViewSpec |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
370 |
name: 'Box2' |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
371 |
component: |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
372 |
(SpecCollection |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
373 |
collection: ( |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
374 |
(TabViewSpec |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
375 |
name: 'TabHeader1' |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
376 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 25 0) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
377 |
model: inspectorModeIndexHolder |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
378 |
menu: inspectorModes |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
379 |
useIndex: true |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
380 |
translateLabel: true |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
381 |
) |
3049
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
382 |
(ViewSpec |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
383 |
name: 'Inspector' |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
384 |
layout: (LayoutFrame 0 0 26 0 0 1 0 1) |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
385 |
viewClassName: 'InspectorView' |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
386 |
postBuildCallback: postBuildInspectorView: |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
387 |
) |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
388 |
) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
389 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
390 |
) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
391 |
) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
392 |
) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
393 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
394 |
) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
395 |
handles: (Any 0.5 1.0) |
2177 | 396 |
) |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
397 |
) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
398 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
399 |
) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
400 |
) |
2177 | 401 |
! ! |
402 |
||
2744 | 403 |
!ViewTreeInspectorApplication class methodsFor:'menu specs'! |
2177 | 404 |
|
405 |
menu |
|
406 |
"This resource specification was automatically generated |
|
407 |
by the MenuEditor of ST/X." |
|
408 |
||
409 |
"Do not manually edit this!! If it is corrupted, |
|
410 |
the MenuEditor may not be able to read the specification." |
|
411 |
||
2978
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
412 |
|
2177 | 413 |
" |
2978
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
414 |
MenuEditor new openOnClass:Tools::ViewTreeInspectorApplication andSelector:#menu |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
415 |
(Menu new fromLiteralArrayEncoding:(Tools::ViewTreeInspectorApplication menu)) startUp |
2177 | 416 |
" |
417 |
||
418 |
<resource: #menu> |
|
419 |
||
420 |
^ |
|
421 |
#(Menu |
|
422 |
( |
|
423 |
(MenuItem |
|
424 |
label: 'File' |
|
425 |
submenu: |
|
426 |
(Menu |
|
427 |
( |
|
428 |
(MenuItem |
|
429 |
label: 'Pick a View' |
|
2762 | 430 |
itemValue: doPickView |
2177 | 431 |
) |
432 |
(MenuItem |
|
2455 | 433 |
enabled: hasTargetWidgetChannel |
2177 | 434 |
label: 'Release Picked View' |
435 |
itemValue: doUnpick |
|
436 |
) |
|
437 |
(MenuItem |
|
438 |
label: '-' |
|
439 |
) |
|
440 |
(MenuItem |
|
2744 | 441 |
label: 'Settings' |
442 |
submenu: |
|
443 |
(Menu |
|
444 |
( |
|
445 |
(MenuItem |
|
446 |
label: 'Test Mode' |
|
447 |
hideMenuOnActivated: false |
|
448 |
indication: testModeChannel |
|
449 |
) |
|
450 |
(MenuItem |
|
451 |
enabled: testModeChannel |
|
452 |
label: 'Follow Focus' |
|
453 |
hideMenuOnActivated: false |
|
454 |
indication: followFocusChannel |
|
455 |
) |
|
456 |
(MenuItem |
|
457 |
label: '-' |
|
458 |
) |
|
459 |
(MenuItem |
|
460 |
label: 'Select on Click' |
|
461 |
hideMenuOnActivated: false |
|
462 |
indication: selectOnClickHolder |
|
463 |
) |
|
464 |
(MenuItem |
|
465 |
label: '-' |
|
466 |
) |
|
467 |
(MenuItem |
|
468 |
label: 'Show Name of Widgets' |
|
469 |
hideMenuOnActivated: false |
|
470 |
indication: showNamesHolder |
|
471 |
) |
|
472 |
) |
|
473 |
nil |
|
474 |
nil |
|
475 |
) |
|
476 |
) |
|
477 |
(MenuItem |
|
478 |
label: '-' |
|
479 |
) |
|
480 |
(MenuItem |
|
2177 | 481 |
label: 'Exit' |
482 |
itemValue: closeRequest |
|
483 |
) |
|
484 |
) |
|
485 |
nil |
|
486 |
nil |
|
487 |
) |
|
488 |
) |
|
489 |
(MenuItem |
|
2744 | 490 |
enabled: hasSingleSelectionHolder |
491 |
label: 'Selection' |
|
492 |
submenuChannel: middleButtonMenu |
|
493 |
) |
|
494 |
(MenuItem |
|
3034
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
495 |
label: 'Widget' |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
496 |
submenu: |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
497 |
(Menu |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
498 |
( |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
499 |
(MenuItem |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
500 |
enabled: hasSingleSelectionHolder |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
501 |
label: 'Browse' |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
502 |
itemValue: doBrowse: |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
503 |
argument: view |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
504 |
) |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
505 |
(MenuItem |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
506 |
enabled: hasSingleSelectionHolder |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
507 |
label: 'Inspect' |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
508 |
itemValue: doInspect: |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
509 |
argument: view |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
510 |
) |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
511 |
(MenuItem |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
512 |
label: '-' |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
513 |
) |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
514 |
(MenuItem |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
515 |
enabled: hasTargetWidgetChannel |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
516 |
label: 'All Components' |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
517 |
startGroup: right |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
518 |
submenuChannel: submenuComponents: |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
519 |
) |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
520 |
) |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
521 |
nil |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
522 |
nil |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
523 |
) |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
524 |
) |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
525 |
(MenuItem |
2744 | 526 |
label: 'Application' |
2454 | 527 |
submenu: |
528 |
(Menu |
|
529 |
( |
|
530 |
(MenuItem |
|
2978
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
531 |
label: 'Redraw' |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
532 |
itemValue: doRedraw |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
533 |
) |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
534 |
(MenuItem |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
535 |
label: '-' |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
536 |
) |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
537 |
(MenuItem |
2744 | 538 |
enabled: hasSingleSelectionHolder |
539 |
label: 'Browse' |
|
540 |
itemValue: doBrowse: |
|
541 |
argument: application |
|
2454 | 542 |
) |
543 |
(MenuItem |
|
2744 | 544 |
enabled: hasSingleSelectionHolder |
545 |
label: 'Inspect' |
|
546 |
itemValue: doInspect: |
|
547 |
argument: application |
|
2454 | 548 |
) |
549 |
(MenuItem |
|
550 |
label: '-' |
|
551 |
) |
|
552 |
(MenuItem |
|
2744 | 553 |
enabled: hasTargetWidgetChannel |
554 |
label: 'All Applications' |
|
555 |
submenuChannel: submenuApplications: |
|
2454 | 556 |
) |
557 |
) |
|
558 |
nil |
|
559 |
nil |
|
560 |
) |
|
561 |
) |
|
562 |
(MenuItem |
|
3034
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
563 |
label: 'Process' |
2744 | 564 |
submenu: |
565 |
(Menu |
|
566 |
( |
|
567 |
(MenuItem |
|
568 |
enabled: hasSingleSelectionHolder |
|
569 |
label: 'Inspect' |
|
570 |
itemValue: doInspect: |
|
3034
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
571 |
argument: process |
2744 | 572 |
) |
573 |
(MenuItem |
|
574 |
label: '-' |
|
575 |
) |
|
576 |
(MenuItem |
|
3034
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
577 |
label: 'Open Process Monitor' |
862cd32dc02f
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3017
diff
changeset
|
578 |
itemValue: doOpenProcessMonitor |
2744 | 579 |
) |
580 |
) |
|
581 |
nil |
|
582 |
nil |
|
583 |
) |
|
2177 | 584 |
) |
585 |
(MenuItem |
|
2744 | 586 |
label: 'Help' |
587 |
startGroup: conditionalRight |
|
588 |
submenu: |
|
589 |
(Menu |
|
590 |
( |
|
591 |
(MenuItem |
|
592 |
label: 'Documentation' |
|
593 |
itemValue: openDocumentation |
|
594 |
) |
|
595 |
(MenuItem |
|
596 |
label: '-' |
|
597 |
) |
|
598 |
(MenuItem |
|
599 |
label: 'About this Application...' |
|
600 |
itemValue: openAboutThisApplication |
|
601 |
) |
|
602 |
) |
|
603 |
nil |
|
604 |
nil |
|
605 |
) |
|
2177 | 606 |
) |
607 |
) |
|
608 |
nil |
|
609 |
nil |
|
610 |
) |
|
611 |
! |
|
612 |
||
613 |
middleButtonMenu |
|
614 |
"This resource specification was automatically generated |
|
615 |
by the MenuEditor of ST/X." |
|
616 |
||
617 |
"Do not manually edit this!! If it is corrupted, |
|
618 |
the MenuEditor may not be able to read the specification." |
|
619 |
||
620 |
" |
|
621 |
MenuEditor new openOnClass:ViewTreeApplication andSelector:#middleButtonMenu |
|
622 |
(Menu new fromLiteralArrayEncoding:(ViewTreeApplication middleButtonMenu)) startUp |
|
623 |
" |
|
624 |
||
625 |
<resource: #menu> |
|
626 |
||
627 |
^ |
|
628 |
#(Menu |
|
629 |
( |
|
630 |
(MenuItem |
|
631 |
label: 'Geometry' |
|
632 |
translateLabel: true |
|
633 |
submenuChannel: submenuGeometry: |
|
634 |
keepLinkedMenu: true |
|
635 |
) |
|
636 |
(MenuItem |
|
637 |
label: 'Interface' |
|
638 |
translateLabel: true |
|
639 |
submenuChannel: submenuInterface: |
|
640 |
keepLinkedMenu: true |
|
641 |
) |
|
642 |
(MenuItem |
|
643 |
label: 'Visibility' |
|
644 |
translateLabel: true |
|
645 |
submenuChannel: submenuVisibility: |
|
646 |
keepLinkedMenu: true |
|
647 |
) |
|
648 |
(MenuItem |
|
649 |
label: '-' |
|
650 |
) |
|
651 |
(MenuItem |
|
652 |
label: 'Browse View Class' |
|
653 |
itemValue: doBrowse: |
|
654 |
translateLabel: true |
|
655 |
argument: view |
|
656 |
) |
|
657 |
(MenuItem |
|
658 |
label: 'Browse Model Class' |
|
659 |
itemValue: doBrowse: |
|
660 |
translateLabel: true |
|
661 |
isVisible: hasModel |
|
662 |
argument: model |
|
663 |
) |
|
664 |
(MenuItem |
|
665 |
label: 'Browse Application Class' |
|
666 |
itemValue: doBrowse: |
|
667 |
translateLabel: true |
|
668 |
isVisible: hasApplication |
|
669 |
argument: application |
|
670 |
) |
|
671 |
(MenuItem |
|
672 |
label: 'Browse Controller Class' |
|
673 |
itemValue: doBrowse: |
|
674 |
translateLabel: true |
|
675 |
isVisible: hasController |
|
676 |
argument: controller |
|
677 |
) |
|
678 |
(MenuItem |
|
679 |
label: '-' |
|
680 |
) |
|
681 |
(MenuItem |
|
682 |
label: 'Inspect View' |
|
683 |
itemValue: doInspect: |
|
684 |
translateLabel: true |
|
685 |
argument: view |
|
686 |
) |
|
687 |
(MenuItem |
|
688 |
label: 'Inspect Window Group' |
|
689 |
itemValue: doInspect: |
|
690 |
translateLabel: true |
|
691 |
argument: group |
|
692 |
) |
|
693 |
(MenuItem |
|
694 |
label: 'Inspect Model' |
|
695 |
itemValue: doInspect: |
|
696 |
translateLabel: true |
|
697 |
isVisible: hasModel |
|
698 |
argument: model |
|
699 |
) |
|
700 |
(MenuItem |
|
701 |
label: 'Inspect Application' |
|
702 |
itemValue: doInspect: |
|
703 |
translateLabel: true |
|
704 |
isVisible: hasApplication |
|
705 |
argument: application |
|
706 |
) |
|
707 |
(MenuItem |
|
708 |
label: 'Inspect Controller' |
|
709 |
itemValue: doInspect: |
|
710 |
translateLabel: true |
|
711 |
isVisible: hasController |
|
712 |
argument: controller |
|
713 |
) |
|
714 |
(MenuItem |
|
715 |
label: '-' |
|
716 |
) |
|
717 |
(MenuItem |
|
718 |
label: 'Flash' |
|
719 |
itemValue: doFlash |
|
720 |
translateLabel: true |
|
721 |
) |
|
722 |
(MenuItem |
|
723 |
label: '-' |
|
724 |
) |
|
725 |
(MenuItem |
|
726 |
label: 'Destroy' |
|
727 |
itemValue: doDestroy |
|
728 |
translateLabel: true |
|
729 |
) |
|
730 |
(MenuItem |
|
731 |
label: '-' |
|
732 |
) |
|
733 |
(MenuItem |
|
734 |
label: 'Instance Variables' |
|
735 |
translateLabel: true |
|
736 |
submenuChannel: submenuInspector: |
|
737 |
keepLinkedMenu: true |
|
738 |
) |
|
739 |
(MenuItem |
|
740 |
label: '=' |
|
741 |
) |
|
742 |
(MenuItem |
|
743 |
label: '' |
|
744 |
) |
|
745 |
(MenuItem |
|
746 |
enabled: selectedComponentHasChildren |
|
747 |
label: 'Applications' |
|
748 |
nameKey: single |
|
749 |
translateLabel: true |
|
750 |
submenuChannel: submenuApplications: |
|
751 |
keepLinkedMenu: true |
|
752 |
) |
|
753 |
(MenuItem |
|
754 |
enabled: selectedComponentHasChildren |
|
755 |
label: 'Components' |
|
756 |
nameKey: single |
|
757 |
translateLabel: true |
|
758 |
submenuChannel: submenuComponents: |
|
759 |
keepLinkedMenu: true |
|
760 |
) |
|
761 |
) |
|
762 |
nil |
|
763 |
nil |
|
764 |
) |
|
765 |
! |
|
766 |
||
767 |
toolbarMenu |
|
768 |
"This resource specification was automatically generated |
|
769 |
by the MenuEditor of ST/X." |
|
770 |
||
771 |
"Do not manually edit this!! If it is corrupted, |
|
772 |
the MenuEditor may not be able to read the specification." |
|
773 |
||
2978
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
774 |
|
2177 | 775 |
" |
2757 | 776 |
MenuEditor new openOnClass:Tools::ViewTreeInspectorApplication andSelector:#toolbarMenu |
777 |
(Menu new fromLiteralArrayEncoding:(Tools::ViewTreeInspectorApplication toolbarMenu)) startUp |
|
2177 | 778 |
" |
779 |
||
780 |
<resource: #menu> |
|
781 |
||
782 |
^ |
|
783 |
#(Menu |
|
784 |
( |
|
785 |
(MenuItem |
|
2978
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
786 |
enabled: hasTargetWidgetChannel |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
787 |
label: 'Redraw' |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
788 |
itemValue: doRedraw |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
789 |
isButton: true |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
790 |
labelImage: (ResourceRetriever ToolbarIconLibrary reloadIcon) |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
791 |
) |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
792 |
(MenuItem |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
793 |
label: '-' |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
794 |
) |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
795 |
(MenuItem |
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
796 |
label: 'Pick a View and Catch Events' |
2762 | 797 |
itemValue: doPickView |
2744 | 798 |
translateLabel: false |
799 |
isButton: true |
|
800 |
hideMenuOnActivated: false |
|
2759 | 801 |
labelImage: (ResourceRetriever #'Tools::ViewTreeInspectorApplication' pickWindowIcon2) |
2744 | 802 |
) |
803 |
(MenuItem |
|
2757 | 804 |
enabled: hasTargetWidgetChannel |
2978
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
805 |
label: 'Release Picked View and Uncatch Events' |
3070
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
806 |
activeHelpKey: doUncatchEvents |
2978
a952dfdb1b6a
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
2888
diff
changeset
|
807 |
itemValue: doUncatchEvents |
3070
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
808 |
nameKey: doUncatchEvents |
2757 | 809 |
isButton: true |
3070
648aad0e3777
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3049
diff
changeset
|
810 |
labelImage: (ResourceRetriever nil releaseViewIcon) |
2757 | 811 |
) |
812 |
(MenuItem |
|
813 |
label: '-' |
|
814 |
) |
|
815 |
(MenuItem |
|
2454 | 816 |
enabled: hasSingleSelectionHolder |
2744 | 817 |
label: 'Browse Application' |
2454 | 818 |
itemValue: doBrowse: |
819 |
translateLabel: false |
|
2744 | 820 |
isButton: true |
821 |
hideMenuOnActivated: false |
|
2454 | 822 |
labelImage: (ResourceRetriever ToolbarIconLibrary systemBrowser24x24Icon2) |
823 |
argument: application |
|
824 |
) |
|
825 |
(MenuItem |
|
826 |
enabled: hasSingleSelectionHolder |
|
2744 | 827 |
label: 'Inspect Application' |
2454 | 828 |
itemValue: doInspect: |
829 |
translateLabel: false |
|
2744 | 830 |
isButton: true |
831 |
hideMenuOnActivated: false |
|
832 |
labelImage: (ResourceRetriever ToolbarIconLibrary inspect22x24Icon) |
|
2454 | 833 |
argument: application |
2177 | 834 |
) |
835 |
) |
|
836 |
nil |
|
837 |
nil |
|
838 |
) |
|
839 |
! ! |
|
840 |
||
2747 | 841 |
!ViewTreeInspectorApplication class methodsFor:'startup'! |
842 |
||
843 |
openInPickMode |
|
844 |
|app| |
|
845 |
||
846 |
app := self new. |
|
847 |
app open. |
|
2762 | 848 |
app doPickView. |
3014
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
849 |
! |
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
850 |
|
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
851 |
openOn:aView |
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
852 |
"show a particular window's topView hierarchy, |
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
853 |
select the given view" |
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
854 |
|
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
855 |
|app| |
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
856 |
|
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
857 |
app := self new. |
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
858 |
app open. |
05208490cea6
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3000
diff
changeset
|
859 |
app showWindow:aView. |
2747 | 860 |
! ! |
861 |
||
2744 | 862 |
!ViewTreeInspectorApplication methodsFor:'actions'! |
2177 | 863 |
|
864 |
indicatorClicked:anIndex |
|
865 |
|item sensor| |
|
866 |
||
867 |
item := model listOfItems at:anIndex ifAbsent:nil. |
|
868 |
||
869 |
item notNil ifTrue:[ |
|
870 |
( (sensor := self window sensor) notNil |
|
871 |
and:[(sensor ctrlDown or:[sensor shiftDown])] |
|
872 |
) ifTrue:[ |
|
873 |
item recursiveToggleExpand |
|
874 |
] ifFalse:[ |
|
875 |
item toggleExpand |
|
876 |
] |
|
877 |
]. |
|
878 |
! ! |
|
879 |
||
2744 | 880 |
!ViewTreeInspectorApplication methodsFor:'aspects'! |
2177 | 881 |
|
882 |
followFocusChannel |
|
2455 | 883 |
"boolean holder, which indicates whether selection changed dependend on the focus view" |
884 |
||
2177 | 885 |
^ followFocusChannel |
886 |
! |
|
887 |
||
888 |
hasSingleSelectionHolder |
|
2455 | 889 |
"boolean holder, true if one item is selected" |
890 |
||
2177 | 891 |
^ hasSingleSelectionHolder |
892 |
! |
|
893 |
||
2455 | 894 |
hasTargetWidgetChannel |
895 |
"answer the channel which is set to true if a target widget exists" |
|
896 |
||
897 |
^ model hasTargetWidgetChannel |
|
898 |
! |
|
899 |
||
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
900 |
inspectorMode |
3049
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
901 |
"what is shown in the inspector: |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
902 |
1->widget |
3049
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
903 |
2->application |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
904 |
3->WindowGroup |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
905 |
4->Sensor |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
906 |
5->Model |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
907 |
" |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
908 |
|
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
909 |
(inspectorModeIndexHolder value == 1) ifTrue:[ ^#widget]. |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
910 |
(inspectorModeIndexHolder value == 2) ifTrue:[ ^#application]. |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
911 |
(inspectorModeIndexHolder value == 3) ifTrue:[ ^#group]. |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
912 |
(inspectorModeIndexHolder value == 4) ifTrue:[ ^#sensor]. |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
913 |
(inspectorModeIndexHolder value == 5) ifTrue:[ ^#model]. |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
914 |
^ #application |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
915 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
916 |
"Created: / 30-07-2013 / 07:44:59 / cg" |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
917 |
! |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
918 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
919 |
inspectorModeIndexHolder |
3049
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
920 |
"what is shown in the inspector: |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
921 |
1->Widget |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
922 |
2->Application |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
923 |
3->WindowGroup |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
924 |
4->Sensor |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
925 |
5->Model |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
926 |
" |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
927 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
928 |
^ inspectorModeIndexHolder |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
929 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
930 |
"Created: / 30-07-2013 / 07:44:07 / cg" |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
931 |
! |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
932 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
933 |
inspectorModes |
3049
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
934 |
^ #('Widget' 'Application' 'WindowGroup' 'Sensor' 'Model') |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
935 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
936 |
"Created: / 30-07-2013 / 09:42:16 / cg" |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
937 |
! |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
938 |
|
2177 | 939 |
listOfItems |
2455 | 940 |
"returns the hierarchical list of items" |
941 |
||
2177 | 942 |
^ model listOfItems |
943 |
! |
|
944 |
||
945 |
model |
|
2455 | 946 |
"returns my selection model, a ViewTreeModel" |
947 |
||
2177 | 948 |
^ model |
949 |
! |
|
950 |
||
951 |
selectOnClickHolder |
|
2455 | 952 |
"boolean holder, which indicates whether the selection will change on click" |
953 |
||
2177 | 954 |
^ model selectOnClickHolder |
955 |
! |
|
956 |
||
2451 | 957 |
showNamesHolder |
958 |
"boolean holder, which indicates whether application names or widget names |
|
2455 | 959 |
as additional text are shown for the items" |
960 |
||
2451 | 961 |
^ showNamesHolder |
962 |
! |
|
963 |
||
2177 | 964 |
testModeChannel |
2455 | 965 |
"answer a boolean channel which describes the behaviour how to process |
966 |
events on the target view. |
|
967 |
||
968 |
false: all input events are eaten and the selection is shown on the target view. |
|
969 |
true: no input events are eaten and no selection is shown on the target view." |
|
970 |
||
971 |
^ model testModeChannel |
|
2177 | 972 |
! ! |
973 |
||
2744 | 974 |
!ViewTreeInspectorApplication methodsFor:'change & update'! |
2177 | 975 |
|
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
976 |
inspectorModeIndexHolderChanged |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
977 |
self updateInspector |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
978 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
979 |
"Created: / 30-07-2013 / 09:21:51 / cg" |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
980 |
! |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
981 |
|
2177 | 982 |
selectionChanged |
983 |
|info view item| |
|
984 |
||
985 |
item := model selectedItem. |
|
986 |
||
987 |
item notNil ifTrue:[ |state| |
|
988 |
view := item widget. |
|
989 |
||
990 |
view id isNil ifTrue:[ |
|
991 |
state := 'no ID'. |
|
992 |
] ifFalse:[ |
|
993 |
view shown ifTrue:[ |
|
994 |
state := 'visible'. |
|
995 |
] ifFalse:[ |
|
996 |
state := 'invisible' |
|
997 |
]. |
|
998 |
]. |
|
999 |
info := '%1 [%2] - %3' bindWith:(view class name) |
|
1000 |
with:(view name ? '') with:state allBold. |
|
1001 |
||
1002 |
] ifFalse:[ |
|
1003 |
info := '' |
|
1004 |
]. |
|
1005 |
hasSingleSelectionHolder value:(view notNil). |
|
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1006 |
self updateInspector |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1007 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1008 |
"Modified: / 30-07-2013 / 09:21:27 / cg" |
2177 | 1009 |
! |
1010 |
||
1011 |
update:something with:someArgument from:aModel |
|
2454 | 1012 |
|oldSelection| |
1013 |
||
2451 | 1014 |
aModel == showNamesHolder ifTrue:[ |
2455 | 1015 |
oldSelection := model selectedItem. |
2454 | 1016 |
model selectedItem:nil. |
2451 | 1017 |
self listOfItems showWidgetNames:(aModel value). |
2454 | 1018 |
model selectedItem:oldSelection. |
2451 | 1019 |
^ self |
1020 |
]. |
|
2458 | 1021 |
|
1022 |
aModel == model ifTrue:[ |
|
1023 |
self selectionChanged. |
|
1024 |
^ self |
|
1025 |
]. |
|
1026 |
||
2177 | 1027 |
super update:something with:someArgument from:aModel. |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1028 |
! |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1029 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1030 |
updateInspector |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1031 |
|view obj| |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1032 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1033 |
view := self selectedView. |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1034 |
(view isNil or:[self inspectorMode == #widget]) ifTrue:[ |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1035 |
obj := view. |
3049
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
1036 |
] ifFalse:[ (self inspectorMode == #group) ifTrue:[ |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
1037 |
obj := view windowGroup |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
1038 |
] ifFalse:[ (self inspectorMode == #sensor) ifTrue:[ |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
1039 |
obj := view sensor |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
1040 |
] ifFalse:[ (self inspectorMode == #model) ifTrue:[ |
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
1041 |
obj := view model |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1042 |
] ifFalse:[ |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1043 |
obj := view application. |
3049
292d06e8b7ae
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3040
diff
changeset
|
1044 |
]]]]. |
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1045 |
inspectorView inspect:obj. |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1046 |
inspectorView headLineLabel:(obj class nameWithoutPrefix) |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1047 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1048 |
"Created: / 30-07-2013 / 09:21:16 / cg" |
2177 | 1049 |
! ! |
1050 |
||
2744 | 1051 |
!ViewTreeInspectorApplication methodsFor:'event processing'! |
2177 | 1052 |
|
1053 |
processButtonMotionEvent:ev |
|
2455 | 1054 |
|click rootView| |
1055 |
||
1056 |
motionAction isNil ifTrue:[^ self]. |
|
2177 | 1057 |
|
2455 | 1058 |
(rootView := model rootView) isNil ifTrue:[ |
1059 |
clickedItem := motionAction := nil. |
|
1060 |
^ self |
|
1061 |
]. |
|
2177 | 1062 |
|
2455 | 1063 |
click := rootView device |
1064 |
translatePoint:((ev x)@ (ev y)) |
|
1065 |
fromView:(ev view) |
|
1066 |
toView:rootView. |
|
1067 |
||
1068 |
click = clickedPoint ifFalse:[ |
|
1069 |
(clickedItem isNil or:[(click dist:clickedPoint) > 5.0]) ifTrue:[ |
|
1070 |
motionAction value:click |
|
2177 | 1071 |
] |
1072 |
]. |
|
1073 |
! |
|
1074 |
||
1075 |
processButtonPressEvent:ev |
|
2455 | 1076 |
|rootView sensor lastRectangle| |
1077 |
||
1078 |
rootView := model rootView. |
|
2177 | 1079 |
sensor := model rootView sensor. |
1080 |
clickedItem := model listOfItems detectItemRespondsToView:(ev view). |
|
1081 |
||
1082 |
(sensor ctrlDown or:[sensor shiftDown]) ifTrue:[ |
|
1083 |
clickedItem notNil ifTrue:[ |
|
1084 |
self selectOnClickHolder value ifTrue:[ |
|
1085 |
model toggleSelectItem:clickedItem |
|
1086 |
]. |
|
1087 |
]. |
|
1088 |
clickedItem := motionAction := nil. |
|
2455 | 1089 |
^ self |
1090 |
]. |
|
2177 | 1091 |
|
2455 | 1092 |
clickedPoint := rootView device translatePoint:((ev x)@ (ev y)) fromView:(ev view) toView:rootView. |
1093 |
lastRectangle := nil. |
|
2177 | 1094 |
|
2455 | 1095 |
motionAction :=[:p| |
1096 |
rootView := model rootView device rootView. |
|
1097 |
rootView := model rootView. |
|
1098 |
clickedItem := nil. |
|
2177 | 1099 |
|
2455 | 1100 |
rootView xoring:[ |
1101 |
lastRectangle notNil ifTrue:[ rootView displayRectangle:lastRectangle ] |
|
1102 |
ifFalse:[ rootView clippedByChildren:false ]. |
|
1103 |
||
1104 |
p isNil ifTrue:[ |
|
1105 |
rootView clippedByChildren:true. |
|
1106 |
motionAction := nil. |
|
1107 |
] ifFalse:[ |
|
1108 |
lastRectangle := Rectangle origin:(clickedPoint min:p) corner:(clickedPoint max:p). |
|
1109 |
rootView displayRectangle:lastRectangle. |
|
2177 | 1110 |
]. |
2455 | 1111 |
rootView flush. |
1112 |
]. |
|
1113 |
lastRectangle |
|
1114 |
]. |
|
2177 | 1115 |
! |
1116 |
||
1117 |
processButtonReleaseEvent:anEvent |
|
1118 |
|rootView rectangle newItems widget origin| |
|
1119 |
||
2455 | 1120 |
(rootView := model rootView) isNil ifTrue:[ |
1121 |
clickedItem := motionAction := nil. |
|
1122 |
^ self |
|
1123 |
]. |
|
2177 | 1124 |
motionAction isNil ifTrue:[ ^ self ]. |
1125 |
clickedItem notNil ifTrue:[ ^ model selectItem:clickedItem ]. |
|
1126 |
||
2455 | 1127 |
rectangle := motionAction value:nil. |
1128 |
rectangle isNil ifTrue:[^ self]. |
|
1129 |
||
1130 |
newItems := OrderedCollection new. |
|
2177 | 1131 |
|
2455 | 1132 |
model rootItem recursiveDo:[:anItem| |
1133 |
widget := anItem widget. |
|
1134 |
origin := widget originRelativeTo:rootView. |
|
2177 | 1135 |
|
2455 | 1136 |
(rectangle containsRect:(Rectangle origin:origin extent:(widget extent))) ifTrue:[ |
1137 |
newItems add:anItem. |
|
1138 |
] |
|
2177 | 1139 |
]. |
2455 | 1140 |
model value:newItems. |
2177 | 1141 |
! |
1142 |
||
1143 |
processEvent:anEvent |
|
1144 |
|button menu| |
|
1145 |
||
2758 | 1146 |
anEvent isKeyPressEvent ifTrue:[ self processKeyPressEvent:anEvent. ^ self ]. |
2177 | 1147 |
anEvent isButtonEvent ifFalse:[ ^ self ]. |
1148 |
||
1149 |
button := anEvent button. |
|
1150 |
||
1151 |
(button == 2 or:[button == #menu]) ifTrue:[ |
|
1152 |
motionAction isNil ifTrue:[ |
|
1153 |
anEvent isButtonPressEvent ifTrue:[ |
|
1154 |
self selectOnClickHolder value ifTrue:[ |
|
1155 |
menu := self middleButtonMenu value. |
|
1156 |
menu notNil ifTrue:[ |
|
2758 | 1157 |
menu := MenuPanel |
1158 |
menu:(Menu new fromLiteralArrayEncoding:menu) |
|
1159 |
receiver:self. |
|
2177 | 1160 |
menu startUp. |
1161 |
] |
|
1162 |
]. |
|
1163 |
]. |
|
1164 |
clickedItem := nil. |
|
1165 |
]. |
|
1166 |
^ self |
|
1167 |
]. |
|
1168 |
||
2758 | 1169 |
anEvent isButtonPressEvent ifTrue:[ self processButtonPressEvent:anEvent. ^ self ]. |
1170 |
anEvent isButtonMotionEvent ifTrue:[ self processButtonMotionEvent:anEvent. ^ self ]. |
|
2177 | 1171 |
|
1172 |
anEvent isButtonReleaseEvent ifTrue:[ |
|
1173 |
self selectOnClickHolder value ifTrue:[ |
|
1174 |
self processButtonReleaseEvent:anEvent |
|
1175 |
]. |
|
1176 |
]. |
|
1177 |
clickedItem := motionAction := nil. |
|
1178 |
||
1179 |
anEvent type == #'buttonMultiPress:x:y:' ifTrue:[ |
|
1180 |
self selectOnClickHolder value ifTrue:[ |
|
1181 |
self doInspect:#view. |
|
1182 |
]. |
|
1183 |
]. |
|
1184 |
! |
|
1185 |
||
1186 |
processKeyPressEvent:anEvent |
|
1187 |
|item prnt idx key max next| |
|
1188 |
||
1189 |
key := anEvent key. |
|
1190 |
key isSymbol ifFalse:[^ self]. |
|
1191 |
||
1192 |
key == #Delete ifTrue:[ ^ self doDestroy ]. |
|
1193 |
key == #InspectIt ifTrue:[ ^ self doInspect:#view ]. |
|
1194 |
||
1195 |
( key == #CursorUp |
|
1196 |
or:[key == #CursorDown |
|
1197 |
or:[key == #CursorLeft |
|
1198 |
or:[key == #CursorRight]]] |
|
1199 |
) ifFalse:[ |
|
1200 |
^ self |
|
1201 |
]. |
|
1202 |
item := model selectedItem. |
|
1203 |
||
1204 |
item isNil ifTrue:[ |
|
1205 |
^ model selectedItem:(model first ? model rootItem) |
|
1206 |
]. |
|
1207 |
||
1208 |
prnt := item parent. |
|
1209 |
prnt isNil ifTrue:[ |
|
1210 |
"/ is the root item |
|
1211 |
(key == #CursorUp or:[key == #CursorLeft]) ifTrue:[item := model listOfItems last] |
|
1212 |
ifFalse:[item := item at:1 ifAbsent:item]. |
|
1213 |
||
2758 | 1214 |
^ model selectedItem:item |
2177 | 1215 |
]. |
1216 |
key == #CursorLeft ifTrue:[ ^ model selectedItem:prnt ]. |
|
1217 |
||
1218 |
key == #CursorRight ifTrue:[ |
|
1219 |
next := item at:1 ifAbsent:nil. |
|
1220 |
next notNil ifTrue:[ model selectedItem:next ]. |
|
2758 | 1221 |
^ self |
2177 | 1222 |
]. |
1223 |
||
1224 |
max := prnt size. |
|
1225 |
||
1226 |
key == #CursorUp ifTrue:[ |
|
1227 |
idx := prnt identityIndexOf:item. |
|
1228 |
idx == 1 ifTrue:[idx := max + 1]. |
|
1229 |
model selectedItem:(prnt at:idx - 1). |
|
2758 | 1230 |
^ self. |
2177 | 1231 |
]. |
1232 |
||
1233 |
key == #CursorDown ifTrue:[ |
|
1234 |
idx := prnt identityIndexOf:item. |
|
1235 |
idx == max ifTrue:[idx := 0]. |
|
1236 |
model selectedItem:(prnt at:idx + 1). |
|
2758 | 1237 |
^ self. |
2177 | 1238 |
]. |
1239 |
! |
|
1240 |
||
1241 |
processMappedView:aView |
|
1242 |
|parent anchor| |
|
1243 |
||
1244 |
parent := self listOfItems detectItemRespondsToView:aView. |
|
1245 |
parent isNil ifTrue:[ ^ self ]. |
|
1246 |
||
1247 |
NotFoundSignal handle:[:ex| |
|
1248 |
"contained subvies used by spec are not yet created; |
|
1249 |
thus we have to wait until last used subview is build |
|
1250 |
" |
|
1251 |
anchor := nil. |
|
1252 |
] do:[ |
|
1253 |
anchor := parent class buildViewsFrom:(parent widget). |
|
1254 |
]. |
|
1255 |
anchor notNil ifTrue:[ |
|
1256 |
parent updateFromChildren:anchor children. |
|
1257 |
]. |
|
1258 |
! ! |
|
1259 |
||
2744 | 1260 |
!ViewTreeInspectorApplication methodsFor:'initialization & release'! |
2177 | 1261 |
|
1262 |
closeDownViews |
|
2455 | 1263 |
"release the grapped application" |
1264 |
||
2177 | 1265 |
process := nil. |
1266 |
super closeDownViews. |
|
1267 |
self doUnpick. |
|
1268 |
! |
|
1269 |
||
1270 |
initialize |
|
2455 | 1271 |
"setup my model and channels" |
1272 |
||
2177 | 1273 |
super initialize. |
1274 |
||
1275 |
hasSingleSelectionHolder := false asValue. |
|
1276 |
followFocusChannel := false asValue. |
|
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1277 |
inspectorModeIndexHolder := 1 asValue. |
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1278 |
inspectorModeIndexHolder onChangeSend:#inspectorModeIndexHolderChanged to:self. |
2177 | 1279 |
|
1280 |
model := ViewTreeModel new. |
|
1281 |
model inputEventAction:[:ev| self processEvent:ev ]. |
|
1282 |
model mappedViewAction:[:vw| self processMappedView:vw ]. |
|
1283 |
model application:self. |
|
2458 | 1284 |
model addDependent:self. |
1285 |
||
2177 | 1286 |
|
2451 | 1287 |
showNamesHolder := false asValue. |
1288 |
showNamesHolder addDependent:self. |
|
3037
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1289 |
|
876c28de42da
class: Tools::ViewTreeInspectorApplication
Claus Gittinger <cg@exept.de>
parents:
3034
diff
changeset
|
1290 |
"Modified: / 30-07-2013 / 09:20:08 / cg" |
2177 | 1291 |
! |
1292 |
||
2770 | 1293 |
postBuildInspectorView:anInspector |
1294 |
inspectorView := anInspector. |
|
1295 |
! |
|
1296 |
||
2177 | 1297 |
postBuildTree:aTree |
1298 |
treeView := aTree scrolledView. |
|
1299 |
treeView hasConstantHeight:true. |
|
1300 |
! ! |
|
1301 |
||
2744 | 1302 |
!ViewTreeInspectorApplication methodsFor:'menu queries'! |
2177 | 1303 |
|
1304 |
hasApplication |
|
2455 | 1305 |
"returns true if the current selected view has an application" |
1306 |
||
2177 | 1307 |
|view| |
1308 |
||
1309 |
view := self selectedView. |
|
1310 |
^ (view notNil and:[view application notNil]) |
|
1311 |
! |
|
1312 |
||
1313 |
hasController |
|
1314 |
"returns true if the current selected item's view has a controller |
|
2455 | 1315 |
other than nil or the view itself" |
1316 |
||
2177 | 1317 |
|view controller| |
1318 |
||
1319 |
view := self selectedView. |
|
1320 |
||
1321 |
view notNil ifTrue:[ |
|
1322 |