-
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.
- removed minor details in save json functionality
- started testing on save json methods
- Loading branch information
1 parent
b23752a
commit 9213510
Showing
22 changed files
with
66 additions
and
48 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
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/addFrame..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 @@ | ||
safeJson | ||
saveJson | ||
addFrame: aTreeNode | ||
|
||
^ { #Position -> [self addPositionFrame: aTreeNode]. | ||
|
4 changes: 2 additions & 2 deletions
4
...class/instance/addMorphToJsonWith.and..st → ...or.class/instance/addMorphToJson.with..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
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/addPositionFrame..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 @@ | ||
safeJson | ||
saveJson | ||
addPositionFrame: aTreeNode | ||
| jsonFrame | | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/addRotationFrame..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 @@ | ||
safeJson | ||
saveJson | ||
addRotationFrame: aTreeNode | ||
| jsonFrame | | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/addSizeFrame..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 @@ | ||
safeJson | ||
saveJson | ||
addSizeFrame: aTreeNode | ||
| jsonFrame | | ||
|
||
|
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: 2 additions & 2 deletions
4
...lass/instance/createStructureWith.and..st → ...r.class/instance/createStructure.with..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
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/dictionaryToJson..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 @@ | ||
safeJson | ||
saveJson | ||
dictionaryToJson: aDictionary | ||
^ String streamContents: [ :stream | | ||
(STON writer on: stream) | ||
|
11 changes: 0 additions & 11 deletions
11
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/safeToJson..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
11 changes: 11 additions & 0 deletions
11
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/saveToJson..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 @@ | ||
saveJson | ||
saveToJson: aTreeNode | ||
| jsonStructure jsonString | | ||
|
||
jsonStructure := self createStructure: self propertyStartEnd startTime with: self propertyStartEnd endTime. | ||
jsonStructure := self addMorphToJson: jsonStructure with: aTreeNode. | ||
|
||
jsonString := self dictionaryToJson: jsonStructure. | ||
|
||
self writeJsonToFile: jsonString. | ||
|
3 changes: 0 additions & 3 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/startRotationValue.st
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/writeJsonToFile..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 @@ | ||
saveJson | ||
writeJsonToFile: aJsonString | ||
| outputStream fileName| | ||
|
||
fileName := UIManager default request: 'Please, enter file name.'. | ||
outputStream := StandardFileStream newFileNamed: fileName, '.json'. | ||
aJsonString storeOn: outputStream. | ||
|
7 changes: 0 additions & 7 deletions
7
...es/AnimationsEditor-Core.package/AnimationsEditor.class/instance/writeJsonToFile.with..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
4 changes: 4 additions & 0 deletions
4
...s/AnimationsEditor-Tests.package/AnimationsEditorTest.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,4 @@ | ||
accessing | ||
animationsEditor: anObject | ||
|
||
animationsEditor := anObject. |
4 changes: 4 additions & 0 deletions
4
...es/AnimationsEditor-Tests.package/AnimationsEditorTest.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,4 @@ | ||
accessing | ||
animationsEditor | ||
|
||
^ animationsEditor |
5 changes: 5 additions & 0 deletions
5
packages/AnimationsEditor-Tests.package/AnimationsEditorTest.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
saveJson | ||
setUp | ||
self animationsEditor: AnimationsEditor open. | ||
self animationsEditor addTargetMorph: Morph new. | ||
|
4 changes: 4 additions & 0 deletions
4
...s/AnimationsEditor-Tests.package/AnimationsEditorTest.class/instance/testAddColorFrame.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 @@ | ||
saveJson | ||
testAddColorFrame | ||
self animationsEditor selectedTreeNode: AnimationsEditorPropertyColor new. | ||
|
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