358 |
358 |
359 "Do not manually edit this!! If it is corrupted, |
359 "Do not manually edit this!! If it is corrupted, |
360 the ImageEditor may not be able to read the specification." |
360 the ImageEditor may not be able to read the specification." |
361 |
361 |
362 " |
362 " |
|
363 self leftMouseKeyIcon inspect |
363 ImageEditor openOnClass:self andSelector:#leftMouseKeyIcon |
364 ImageEditor openOnClass:self andSelector:#leftMouseKeyIcon |
364 " |
365 " |
365 |
366 |
366 <resource: #image> |
367 <resource: #image> |
367 |
368 |
368 ^Icon |
369 ^Icon |
369 constantNamed:#'ImageEditor leftMouseKeyIcon' |
370 constantNamed:#'ImageEditor leftMouseKeyIcon' |
370 ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@JEE@@B!!QP@@(TT@@@@@@@AUUP@@UUT@@EUU@@AUUP@@UUT@@EUU@@@UU@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b') ; yourself); yourself]! |
371 ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@EJJ@@AR" @@T((@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b') ; yourself); yourself]! |
371 |
372 |
372 rightMouseKeyIcon |
373 rightMouseKeyIcon |
373 "This resource specification was automatically generated |
374 "This resource specification was automatically generated |
374 by the ImageEditor of ST/X." |
375 by the ImageEditor of ST/X." |
375 |
376 |
376 "Do not manually edit this!! If it is corrupted, |
377 "Do not manually edit this!! If it is corrupted, |
377 the ImageEditor may not be able to read the specification." |
378 the ImageEditor may not be able to read the specification." |
378 |
379 |
379 " |
380 " |
|
381 self rightMouseKeyIcon inspect |
380 ImageEditor openOnClass:self andSelector:#rightMouseKeyIcon |
382 ImageEditor openOnClass:self andSelector:#rightMouseKeyIcon |
381 " |
383 " |
382 |
384 |
383 <resource: #image> |
385 <resource: #image> |
384 |
386 |
385 ^Icon |
387 ^Icon |
386 constantNamed:#'ImageEditor rightMouseKeyIcon' |
388 constantNamed:#'ImageEditor rightMouseKeyIcon' |
387 ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@EEJ@@AQR @@TT(@@@@@@@AUUP@@UUT@@EUU@@AUUP@@UUT@@EUU@@@UU@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b') ; yourself); yourself]! ! |
389 ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@JJE@@B"!!P@@((T@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b') ; yourself); yourself]! ! |
388 |
390 |
389 !ImageEditor class methodsFor:'interface specs'! |
391 !ImageEditor class methodsFor:'interface specs'! |
390 |
392 |
391 dialogSpecForNewImage |
393 dialogSpecForNewImage |
392 "This resource specification was automatically generated |
394 "This resource specification was automatically generated |
2141 newImage := oldImage clearMaskedPixels. |
2143 newImage := oldImage clearMaskedPixels. |
2142 (imageEditView image:newImage) notNil ifTrue:[ |
2144 (imageEditView image:newImage) notNil ifTrue:[ |
2143 self listOfColors contents: newImage colorMap. |
2145 self listOfColors contents: newImage colorMap. |
2144 self findColorMapMode. |
2146 self findColorMapMode. |
2145 self updateLabelsAndHistory. |
2147 self updateLabelsAndHistory. |
2146 self halt. |
|
2147 ] |
2148 ] |
2148 ] |
2149 ] |
2149 ! |
2150 ! |
2150 |
2151 |
2151 colorMapChanged |
2152 colorMapChanged |