Mantis - Squeak
Viewing Issue Advanced Details
1015 Morphic tweak always 03-25-05 05:29 02-15-06 18:58
closed 3.8  
none 3.9  
0001015: [Goodie] SnapView provides clean screen shots and snapshot images of morphs.
I added an ability to the light blue view handle. If you hold the shift down you will get the exact image of the morph as an image morph.
If you have tilted the morph the image will be of the tilted morph.

To distinguish the snap from the real morph there is a slight border added to the snapshot. This can be changed or eliminated if desired.
This is the same goodie that I published to squeak dev before. I had to change the handle that is was connected to because the dup handle now uses the shift function for something else (as of 3.8).

The added advantage of view handle is that all handles are removed before the snap is taken and so a world snapView is the equivalent of a clean screen shot.
 SnapView-wiz.1.cs.gz [^] (836 bytes) 03-25-05 05:30
 TileHandleEnh-wiz.1.cs [^] (2,119 bytes) 01-02-06 14:50

01-02-06 14:59   
I've upload TileHandleEnh-wiz.1.cs to fix something I overlooked when I moved snapview to the view halo handle.

From the cs preamble:

When I wrote SnapView, I missed the fact that sw (Scott Wallace I believe) had 'temporarily' appropriated the shifted view handle to pop up an instance browser with handles.

Snapviews hook over rode sw's hook because of where I had placed it. Also openViewerForArgument had several other senders and so should not have been the place to check for a shift key distinction.

My solution was to move sw's shift function to the tear-off-a-tile handle instead.

My reasons for choosing this solution are:
1) The eye symbol on the view handle is evocative of my snap shot function.
2) the instanceBrowserWithTiles fits in with the theme of the tile handle.
3) the hook for sw's shift key was in the wrong place and made the code awkward and because of the other senders to that method possible incorrect.

If anyone thinks it should be the other way around I'm willing to negotiate. I think this is a good resolution for now.

With this addition everything is ready to go into the image.
02-15-06 18:58   
Name: MorphicExtras-jmv.9
Author: jmv
Time: 12 January 2006, 1:33:41 pm
UUID: 2720167c-765e-9541-8f14-dd3789d8fca8
Ancestors: MorphicExtras-CdG.7

Mantis-0503-TargetSighting, fix by Jerome Peace (wiz)
Mantis-1015-SnapView, fix by Jerome Peace (wiz)
Mantis-1771-ClickExerciser, fix by Jerome Peace (wiz)
Mantis-1625-Thumbnails, fix by Jerome Peace (wiz)
Mantis-1484-TrashHalo, fix by Jerome Peace (wiz)
Mantis-1454-ArrowPrototypeFix, fix by Jerome Peace (wiz)
Mantis-1347-ListDoubleClick, fix by Jerome Peace (wiz)
Reviewed by Juan Vuletich (jmv)