ImageEditor.st
changeset 2871 23c3bb9d51be
parent 2870 0f130285be97
child 2876 3c7d06dab802
equal deleted inserted replaced
2870:0f130285be97 2871:23c3bb9d51be
   246 !ImageEditor class methodsFor:'help specs'!
   246 !ImageEditor class methodsFor:'help specs'!
   247 
   247 
   248 flyByHelpSpec
   248 flyByHelpSpec
   249     <resource: #help>
   249     <resource: #help>
   250 
   250 
   251     ^super flyByHelpSpec addPairsFrom:#(
   251     ^super flyByHelpSpec addPairsFrom:(self localHelpTexts)
   252 
   252 
   253 #drawModeBox
   253     "Modified: / 19-01-2012 / 13:29:48 / cg"
   254 'Rectangle'
       
   255 
       
   256 #drawModeCopy
       
   257 'Copy'
       
   258 
       
   259 #drawModeFill
       
   260 'Flood-Fill'
       
   261 
       
   262 #drawModeFilledBox
       
   263 'Filled Rectangle'
       
   264 
       
   265 #drawModePaste
       
   266 'Paste'
       
   267 
       
   268 #drawModePasteUnder
       
   269 'Paste Under'
       
   270 
       
   271 #drawModePasteWithMask
       
   272 'Paste with Mask'
       
   273 
       
   274 #drawModePoint
       
   275 'Point'
       
   276 
       
   277 #drawModeSpecial
       
   278 'Special Operations'
       
   279 
       
   280 #fileGrabImage
       
   281 'Pick from Screen'
       
   282 
       
   283 #fileLoadFromClass
       
   284 'Load from Method...'
       
   285 
       
   286 #fileLoadFromFile
       
   287 'Load from File...'
       
   288 
       
   289 #fileNewImage
       
   290 'New Image'
       
   291 
       
   292 #filePrint
       
   293 'Print'
       
   294 
       
   295 #fileSaveAs
       
   296 'Save to File...'
       
   297 
       
   298 #fileSaveMaskAs
       
   299 'Save Mask to File...'
       
   300 
       
   301 #fileSaveMethod
       
   302 'Save as Method'
       
   303 
       
   304 #fileSaveMethodAs
       
   305 'Save as Method...'
       
   306 
       
   307 #nextImageInSequence
       
   308 'Go to the next image in the animated gif image sequence.'
       
   309 
       
   310 #previousImageInSequence
       
   311 'Go to the previous image in the animated gif image sequence.'
       
   312 )
       
   313 
       
   314     "Modified: / 21-10-2010 / 14:58:32 / cg"
       
   315 !
   254 !
   316 
   255 
   317 helpSpec
   256 helpSpec
   318     "This resource specification was automatically generated
   257     "This resource specification was automatically generated
   319      by the UIHelpTool of ST/X."
   258      by the UIHelpTool of ST/X."
   325      UIHelpTool openOnClass:ImageEditor    
   264      UIHelpTool openOnClass:ImageEditor    
   326     "
   265     "
   327 
   266 
   328     <resource: #help>
   267     <resource: #help>
   329 
   268 
   330     ^ super helpSpec addPairsFrom:#(
   269     ^ super helpSpec addPairsFrom:(self localHelpTexts)
       
   270 
       
   271     "Modified: / 19-01-2012 / 13:29:42 / cg"
       
   272 !
       
   273 
       
   274 localHelpTexts
       
   275     "This resource specification was automatically generated
       
   276      by the UIHelpTool of ST/X."
       
   277 
       
   278     "Do not manually edit this!! If it is corrupted,
       
   279      the UIHelpTool may not be able to read the specification."
       
   280 
       
   281     "
       
   282      UIHelpTool openOnClass:ImageEditor    
       
   283     "
       
   284 
       
   285     <resource: #help>
       
   286 
       
   287     ^ #(
       
   288 
       
   289 #xdrawModeBox
       
   290 'Rectangle'
       
   291 
       
   292 #xdrawModeCopy
       
   293 'Copy'
       
   294 
       
   295 #xdrawModeFill
       
   296 'Flood-fill'
       
   297 
       
   298 #xdrawModeFilledBox
       
   299 'Filled rectangle'
       
   300 
       
   301 #xdrawModePaste
       
   302 'Paste'
       
   303 
       
   304 #xdrawModePasteUnder
       
   305 'Paste under'
       
   306 
       
   307 #xdrawModePasteWithMask
       
   308 'Paste with Mask'
       
   309 
       
   310 #xdrawModePoint
       
   311 'Point'
       
   312 
       
   313 #xfileGrabImage
       
   314 'Pick from screen'
       
   315 
       
   316 #xfileLoadFromClass
       
   317 'Load from method...'
       
   318 
       
   319 #xfileLoadFromFile
       
   320 'Load from file...'
       
   321 
       
   322 #xfileNewImage
       
   323 'New image'
       
   324 
       
   325 #filePrint
       
   326 'Print'
       
   327 
       
   328 #xfileSaveAs
       
   329 'Save to file...'
       
   330 
       
   331 #xfileSaveMaskAs
       
   332 'Save mask to file...'
       
   333 
       
   334 #xfileSaveMethod
       
   335 'Save as method'
       
   336 
       
   337 #xfileSaveMethodAs
       
   338 'Save as Method...'
       
   339 
       
   340 #nextImageInSequence
       
   341 'Go to the next image in the animated gif image sequence.'
       
   342 
       
   343 #previousImageInSequence
       
   344 'Go to the previous image in the animated gif image sequence.'
   331 
   345 
   332 #colorMap
   346 #colorMap
   333 'ColorMap functions'
   347 'ColorMap functions'
   334 
   348 
   335 #colorMap1
   349 #colorMap1
   412 
   426 
   413 #drawModePoint
   427 #drawModePoint
   414 'Point Drawing Mode'
   428 'Point Drawing Mode'
   415 
   429 
   416 #drawModeSpecial
   430 #drawModeSpecial
   417 'Special Operations'
   431 'Special operations (select rectangle, then choose operation)'
   418 
   432 
   419 #drawModeSpray
   433 #drawModeSpray
   420 'Spray Drawing Mode'
   434 'Spray Drawing Mode'
   421 
   435 
   422 #editFlipHorizontal
   436 #editFlipHorizontal
   493 
   507 
   494 #settingsGridMagnification
   508 #settingsGridMagnification
   495 'Change the grid magnification of the edit view'
   509 'Change the grid magnification of the edit view'
   496 
   510 
   497 )
   511 )
       
   512 
       
   513     "Created: / 19-01-2012 / 13:29:31 / cg"
   498 ! !
   514 ! !
   499 
   515 
   500 !ImageEditor class methodsFor:'image specs'!
   516 !ImageEditor class methodsFor:'image specs'!
   501 
   517 
   502 circleIcon
   518 circleIcon
   543     <resource: #programImage>
   559     <resource: #programImage>
   544 
   560 
   545     ^ ToolbarIconLibrary startImageEditorIcon
   561     ^ ToolbarIconLibrary startImageEditorIcon
   546 !
   562 !
   547 
   563 
       
   564 fillGradientRectIcon
       
   565     "This resource specification was automatically generated
       
   566      by the ImageEditor of ST/X."
       
   567 
       
   568     "Do not manually edit this!! If it is corrupted,
       
   569      the ImageEditor may not be able to read the specification."
       
   570 
       
   571     "
       
   572      self fillGradientRectIcon inspect
       
   573      ImageEditor openOnClass:self andSelector:#fillGradientRectIcon
       
   574      Icon flushCachedIcons
       
   575     "
       
   576 
       
   577     <resource: #image>
       
   578 
       
   579     ^Icon
       
   580         constantNamed:'ImageEditor class fillGradientRectIcon'
       
   581         ifAbsentPut:[(Depth4Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ADQDQDQ@@@QDQDQDP@@BH"H"H"@@@"H"H"H @@L3L3L3L@@CL3L3L3@@@QDQDQDP@@DQDQDQD@@@@@@@@@
       
   582 @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 127 0 0 191 0 0 63 0 0]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a') ; yourself); yourself]
       
   583 !
       
   584 
       
   585 fillHorizontalGradientRectIcon
       
   586     "This resource specification was automatically generated
       
   587      by the ImageEditor of ST/X."
       
   588 
       
   589     "Do not manually edit this!! If it is corrupted,
       
   590      the ImageEditor may not be able to read the specification."
       
   591 
       
   592     "
       
   593      self fillHorizontalGradientRectIcon inspect
       
   594      ImageEditor openOnClass:self andSelector:#fillHorizontalGradientRectIcon
       
   595      Icon flushCachedIcons
       
   596     "
       
   597 
       
   598     <resource: #image>
       
   599 
       
   600     ^Icon
       
   601         constantNamed:'ImageEditor class fillHorizontalGradientRectIcon'
       
   602         ifAbsentPut:[(Depth4Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@DP"L1D@@@ADH#LQ@@@@QBH3DP@@@DP"L1D@@@ADH#LQ@@@@QBH3DP@@@DP"L1D@@@ADH#LQ@@@@QBH3DP@@@DP"L1D@@@@@@@@@
       
   603 @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 127 0 0 191 0 0 63 0 0]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a') ; yourself); yourself]
       
   604 !
       
   605 
   548 fillIcon
   606 fillIcon
   549     "This resource specification was automatically generated
   607     "This resource specification was automatically generated
   550      by the ImageEditor of ST/X."
   608      by the ImageEditor of ST/X."
   551 
   609 
   552     "Do not manually edit this!! If it is corrupted,
   610     "Do not manually edit this!! If it is corrupted,
   581     <resource: #image>
   639     <resource: #image>
   582 
   640 
   583     ^Icon
   641     ^Icon
   584         constantNamed:'ImageEditor class fillRectIcon'
   642         constantNamed:'ImageEditor class fillRectIcon'
   585         ifAbsentPut:[(Depth1Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@@@@@@@@@@@D@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a') ; yourself); yourself]
   643         ifAbsentPut:[(Depth1Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@@@@@@@@@@@D@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a') ; yourself); yourself]
       
   644 !
       
   645 
       
   646 fillVerticalGradientRectIcon
       
   647     "This resource specification was automatically generated
       
   648      by the ImageEditor of ST/X."
       
   649 
       
   650     "Do not manually edit this!! If it is corrupted,
       
   651      the ImageEditor may not be able to read the specification."
       
   652 
       
   653     "
       
   654      self fillGradientRectIcon inspect
       
   655      ImageEditor openOnClass:self andSelector:#fillGradientRectIcon
       
   656      Icon flushCachedIcons
       
   657     "
       
   658 
       
   659     <resource: #image>
       
   660 
       
   661     ^Icon
       
   662         constantNamed:'ImageEditor class fillGradientRectIcon'
       
   663         ifAbsentPut:[(Depth4Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ADQDQDQ@@@QDQDQDP@@BH"H"H"@@@"H"H"H @@L3L3L3L@@CL3L3L3@@@QDQDQDP@@DQDQDQD@@@@@@@@@
       
   664 @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 127 0 0 191 0 0 63 0 0]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a') ; yourself); yourself]
       
   665 
       
   666     "Created: / 19-01-2012 / 13:44:51 / cg"
   586 !
   667 !
   587 
   668 
   588 flipHorizontalIcon
   669 flipHorizontalIcon
   589     "This resource specification was automatically generated
   670     "This resource specification was automatically generated
   590      by the ImageEditor of ST/X."
   671      by the ImageEditor of ST/X."