-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from hpi-swa-teaching/master
release v0.6
- Loading branch information
Showing
161 changed files
with
611 additions
and
409 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/Presenter-Core.package/PSContentContainer.class/class/for..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
instance creation | ||
for: aMorph | ||
|
||
^ self new addContent: aMorph | ||
^ self new setContent: aMorph |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSContentContainer.class/instance/actionForCorner..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resizing | ||
actionForCorner: aSymbol | ||
|
||
^ ('drag', aSymbol capitalized, 'Event:fromHandle:') asSymbol |
8 changes: 8 additions & 0 deletions
8
packages/Presenter-Core.package/PSContentContainer.class/instance/addHandleAt..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
handles | ||
addHandleAt: aPosition | ||
|
||
| handle | | ||
handle := self createHandleOnMove: (self actionForCorner: aPosition). | ||
handle setProperty: #morphicLayerNumber toValue: self handleLayerNumber. | ||
self addMorphInLayer: handle. | ||
self resizeHandles at: aPosition put: handle |
8 changes: 0 additions & 8 deletions
8
...resenter-Core.package/PSContentContainer.class/instance/addHandleAtPosition.withIndex..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
packages/Presenter-Core.package/PSContentContainer.class/instance/corners.st
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...enter-Core.package/PSContentContainer.class/instance/createHandleAtPosition.withIndex..st
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
packages/Presenter-Core.package/PSContentContainer.class/instance/createHandleOnMove..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
handles | ||
createHandleOnMove: aSymbol | ||
|
||
| handle | | ||
handle := RectangleMorph new | ||
extent: self resizeHandleSize; | ||
color: Color black. | ||
handle | ||
on: #mouseMove | ||
send: aSymbol | ||
to: self. | ||
^ handle |
4 changes: 4 additions & 0 deletions
4
...esenter-Core.package/PSContentContainer.class/instance/dragBottomLeftEvent.fromHandle..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resizing | ||
dragBottomLeftEvent: evt fromHandle: handle | ||
|
||
self extentBottomLeft: (self resizeFractionsOf: evt) |
4 changes: 4 additions & 0 deletions
4
...senter-Core.package/PSContentContainer.class/instance/dragBottomRightEvent.fromHandle..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resizing | ||
dragBottomRightEvent: evt fromHandle: handle | ||
|
||
self extentBottomRight: (self resizeFractionsOf: evt) |
14 changes: 6 additions & 8 deletions
14
.../Presenter-Core.package/PSContentContainer.class/instance/dragCorner.event.fromHandle..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
resizing | ||
dragCorner: index event: evt fromHandle: handle | ||
|
||
| layoutFractions | | ||
layoutFractions := self layoutFractionsOf: evt cursorPoint. | ||
index caseOf: { [1] -> [self extentTopLeft: layoutFractions]. | ||
[2] -> [self extentTopRight: layoutFractions]. | ||
[3] -> [self extentBottomRight: layoutFractions]. | ||
[4] -> [self extentBottomLeft: layoutFractions]} | ||
dragCorner: aSymbol event: event fromHandle: aMorph | ||
|
||
self | ||
perform: (self actionForCorner: aSymbol) | ||
with: event | ||
with: aMorph |
4 changes: 4 additions & 0 deletions
4
.../Presenter-Core.package/PSContentContainer.class/instance/dragTopLeftEvent.fromHandle..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resizing | ||
dragTopLeftEvent: evt fromHandle: handle | ||
|
||
self extentTopLeft: (self resizeFractionsOf: evt) |
4 changes: 4 additions & 0 deletions
4
...Presenter-Core.package/PSContentContainer.class/instance/dragTopRightEvent.fromHandle..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resizing | ||
dragTopRightEvent: evt fromHandle: handle | ||
|
||
self extentTopRight: (self resizeFractionsOf: evt) |
3 changes: 1 addition & 2 deletions
3
packages/Presenter-Core.package/PSContentContainer.class/instance/extentBottomLeft..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
resizing | ||
extentBottomLeft: aPoint | ||
|
||
self | ||
layoutFrame | ||
self layoutFrame | ||
leftFraction: aPoint x; | ||
bottomFraction: aPoint y. | ||
self layoutChanged |
3 changes: 1 addition & 2 deletions
3
packages/Presenter-Core.package/PSContentContainer.class/instance/extentBottomRight..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
resizing | ||
extentBottomRight: aPoint | ||
|
||
self | ||
layoutFrame | ||
self layoutFrame | ||
rightFraction: aPoint x; | ||
bottomFraction: aPoint y. | ||
self layoutChanged |
3 changes: 1 addition & 2 deletions
3
packages/Presenter-Core.package/PSContentContainer.class/instance/extentTopLeft..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
resizing | ||
extentTopLeft: aPoint | ||
|
||
self | ||
layoutFrame | ||
self layoutFrame | ||
leftFraction: aPoint x; | ||
topFraction: aPoint y. | ||
self layoutChanged |
3 changes: 1 addition & 2 deletions
3
packages/Presenter-Core.package/PSContentContainer.class/instance/extentTopRight..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
resizing | ||
extentTopRight: aPoint | ||
|
||
self | ||
layoutFrame | ||
self layoutFrame | ||
rightFraction: aPoint x; | ||
topFraction: aPoint y. | ||
self layoutChanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSContentContainer.class/instance/isMagnetic.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
magnetic raster | ||
isMagnetic | ||
|
||
^ self owner isMagnetic |
8 changes: 0 additions & 8 deletions
8
packages/Presenter-Core.package/PSContentContainer.class/instance/layoutFractionsOf..st
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
packages/Presenter-Core.package/PSContentContainer.class/instance/placeHandles.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
resizing | ||
placeHandles | ||
|
||
self resizeHandles withIndexDo: [:each :index | | ||
each center: (self corners at: index)] | ||
self resizeHandles keysAndValuesDo: [:key :each | | ||
each center: (self perform: key)] |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSContentContainer.class/instance/rasterResolution.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
magnetic raster | ||
rasterResolution | ||
|
||
^ (0.04@0.03) |
7 changes: 7 additions & 0 deletions
7
packages/Presenter-Core.package/PSContentContainer.class/instance/resizeFractionsOf..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resizing | ||
resizeFractionsOf: anEvent | ||
|
||
| layoutFractions | | ||
layoutFractions := self owner layoutFractionsOf: anEvent cursorPoint. | ||
self isMagnetic ifTrue: [layoutFractions := layoutFractions roundTo: self rasterResolution]. | ||
^ layoutFractions |
4 changes: 2 additions & 2 deletions
4
packages/Presenter-Core.package/PSContentContainer.class/instance/resizeHandles..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
resizeHandles: anOrderedCollection | ||
resizeHandles: aDictionary | ||
|
||
resizeHandles := anOrderedCollection | ||
resizeHandles := aDictionary |
2 changes: 1 addition & 1 deletion
2
...ntContainer.class/instance/addContent..st → ...ntContainer.class/instance/setContent..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
contentHandling | ||
addContent: aMorph | ||
setContent: aMorph | ||
|
||
self | ||
position: aMorph position; | ||
|
36 changes: 21 additions & 15 deletions
36
packages/Presenter-Core.package/PSContentContainer.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,46 @@ | ||
{ | ||
"class" : { | ||
"for:" : "MK 5/18/2018 16:30" }, | ||
"for:" : "LB 7/6/2018 18:09" }, | ||
"instance" : { | ||
"addContent:" : "LM 6/15/2018 19:11", | ||
"addHandleAtPosition:withIndex:" : "MK 5/25/2018 17:37", | ||
"addResizeHandles" : "MK 5/25/2018 17:39", | ||
"actionForCorner:" : "LB 7/6/2018 16:30", | ||
"addHandleAt:" : "LB 7/6/2018 18:07", | ||
"addResizeHandles" : "LB 7/6/2018 16:15", | ||
"child" : "MK 5/18/2018 20:03", | ||
"child:" : "LM 5/21/2018 12:48", | ||
"copyChildToHand" : "LM 6/17/2018 11:52", | ||
"corners" : "MK 5/25/2018 17:11", | ||
"createContextMenu" : "LB 6/15/2018 21:42", | ||
"createHandleAtPosition:withIndex:" : "MK 5/25/2018 17:37", | ||
"createHandleOnMove:" : "LB 7/6/2018 16:26", | ||
"defaultContextMenuContent" : "LM 6/17/2018 11:52", | ||
"disablePresentationMode" : "WoC 6/17/2018 18:44", | ||
"dragCorner:event:fromHandle:" : "MK 5/25/2018 17:10", | ||
"dragBottomLeftEvent:fromHandle:" : "LB 7/6/2018 16:32", | ||
"dragBottomRightEvent:fromHandle:" : "LB 7/6/2018 16:28", | ||
"dragCorner:event:fromHandle:" : "LB 7/6/2018 16:35", | ||
"dragTopLeftEvent:fromHandle:" : "LB 7/6/2018 16:32", | ||
"dragTopRightEvent:fromHandle:" : "LB 7/6/2018 16:32", | ||
"enablePresentationMode" : "LM 6/8/2018 20:10", | ||
"extent:" : "MK 5/25/2018 17:11", | ||
"extentBottomLeft:" : "MK 5/25/2018 17:12", | ||
"extentBottomRight:" : "MK 5/25/2018 17:12", | ||
"extentTopLeft:" : "MK 5/25/2018 17:12", | ||
"extentTopRight:" : "MK 5/25/2018 17:12", | ||
"extentBottomLeft:" : "LB 7/6/2018 15:57", | ||
"extentBottomRight:" : "LB 7/6/2018 15:57", | ||
"extentTopLeft:" : "LB 7/6/2018 15:57", | ||
"extentTopRight:" : "LB 7/6/2018 15:57", | ||
"filterEvent:for:" : "MK 6/1/2018 18:02", | ||
"grabChild" : "LM 6/15/2018 16:32", | ||
"handleLayerNumber" : "MK 5/25/2018 16:26", | ||
"handlesMouseDown:" : "WoC 5/22/2018 19:48", | ||
"hasHandles" : "MK 5/18/2018 19:42", | ||
"hasHandles:" : "MK 5/25/2018 17:01", | ||
"ifAnyHandleContains:do:" : "MK 5/25/2018 17:06", | ||
"initialize" : "MK 5/25/2018 17:10", | ||
"layoutFractionsOf:" : "LB 5/22/2018 16:09", | ||
"initialize" : "LB 7/6/2018 15:35", | ||
"isMagnetic" : "LB 7/5/2018 21:38", | ||
"mouseDown:" : "MK 6/1/2018 16:25", | ||
"notifySlideRescale:" : "LM 6/17/2018 19:02", | ||
"placeHandles" : "WoC 6/17/2018 13:22", | ||
"placeHandles" : "LB 7/6/2018 18:10", | ||
"rasterResolution" : "LB 7/5/2018 19:42", | ||
"removeResizeHandles" : "MK 5/25/2018 16:18", | ||
"removedMorph:" : "WoC 5/23/2018 18:40", | ||
"resizeChild" : "MK 5/18/2018 20:03", | ||
"resizeFractionsOf:" : "LB 7/6/2018 17:48", | ||
"resizeHandleSize" : "MK 5/18/2018 19:13", | ||
"resizeHandles" : "MK 5/18/2018 17:43", | ||
"resizeHandles:" : "MK 5/18/2018 17:44" } } | ||
"resizeHandles:" : "LB 7/6/2018 15:35", | ||
"setContent:" : "LB 7/6/2018 18:08" } } |
2 changes: 1 addition & 1 deletion
2
packages/Presenter-Core.package/PSFadingMessage.class/class/for..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
nil | ||
for: aString | ||
|
||
^ self new setContent: aString | ||
^ self new withMessage: aString |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSFadingMessage.class/instance/alphaThreshold.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
alphaThreshold | ||
|
||
^ 1000 |
4 changes: 2 additions & 2 deletions
4
packages/Presenter-Core.package/PSFadingMessage.class/instance/content..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
content: anObject | ||
content: aMorph | ||
|
||
content := anObject | ||
content := aMorph |
4 changes: 2 additions & 2 deletions
4
packages/Presenter-Core.package/PSFadingMessage.class/instance/remaining..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
remaining: anObject | ||
remaining: aNumber | ||
|
||
remaining := anObject | ||
remaining := aNumber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dingMessage.class/instance/setContent..st → ...ingMessage.class/instance/withMessage..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
packages/Presenter-Core.package/PSFadingMessage.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
{ | ||
"class" : { | ||
"for:" : "WoC 6/15/2018 17:24" }, | ||
"for:" : "LB 7/6/2018 18:05" }, | ||
"instance" : { | ||
"active" : "WoC 6/15/2018 19:23", | ||
"active:" : "WoC 6/15/2018 19:23", | ||
"alphaThreshold" : "LB 7/6/2018 18:03", | ||
"content" : "WoC 6/15/2018 17:21", | ||
"content:" : "WoC 6/15/2018 17:21", | ||
"content:" : "LB 7/6/2018 18:02", | ||
"defaultPadding" : "WoC 6/15/2018 17:31", | ||
"fadingTime" : "WoC 6/15/2018 17:46", | ||
"initialize" : "WoC 6/15/2018 19:23", | ||
"isActive" : "WoC 6/15/2018 19:23", | ||
"remaining" : "WoC 6/15/2018 17:41", | ||
"remaining:" : "WoC 6/15/2018 17:41", | ||
"setContent:" : "WoC 6/15/2018 18:13", | ||
"remaining:" : "LB 7/6/2018 18:03", | ||
"step" : "WoC 6/15/2018 17:43", | ||
"stepTime" : "WoC 6/15/2018 17:55", | ||
"updateColor" : "WoC 6/15/2018 17:54" } } | ||
"updateColor" : "LB 7/6/2018 18:03", | ||
"withMessage:" : "LB 7/6/2018 18:05" } } |
4 changes: 3 additions & 1 deletion
4
packages/Presenter-Core.package/PSMiniature.class/class/forSlide..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
as yet unclassified | ||
forSlide: aPSSlide | ||
|
||
^ self new setSlide: aPSSlide | ||
^ self new | ||
slide: aPSSlide; | ||
yourself |
4 changes: 0 additions & 4 deletions
4
packages/Presenter-Core.package/PSMiniature.class/instance/defaultSize.st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSMiniature.class/instance/defaultWidth.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
defaultWidth | ||
|
||
^ 80 |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSMiniature.class/instance/formSize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
formSize | ||
|
||
^ self defaultWidth @ (self defaultWidth * self slide sideRatio) |
Oops, something went wrong.