# HG changeset patch # User Claus Gittinger # Date 1424608300 -3600 # Node ID ae97e9478128388c4702aaf425912491387d51a1 # Parent a52106100195382115109d549f7e2682891e357f class: ImageEditor added: #smoothIcon changed: #modeMenu #sprayIcon diff -r a52106100195 -r ae97e9478128 ImageEditor.st --- a/ImageEditor.st Sat Feb 21 12:51:44 2015 +0100 +++ b/ImageEditor.st Sun Feb 22 13:31:40 2015 +0100 @@ -1043,6 +1043,27 @@ ] ! +smoothIcon + "This resource specification was automatically generated + by the ImageEditor of ST/X." + + "Do not manually edit this!! If it is corrupted, + the ImageEditor may not be able to read the specification." + + " + self smoothIcon inspect + ImageEditor openOnClass:self andSelector:#smoothIcon + Icon flushCachedIcons + " + + + + ^Icon + constantNamed:'ImageEditor smoothIcon' + ifAbsentPut:[(Depth4Image new) width:14; height:14; bits:(ByteArray fromPackedString:'@@@@@@@@@@@RH@@@H!!@@HRD@@RD @BHQ@@DRH@@ADP@ADP@@@@@QD@@@@@@@DQ@@@@@@@ADP@@@@@QD@@QD@@BHQ@@DRH@@!!HP@AHR@@D"@@@BHP@@@@@@@@ +@@@@@@@@@@@b') ; colorMapFromArray:#[127 126 127 255 0 0 255 255 255]; mask:((ImageMask new) width:14; height:14; bits:(ByteArray fromPackedString:'_?1<_G1<_G1??D_DQ "This resource specification was automatically generated @@ -1108,36 +1129,24 @@ ! sprayIcon - "This resource specification was automatically generated by the ImageEditor of ST/X." + "Do not manually edit this!! If it is corrupted, the ImageEditor may not be able to read the specification." + " self sprayIcon inspect ImageEditor openOnClass:self andSelector:#sprayIcon - Icon flushCachedIcons" - - ^ Icon constantNamed:'ImageEditor class sprayIcon' - ifAbsentPut:[ - (Depth4Image new) - width:14; - height:14; - photometric:(#palette); - bitsPerSample:(#[ 4 ]); - samplesPerPixel:(1); - bits:(ByteArray - fromPackedString:'@@@@@@@@@@@@@@@@@D@@@@@@@DA@@@@@@D@D@@@@@@A@PD@@@@@@A@P@@@@@@@A@P@@@@@@@A@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -@@@@@@@@@@@b'); - colorMapFromArray:#[ 0 0 0 84 84 84 170 170 170 255 255 255 255 0 0 ]; - mask:((ImageMask new) - width:14; - height:14; - bits:(ByteArray - fromPackedString:'@@@@B@@(A)@F*@IPA2 H$@"@BH@H @"@BH@O @@a'); - yourself); - yourself - ] + Icon flushCachedIcons + " + + + + ^Icon + constantNamed:'ImageEditor sprayIcon' + ifAbsentPut:[(Depth4Image new) width:14; height:14; bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@P@@@@@@DA@P@@@@@PDA@@@@@@@PDA@@@@@@@PD@@@@"H@@PD@@@H"@@@@@@@ADP@@@@@@@QD@@@@@@@DQ@@@@@@@ADP@@ +@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((ImageMask new) width:14; height:14; bits:(ByteArray fromPackedString:'@@@@@@@HA%PF*@ITA2 O%@>@C8@O @>@C8@O @@a') ; yourself); yourself] ! ! !ImageEditor class methodsFor:'interface specs'! @@ -3232,6 +3241,15 @@ choiceValue: spray ) (MenuItem + activeHelpKey: drawModeSmooth + enabled: imageIsLoadedHolder + label: 'Smooth' + translateLabel: true + labelImage: (ResourceRetriever ImageEditor smoothIcon 'Smooth') + choice: editMode + choiceValue: smooth + ) + (MenuItem activeHelpKey: drawModeBox enabled: imageIsLoadedHolder label: 'Rect'