ImageEditor.st
changeset 914 b4f32d092c8b
parent 911 ec8db5b62352
child 915 99f8e19aab3a
equal deleted inserted replaced
913:12e73e6c57b4 914:b4f32d092c8b
   185 
   185 
   186 #colorMapTable
   186 #colorMapTable
   187 'Shows a list of used colors of the image.'
   187 'Shows a list of used colors of the image.'
   188 
   188 
   189 #drawModeBox
   189 #drawModeBox
   190 'Switches to mode drawing boxes.'
   190 'Switches to box-drawing mode.'
   191 
   191 
   192 #drawModeCopy
   192 #drawModeCopy
   193 'Switches to mode copying areas.'
   193 'Switches to area-copy mode.'
   194 
   194 
   195 #drawModeFill
   195 #drawModeFill
   196 'Switches to mode filling areas around selected point.'
   196 'Switches to flood-fill mode.'
   197 
   197 
   198 #drawModeFilledBox
   198 #drawModeFilledBox
   199 'Switches to mode drawing filled boxes.'
   199 'Switches to filled-box drawing mode.'
   200 
   200 
   201 #drawModePaste
   201 #drawModePaste
   202 'Switches to mode pasting areas at selected point.'
   202 'Switches to paste mode.'
       
   203 
       
   204 #drawModePasteUnder
       
   205 'Switches to paste under mode.'
   203 
   206 
   204 #drawModePoint
   207 #drawModePoint
   205 'Switches to mode drawing points.'
   208 'Switches to point-drawing mode.'
   206 
   209 
   207 #editFlipHorizontal
   210 #editFlipHorizontal
   208 'Flips horizontally the image.'
   211 'Flips the image horizontally.'
   209 
   212 
   210 #editFlipVertical
   213 #editFlipVertical
   211 'Flips vertically the image.'
   214 'Flips the image vertically.'
   212 
   215 
   213 #editMagnifyImage
   216 #editMagnifyImage
   214 'Opens a dialog to magnify the image.'
   217 'Magnify the image.'
   215 
   218 
   216 #editNegate
   219 #editNegate
   217 'Convertes colors of image by negating them.'
   220 'Invert the images colors.'
   218 
   221 
   219 #editResize
   222 #editResize
   220 'Opens a dialog to resize the image with preserving the old image.'
   223 'Resize the image (preserving the old image).'
   221 
   224 
   222 #editRotate
   225 #editRotate
   223 'Opens a dialog to rotate the image in degrees.'
   226 'Rotate the image.'
   224 
   227 
   225 #fileLoadFromClass
   228 #fileLoadFromClass
   226 'Opens a dialog for selecting and loading an image from resource method of a class.'
   229 'Selecting and load an image from a resource method.'
   227 
   230 
   228 #fileLoadFromFile
   231 #fileLoadFromFile
   229 'Opens a dialog for selecting and loading an image from a file.'
   232 'Selecting and load an image from a file.'
   230 
   233 
   231 #fileNewImage
   234 #fileNewImage
   232 'Opens a dialog with choices of size and color depth to create an new image.'
   235 'Create a new image'
   233 
   236 
   234 #filePrint
   237 #filePrint
   235 'Print the image on a postscript printer.'
   238 'Print the image on a postscript printer.'
   236 
   239 
   237 #fileSaveAs
   240 #fileSaveAs
   238 'Opens a dialog to save the image to a file.'
   241 'Save the image to a file.'
   239 
   242 
   240 #fileSaveMaskAs
   243 #fileSaveMaskAs
   241 'Opens a dialog to save the mask of the image to a file.'
   244 'Save the mask of the image to a file.'
   242 
   245 
   243 #fileSaveMethod
   246 #fileSaveMethod
   244 'Saves the image on current class and selector.'
   247 'Save the image as resource method in the current class and selector.'
   245 
   248 
   246 #fileSaveMethodAs
   249 #fileSaveMethodAs
   247 'Opens a dialog for selecting and saving the image in a resource method of a class.'
   250 'Save the image as resource method in a class.'
   248 
   251 
   249 #magnificationNumber
   252 #magnificationNumber
   250 'Shows current number of magnification.'
   253 'Shows the current magnification.'
   251 
   254 
   252 #magnifyImageDown
   255 #magnifyImageDown
   253 'Magnifies down the image.'
   256 'Decrease magnification.'
   254 
   257 
   255 #magnifyImageUp
   258 #magnifyImageUp
   256 'Magnifies up the image.'
   259 'Increase magnification.'
   257 
   260 
   258 #mouseKeyColorMode
   261 #mouseKeyColorMode
   259 'Switches between left and right mouse button color.'
   262 'Toggles between left and right mouse button color.'
   260 
   263 
   261 #previewView
   264 #previewView
   262 'Shows preview of the image.'
   265 'Shows a preview of the image.'
   263 
   266 
   264 #settingsGridMagnification
   267 #settingsGridMagnification
   265 'Opens a dialog to change the grid magnification of the edit view.'
   268 'Change the grid magnification of the edit view.'
   266 
   269 
   267 )
   270 )
   268 ! !
   271 ! !
   269 
   272 
   270 !ImageEditor class methodsFor:'image specs'!
   273 !ImageEditor class methodsFor:'image specs'!
  1029                 #activeHelpKey: #drawModePaste
  1032                 #activeHelpKey: #drawModePaste
  1030                 #enabled: #imageIsLoaded
  1033                 #enabled: #imageIsLoaded
  1031                 #argument: 'paste'
  1034                 #argument: 'paste'
  1032                 #indication: #editMode:value:
  1035                 #indication: #editMode:value:
  1033             )
  1036             )
       
  1037              #(#MenuItem
       
  1038                 #label: 'Paste Under'
       
  1039                 #activeHelpKey: #drawModePasteUnder
       
  1040                 #enabled: #imageIsLoaded
       
  1041                 #argument: 'pasteUnder'
       
  1042                 #indication: #editMode:value:
       
  1043             )
  1034           ) nil
  1044           ) nil
  1035           nil
  1045           nil
  1036       )
  1046       )
  1037 ! !
  1047 ! !
  1038 
  1048