159 " |
159 " |
160 self removeFromLauncher. |
160 self removeFromLauncher. |
161 super unload. |
161 super unload. |
162 ! ! |
162 ! ! |
163 |
163 |
|
164 !ViewTreeInspectorApplication class methodsFor:'help specs'! |
|
165 |
|
166 flyByHelpSpec |
|
167 <resource: #help> |
|
168 |
|
169 ^super flyByHelpSpec addPairsFrom:#( |
|
170 |
|
171 #doUncatchEvents |
|
172 'Release Picked View and Uncatch Events (Currently Locked)' |
|
173 |
|
174 #doCatchEvents |
|
175 'Release Picked View and Uncatch Events (Currently Unlocked)' |
|
176 |
|
177 ) |
|
178 ! ! |
|
179 |
164 !ViewTreeInspectorApplication class methodsFor:'image specs'! |
180 !ViewTreeInspectorApplication class methodsFor:'image specs'! |
165 |
181 |
166 crossHairIcon |
182 crossHairIcon |
167 "This resource specification was automatically generated |
183 "This resource specification was automatically generated |
168 by the ImageEditor of ST/X." |
184 by the ImageEditor of ST/X." |
179 <resource: #image> |
195 <resource: #image> |
180 |
196 |
181 ^Icon |
197 ^Icon |
182 constantNamed:'Tools::ViewTreeInspectorApplication class crossHairIcon' |
198 constantNamed:'Tools::ViewTreeInspectorApplication class crossHairIcon' |
183 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] |
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 |
|
202 lockViewIcon |
|
203 "This resource specification was automatically generated |
|
204 by the ImageEditor of ST/X." |
|
205 |
|
206 "Do not manually edit this!! If it is corrupted, |
|
207 the ImageEditor may not be able to read the specification." |
|
208 |
|
209 " |
|
210 self lockViewIcon inspect |
|
211 ImageEditor openOnClass:self andSelector:#lockViewIcon |
|
212 Icon flushCachedIcons |
|
213 " |
|
214 |
|
215 <resource: #image> |
|
216 |
|
217 ^Icon |
|
218 constantNamed:'Tools::ViewTreeInspectorApplication lockViewIcon' |
|
219 ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
220 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
221 @@@@@@@@@@@@@@A8^G!!7O3ACP5*P@@A8^G @@@@@@@@@@@A8^@@@OE0/!!P0S#0@@^G @@@@@@@@@@@B (@D''D#48"1.CX5H@(J@@@@@@@@@@@@B (B(>SAT" |
|
222 ''%!!/P7,@(J@@@@@@@@@@@@@%IB0#M"H%IRTQV5P@IRT@@@@@@@@@@@ANSX:U]PANS$8:T80@S$8@@@@@@@@@@@AN&UYWK(EYQ@\FUPQHXT8@@@@@@@@@@@AN |
|
223 HC2!!TVY:Y#-%I*IKMD8@@@@@@@@@@@A$\@83XBEG%).GGX _!!&P@@@@@@@@@@@AO[P5+ &(WPYN@["!!E\$<@@@@@@@@@@@B_F''FQPAXX_!!&TGH4HB9<@@@@@ |
|
224 @@@@@@B_%3HCJ7=BKPU,Q)01B9<@@@@@@@@@@@@PBP8T_F!!''JPI)_Y"D&!!@@@@@@@@@@@@@$B)I9TGXO''WQIWQ93W0@@@@@@@@@@@@@$"U=JR$)JR$)JR$)_ |
|
225 "P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
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] |
184 ! |
227 ! |
185 |
228 |
186 pickWindowIcon |
229 pickWindowIcon |
187 "This resource specification was automatically generated |
230 "This resource specification was automatically generated |
188 by the ImageEditor of ST/X." |
231 by the ImageEditor of ST/X." |
245 " |
288 " |
246 self releaseViewIcon inspect |
289 self releaseViewIcon inspect |
247 ImageEditor openOnClass:self andSelector:#releaseViewIcon |
290 ImageEditor openOnClass:self andSelector:#releaseViewIcon |
248 Icon flushCachedIcons |
291 Icon flushCachedIcons |
249 " |
292 " |
250 |
|
251 <resource: #image> |
293 <resource: #image> |
252 |
294 |
253 ^Icon |
295 ^Icon |
254 constantNamed:'Tools::ViewTreeInspectorApplication releaseViewIcon' |
296 constantNamed:'Tools::ViewTreeInspectorApplication releaseViewIcon' |
255 ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
297 ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
759 labelImage: (ResourceRetriever #'Tools::ViewTreeInspectorApplication' pickWindowIcon2) |
801 labelImage: (ResourceRetriever #'Tools::ViewTreeInspectorApplication' pickWindowIcon2) |
760 ) |
802 ) |
761 (MenuItem |
803 (MenuItem |
762 enabled: hasTargetWidgetChannel |
804 enabled: hasTargetWidgetChannel |
763 label: 'Release Picked View and Uncatch Events' |
805 label: 'Release Picked View and Uncatch Events' |
|
806 activeHelpKey: doUncatchEvents |
764 itemValue: doUncatchEvents |
807 itemValue: doUncatchEvents |
|
808 nameKey: doUncatchEvents |
765 isButton: true |
809 isButton: true |
766 labelImage: (ResourceRetriever #'Tools::ViewTreeInspectorApplication' releaseViewIcon) |
810 labelImage: (ResourceRetriever nil releaseViewIcon) |
767 ) |
811 ) |
768 (MenuItem |
812 (MenuItem |
769 label: '-' |
813 label: '-' |
770 ) |
814 ) |
771 (MenuItem |
815 (MenuItem |
1924 or:[topWindow == self window topView] |
1968 or:[topWindow == self window topView] |
1925 ) ifTrue:[ |
1969 ) ifTrue:[ |
1926 ^ self |
1970 ^ self |
1927 ]. |
1971 ]. |
1928 |
1972 |
1929 self showWindow:clickedView |
1973 self showWindow:clickedView. |
1930 ! |
1974 ! |
1931 |
1975 |
1932 doRedraw |
1976 doRedraw |
1933 "redraw the app" |
1977 "redraw the app" |
1934 |
1978 |
1935 model rootView withAllSubViewsDo:[:v | v redraw; invalidate]. |
1979 model rootView withAllSubViewsDo:[:v | v "redraw; "invalidate]. |
1936 ! |
1980 ! |
1937 |
1981 |
1938 doSelectNextOfApplicationClass:aClass startingIn:anItem |
1982 doSelectNextOfApplicationClass:aClass startingIn:anItem |
1939 |startItem firstFound searchNext| |
1983 |startItem firstFound searchNext| |
1940 |
1984 |
2009 | topWindow | |
2056 | topWindow | |
2010 |
2057 |
2011 topWindow := aView topView. |
2058 topWindow := aView topView. |
2012 |
2059 |
2013 model catchEvents:true. |
2060 model catchEvents:true. |
|
2061 ((builder componentAt:'toolbarMenu') itemAt:#doUncatchEvents) |
|
2062 label:(self class lockViewIcon); |
|
2063 activeHelpKey:#doUncatchEvents. |
2014 self setRootItem:(ViewTreeItem buildViewsFrom:topWindow). |
2064 self setRootItem:(ViewTreeItem buildViewsFrom:topWindow). |
2015 self selectView:aView. |
2065 self selectView:aView. |
2016 ! ! |
2066 ! ! |
2017 |
2067 |
2018 !ViewTreeInspectorApplication::MenuDesc class methodsFor:'building'! |
2068 !ViewTreeInspectorApplication::MenuDesc class methodsFor:'building'! |