class: ImageEditor
authorClaus Gittinger <cg@exept.de>
Sun, 22 Feb 2015 13:31:40 +0100
changeset 3191 ae97e9478128
parent 3190 a52106100195
child 3192 64aa6e5d90c0
class: ImageEditor added: #smoothIcon changed: #modeMenu #sprayIcon
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
+    "
+
+    <resource: #image>
+
+    ^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<QG1G?<_G1<_G1<_?0@@@@a') ; yourself); yourself]
+!
+
 specialCircleIcon
     <resource: #image>
     "This resource specification was automatically generated
@@ -1108,36 +1129,24 @@
 !
 
 sprayIcon
-    <resource: #image>
     "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
+    "
+
+    <resource: #image>
+
+    ^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'