Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1765.mcz
==================== Summary ====================
Name: Morphic-mt.1765
Author: mt
Time: 29 April 2021, 10:43:58.612891 am
UUID: 33804a11-9924-af48-a156-b2796a328878
Ancestors: Morphic-mt.1764
Extract #boundsSignatureHash to "Connectors" project. Etoys does not really need it.
=============== Diff against Morphic-mt.1764 ===============
Item was removed:
- ----- Method: PolygonMorph>>boundsSignatureHash (in category 'attachments') -----
- boundsSignatureHash
- ^(vertices - (self positionInWorld)) hash
- !
Marcel Taeumel uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-mt.296.mcz
==================== Summary ====================
Name: MorphicExtras-mt.296
Author: mt
Time: 29 April 2021, 10:27:58.055338 am
UUID: a00d87c2-20a9-6041-9829-8600de5c06a7
Ancestors: MorphicExtras-mt.295
Complements Morphic-mt.1764
=============== Diff against MorphicExtras-mt.295 ===============
Item was added:
+ ----- Method: StringButtonMorph>>isButton (in category 'classification') -----
+ isButton
+
+ ^ true!
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.275.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-mt.275
Author: mt
Time: 29 April 2021, 10:27:13.467338 am
UUID: 31457269-9d9d-8d45-a393-882acbe56fc4
Ancestors: ToolBuilder-Morphic-mt.274
Complements Morphic-mt.1764
=============== Diff against ToolBuilder-Morphic-mt.274 ===============
Item was added:
+ ----- Method: PluggableCheckBoxMorph>>isButton (in category 'classification') -----
+ isButton
+
+ ^ true!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1764.mcz
==================== Summary ====================
Name: Morphic-mt.1764
Author: mt
Time: 29 April 2021, 10:25:06.452338 am
UUID: 0d4946b3-9ccb-1740-a7b1-e7baf16e42bf
Ancestors: Morphic-mt.1763
For better compatibility between the projects "Connectors" and "Etoys", extract the #isButton classification. See comment in Morph >> #isButton.
=============== Diff against Morphic-mt.1763 ===============
Item was added:
+ ----- Method: Morph>>isButton (in category 'classification') -----
+ isButton
+ "Answers whether this morph acts like a button, which usually entails a mouse-click handler. Originally used in the projects 'Connectors' and 'Etoys', receivers that claim to be a button need to answer to #actionSelector as well."
+
+ ^ false!
Item was added:
+ ----- Method: PluggableButtonMorph>>isButton (in category 'classification') -----
+ isButton
+
+ ^ true!
Item was added:
+ ----- Method: SimpleButtonMorph>>isButton (in category 'classification') -----
+ isButton
+
+ ^ true!
Item was added:
+ ----- Method: ThreePhaseButtonMorph>>isButton (in category 'classification') -----
+ isButton
+
+ ^ true
+ !
Nicolas Cellier uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-nice.458.mcz
==================== Summary ====================
Name: Tests-nice.458
Author: nice
Time: 28 April 2021, 6:11:51.033213 pm
UUID: 13fec56a-805e-754e-bd02-8cbaa015e102
Ancestors: Tests-jr.457
Document the fact that becomeForward: does NOT forward identityHash of receiver anymore (since Collections-eem.885 April 2020)
See #elementsForwardIdentityTo: vs #elementsForwardIdentityAndHashTo:
See also http://forum.world.st/How-to-become-immediate-objects-td5114931.html
=============== Diff against Tests-jr.457 ===============
Item was changed:
----- Method: BecomeTest>>testBecomeForward (in category 'tests') -----
testBecomeForward
"Test the forward become."
| a b c d |
a := 'ab' copy.
b := 'cd' copy.
+ c := Array with: a.
- c := a.
d := b.
a becomeForward: b.
self
assert: a = 'cd';
assert: b = 'cd';
+ assert: a == b;
+ assert: c first == b;
+ assert: d == b.
- assert: c = 'cd';
- assert: d = 'cd'.
-
!
Item was added:
+ ----- Method: BecomeTest>>testBecomeForwardCopyIdentityHash (in category 'tests') -----
+ testBecomeForwardCopyIdentityHash
+ "Check that
+ 1. the argument to becomeForward: is modified to have the receiver's identity hash.
+ 2. the receiver's identity hash is unchanged."
+
+ | a b ha |
+
+ a := 'ab' copy.
+ b := 'cd' copy.
+ ha := a identityHash.
+
+ a becomeForward: b copyHash: true.
+
+ self
+ assert: a identityHash = ha;
+ assert: b identityHash = ha.
+
+ !
Item was changed:
----- Method: BecomeTest>>testBecomeForwardDontCopyIdentityHash (in category 'tests') -----
testBecomeForwardDontCopyIdentityHash
"Check that
1. the argument to becomeForward: is NOT modified to have the receiver's identity hash.
+ 2. the receiver's identity hash is changed."
- 2. the receiver's identity hash is unchanged."
| a b hb |
a := 'ab' copy.
b := 'cd' copy.
hb := b identityHash.
a becomeForward: b copyHash: false.
self
assert: a identityHash = hb;
assert: b identityHash = hb.
!
Item was changed:
----- Method: BecomeTest>>testBecomeForwardIdentityHash (in category 'tests') -----
testBecomeForwardIdentityHash
+ "Document that the receiver hash is changed, but the argument hash is unchanged.
+ (a becomeForward: b) has thus same effect as (a becomeForward: b copyHash: false)"
- "Check that
- 1. the argument to becomeForward: is modified to have the receiver's identity hash.
- 2. the receiver's identity hash is unchanged."
+ | a b hb |
- | a b ha |
a := 'ab' copy.
b := 'cd' copy.
+ hb := b identityHash.
- ha := a identityHash.
a becomeForward: b.
self
+ assert: a identityHash = hb;
+ assert: b identityHash = hb.
- assert: a identityHash = ha;
- assert: b identityHash = ha.
!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1762.mcz
==================== Summary ====================
Name: Morphic-mt.1762
Author: mt
Time: 28 April 2021, 9:04:35.649168 am
UUID: 19ccb34e-5e3b-0e4d-a61f-bc953107aaf2
Ancestors: Morphic-mt.1761
Until the discussion is resolved, do not apply a list of exceptions for the "interactive print-it" feature/preference.
See http://forum.world.st/The-Inbox-Morphic-ct-1586-mcz-tp5106774p5129065.html
=============== Diff against Morphic-mt.1761 ===============
Item was changed:
----- Method: TextEditor>>printItTextFor: (in category 'do-its') -----
printItTextFor: anObject
+ self flag: #todo. "mt: Maybe reserve highlights for non-primitive structures only? Maybe skip ByteString, ByteSymbol, Number, Boolean, UndefinedObject? See discussion here: http://forum.world.st/The-Inbox-Morphic-ct-1586-mcz-tp5106774p5129065.html"
+
+ ^ self class interactivePrintIt
- ^ (self class interactivePrintIt and: [(anObject isString or: [anObject isNumber]) not])
ifFalse: [anObject printString]
ifTrue: [Text string: anObject printString attribute: (TextInspectIt on: anObject)]!