A new version of Morphic was added to project The Inbox:
http://source.squeak.org/inbox/Morphic-ct.1558.mcz
==================== Summary ====================
Name: Morphic-ct.1558
Author: ct
Time: 1 October 2019, 6:36:53.070339 pm
UUID: dd0d9425-c53c-934e-a797-8871e1d05378
Ancestors: Morphic-ul.1552
Adds LineMorph example.
This commit is part of reconstruction of Objectland (also known as "The Worlds of Squeak"). For more information, see: http://forum.world.st/The-Inbox-MorphicExtras-ct-267-mcz-td5104764.html
=============== Diff against Morphic-ul.1552 ===============
Item was added:
+ ----- Method: LineMorph class>>exampleBackArrow (in category 'examples') -----
+ exampleBackArrow
+ "LineMorph exampleBackArrow openInHand"
+
+ ^ (LineMorph from: 12 @ 0 to: 0 @ 0 color: Color black width: 1)
+ makeForwardArrow;
+ yourself!
A new version of MorphicExtras was added to project The Inbox:
http://source.squeak.org/inbox/MorphicExtras-ct.268.mcz
==================== Summary ====================
Name: MorphicExtras-ct.268
Author: ct
Time: 1 October 2019, 6:31:46.944339 pm
UUID: 82578cf0-8147-8f47-9f9a-fd3b7aaad5c5
Ancestors: MorphicExtras-ct.267
Adds PolygonMorph examples
Depends on ST80-ct.240.
This commit is part of reconstruction of Objectland (also known as "The Worlds of Squeak"). For more information, see: http://forum.world.st/The-Inbox-MorphicExtras-ct-267-mcz-td5104764.html
=============== Diff against MorphicExtras-ct.267 ===============
Item was added:
+ ----- Method: PolygonMorph class>>extraCircularVertices (in category '*MorphicExtras-examples') -----
+ extraCircularVertices
+
+ ^ ((Circle center: 400 @ 300 radius: 200 quadrant: 1) computeVertices: 5) reverse
+ , ((Circle center: 400 @ 300 radius: 200 quadrant: 4) computeVertices: 5) reverse
+ , ((Circle center: 400 @ 400 radius: 100 quadrant: 4) computeVertices: 5)
+ , ((Circle center: 400 @ 400 radius: 100 quadrant: 1) computeVertices: 5)
+ , ((Circle center: 400 @ 200 radius: 100 quadrant: 3) computeVertices: 5) reverse
+ , ((Circle center: 400 @ 200 radius: 100 quadrant: 2) computeVertices: 5) reverse!
Item was added:
+ ----- Method: PolygonMorph class>>extraExampleTextFlow (in category '*MorphicExtras-examples') -----
+ extraExampleTextFlow
+ "PolygonMorph extraExampleTextFlow openInHand"
+
+ | polygon text obstacle |
+ polygon := self new.
+ polygon
+ setVertices: self extraCircularVertices;
+ extent: 309 asPoint;
+ beSmoothCurve;
+ color: Color lightGray;
+ addHandles.
+
+ text := (TextMorph
+ string: 'TextMorphs can be chained together, causing their contents to flow between containers as either the contents or the containers change. If a TextMorph is embedded in another Morph, you can ask it to have fill the shape of that Morph. Moreover, you can ask it to avoid occlusions, in which case it will do its best to avoid collisions with siblings being in front of it. If a TextMorph is embedded in a CurveMorph, you can ask it to have the text follow the curve, as illustrated here.' asTextMorph
+ fontName: #BitstreamVeraSans
+ size: 14)
+ textColor: Color white;
+ fillsOwner: true;
+ yourself.
+ obstacle := StarMorph new
+ center: polygon center - (50 @ 25);
+ extent: 81 asPoint;
+ color: Color orchid;
+ yourself.
+
+ polygon
+ addMorph: text;
+ addMorph: obstacle.
+ text centered.
+ text container avoidsOcclusions: true.
+ ^ polygon!
Item was added:
+ ----- Method: PolygonMorph class>>extraExampleTrapeze (in category '*MorphicExtras-examples') -----
+ extraExampleTrapeze
+ "PolygonMorph extraExampleTrapeze openInHand"
+
+ | polygon text |
+ polygon := self new.
+ polygon
+ setVertices: {0 @ 100. 275 @ 100. 200 @ 0. 75 @ 0};
+ addHandles ;
+ balloonText: 'Click and drag the handles to change my shape'.
+ text := '<b>Polygons</b> can be closed or open, filled or empty as well as lined or convex and can have directed arrows, bevelled borders and last but not least adapted handles.' asHtmlText asMorph
+ beAllFont: (TextStyle default fontOfSize: 14);
+ fillsOwner: true;
+ yourself.
+ polygon addMorph: text.
+ text centered.
+ ^ polygon!
Item was added:
+ ----- Method: PolygonMorph class>>extraExampleTrapezePlus (in category '*MorphicExtras-examples') -----
+ extraExampleTrapezePlus
+ "PolygonMorph extraExampleTrapezePlus openInHand"
+ "Some additional decoration"
+
+ ^ self extraExampleTrapeze
+ fillStyle: ((GradientFillStyle
+ ramp: { 0.0 -> Color orange. 0.7 -> Color magenta twiceLighter. 1.0 -> Color red muchLighter })
+ origin: 0 @ 0; direction: 275 @ 100;
+ yourself);
+ borderWidth: 2;
+ borderColor: Color blue;
+ dashedBorder: {35. 20. Color yellow};
+ yourself!
A new version of Morphic was added to project The Inbox:
http://source.squeak.org/inbox/Morphic-ct.1557.mcz
==================== Summary ====================
Name: Morphic-ct.1557
Author: ct
Time: 1 October 2019, 6:25:19.707339 pm
UUID: 2c65699d-e477-f445-a4ab-00f2e1c854bf
Ancestors: Morphic-ul.1552
Adds simple SketchMorph example. Depends on Graphics-ct.422.
This commit is part of reconstruction of Objectland (also known as "The Worlds of Squeak"). For more information, see: http://forum.world.st/The-Inbox-MorphicExtras-ct-267-mcz-td5104764.html
=============== Diff against Morphic-ul.1552 ===============
Item was added:
+ ----- Method: SketchMorph class>>exampleMouseUpAction (in category 'examples') -----
+ exampleMouseUpAction
+ "SketchMorph exampleMouseUpAction openInWorld"
+
+ ^ (self withForm: Form squeakIcon)
+ addMouseUpActionWith: 'self inform: ''Carpe Squeak!!''';
+ yourself!
A new version of System was added to project The Inbox:
http://source.squeak.org/inbox/System-ct.1107.mcz
==================== Summary ====================
Name: System-ct.1107
Author: ct
Time: 1 October 2019, 4:30:20.065339 pm
UUID: de49d2b3-27eb-6d48-8afa-2a93b8b0ed51
Ancestors: System-mt.1102
Fixes bug in #allImplementorsOf:localTo: concerning duplicates, revealed in Tests-ct.419
== text below is ignored ===
Ancestors: System-mt.1102
System-mt.1102:
Adds a simple, yet convenient, way to scale icons for demo/hi-dpi mode.
A no-scale takes about 150 nanoseconds on my machine, which should be okay --- performance-wise --- for existing tools. Maybe we can improve the code a little bit more for the default scale.
Note that one could also use icons with s higher resolution, which would then be down-scaled to the reference extent...
A ChangeSet class>>removeEmptyChangeSets
M ChangeSet class>>removeEmptyUnnamedChangeSets
M MethodReference
M Preferences class>>changeFontSize:
M Preferences class>>setDefaultFonts:
M Preferences class>>useFormsInPaintBox
A Project>>interruptSystem:
M Project>>previewImageForm
D Project>>setViewSize:
A Project>>transcript
A Project>>userDelete
A Project>>viewSize:
M SmalltalkImage>>handleUserInterrupt
M SystemNavigation>>allImplementorsOf:localTo:
A ToolSet class>>browseMethod:
M Utilities class>>initializeCommonRequestStrings
=============== Diff against System-mt.1102 ===============
Item was changed:
----- Method: SystemNavigation>>allImplementorsOf:localTo: (in category 'query') -----
allImplementorsOf: aSelector localTo: aClass
"Answer a sorted collection of all the methods that are named aSelector in, above, or below the given class."
| result |
+ result := Set new.
- result := OrderedCollection new.
{ aClass theNonMetaClass. aClass theMetaClass } do: [ :baseClass |
baseClass withAllSuperAndSubclassesDoGently: [ :class |
(class includesSelector: aSelector) ifTrue: [
result add: (MethodReference class: class selector: aSelector) ] ] ].
+ ^result sorted!
- ^result sort!
A new version of Tests was added to project The Inbox:
http://source.squeak.org/inbox/Tests-ct.419.mcz
==================== Summary ====================
Name: Tests-ct.419
Author: ct
Time: 1 October 2019, 4:28:42.992339 pm
UUID: 63e06a89-0e97-2148-9c0c-79494748ca43
Ancestors: Tests-ul.418
Add regression test for a bug in SystemNavigation>>#allImplementorsOf:localTo: (a fix is coming soon)
=============== Diff against Tests-ul.418 ===============
Item was added:
+ ----- Method: SystemNavigationTest>>testAllImplementorsOfLocalTo (in category 'tests') -----
+ testAllImplementorsOfLocalTo
+ | result |
+ result := sysNav allImplementorsOf: #yourself localTo: Morph.
+ self assert: [result size = 1].
+ self assert: [result includes: (MethodReference class: Object selector: #yourself)].!
A new version of System was added to project The Inbox:
http://source.squeak.org/inbox/System-ct.1106.mcz
==================== Summary ====================
Name: System-ct.1106
Author: ct
Time: 1 October 2019, 4:00:54.218339 pm
UUID: 1df7e934-f73b-7d46-810b-e54b7bacce21
Ancestors: System-mt.1102
Scale down previewImageForm according to viewSize. We do not need a preview image of several million pixels ...
=============== Diff against System-mt.1102 ===============
Item was changed:
----- Method: Project>>previewImageForm (in category 'displaying') -----
previewImageForm
+ ^ self imageForm scaledToSize: self viewSize!
- ^ self imageForm!