added showStoreString menu function
authorClaus Gittinger <cg@exept.de>
Wed, 26 Jan 2000 15:15:53 +0100
changeset 1309 0a45ef81b47e
parent 1308 e0bf7aae9c51
child 1310 572125002ce9
added showStoreString menu function
ImageEditor.st
--- a/ImageEditor.st	Wed Jan 26 10:47:50 2000 +0100
+++ b/ImageEditor.st	Wed Jan 26 15:15:53 2000 +0100
@@ -943,6 +943,16 @@
                   #label: '-'
                 )
                #(#MenuItem
+                  #label: 'Show storeString'
+                  #translateLabel: true
+                  #value: #doShowStoreString
+                  #activeHelpKey: #fileShowStoreString
+                  #enabled: #imageIsLoaded
+                )
+               #(#MenuItem
+                  #label: '-'
+                )
+               #(#MenuItem
                   #label: 'Print'
                   #translateLabel: true
                   #value: #doPrint
@@ -2789,6 +2799,16 @@
     [
         self updateLabelsAndHistory
     ]
+!
+
+doShowStoreString
+    "opens a dialog showing the storeString
+     (sometimes useful to embed an image into source code)"
+
+    |img|
+
+    img := imageEditView image.
+    TextBox openOn:img storeString
 ! !
 
 !ImageEditor class methodsFor:'documentation'!