Andreas Raab uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ar.404.mcz
==================== Summary ====================
Name: Morphic-ar.404
Author: ar
Time: 28 March 2010, 3:13:44.42 pm
UUID: 5ef067a6-55f8-4f4e-8aa1-f5d73a6430fa
Ancestors: Morphic-ar.403
MessageNames to the rescue!
=============== Diff against Morphic-ar.403 ===============
Item was changed:
----- Method: SearchBarMorph>>smartSearch (in category 'search') -----
smartSearch
"Take the user input and perform an appropriate search"
| input |
input := self contents asString ifEmpty:[^self].
(Smalltalk bindingOf: input) ifNotNil:[:assoc|
"It's a global or a class"
^ToolSet browse: assoc value class selector: nil.
].
(SystemNavigation new allImplementorsOf: input asSymbol) ifNotEmpty:[:list|
^SystemNavigation new
browseMessageList: list
name: 'Implementors of ' , input
].
input first isUppercase ifTrue:[
(Utilities classFromPattern: input withCaption: '') ifNotNil:[:aClass|
^ToolSet browse: aClass selector: nil.
].
] ifFalse:[
+ ^ToolSet default browseMessageNames: input
- "Should offer a list of selectors or so"
].
"Not found"
Beeper beepPrimitive.!
Andreas Raab uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-ar.84.mcz
==================== Summary ====================
Name: MorphicExtras-ar.84
Author: ar
Time: 28 March 2010, 3:04:38.596 pm
UUID: e21b4f7f-8d67-2541-97c2-49b66e3877fd
Ancestors: MorphicExtras-nice.83, MorphicExtras-klub.83
Merging MorphicExtras-klub.83:
- ClockMorph doesn't render subsecond values anymore
=============== Diff against MorphicExtras-nice.83 ===============
Item was changed:
----- Method: ClockMorph>>step (in category 'stepping and presenter') -----
step
+
| time |
super step.
+ time := String streamContents: [ :stream |
+ | t |
+ t := Time now.
+ t seconds: t asSeconds. "ignore nanoSeconds"
+ t
+ print24: (show24hr == true)
+ showSeconds: (showSeconds == true)
+ on: stream].
+ self contents: time!
- time := String streamContents:
- [:aStrm | Time now print24: (show24hr == true) showSeconds: (showSeconds == true) on: aStrm].
-
- self contents: time !
Item was changed:
----- Method: ClockMorph>>stepTime (in category 'testing') -----
stepTime
"Answer the desired time between steps in milliseconds."
+ ^999!
- ^ 1000!
Andreas Raab uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-ar.84.mcz
==================== Summary ====================
Name: MorphicExtras-ar.84
Author: ar
Time: 28 March 2010, 3:04:38.596 pm
UUID: e21b4f7f-8d67-2541-97c2-49b66e3877fd
Ancestors: MorphicExtras-nice.83, MorphicExtras-klub.83
Merging MorphicExtras-klub.83:
- ClockMorph doesn't render subsecond values anymore
=============== Diff against MorphicExtras-nice.83 ===============
Item was changed:
----- Method: ClockMorph>>step (in category 'stepping and presenter') -----
step
+
| time |
super step.
+ time := String streamContents: [ :stream |
+ | t |
+ t := Time now.
+ t seconds: t asSeconds. "ignore nanoSeconds"
+ t
+ print24: (show24hr == true)
+ showSeconds: (showSeconds == true)
+ on: stream].
+ self contents: time!
- time := String streamContents:
- [:aStrm | Time now print24: (show24hr == true) showSeconds: (showSeconds == true) on: aStrm].
-
- self contents: time !
Item was changed:
----- Method: ClockMorph>>stepTime (in category 'testing') -----
stepTime
"Answer the desired time between steps in milliseconds."
+ ^999!
- ^ 1000!
Andreas Raab uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-ar.84.mcz
==================== Summary ====================
Name: MorphicExtras-ar.84
Author: ar
Time: 28 March 2010, 3:04:38.596 pm
UUID: e21b4f7f-8d67-2541-97c2-49b66e3877fd
Ancestors: MorphicExtras-nice.83, MorphicExtras-klub.83
Merging MorphicExtras-klub.83:
- ClockMorph doesn't render subsecond values anymore
=============== Diff against MorphicExtras-nice.83 ===============
Item was changed:
----- Method: ClockMorph>>step (in category 'stepping and presenter') -----
step
+
| time |
super step.
+ time := String streamContents: [ :stream |
+ | t |
+ t := Time now.
+ t seconds: t asSeconds. "ignore nanoSeconds"
+ t
+ print24: (show24hr == true)
+ showSeconds: (showSeconds == true)
+ on: stream].
+ self contents: time!
- time := String streamContents:
- [:aStrm | Time now print24: (show24hr == true) showSeconds: (showSeconds == true) on: aStrm].
-
- self contents: time !
Item was changed:
----- Method: ClockMorph>>stepTime (in category 'testing') -----
stepTime
"Answer the desired time between steps in milliseconds."
+ ^999!
- ^ 1000!
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.!
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.!
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.!