[updates] 20 more for 3.2alpha

Dan Ingalls Dan at SqueakLand.org
Mon Oct 29 19:25:28 UTC 2001


Folks -

Herewith the summaries of 20 recent updates just posted to the servers.

	- Dan
-----------------------
4442LogError2-tk -- Ted Kaehler -- 19 October 2001
Limit the length of each object printed in an error report."

4443stringChangedFix-nk -- Ned Konz -- 12 October 2001
This fixes an error in my prior attempt.
In Change Set 4393StringMorphOptimize-nk
I missed a changed message in the case where
the StringMorph doesn't change size. This fixes
that problem and still avoids sending multiple changed messages for a single change."

4444thumbnailScaling-nk -- Ned Konz -- 18 October 2001
The thumbnails used in the PartsBins (including in the Objects tool) were being stretched vertically when they were too long.  You can see this in the StringMorph and Clock thumbnails.
This fixes the scaling so that the aspect ratio is maintained.
The thumbnail cache is cleared, so it may take a few seconds
to see some of the objects tool pages the first time."

4445newMorph-sw -- Scott Wallace -- 20 October 2001
Restores the 'from alphabetical list...' option to the non-classic variant of the 'new morph' menu.
Provides info such that the ScorePlayer appears in the Objects tool."

4446FuzzyFlood-di -- Dan Ingalls -- 18 October 2001
Introduces a new variant of the bitmap flood algorithm, designed to allow for minor variations of color.  This allows one to get reasonable behavior in, eg, images reconstructed from .jpeg files, and images taken from real life.  Two preferences, #areaFillsAreTolerant and #areaFillsAreVeryTolerant, govern the use of this feature.  They affect both flooding in the SketchEditor and grabbing the screen by flood area.
I'm proud of this feature because it does not affect the flooding algorithm or its performance at all.  It simply makes the maze follower 'color blind' to minor variations in color by introducing a tweaked color map.
Another feature is also added -- the ability to add a border to a sketchMroph.  This is located in the 'painting...' option of the SketchMorph menu.  It should be generalized in color but, hey, I've done the hard work ;-).

4447numberType-sw -- Scott Wallace -- 23 October 2001
Fleshes out some details of the Number vocabulary by providing accurate result types and argument types for the method-interrfaces.  The benefits will show up immediately in a viewer open on a number -- try, for example, evaluating '123 beViewed'"

4448sampleImageForm-sw -- Scott Wallace -- 24 October 2001
Allows Morph classes to provide their own sample images for the benefit of thumbnail creation; this allow us to avoid launching sample instances only for the benefit of obtaining thumbnails when the very launching of those sample instances may have consequences we do not want, such as initializing the network or asking the user an unexpected question.
The capabilitiy is illustrated by the AudioChatGUI morph (where we wish to avoid actually initiating a session just to create an icon!), as well as by two StarSqueak examples, where the appearance of the initial condition of a simulation is much less appropriate than the appearance after the simulation has run for some time."

4449zipToolInObjectsTool-nk -- Ned Konz -- 24 October 2001
This adds the Archive Viewer to the Tools and Useful pages of the Object Tool as 'Zip Tool'.
It fixes the problem of opening an extra window that my prior change set had. This fix was contributed by Darryl Smith.
It also fixes the pane color in the AlternativeWindowLook, which was annoyingly translucent."

4450EtoyRenameFix-svp -- Stephen Pair -- 14 October 2001
Fixes the bug introduced in update 4361UniTile10 that brought about a halt when attempting to rename a script associated with a PasteUpMorph.
BugFixing Party @ Camp Smalltalk OOPSLA 2001.  
The Oct 11, 2001 bug report was:
1. Drag a holder out of the 'Supplies' bin
2. Open a viewer for the holder
3. Create a new script (by dragging out the 'emptyScript' tile)
4. Change the name of the script to anything
5. Hit return, and get a walkback.  MessageNotUnderstood: cards"

