[squeak-dev] The Trunk: MorphicExtras-mt.304.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Dec 9 14:11:05 UTC 2021
Marcel Taeumel uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-mt.304.mcz
==================== Summary ====================
Name: MorphicExtras-mt.304
Author: mt
Time: 9 December 2021, 3:11:01.765766 pm
UUID: 6b0e523a-fc5a-4646-93e8-5aff864913ec
Ancestors: MorphicExtras-mt.302, MorphicExtras-ct.301, MorphicExtras-ct.302, MorphicExtras-ct.303
Merge.
MorphicExtras-ct.301:
Adds a menu item to HistogramMorph for editing the display limit.
MorphicExtras-ct.302:
Adds a menu item to FrameRateMorph for editing the update interval. Also corrects type hint for this variable.
MorphicExtras-ct.303:
Fix typo.
=============== Diff against MorphicExtras-mt.302 ===============
Item was changed:
StringMorph subclass: #FrameRateMorph
+ instanceVariableNames: 'updateInterval lastDisplayTime framesSinceLastDisplay mSecsPerFrame framesPerSec'
- instanceVariableNames: 'lastDisplayTime framesSinceLastDisplay updateInterval mSecsPerFrame framesPerSec'
classVariableNames: ''
poolDictionaries: ''
category: 'MorphicExtras-Demo'!
Item was added:
+ ----- Method: FrameRateMorph>>addCustomMenuItems:hand: (in category 'menu') -----
+ addCustomMenuItems: aMenu hand: aHandMorph
+
+ super addCustomMenuItems: aMenu hand: aHandMorph.
+
+ aMenu add: 'set update interval...' translated action: #editUpdateInterval.!
Item was added:
+ ----- Method: FrameRateMorph>>editUpdateInterval (in category 'menu') -----
+ editUpdateInterval
+
+ | old new |
+ old := self updateInterval.
+ new := Project uiManager request: 'edit update interval' translated initialAnswer: old asString.
+ new isEmptyOrNil ifTrue: [^ false].
+
+ self updateInterval: (old class readFromString: new).
+ ^ true!
Item was changed:
----- Method: FrameRateMorph>>updateInterval: (in category 'accessing') -----
+ updateInterval: aDuration
- updateInterval: aNumber
+ updateInterval := aDuration!
- updateInterval := aNumber!
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!
Item was changed:
Object subclass: #TextOnCurveContainer
instanceVariableNames: 'baseline inset textDirection textSegments'
classVariableNames: ''
poolDictionaries: ''
category: 'MorphicExtras-Text Support'!
+ !TextOnCurveContainer commentStamp: 'ct 12/2/2021 21:52' prior: 0!
+ I am not really a container in the sense of TextContainer. However, I get stored in the same field of a textMorph. My baseline specifies the vertical displacement of the character baselines from the curve center (0 means on center, 5 would mean, eg, the character baselines are 5 pixels above the curve center). This is essential enduring information. I also cache temporary layout information, including the locations, angles and bounding boxes of each of the characters as displayed.!
- !TextOnCurveContainer commentStamp: '<historical>' prior: 0!
- I am not really a container in the sense of TextContainer. However, I get stored in the same field of a textMorph. My baseline specifies the vertical displacement of the character baselines from the curve center (0 means on center, 5 would mean, eg, the character baselines are 5 pixels above the curve center). This is ssential enduring information. I also cache temporary layout information, including the locations, angles and bounding boxes of each of the characters as displayed.!
More information about the Squeak-dev
mailing list
|