-
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.
wrote tests for clickable frames and refactored partially feature cli…
…ckable frames
- Loading branch information
Showing
33 changed files
with
125 additions
and
75 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
...Core.package/AnimationsEditorKeyframe.class/class/on.withPosition.withFrame.withValue..st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
as yet unclassified | ||
events | ||
handlesMouseDown: anEvent | ||
^ true |
4 changes: 2 additions & 2 deletions
4
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
as yet unclassified | ||
events | ||
mouseDown: anEvent | ||
anEvent redButtonPressed | ||
ifTrue: [ | ||
self setValueAndFrame. | ||
self animationsEditor selectedTreeNode: self selectProperty. | ||
self animationsEditor selectedTreeNode: self property. | ||
]. |
6 changes: 6 additions & 0 deletions
6
packages/AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/property.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 | ||
property | ||
|
||
^self track property. | ||
|
||
|
14 changes: 0 additions & 14 deletions
14
...s/AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/selectProperty.st
This file was deleted.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
...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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
as yet unclassified | ||
events | ||
setValueAndFrame | ||
|property selectedFrame selectedValue| | ||
property := self selectProperty. | ||
|selectedFrame selectedValue| | ||
|
||
selectedValue := self property targetValues at: self frame. | ||
selectedFrame:= self frame. | ||
selectedValue := property targetValues at: self frame. | ||
self track property currentValue: selectedValue. | ||
self track property targetFrame: selectedFrame. | ||
self property currentValue: selectedValue. | ||
self property targetFrame: selectedFrame. |
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
...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,3 @@ | ||
accessing | ||
constants | ||
animationDuration | ||
^ self timeline endTime - self timeline startTime. |
2 changes: 1 addition & 1 deletion
2
...tionsEditor-Core.package/AnimationsEditorMovingLine.class/instance/playMovingAnimation.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 | ||
stepping and presenter | ||
playMovingAnimation | ||
| animation | | ||
|
||
|
9 changes: 0 additions & 9 deletions
9
...ore.package/AnimationsEditorTrack.class/class/on.withProperty.withPosition.withExtent..st
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/AnimationsEditor-Core.package/AnimationsEditorTrack.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
4 changes: 4 additions & 0 deletions
4
...-Tests.package/AnimationsEditorRightclickSelection.class/instance/animationRotation100.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 @@ | ||
constants | ||
animationRotation100 | ||
|
||
^100. |
4 changes: 4 additions & 0 deletions
4
...-Tests.package/AnimationsEditorRightclickSelection.class/instance/animationRotation200.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 @@ | ||
constants | ||
animationRotation200 | ||
|
||
^200. |
7 changes: 7 additions & 0 deletions
7
...ests.package/AnimationsEditorRightclickSelection.class/instance/createKeyframeWith.on..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 @@ | ||
creation | ||
createKeyframeWith: aValue on: aFrame | ||
|
||
self propertyRotation | ||
currentValue: aValue; | ||
frame: aFrame; | ||
addKeyframe. |
4 changes: 4 additions & 0 deletions
4
...Editor-Tests.package/AnimationsEditorRightclickSelection.class/instance/frameNumber100.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 @@ | ||
constants | ||
frameNumber100 | ||
|
||
^ 100. |
4 changes: 4 additions & 0 deletions
4
...Editor-Tests.package/AnimationsEditorRightclickSelection.class/instance/frameNumber200.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 @@ | ||
constants | ||
frameNumber200 | ||
|
||
^200. |
3 changes: 3 additions & 0 deletions
3
...nsEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/keyframe100..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 | ||
keyframe100: anObject | ||
keyframe100 := anObject |
3 changes: 3 additions & 0 deletions
3
...onsEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/keyframe100.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 | ||
keyframe100 | ||
^ keyframe100 |
3 changes: 3 additions & 0 deletions
3
...nsEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/keyframe200..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 | ||
keyframe200: anObject | ||
keyframe200 := anObject |
3 changes: 3 additions & 0 deletions
3
...onsEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/keyframe200.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 | ||
keyframe200 | ||
^ keyframe200 |
3 changes: 0 additions & 3 deletions
3
...tionsEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/property..st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ationsEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/property.st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...itor-Tests.package/AnimationsEditorRightclickSelection.class/instance/propertyPosition.st
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...Editor-Tests.package/AnimationsEditorRightclickSelection.class/instance/rotationTrack..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 | ||
rotationTrack: anObject | ||
rotationTrack := anObject |
3 changes: 3 additions & 0 deletions
3
...sEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/rotationTrack.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 | ||
rotationTrack | ||
^ rotationTrack |
15 changes: 11 additions & 4 deletions
15
...nimationsEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/setUp.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,10 +1,17 @@ | ||
accessing | ||
testing | ||
setUp | ||
|
||
super setUp. | ||
self animationsEditorInstance: AnimationsEditor open. | ||
self morph: Morph new openInWorld. | ||
self animationsEditorInstance addTargetMorph: self morph. | ||
self property: self animationsEditor propertyList first. | ||
self propertyPosition isActivated: true. | ||
self propertyRotation isActivated: true. | ||
self timeline: self animationsEditorInstance timeline. | ||
"self property: self animationsEditor propertyList first. " | ||
self propertyRotation isActivated: true. | ||
self animationsEditorInstance selectedTreeNode: self propertyRotation. | ||
self rotationTrack: (self timeline submorphs at: 2). | ||
self propertyRotation addDependent: self rotationTrack. | ||
self createKeyframeWith: self animationRotation100 on: self frameNumber100. | ||
self createKeyframeWith: self animationRotation200 on: self frameNumber200. | ||
self keyframe100: self rotationTrack submorphs second. | ||
self keyframe200: self rotationTrack submorphs first. |
7 changes: 7 additions & 0 deletions
7
...ationsEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/tearDown.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 @@ | ||
testing | ||
tearDown | ||
super tearDown. | ||
self propertyRotation targetMorph isFlexed | ||
ifTrue: [self propertyRotation targetMorph owner abandon]. | ||
self propertyRotation targetMorph abandon. | ||
self animationsEditorInstance windowReference abandon. |
12 changes: 12 additions & 0 deletions
12
.../AnimationsEditorRightclickSelection.class/instance/testLeftClickShowsSelectedProperty.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 @@ | ||
testing | ||
testLeftClickShowsSelectedProperty | ||
|
||
self keyframe100 setValueAndFrame. | ||
self animationsEditorInstance selectedTreeNode: self keyframe100 property. | ||
|
||
self assert: self propertyRotation currentValue = self animationRotation100. | ||
self assert: self propertyRotation targetFrame = self frameNumber100. | ||
|
||
|
||
|
||
|
3 changes: 3 additions & 0 deletions
3
...tionsEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/timeline..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 | ||
timeline: anObject | ||
timeline := anObject |
3 changes: 3 additions & 0 deletions
3
...ationsEditor-Tests.package/AnimationsEditorRightclickSelection.class/instance/timeline.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 | ||
timeline | ||
^ timeline |
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