[squeak-dev] The Inbox: MorphicExtras-ct.301.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Nov 13 02:02:32 UTC 2021


A new version of MorphicExtras was added to project The Inbox:
http://source.squeak.org/inbox/MorphicExtras-ct.301.mcz

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

Name: MorphicExtras-ct.301
Author: ct
Time: 13 November 2021, 3:02:28.407577 am
UUID: 0c51c015-1ef0-2041-850b-a2233e061e3c
Ancestors: MorphicExtras-mt.300

Adds a menu item to HistogramMorph for editing the display limit.

=============== Diff against MorphicExtras-mt.300 ===============

Item was added:
+ ----- Method: HistogramMorph>>addCustomMenuItems:hand: (in category 'menus') -----
+ addCustomMenuItems: aMenu hand: aHandMorph
+ 
+ 	super addCustomMenuItems: aMenu hand: aHandMorph.
+ 	
+ 	aMenu add: 'set limit...' translated action: #editLimit.!

Item was added:
+ ----- Method: HistogramMorph>>editLimit (in category 'menus') -----
+ editLimit
+ 
+ 	| newLimit |
+ 	newLimit := Project uiManager request: 'limit for histogram' translated initialAnswer: self limit asString.
+ 	newLimit isEmptyOrNil ifTrue: [^ false].
+ 	
+ 	self limit: newLimit asInteger.
+ 	^ true!



More information about the Squeak-dev mailing list