Use ImageMask instead of Depth1Image for masks
authorStefan Vogel <sv@exept.de>
Fri, 23 May 2014 11:29:24 +0200
changeset 5038 72bac0ffb15f
parent 5037 47d11d896636
child 5039 ae8300dcc634
Use ImageMask instead of Depth1Image for masks
VariablePanel.st
--- a/VariablePanel.st	Fri May 23 10:18:10 2014 +0200
+++ b/VariablePanel.st	Fri May 23 11:29:24 2014 +0200
@@ -768,124 +768,196 @@
 !VariablePanel class methodsFor:'image specs'!
 
 snapIconDown
+    <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 snapIconDown inspect
-     ImageEditor openOnClass:self andSelector:#snapIconDown
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:#'VariablePanel class snapIconDown'
-        ifAbsentPut:[(Depth2Image new) width: 62; height: 5; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@B(J *F(Z!!*F(Z!!*@@@@@@@!!BDHQ!!FDXQ!!FDXP@@H@@@EPUATEPUATEPUAT@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 68 68 68 255 255 255]; mask:((Depth1Image new) width: 62; height: 5; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@A?LX1#FLX3>C8)R%JT)R''0GA#FLX1#FN@H@@@@@@@@P@@a') ; yourself); yourself]
+     ImageEditor openOnClass:self andSelector:#snapIconDown"
+    
+    ^ Icon constantNamed:#'VariablePanel class snapIconDown'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:62;
+                height:5;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@B(J *F(Z!!*F(Z!!*@@@@@@@!!BDHQ!!FDXQ!!FDXP@@H@@@EPUATEPUATEPUAT@@@@@@@@@@@@@@@@@@@@@@@@@b');
+                colorMapFromArray:#[ 0 0 0 68 68 68 255 255 255 ];
+                mask:((ImageMask new)
+                            width:62;
+                            height:5;
+                            bits:(ByteArray 
+                                        fromPackedString:'@@@@@@@@@@A?LX1#FLX3>C8)R%JT)R''0GA#FLX1#FN@H@@@@@@@@P@@a');
+                            yourself);
+                yourself
+        ]
 !
 
 snapIconLeft
+    <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 snapIconLeft inspect
-     ImageEditor openOnClass:self andSelector:#snapIconLeft
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:#'VariablePanel class snapIconLeft'
-        ifAbsentPut:[(Depth2Image new) width: 5; height: 62; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+     ImageEditor openOnClass:self andSelector:#snapIconLeft"
+    
+    ^ Icon constantNamed:#'VariablePanel class snapIconLeft'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:5;
+                height:62;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'
 @C @B@@@@@@@@@@@@@@@@@@P@C@)@BD@IP@@@@@BJP@!!@BT@@@@@@B$HHP %@@@@AP@)@BD@IP@@D@T0JP@!!@BT@@@@ED2$@HP@%@@@@AP@)ARDHIP@@@@T@
-JP@!!@BT@@A@ELB @HP@E@@@@@C\@@@@@@@@@@@@@@@T@B@@a') ; colorMapFromArray:#[0 0 0 68 68 68 255 255 255]; mask:((Depth1Image new) width: 5; height: 62; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@A@0\OA0LA@D@6UPL@@@XE@0@@A TC@@@FAPL@@@XE@0@@A UCLD@FAPL@@@XE@0@@A TC@@DCA0=''T0D@@b') ; yourself); yourself]
+JP@!!@BT@@A@ELB @HP@E@@@@@C\@@@@@@@@@@@@@@@T@B@@a');
+                colorMapFromArray:#[ 0 0 0 68 68 68 255 255 255 ];
+                mask:((ImageMask new)
+                            width:5;
+                            height:62;
+                            bits:(ByteArray 
+                                        fromPackedString:'@A@0\OA0LA@D@6UPL@@@XE@0@@A TC@@@FAPL@@@XE@0@@A UCLD@FAPL@@@XE@0@@A TC@@DCA0=''T0D@@b');
+                            yourself);
+                yourself
+        ]
 !
 
 snapIconLeftRight
