diff -r 0f130285be97 -r 23c3bb9d51be ImageEditor.st --- a/ImageEditor.st Wed Jan 18 14:19:35 2012 +0100 +++ b/ImageEditor.st Thu Jan 19 13:47:04 2012 +0100 @@ -248,70 +248,9 @@ flyByHelpSpec - ^super flyByHelpSpec addPairsFrom:#( - -#drawModeBox -'Rectangle' - -#drawModeCopy -'Copy' - -#drawModeFill -'Flood-Fill' - -#drawModeFilledBox -'Filled Rectangle' - -#drawModePaste -'Paste' - -#drawModePasteUnder -'Paste Under' - -#drawModePasteWithMask -'Paste with Mask' - -#drawModePoint -'Point' - -#drawModeSpecial -'Special Operations' - -#fileGrabImage -'Pick from Screen' - -#fileLoadFromClass -'Load from Method...' - -#fileLoadFromFile -'Load from File...' - -#fileNewImage -'New Image' - -#filePrint -'Print' - -#fileSaveAs -'Save to File...' - -#fileSaveMaskAs -'Save Mask to File...' - -#fileSaveMethod -'Save as Method' - -#fileSaveMethodAs -'Save as Method...' - -#nextImageInSequence -'Go to the next image in the animated gif image sequence.' - -#previousImageInSequence -'Go to the previous image in the animated gif image sequence.' -) - - "Modified: / 21-10-2010 / 14:58:32 / cg" + ^super flyByHelpSpec addPairsFrom:(self localHelpTexts) + + "Modified: / 19-01-2012 / 13:29:48 / cg" ! helpSpec @@ -327,7 +266,82 @@ - ^ super helpSpec addPairsFrom:#( + ^ super helpSpec addPairsFrom:(self localHelpTexts) + + "Modified: / 19-01-2012 / 13:29:42 / cg" +! + +localHelpTexts + "This resource specification was automatically generated + by the UIHelpTool of ST/X." + + "Do not manually edit this!! If it is corrupted, + the UIHelpTool may not be able to read the specification." + + " + UIHelpTool openOnClass:ImageEditor + " + + + + ^ #( + +#xdrawModeBox +'Rectangle' + +#xdrawModeCopy +'Copy' + +#xdrawModeFill +'Flood-fill' + +#xdrawModeFilledBox +'Filled rectangle' + +#xdrawModePaste +'Paste' + +#xdrawModePasteUnder +'Paste under' + +#xdrawModePasteWithMask +'Paste with Mask' + +#xdrawModePoint +'Point' + +#xfileGrabImage +'Pick from screen' + +#xfileLoadFromClass +'Load from method...' + +#xfileLoadFromFile +'Load from file...' + +#xfileNewImage +'New image' + +#filePrint +'Print' + +#xfileSaveAs +'Save to file...' + +#xfileSaveMaskAs +'Save mask to file...' + +#xfileSaveMethod +'Save as method' + +#xfileSaveMethodAs +'Save as Method...' + +#nextImageInSequence +'Go to the next image in the animated gif image sequence.' + +#previousImageInSequence +'Go to the previous image in the animated gif image sequence.' #colorMap 'ColorMap functions' @@ -414,7 +428,7 @@ 'Point Drawing Mode' #drawModeSpecial -'Special Operations' +'Special operations (select rectangle, then choose operation)' #drawModeSpray 'Spray Drawing Mode' @@ -495,6 +509,8 @@ 'Change the grid magnification of the edit view' ) + + "Created: / 19-01-2012 / 13:29:31 / cg" ! ! !ImageEditor class methodsFor:'image specs'! @@ -545,6 +561,48 @@ ^ ToolbarIconLibrary startImageEditorIcon ! +fillGradientRectIcon + "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 fillGradientRectIcon inspect + ImageEditor openOnClass:self andSelector:#fillGradientRectIcon + Icon flushCachedIcons + " + + + + ^Icon + constantNamed:'ImageEditor class fillGradientRectIcon' + 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@@@@@@@@@ +@@@@@@@@@@@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?@? + + ^Icon + constantNamed:'ImageEditor class fillHorizontalGradientRectIcon' + 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@@@@@@@@@ +@@@@@@@@@@@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?@? + + ^Icon + constantNamed:'ImageEditor class fillGradientRectIcon' + 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@@@@@@@@@ +@@@@@@@@@@@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?@?