Skip to content

Commit f57f6f3

Browse files
authored
Merge pull request #76 from hpi-swa-teaching/master
release v0.6
2 parents a286213 + 5bda1ab commit f57f6f3

File tree

161 files changed

+611
-409
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+611
-409
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resizing
2+
actionForCorner: aSymbol
3+
4+
^ ('drag', aSymbol capitalized, 'Event:fromHandle:') asSymbol
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
handles
2+
addHandleAt: aPosition
3+
4+
| handle |
5+
handle := self createHandleOnMove: (self actionForCorner: aPosition).
6+
handle setProperty: #morphicLayerNumber toValue: self handleLayerNumber.
7+
self addMorphInLayer: handle.
8+
self resizeHandles at: aPosition put: handle

packages/Presenter-Core.package/PSContentContainer.class/instance/addHandleAtPosition.withIndex..st

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

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ handles
22
addResizeHandles
33

44
self hasHandles ifFalse: [
5-
self corners
6-
withIndexDo: [:each :index |
7-
self addHandleAtPosition: each withIndex: index].
5+
self addHandleAt: #topLeft.
6+
self addHandleAt: #topRight.
7+
self addHandleAt: #bottomRight.
8+
self addHandleAt: #bottomLeft.
9+
self placeHandles.
810
self hasHandles: true]

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/createHandleAtPosition.withIndex..st

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
handles
2+
createHandleOnMove: aSymbol
3+
4+
| handle |
5+
handle := RectangleMorph new
6+
extent: self resizeHandleSize;
7+
color: Color black.
8+
handle
9+
on: #mouseMove
10+
send: aSymbol
11+
to: self.
12+
^ handle
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resizing
2+
dragBottomLeftEvent: evt fromHandle: handle
3+
4+
self extentBottomLeft: (self resizeFractionsOf: evt)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
resizing
2+
dragBottomRightEvent: evt fromHandle: handle
3+
4+
self extentBottomRight: (self resizeFractionsOf: evt)

0 commit comments

Comments
 (0)