+    <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 snapIconLeftRight inspect
-     ImageEditor openOnClass:self andSelector:#snapIconLeftRight
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:#'VariablePanel class snapIconLeftRight'
-        ifAbsentPut:[(Depth2Image new) width: 5; height: 62; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+     ImageEditor openOnClass:self andSelector:#snapIconLeftRight"
+    
+    ^ Icon constantNamed:#'VariablePanel class snapIconLeftRight'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:5;
+                height:62;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'
 @@@@@@@K@AH@@@@@@AX@L@@@@@@(@BD@AQD@B@@FJ#@!!@AT@@@@@@J*@@@@@DP@H@AD*LBD@EP@@@@@@J"\!!B1T@@@@@E"(0HP@U@@@@@@B*$P@H@@X@L@@@
-J @!!@AT@@@@@@B(RHP UDP@0@@@@@@@@@@@@I0@K@@@@@@@a') ; colorMapFromArray:#[0 0 0 68 68 68 255 255 255]; mask:((Depth1Image new) width: 5; height: 62; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' LC <NK@ @@A@&QPLP@@XE@0@@C<A? A@VAPL@@@XE@0@@A TCL@@O @>@@BXE@0@PY$TCD@@A@0\OA0LAXb') ; yourself); yourself]
+J @!!@AT@@@@@@B(RHP UDP@0@@@@@@@@@@@@I0@K@@@@@@@a');
+                colorMapFromArray:#[ 0 0 0 68 68 68 255 255 255 ];
+                mask:((ImageMask new)
+                            width:5;
+                            height:62;
+                            bits:(ByteArray 
+                                        fromPackedString:' LC <NK@ @@A@&QPLP@@XE@0@@C<A? A@VAPL@@@XE@0@@A TCL@@O @>@@BXE@0@PY$TCD@@A@0\OA0LAXb');
+                            yourself);
+                yourself
+        ]
 !
 
 snapIconRight
+    <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 snapIconRight inspect
-     ImageEditor openOnClass:self andSelector:#snapIconRight
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:#'VariablePanel class snapIconRight'
-        ifAbsentPut:[(Depth2Image new) width: 5; height: 62; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+     ImageEditor openOnClass:self andSelector:#snapIconRight"
+    
+    ^ Icon constantNamed:#'VariablePanel class snapIconRight'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:5;
+                height:62;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'
 @@L@@@@@@@@@@@@@@AT@B@@@J@@!!@@T@E@@@@B(QHS@U@AP@@@@*@BD@EP@T@@@@J L!!@AT@E@@@DB(0HP@U@AP@@@@*J"D@EP@T@@@@J @!!B!!TH@@@@@B(@
-HP@U@@@@@A@*LBD@EP@@@@@@@@X@@@@@@@@@@@@@@@ @B@@a') ; colorMapFromArray:#[0 0 0 68 68 68 255 255 255]; mask:((Depth1Image new) width: 5; height: 62; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@4A \G%2X4@AXE@0@@A TC@E@6AQL@@@XE@0@@A TC@@@6APL@@@XEL0@@A UC\@@VAPL@@@PFA0^''M PP@b') ; yourself); yourself]
+HP@U@@@@@A@*LBD@EP@@@@@@@@X@@@@@@@@@@@@@@@ @B@@a');
+                colorMapFromArray:#[ 0 0 0 68 68 68 255 255 255 ];
+                mask:((ImageMask new)
+                            width:5;
+                            height:62;
+                            bits:(ByteArray 
+                                        fromPackedString:'@4A \G%2X4@AXE@0@@A TC@E@6AQL@@@XE@0@@A TC@@@6APL@@@XEL0@@A UC\@@VAPL@@@PFA0^''M PP@b');
+                            yourself);
+                yourself
+        ]
 !
 
 snapIconUp
+    <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 snapIconUp inspect
-     ImageEditor openOnClass:self andSelector:#snapIconUp
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:#'VariablePanel class snapIconUp'
-        ifAbsentPut:[(Depth2Image new) width: 62; height: 5; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@J *B(J *B(J (B @@@@@@BEHT!!REHT!!RDHP!!@@@@@@@EPUATEPUATE@TAP@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 68 68 68 255 255 255]; mask:((Depth1Image new) width: 62; height: 5; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'B@@@@@@@@D@\X1#FLX1 8C9R%JT)R%G0_3FLX1#FL? @@@@@@@@@@@@a') ; yourself); yourself]
+     ImageEditor openOnClass:self andSelector:#snapIconUp"
+    
+    ^ Icon constantNamed:#'VariablePanel class snapIconUp'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:62;
+                height:5;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@J *B(J *B(J (B @@@@@@BEHT!!REHT!!RDHP!!@@@@@@@EPUATEPUATE@TAP@@@@@@@@@@@@@@@@@@@@@@@@@b');
+                colorMapFromArray:#[ 0 0 0 68 68 68 255 255 255 ];
+                mask:((ImageMask new)
+                            width:62;
+                            height:5;
+                            bits:(ByteArray 
+                                        fromPackedString:'B@@@@@@@@D@\X1#FLX1 8C9R%JT)R%G0_3FLX1#FL? @@@@@@@@@@@@a');
+                            yourself);
+                yourself
+        ]
 !
 
 snapIconUpDown
+    <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 snapIconUpDown inspect
      ImageEditor openOnClass:self andSelector:#snapIconUpDown
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:#'VariablePanel class snapIconUpDown'
-        ifAbsentPut:[(Depth2Image new) width: 62; height: 5; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@H@@@@@@ @@@@@@@@@B J@BB J@(@HJ@(@@@@@@@!!BDD !!BDHPBBDHP@@@@@@APE@HAPE@T@ E@T@@@@@@@@@@B@@@@@@H@@@@@@@b') ; colorMapFromArray:#[0 0 0 68 68 68 255 255 255]; mask:((Depth1Image new) width: 62; height: 5; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@J@@B @@@PLX)#FJX1?C )R%JT)R#8_A#JLX2#FGC>@@(@@J@@H@@a') ; yourself); yourself]
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:#'VariablePanel class snapIconUpDown'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:62;
+                height:5;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'@@@@@@@H@@@@@@ @@@@@@@@@B J@BB J@(@HJ@(@@@@@@@!!BDD !!BDHPBBDHP@@@@@@APE@HAPE@T@ E@T@@@@@@@@@@B@@@@@@H@@@@@@@b');
+                colorMapFromArray:#[ 0 0 0 68 68 68 255 255 255 ];
+                mask:((ImageMask new)
+                            width:62;
+                            height:5;
+                            bits:(ByteArray 
+                                        fromPackedString:'@@@J@@B @@@PLX)#FJX1?C )R%JT)R#8_A#JLX2#FGC>@@(@@J@@H@@a');
+                            yourself);
+                yourself
+        ]
 ! !
 
 !VariablePanel methodsFor:'accessing-look'!
@@ -2599,10 +2671,10 @@
 !VariablePanel class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/VariablePanel.st,v 1.102 2014-04-03 14:33:38 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/VariablePanel.st,v 1.103 2014-05-23 09:29:24 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg/VariablePanel.st,v 1.102 2014-04-03 14:33:38 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/VariablePanel.st,v 1.103 2014-05-23 09:29:24 stefan Exp $'
 ! !