-
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.
- Loading branch information
lka
committed
Jul 1, 2022
1 parent
944f69c
commit 2498fdc
Showing
130 changed files
with
498 additions
and
194 deletions.
There are no files selected for viewing
9 changes: 7 additions & 2 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,4 +1,9 @@ | ||
eventHandling | ||
addKeyframe | ||
self updateInformationText: 'Added keyframe.'. | ||
self selectedTreeNode addKeyframe. | ||
|
||
self selectedTreeNode isActivated | ||
ifTrue: [ | ||
self updateInformationText: 'Added keyframe.'. | ||
self selectedTreeNode addKeyframe.] | ||
ifFalse: [ | ||
self updateInformationText: 'Activate property first'.]. |
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: 0 additions & 12 deletions
12
.../AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/addMovingLine.st
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
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,4 +1,3 @@ | ||
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 @@ | ||
as yet unclassified | ||
initialization | ||
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 @@ | ||
as yet unclassified | ||
constants | ||
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: 0 additions & 1 deletion
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,4 +1,3 @@ | ||
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 @@ | ||
as yet unclassified | ||
stepping and presenter | ||
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 @@ | ||
as yet unclassified | ||
stepping and presenter | ||
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: 4 additions & 0 deletions
4
...nsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/activateProperty.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 @@ | ||
propertyActivation | ||
activateProperty | ||
self animationsEditor selectedTreeNode isActivated: true. | ||
self animationsEditor selectedTreeNode: self. |
12 changes: 12 additions & 0 deletions
12
...r-Core.package/AnimationsEditorPropertyAnimated.class/instance/buildActivateFrameWith..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 @@ | ||
buildComponents | ||
buildActivateFrameWith: aBuilder | ||
^ aBuilder pluggableButtonSpec new model: self; | ||
label: 'Activate property'; | ||
enabled: true; | ||
action: #activateProperty; | ||
frame: (LayoutFrame new topFraction: 0; | ||
bottomFraction: 0.1; | ||
leftFraction: 0; | ||
rightFraction: 1; | ||
yourself); | ||
yourself. |
17 changes: 17 additions & 0 deletions
17
...r-Core.package/AnimationsEditorPropertyAnimated.class/instance/buildActivatePanelWith..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,17 @@ | ||
buildComponents | ||
buildActivatePanelWith: aBuilder | ||
| aPluggablePanelSpec | | ||
|
||
aPluggablePanelSpec := aBuilder pluggablePanelSpec new | ||
model: self; | ||
frame: (LayoutFrame new | ||
topFraction: 0.1; | ||
bottomFraction: 0.9; | ||
leftFraction: 0.1; | ||
rightFraction: 0.8; | ||
yourself); | ||
children: {self buildActivateFrameWith: aBuilder. | ||
}; | ||
yourself. | ||
|
||
^ aBuilder build: aPluggablePanelSpec. |
12 changes: 12 additions & 0 deletions
12
...Core.package/AnimationsEditorPropertyAnimated.class/instance/buildDeactivateFrameWith..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 @@ | ||
buildComponents | ||
buildDeactivateFrameWith: aBuilder | ||
^ aBuilder pluggableButtonSpec new model: self; | ||
label: 'Deactivate property'; | ||
enabled: true; | ||
action: #deactivateProperty; | ||
frame: (LayoutFrame new topFraction: 0; | ||
bottomFraction: 0.1; | ||
leftFraction: 0; | ||
rightFraction: 1; | ||
yourself); | ||
yourself. |
16 changes: 16 additions & 0 deletions
16
...itor-Core.package/AnimationsEditorPropertyAnimated.class/instance/buildStartPanelWith..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,16 @@ | ||
buildComponents | ||
buildStartPanelWith: aBuilder | ||
| aPluggablePanelSpec | | ||
|
||
aPluggablePanelSpec := aBuilder pluggablePanelSpec new | ||
model: self; | ||
frame: (LayoutFrame new | ||
topFraction: 0.1; | ||
bottomFraction: 0.9; | ||
leftFraction: 0.1; | ||
rightFraction: 0.8; | ||
yourself); | ||
children: {self buildActivateFrameWith: aBuilder.}; | ||
yourself. | ||
|
||
^ aBuilder build: aPluggablePanelSpec. |
5 changes: 5 additions & 0 deletions
5
...Editor-Core.package/AnimationsEditorPropertyAnimated.class/instance/deactivateProperty.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 @@ | ||
propertyActivation | ||
deactivateProperty | ||
self animationsEditor selectedTreeNode isActivated: false. | ||
self animationsEditor selectedTreeNode: self. | ||
self animationsEditor selectedTreeNode deleteAllKeyframes. |
5 changes: 5 additions & 0 deletions
5
...Editor-Core.package/AnimationsEditorPropertyAnimated.class/instance/deleteAllKeyframes.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 @@ | ||
propertyActivation | ||
deleteAllKeyframes | ||
self targetValues copy keysDo: [:key| (key = 0) ifFalse: [self targetValues removeKey: key].]. | ||
self changed: #deleteKeyframes. | ||
|
1 change: 1 addition & 0 deletions
1
...imationsEditor-Core.package/AnimationsEditorPropertyAnimated.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,5 @@ | ||
initialization | ||
initialize | ||
super initialize. | ||
self isActivated: false. | ||
self addStartFrame. |
3 changes: 3 additions & 0 deletions
3
...ationsEditor-Core.package/AnimationsEditorPropertyAnimated.class/instance/isActivated..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 | ||
isActivated: aBoolean | ||
isActivated := aBoolean. |
Oops, something went wrong.