[Pkg] The Trunk: MorphicExtras-nice.83.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Mar 28 20:45:03 UTC 2010


Nicolas Cellier uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-nice.83.mcz

==================== Summary ====================

Name: MorphicExtras-nice.83
Author: nice
Time: 28 March 2010, 10:44:30.839 pm
UUID: 1801796e-2b23-40cb-a749-256d1658a4d9
Ancestors: MorphicExtras-nice.82

Fix _ assignment in some class comments

=============== Diff against MorphicExtras-nice.82 ===============

Item was changed:
  RectangleMorph subclass: #GradientFillMorph
  	instanceVariableNames: 'fillColor2 gradientDirection colorArray colorDepth'
  	classVariableNames: ''
  	poolDictionaries: ''
  	category: 'MorphicExtras-Widgets'!
  
+ !GradientFillMorph commentStamp: 'nice 3/25/2010 23:01' prior: 0!
- !GradientFillMorph commentStamp: '<historical>' prior: 0!
  Class GradientFillMorph is obsolete. For getting gradient fills use a BorderedMorph with an appropriate fill style, e.g.,
  
  	| morph fs |
+ 	morph := BorderedMorph new.
+ 	fs := GradientFillStyle ramp: {0.0 -> Color red. 1.0 -> Color green}.
- 	morph _ BorderedMorph new.
- 	fs _ GradientFillStyle ramp: {0.0 -> Color red. 1.0 -> Color green}.
  	fs origin: morph bounds center.
  	fs direction: (morph bounds width // 2) @ 0.
  	fs radial: true.
  	morph fillStyle: fs.
  	World primaryHand attachMorph: morph.
  
  Here's the old (obsolete) comment:
  GradientFills cache an array of bitpatterns for the colors across their rectangle.  It costs a bit of space, but makes display fast enough to eschew the use of a bitmap.  The array must be recomputed whenever the colors, dimensions or display depth change.!

Item was changed:
  Object subclass: #Command
  	instanceVariableNames: 'phase cmdWording undoTarget undoSelector undoArguments redoTarget redoSelector redoArguments parameters'
  	classVariableNames: ''
  	poolDictionaries: ''
  	category: 'MorphicExtras-Undo'!
  
+ !Command commentStamp: 'nice 3/25/2010 22:59' prior: 0!
- !Command commentStamp: '<historical>' prior: 0!
  An object representing an undoable command to be done in the environment.
  
  Structure:
  	phase			indicates whether the cmd is current in undone or redone mode
   	cmdWording		The wording of the command (used in arming the "undo"/"redo" menu items
   	parameters		an IdentityDictionary /NOT USED/
  	undoTarget		Receiver, selector and arguments to accomplish undo
  	undoSelector
  	undoArguments
  	redoTarget		Receiver, selector and arguments to accomplish redo
  	redoSelector
  	redoArguments
  
  To use this, for any command you wish to use, you
  	*	Create an instance of Command, as follows...
+ 			cmd := Command new cmdWording: 'resizing'.
- 			cmd _ Command new cmdWording: 'resizing'.
  	*	Give the the command undo state and redo state, as follows...
  			cmd undoTarget: target selector: #extent: argument: oldExtent.
  			cmd redoTarget: target selector: #extent: argument: newExtent.
  	*	Send a message of the form
  			Command rememberCommand: cmd
  
  LastCommand is the last command that was actually done or undone.
  
  CommandHistory, applicable only when infiniteUndo is set, holds a 'tape' of the complete history of commands, as far back as it's possible to go.
  
  CommandExcursions, also applicable only in the infiniteUndo case, and rather at the fringe even then, holds segments of former CommandHistory that have been lopped off because of variant paths taken.!



More information about the Packages mailing list