-
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 #61 from hpi-swa-teaching/master
PowerSqueak v0.3
- Loading branch information
Showing
183 changed files
with
936 additions
and
121 deletions.
There are no files selected for viewing
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
10 changes: 6 additions & 4 deletions
10
packages/BaselineOfPresenter.package/BaselineOfPresenter.class/instance/preLoad.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,7 +1,9 @@ | ||
baseline | ||
preLoad | ||
|
||
|
||
"Fixes an invalid state, which is present in some versions of Squeak. | ||
Required in order for Text scaling to work correctly" | ||
(TextStyle named: 'BitstreamVeraSans') fontArray do: [:font | | ||
font | ||
instVarNamed: #derivatives | ||
put: ((font instVarNamed: #derivatives) reject: [:ea | ea isKindOf: TTCFontSet])] | ||
font | ||
instVarNamed: #derivatives | ||
put: ((font instVarNamed: #derivatives) reject: [:ea | ea isKindOf: TTCFontSet])] |
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
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
7 changes: 7 additions & 0 deletions
7
packages/Presenter-Core.package/PSContentContainer.class/instance/copyChildToHand.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 @@ | ||
context menu | ||
copyChildToHand | ||
|
||
| copy | | ||
copy := self child copy. | ||
copy center: ActiveHand center. | ||
ActiveHand grabMorph: copy. |
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
5 changes: 5 additions & 0 deletions
5
packages/Presenter-Core.package/PSContentContainer.class/instance/grabChild.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,5 @@ | ||
context menu | ||
grabChild | ||
|
||
self child center: ActiveHand position. | ||
ActiveHand grabMorph: self child |
3 changes: 2 additions & 1 deletion
3
packages/Presenter-Core.package/PSContentContainer.class/instance/notifySlideRescale..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,5 @@ | ||
scaling | ||
notifySlideRescale: newExtent | ||
|
||
(self child hasProperty: #acceptRescale) ifTrue: [self child rescale: newExtent] | ||
(self child hasProperty: #acceptRescale) | ||
ifTrue: [self child rescale: newExtent] |
2 changes: 1 addition & 1 deletion
2
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 | | ||
self resizeHandles withIndexDo: [:each :index | | ||
each center: (self corners at: index)] |
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
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
nil | ||
for: aString | ||
|
||
^ self new setContent: aString |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSFadingMessage.class/instance/active..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 | ||
active: anObject | ||
|
||
active := anObject |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSFadingMessage.class/instance/active.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 | ||
active | ||
|
||
^ active |
4 changes: 4 additions & 0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
content: anObject | ||
|
||
content := anObject |
4 changes: 4 additions & 0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
content | ||
|
||
^ content |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSFadingMessage.class/instance/defaultPadding.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 | ||
defaultPadding | ||
|
||
^ 10 |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSFadingMessage.class/instance/fadingTime.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 | ||
fadingTime | ||
|
||
^ 1500 |
10 changes: 10 additions & 0 deletions
10
packages/Presenter-Core.package/PSFadingMessage.class/instance/initialize.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,10 @@ | ||
initialize-release | ||
initialize | ||
|
||
super initialize. | ||
self | ||
content: StringMorph new; | ||
addMorph: self content; | ||
color: Color gray; | ||
remaining: self fadingTime; | ||
startStepping |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSFadingMessage.class/instance/isActive.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 @@ | ||
testing | ||
isActive | ||
|
||
^ active |
4 changes: 4 additions & 0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
remaining: anObject | ||
|
||
remaining := anObject |
4 changes: 4 additions & 0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
remaining | ||
|
||
^ remaining |
6 changes: 6 additions & 0 deletions
6
packages/Presenter-Core.package/PSFadingMessage.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
accessing | ||
setContent: aString | ||
|
||
self content contents: aString. "here no cascade because it fixes a presentation bug" | ||
self bounds: (self content position corner: self content bottomRight + self defaultPadding). | ||
self content center: self center. |
6 changes: 6 additions & 0 deletions
6
packages/Presenter-Core.package/PSFadingMessage.class/instance/step.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,6 @@ | ||
stepping and presenter | ||
step | ||
|
||
self remaining <= 0 | ||
ifTrue: [ self delete ] | ||
ifFalse: [self updateColor] |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSFadingMessage.class/instance/stepTime.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 @@ | ||
stepping and presenter | ||
stepTime | ||
|
||
^ 10 |
9 changes: 9 additions & 0 deletions
9
packages/Presenter-Core.package/PSFadingMessage.class/instance/updateColor.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,9 @@ | ||
stepping and presenter | ||
updateColor | ||
|
||
| alpha | | ||
self remaining: self remaining - 10. | ||
self remaining < 1000 | ||
ifTrue: [ | ||
alpha := remaining / 1000.0. | ||
self color: (self color alpha: alpha)] |
18 changes: 18 additions & 0 deletions
18
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"class" : { | ||
"for:" : "WoC 6/15/2018 17:24" }, | ||
"instance" : { | ||
"active" : "WoC 6/15/2018 19:23", | ||
"active:" : "WoC 6/15/2018 19:23", | ||
"content" : "WoC 6/15/2018 17:21", | ||
"content:" : "WoC 6/15/2018 17:21", | ||
"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", | ||
"step" : "WoC 6/15/2018 17:43", | ||
"stepTime" : "WoC 6/15/2018 17:55", | ||
"updateColor" : "WoC 6/15/2018 17:54" } } |
16 changes: 16 additions & 0 deletions
16
packages/Presenter-Core.package/PSFadingMessage.class/properties.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"category" : "Presenter-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"remaining", | ||
"content", | ||
"active" ], | ||
"name" : "PSFadingMessage", | ||
"pools" : [ | ||
], | ||
"super" : "Morph", | ||
"type" : "normal" } |
2 changes: 1 addition & 1 deletion
2
packages/Presenter-Core.package/PSPresentationTool.class/class/open.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 | ||
open | ||
open | ||
|
||
^ ToolBuilder default open: self new |
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Core.package/PSPresentationTool.class/instance/checkSlideDirectory..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 @@ | ||
as yet unclassified | ||
checkSlideDirectory: aDirectoryName | ||
|
||
^ aDirectoryName matchesRegex: 'slide[0-9]+' |
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
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: 11 additions & 0 deletions
11
packages/Presenter-Core.package/PSPresentationTool.class/instance/exportAsPNGs..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,11 @@ | ||
do not touch | ||
exportAsPNGs: name | ||
|
||
(FileDirectory default / 'PSSlidePNGs' / name) assureExistence. | ||
self enablePresentationMode. | ||
self slideContainer enableNonInteractiveMode. | ||
self slides withIndexDo: [:each :index | | ||
self selectSlide: index. | ||
World doOneCycle. | ||
each exportAsPNGNamed: 'PSSlidePNGs\', name, '\slide',index,'.png']. | ||
self disablePresentationMode |
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
Oops, something went wrong.