-
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 #74 from hpi-swa-teaching/feature/clickableKeyframes
Feature/clickable keyframes
- Loading branch information
Showing
118 changed files
with
300 additions
and
363 deletions.
There are no files selected for viewing
9 changes: 2 additions & 7 deletions
9
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/addKeyframe.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,4 @@ | ||
eventHandling | ||
addKeyframe | ||
|
||
self selectedTreeNode isActivated | ||
ifTrue: [ | ||
self updateInformationText: 'Added keyframe.'. | ||
self selectedTreeNode addKeyframe.] | ||
ifFalse: [ | ||
self updateInformationText: 'Activate property first'.]. | ||
self updateInformationText: 'Added keyframe.'. | ||
self selectedTreeNode addKeyframe. |
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
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
9 changes: 9 additions & 0 deletions
9
...nsEditorKeyframe.class/class/on.withPosition.withFrame.withValue.withAnimationsEditor..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 @@ | ||
initialization | ||
on: anAnimationsEditorTrack withPosition: aPoint withFrame: aFrame withValue: aValue withAnimationsEditor: anAnimationsEditor | ||
^ self basicNew track: anAnimationsEditorTrack; | ||
frame: aFrame; | ||
value: aValue; | ||
initialize; | ||
setCenteredPosition: aPoint; | ||
animationsEditor: anAnimationsEditor; | ||
yourself. |
3 changes: 3 additions & 0 deletions
3
...nimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/animationsEditor..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,3 @@ | ||
accessing | ||
animationsEditor: anObject | ||
animationsEditor := anObject |
3 changes: 3 additions & 0 deletions
3
...AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/animationsEditor.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,3 @@ | ||
accessing | ||
animationsEditor | ||
^ animationsEditor |
3 changes: 3 additions & 0 deletions
3
...nimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/handlesMouseDown..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,3 @@ | ||
as yet unclassified | ||
handlesMouseDown: anEvent | ||
^ true |
7 changes: 7 additions & 0 deletions
7
packages/AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/mouseDown..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 @@ | ||
as yet unclassified | ||
mouseDown: anEvent | ||
anEvent redButtonPressed | ||
ifTrue: [ | ||
self setValueAndFrame. | ||
self animationsEditor selectedTreeNode: self selectProperty. | ||
]. |
14 changes: 14 additions & 0 deletions
14
...s/AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/selectProperty.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,14 @@ | ||
as yet unclassified | ||
selectProperty | ||
|targetMorph property parentProperty propertyList| | ||
"targetMorph := self animationsEditor propertyList second." | ||
parentProperty := self track property parentProperty title. | ||
propertyList := self animationsEditor propertyList. | ||
targetMorph := propertyList detect: [:each | parentProperty match: each title]. | ||
|
||
|
||
targetMorph hasSubproperties | ||
ifTrue: [property := targetMorph subproperties detect: [:each| self track property asString match: each asString]]. | ||
^property | ||
|
||
|
8 changes: 8 additions & 0 deletions
8
...AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/setValueAndFrame.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 @@ | ||
as yet unclassified | ||
setValueAndFrame | ||
|property selectedFrame selectedValue| | ||
property := self selectProperty. | ||
selectedFrame:= self frame. | ||
selectedValue := property targetValues at: self frame. | ||
self track property currentValue: selectedValue. | ||
self track property targetFrame: selectedFrame. |
9 changes: 8 additions & 1 deletion
9
packages/AnimationsEditor-Core.package/AnimationsEditorKeyframe.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,11 +1,18 @@ | ||
{ | ||
"class" : { | ||
"on:withPosition:withFrame:withValue:" : "FH 8/1/2021 19:05" }, | ||
"on:withPosition:withFrame:withValue:" : "FH 8/1/2021 19:05", | ||
"on:withPosition:withFrame:withValue:withAnimationsEditor:" : "SG 6/17/2022 15:45" }, | ||
"instance" : { | ||
"animationsEditor" : "SG 6/17/2022 15:43", | ||
"animationsEditor:" : "SG 6/17/2022 15:43", | ||
"frame" : "mjs 7/31/2021 15:46", | ||
"frame:" : "mjs 7/31/2021 15:46", | ||
"handlesMouseDown:" : "SG 6/17/2022 14:57", | ||
"initialize" : "mjs 7/31/2021 15:45", | ||
"mouseDown:" : "SG 6/25/2022 16:11", | ||
"selectProperty" : "SG 6/27/2022 19:17", | ||
"setCenteredPosition:" : "FH 8/1/2021 19:04", | ||
"setValueAndFrame" : "SG 6/25/2022 16:10", | ||
"track" : "mjs 7/31/2021 15:46", | ||
"track:" : "mjs 7/31/2021 15:46", | ||
"value:" : "mjs 7/31/2021 15:46" } } |
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
12 changes: 12 additions & 0 deletions
12
.../AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/addMovingLine.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 @@ | ||
as yet unclassified | ||
addMovingLine | ||
| line | | ||
"self movingLine: (self addLineFrom: 105@25 to: 105@125)." | ||
|
||
line := LineMorph | ||
from: 105@25 | ||
to: 105@125 | ||
color: Color black | ||
width: self lineWidth. | ||
self movingLine: line. | ||
self addMorph: line. |
1 change: 1 addition & 0 deletions
1
...mationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/animationDuration.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,3 +1,4 @@ | ||
accessing | ||
animationDuration | ||
|
||
^ self timeline endTime - self timeline startTime. |
2 changes: 1 addition & 1 deletion
2
...ges/AnimationsEditor-Core.package/AnimationsEditorMovingLine.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
initialization | ||
as yet unclassified | ||
initialize | ||
super initialize. | ||
self | ||
|
4 changes: 2 additions & 2 deletions
4
...ages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/lineWidth.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,3 +1,3 @@ | ||
constants | ||
as yet unclassified | ||
lineWidth | ||
^ 3. | ||
^3. |
2 changes: 1 addition & 1 deletion
2
...es/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/movingLine..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,3 +1,3 @@ | ||
accessing | ||
movingLine: anObject | ||
movingLine := anObject. | ||
movingLine := anObject |
2 changes: 1 addition & 1 deletion
2
...ges/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/movingLine.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,3 +1,3 @@ | ||
accessing | ||
movingLine | ||
^ movingLine. | ||
^ movingLine |
2 changes: 1 addition & 1 deletion
2
...ges/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/positionY..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,3 +1,3 @@ | ||
accessing | ||
positionY: anObject | ||
positionY := anObject. | ||
positionY := anObject |
2 changes: 1 addition & 1 deletion
2
...ages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/positionY.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,3 +1,3 @@ | ||
accessing | ||
positionY | ||
^ positionY. | ||
^ positionY |
1 change: 1 addition & 0 deletions
1
...package/AnimationsEditorMovingLine.class/instance/setMovingSpeedPerHundredMilliseconds.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,3 +1,4 @@ | ||
accessing | ||
setMovingSpeedPerHundredMilliseconds | ||
|
||
self speed: (self timeline width - (self startMargin) - (self endMargin)) / self animationDuration * 100. |
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/speed..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,3 +1,3 @@ | ||
accessing | ||
speed: anObject | ||
speed := anObject. | ||
speed := anObject |
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/speed.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,3 +1,3 @@ | ||
accessing | ||
speed | ||
^ speed. | ||
^ speed |
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
stepping and presenter | ||
as yet unclassified | ||
step | ||
| endPositionX| | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
packages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
stepping and presenter | ||
as yet unclassified | ||
stepTime | ||
^ 100. | ||
^100. |
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: 0 additions & 4 deletions
4
...nsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/activateProperty.st
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...r-Core.package/AnimationsEditorPropertyAnimated.class/instance/buildActivateFrameWith..st
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
...r-Core.package/AnimationsEditorPropertyAnimated.class/instance/buildActivatePanelWith..st
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...Core.package/AnimationsEditorPropertyAnimated.class/instance/buildDeactivateFrameWith..st
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...itor-Core.package/AnimationsEditorPropertyAnimated.class/instance/buildStartPanelWith..st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...Editor-Core.package/AnimationsEditorPropertyAnimated.class/instance/deactivateProperty.st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...Editor-Core.package/AnimationsEditorPropertyAnimated.class/instance/deleteAllKeyframes.st
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.