Skip to content

Commit 591b293

Browse files
committed
Multiple minor refactorings
1 parent b0b868b commit 591b293

File tree

25 files changed

+53
-57
lines changed

25 files changed

+53
-57
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
instance creation
22
for: aMorph
33

4-
^ self new addContent: aMorph
4+
^ self new setContent: aMorph
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
handles
2-
addHandleAt: aPositionSelector
2+
addHandleAt: aPosition
33

44
| handle |
5-
handle := self createHandleOnMove: (self actionForCorner: aPositionSelector).
5+
handle := self createHandleOnMove: (self actionForCorner: aPosition).
66
handle setProperty: #morphicLayerNumber toValue: self handleLayerNumber.
77
self addMorphInLayer: handle.
8-
self resizeHandles at: aPositionSelector put: handle
8+
self resizeHandles at: aPosition put: handle

packages/Presenter-Core.package/PSContentContainer.class/instance/corners.st

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/Presenter-Core.package/PSContentContainer.class/instance/layoutFractionsOf..st

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
resizing
22
placeHandles
33

4-
self flag: #TODO. "Meta programming"
54
self resizeHandles keysAndValuesDo: [:key :each |
65
each center: (self perform: key)]

packages/Presenter-Core.package/PSContentContainer.class/instance/resizeFractionsOf..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ resizing
22
resizeFractionsOf: anEvent
33

44
| layoutFractions |
5-
layoutFractions := self layoutFractionsOf: anEvent cursorPoint.
5+
layoutFractions := self owner layoutFractionsOf: anEvent cursorPoint.
66
self isMagnetic ifTrue: [layoutFractions := layoutFractions roundTo: self rasterResolution].
77
^ layoutFractions

packages/Presenter-Core.package/PSContentContainer.class/instance/addContent..st renamed to packages/Presenter-Core.package/PSContentContainer.class/instance/setContent..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
contentHandling
2-
addContent: aMorph
2+
setContent: aMorph
33

44
self
55
position: aMorph position;

packages/Presenter-Core.package/PSContentContainer.class/methodProperties.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
22
"class" : {
3-
"for:" : "MK 5/18/2018 16:30" },
3+
"for:" : "LB 7/6/2018 18:09" },
44
"instance" : {
55
"actionForCorner:" : "LB 7/6/2018 16:30",
6-
"addContent:" : "LM 6/15/2018 19:11",
7-
"addHandleAt:" : "LB 7/6/2018 16:31",
6+
"addHandleAt:" : "LB 7/6/2018 18:07",
87
"addResizeHandles" : "LB 7/6/2018 16:15",
98
"child" : "MK 5/18/2018 20:03",
109
"child:" : "LM 5/21/2018 12:48",
1110
"copyChildToHand" : "LM 6/17/2018 11:52",
12-
"corners" : "MK 5/25/2018 17:11",
1311
"createContextMenu" : "LB 6/15/2018 21:42",
1412
"createHandleOnMove:" : "LB 7/6/2018 16:26",
1513
"defaultContextMenuContent" : "LM 6/17/2018 11:52",
@@ -34,15 +32,15 @@
3432
"ifAnyHandleContains:do:" : "MK 5/25/2018 17:06",
3533
"initialize" : "LB 7/6/2018 15:35",
3634
"isMagnetic" : "LB 7/5/2018 21:38",
37-
"layoutFractionsOf:" : "LB 7/5/2018 19:42",
3835
"mouseDown:" : "MK 6/1/2018 16:25",
3936
"notifySlideRescale:" : "LM 6/17/2018 19:02",
40-
"placeHandles" : "LB 7/6/2018 15:43",
37+
"placeHandles" : "LB 7/6/2018 18:10",
4138
"rasterResolution" : "LB 7/5/2018 19:42",
4239
"removeResizeHandles" : "MK 5/25/2018 16:18",
4340
"removedMorph:" : "WoC 5/23/2018 18:40",
4441
"resizeChild" : "MK 5/18/2018 20:03",
45-
"resizeFractionsOf:" : "LB 7/6/2018 16:20",
42+
"resizeFractionsOf:" : "LB 7/6/2018 17:48",
4643
"resizeHandleSize" : "MK 5/18/2018 19:13",
4744
"resizeHandles" : "MK 5/18/2018 17:43",
48-
"resizeHandles:" : "LB 7/6/2018 15:35" } }
45+
"resizeHandles:" : "LB 7/6/2018 15:35",
46+
"setContent:" : "LB 7/6/2018 18:08" } }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
nil
22
for: aString
33

4-
^ self new setContent: aString
4+
^ self new withMessage: aString
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
alphaThreshold
3+
4+
^ 1000

0 commit comments

Comments
 (0)