-
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.
deactivated synchronization Delete Morph from World. Small refactoring.
- Loading branch information
Showing
12 changed files
with
47 additions
and
32 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...AnimationsEditor-Core.package/AnimationsEditor.class/instance/clearPropertyEditorPanel.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 @@ | ||
clearComponents | ||
clearPropertyEditorPanel | ||
|
||
self propertyEditorPanel submorphs do: [:each| each abandon]. |
25 changes: 9 additions & 16 deletions
25
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/deleteMorph..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,31 +1,24 @@ | ||
messaging | ||
eventHandling | ||
deleteMorph: aProcess | ||
"NEEDS REFACTORING" | ||
"selected tree node needs to be set to some property when the morph is added" | ||
"not tested on other morphs apart from normal morph" | ||
" | ||
self selectedTreeNode ifNil: [^ 'break']. | ||
self propertyList copy do: [:each | | ||
Transcript show: self propertyList first ; cr. | ||
|
||
"(self selectedTreeNode targetMorph = each targetMorph or: ((self selectedTreeNode isFlexed) ifTrue: [self selectedTreeNode owner = each targetMorph] ifFalse: [false])) " | ||
(self selectedTreeNode targetMorph = each targetMorph or: (self selectedTreeNode targetMorph hasSubmorphs ifTrue: [self selectedTreeNode targetMorph submorphs first = each targetMorph] ifFalse: [false])) "checks if selected tree node or it's child (because it can be a transformation morph that has target morph a child) the same as the one of the morphs in the property list" | ||
(self selectedTreeNode targetMorph = each targetMorph or: (self selectedTreeNode targetMorph hasSubmorphs ifTrue: [self selectedTreeNode targetMorph submorphs first = each targetMorph] ifFalse: [false])) | ||
ifTrue: [self selectedTreeNode targetMorph removeFlexShell. self propertyList remove: each. each targetMorph abandon. ].]. | ||
"to do: delete the JSON! for that look in animations editor property animated >> deleteAllKeyframes" | ||
self propertyTreeMorph update: self propertyTreeMorph getChildrenSelector. | ||
"need to terminate process for each property" | ||
|
||
"self selectedTreeNode process terminate." "doesnot work" | ||
self propertyTreeMorph update: self propertyTreeMorph getChildrenSelector. | ||
"self propertyTreeMorph submorphs do: [:every | every process terminate]." "not right place to terminate" | ||
self propertyEditorPanel submorphs do: [:each| each abandon]. "clear property editor panel" | ||
self timeline submorphs do: [:each| each abandon]. "leaves the background and scroll panel from timeline. Fiqure out how to delete it" | ||
self propertyEditorPanel submorphs do: [:each| each abandon]. | ||
self timeline submorphs do: [:each| each abandon]. | ||
Transcript show: 'process'; cr. | ||
Transcript show: aProcess isBlocked; cr. | ||
aProcess terminate. | ||
Transcript show: 'process2'; cr. | ||
|
||
" | ||
|
||
|
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
...ages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/isPropertyToDelete..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 @@ | ||
notclassified | ||
isPropertyToDelete: aProperty | ||
|
||
^ self selectedTreeNode targetMorph = aProperty targetMorph or: | ||
(self selectedTreeNode targetMorph hasSubmorphs | ||
ifTrue: | ||
[self selectedTreeNode targetMorph submorphs first = aProperty targetMorph] | ||
ifFalse: | ||
[false]). |
6 changes: 6 additions & 0 deletions
6
...es/AnimationsEditor-Core.package/AnimationsEditor.class/instance/removeMorphProperties.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 @@ | ||
clearComponents | ||
removeMorphProperties | ||
|
||
self propertyList copy do: [:each | | ||
(self isPropertyToDelete: each) | ||
ifTrue: [self propertyList remove: each.].]. |
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
4 changes: 4 additions & 0 deletions
4
...es/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/clearTimeline.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 @@ | ||
updating | ||
clearTimeline | ||
|
||
self submorphs do: [:each | each abandon]. |
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