4451dropGz-sw -- Scott Wallace -- 26 October 2001
When you drop a .gz file onto the icon of a running Squeak application, the contents of it will now be displayed in decompressed form.  A more general and modular mechanism is needed to open the right kind of tool upon a drop, but in the interim this provides the convenience that we can quickly see the decompressed contents of .gz files that come flying into our lives via email through direct dNd from the OS, or indeed right from a dNd-friendly email client such as Eudora"

4452EndianStartup-tk -- Ted Kaehler -- 24 October 2001
When an export image segment is brought into an image, it is like an image starting up.  Certain startUp messages need to be run.  These are byte and word reversals for nonPointer data that comes from a machine of the opposite endianness.   We pass over all objects in the segment, and:
	The first time an instance of class X is encountered, (msg := X startUpFrom: anImageSegment) is sent.  If msg is nil, the usual case, it means that instances of X do not need special work.  X is included in the IdentitySet, noStartUpNeeded.  If msg is not nil, store it in the dictionary startUps which contains (class -> messageSend).  
	When a later instance of X is encountered, if X is in noStartUpNeeded, do nothing.  If X is in startUps, send the message to the instance.  Typically this is a message like #swapShortObjects.
	Every class that implements #startUp, should see if it needs a parallel implementation of #startUpFrom:.  (Data in 4-byte chunks is handled automatically by the image loader and by fileStream for ImageSegment loading.  startUpFrom: is only for exceptions.)
Added startUp for class SoundBuffer."

4453ReducePalette-di -- Dan Ingalls -- 17 October 2001
Adds an option to 'reduce color palette' in the SketchMorph 'paint...' menu.  In this manner images may be compressed much better, and will work much better with the paint can and select-by-flood tools.  Note: this has not been engineered.  There are much fancier solutions in the literature.

4454JPEGimageDepth-di -- Dan Ingalls -- 28 October 2001
The method nextImageDitheredToDepth: in JPEGReadWriter is changed to produce a form of the depth supplied (was always 32).
At the sytem level, this means that JPEGs produce forms with a depth equal to that of the Squeak display."

4455PastEndPutFix-di -- Dan Ingalls -- 28 October 2001
An optimization to WriteStream nextPutAll: had defeated the operation of LimitedWriteStream.  
This changeSet suppresses the optimization only when the pastEndPut: logic should be triggered.  It also factors pastEndPut: in LimitedWriteStream so that it calls super.
Thus besides restoring the function of LimitedWriteStreams, the change consolidates three independent methods for handling stream overflow.

4456AllObjectsSelect-di -- Dan Ingalls -- 28 October 2001
Adds Smalltalk allObjectsSelect: as companion to allObjectsDo:.

4457LowSpaceFix-hg-di -- Dan Ingalls (from Henrik Gedenryd) -- 28 October 2001
Fixes a but that interfered with Low Space notification.

4458JPEGMoreCompact -- Andreas Raab -- 28 October 2001
Reduce the memory requirements for the jpeg reader."

4459CurveTextClipFix-di -- Dan Ingalls -- 28 October 2001
Repairs a bug introduced as part of the conversion of TextMorphs to being bordered.
Requires bounds to be sent as a message, esp in innerBounds.

4460keepTextFont-nk -- Ned Konz -- 20 October 2001
When you use TextMorphs from the EToy system and you change their contents using the characters or numericValue slots, font changes get lost. This change set makes it so that if a TextMorph is all the same font, that font is used when the contents change, thereby keeping the appearance of the TextMorph uniform.
To use this, just select the entire Text of a TextMorph and apply font color, emphasis, or size changes as desired to the whole text.
Then you can change the characters or numericValue slots from EToys without changing the TextMorph's appearance."

4461scriptingCategory-sw -- Scott Wallace -- 29 October 2001 -- Manually Patched sw 10/29/2001 06:07
The 'miscellaneous' category was getting unwieldy in the etoy viewer, so the items that related to starting and stopping scripts are now moved off to their own 'scripting' category.
(Caution: order is essential in this fileout)"





More information about the Squeak-dev mailing list