Skip to content

Commit

Permalink
keyframes deleted when property deactivated finished
Browse files Browse the repository at this point in the history
  • Loading branch information
Ol-Ba committed Jun 26, 2022
1 parent 5e5a5d6 commit dee94bb
Show file tree
Hide file tree
Showing 25 changed files with 37 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ selectedTreeNode: aNode
insertMorph: (aNode buildUIWith: self toolBuilder)
Into: self propertyEditorPanel]
ifFalse: [ self
insertMorph: (aNode buildSelectPanelWith: self toolBuilder) Into: self propertyEditorPanel
insertMorph: (aNode buildActivatePanelWith: self toolBuilder) Into: self propertyEditorPanel
].
].

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"seedProperties" : "Noel Bastubbe 6/14/2022 15:28",
"selectMorphByHand" : "FH 8/1/2021 18:49",
"selectedTreeNode" : "JIZ 5/27/2020 15:31",
"selectedTreeNode:" : "NR 6/26/2022 14:39",
"selectedTreeNode:" : "ob 6/26/2022 17:58",
"switchTimelineToMorphWith:" : "FH 8/1/2021 18:49",
"timeline" : "FH 8/1/2021 18:27",
"timeline:" : "FH 8/1/2021 18:27",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildComponents
buildSelectFrameWith: aBuilder
buildActivateFrameWith: aBuilder
^ aBuilder pluggableButtonSpec new model: self;
label: 'Activate property';
enabled: true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildComponents
buildSelectPanelWith: aBuilder
buildActivatePanelWith: aBuilder
| aPluggablePanelSpec |

aPluggablePanelSpec := aBuilder pluggablePanelSpec new
Expand All @@ -10,7 +10,7 @@ buildSelectPanelWith: aBuilder
leftFraction: 0.1;
rightFraction: 0.8;
yourself);
children: {self buildSelectFrameWith: aBuilder.
children: {self buildActivateFrameWith: aBuilder.
};
yourself.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildComponents
buildDeselectFrameWith: aBuilder
buildDeactivateFrameWith: aBuilder
^ aBuilder pluggableButtonSpec new model: self;
label: 'Deactivate property';
enabled: true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildStartPanelWith: aBuilder
leftFraction: 0.1;
rightFraction: 0.8;
yourself);
children: {self buildSelectFrameWith: aBuilder.
children: {self buildActivateFrameWith: aBuilder.
};
yourself.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ buildComponents
deactivateProperty
self animationsEditor selectedTreeNode isActivated: false.
self animationsEditor selectedTreeNode: self.
self animationsEditor selectedTreeNode deleteAllKeyframesFrom: self.
self animationsEditor selectedTreeNode deleteAllKeyframes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
buildComponents
deleteAllKeyframes
self targetValues keysDo: [:key | (key = 0) ifFalse: [self targetValues removeKey: key].].
self changed: #deleteKeyframes.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"addKeyframe" : "CL 8/2/2021 08:43",
"addStartFrame" : "FH 8/1/2021 19:13",
"animationProperty" : "CL 7/29/2021 11:55",
"buildDeselectFrameWith:" : "ob 6/21/2022 19:41",
"buildActivateFrameWith:" : "ob 6/26/2022 17:58",
"buildActivatePanelWith:" : "ob 6/26/2022 17:58",
"buildDeactivateFrameWith:" : "ob 6/26/2022 17:57",
"buildInputFrameWith:" : "FH 8/1/2021 19:13",
"buildSelectFrameWith:" : "ob 6/21/2022 19:55",
"buildSelectPanelWith:" : "ob 6/21/2022 20:46",
"buildStartPanelWith:" : "ob 6/21/2022 19:53",
"buildStartPanelWith:" : "ob 6/26/2022 17:58",
"buildTextFrameWith:" : "FH 8/1/2021 19:13",
"canCreateAnimation" : "MH 7/8/2021 11:37",
"canRenderUI" : "ob 6/20/2022 18:54",
Expand All @@ -20,10 +20,10 @@
"createCompositeAnimationWith:withKey:withPreviousKey:" : "FH 8/1/2021 19:10",
"currentValue" : "MH 7/8/2021 11:08",
"currentValue:" : "MH 7/8/2021 11:08",
"deactivateProperty" : "NR 6/26/2022 16:04",
"deactivateProperty" : "ob 6/26/2022 17:01",
"defaultFrame" : "MH 7/8/2021 11:33",
"defaultValue" : "MH 7/8/2021 11:33",
"deleteAllKeyframesFrom:" : "NR 6/26/2022 16:11",
"deleteAllKeyframes" : "ob 6/26/2022 17:59",
"executeCompositeAnimation:" : "FH 8/1/2021 19:11",
"frame" : "MH 7/8/2021 11:08",
"frame:" : "MH 7/8/2021 11:10",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildPanelWith: aBuilder
leftFraction: 0.1;
rightFraction: 0.8;
yourself);
children: {self buildDeselectFrameWith: aBuilder.
children: {self buildDeactivateFrameWith: aBuilder.
self buildColorPickerWith: aBuilder.
self buildInputColorWith: aBuilder.
self buildTextColorWith: aBuilder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"animationString" : "FH 8/1/2021 19:19",
"buildColorPickerWith:" : "FH 8/1/2021 19:19",
"buildInputColorWith:" : "FH 8/1/2021 19:19",
"buildPanelWith:" : "ob 6/21/2022 19:45",
"buildPanelWith:" : "ob 6/26/2022 17:57",
"buildTextColorWith:" : "FH 8/1/2021 19:20",
"buildUIWith:" : "mjs 7/31/2021 18:00",
"colorPicker" : "MH 7/8/2021 10:03",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildPanelWith: aBuilder
leftFraction: 0.1;
rightFraction: 0.8;
yourself);
children: {self buildDeselectFrameWith: aBuilder.
children: {self buildDeactivateFrameWith: aBuilder.
self buildInputSourceWith: aBuilder.
self buildSelectFileButtonWith: aBuilder.
self buildTextImageSourceWith: aBuilder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"animationProperty" : "CL 7/29/2021 11:56",
"animationString" : "FH 8/1/2021 19:23",
"buildInputSourceWith:" : "FH 8/1/2021 19:21",
"buildPanelWith:" : "ob 6/21/2022 19:46",
"buildPanelWith:" : "ob 6/26/2022 17:57",
"buildSelectFileButtonWith:" : "FH 8/1/2021 19:22",
"buildTextImageSourceWith:" : "FH 8/1/2021 19:22",
"buildUIWith:" : "LW 6/5/2021 15:09",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildPanelWith: aBuilder
leftFraction: 0.1;
rightFraction: 0.8;
yourself);
children: {self buildDeselectFrameWith: aBuilder.
children: {self buildDeactivateFrameWith: aBuilder.
self buildInputXWith: aBuilder.
self buildTextXWith: aBuilder.
self buildInputYWith: aBuilder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"animationString" : "MH 7/8/2021 10:08",
"buildInputXWith:" : "mjs 8/1/2021 12:56",
"buildInputYWith:" : "mjs 8/1/2021 12:56",
"buildPanelWith:" : "ob 6/21/2022 19:47",
"buildPanelWith:" : "ob 6/26/2022 17:57",
"buildTextXWith:" : "mjs 8/1/2021 12:57",
"buildTextYWith:" : "mjs 8/1/2021 12:57",
"buildUIWith:" : "JIZ 6/3/2020 17:10",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildPanelWith: aBuilder
leftFraction: 0.1;
rightFraction: 0.8;
yourself);
children: {self buildDeselectFrameWith: aBuilder.
children: {self buildDeactivateFrameWith: aBuilder.
self buildInputRotationWith: aBuilder.
self buildTextRotationWith: aBuilder.
self buildInputFrameWith: aBuilder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"animationProperty" : "CL 7/29/2021 11:57",
"animationString" : "FH 8/1/2021 19:25",
"buildInputRotationWith:" : "FH 8/1/2021 19:25",
"buildPanelWith:" : "ob 6/21/2022 19:47",
"buildPanelWith:" : "ob 6/26/2022 17:57",
"buildTextRotationWith:" : "FH 8/1/2021 19:26",
"buildUIWith:" : "JIZ 6/3/2020 17:10",
"createAnimationWith:withPreviousKey:" : "CL 7/29/2021 12:01",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildPanelWith: aBuilder
leftFraction: 0.1;
rightFraction: 0.8;
yourself);
children: {self buildDeselectFrameWith: aBuilder.
children: {self buildDeactivateFrameWith: aBuilder.
self buildInputWidthWith: aBuilder.
self buildInputHeightWith: aBuilder.
self buildTextWidthWith: aBuilder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"animationString" : "FH 8/1/2021 19:27",
"buildInputHeightWith:" : "FH 8/1/2021 19:27",
"buildInputWidthWith:" : "FH 8/1/2021 19:27",
"buildPanelWith:" : "ob 6/21/2022 19:47",
"buildPanelWith:" : "ob 6/26/2022 17:57",
"buildTextHeightWith:" : "FH 8/1/2021 19:28",
"buildTextWidthWith:" : "FH 8/1/2021 19:28",
"buildUIWith:" : "JIZ 6/3/2020 17:10",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ updating
findLastKey
| last |

last:= self endTime.
last:= self defaultEndTime.
self property subproperties do:[:subproperty | subproperty targetValues keysDo: [:key | key > last ifTrue:[last:= key]]].

^last


Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ update: aSymbol
aSymbol = #addKeyframes
ifTrue:[self endTime < self findLastKey ifTrue:[self endTime: self findLastKey]].


aSymbol = #deleteKeyframes
ifTrue:[self endTime > self findLastKey ifTrue:[self endTime: self findLastKey]].
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"endTime" : "FH 8/1/2021 19:29",
"endTime:" : "FH 8/1/2021 19:29",
"endTimeAsString" : "FH 8/1/2021 19:29",
"findLastKey" : "lka 5/30/2022 11:27",
"findLastKey" : "ob 6/26/2022 17:54",
"initialize" : "lka 5/30/2022 11:44",
"isStartEnd" : "mjs 7/31/2021 17:19",
"property" : "lka 5/27/2022 11:52",
"property:" : "lka 5/27/2022 11:52",
"startTime" : "FH 8/1/2021 19:29",
"startTime:" : "FH 8/1/2021 19:29",
"startTimeAsString" : "FH 8/1/2021 19:30",
"update:" : "lka 5/27/2022 12:25" } }
"update:" : "ob 6/26/2022 17:55" } }
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildPanelWith: aBuilder
leftFraction: 0.1;
rightFraction: 0.8;
yourself);
children: {self buildDeselectFrameWith: aBuilder.
children: {self buildDeactivateFrameWith: aBuilder.
self buildInputTextWith: aBuilder.
self buildTextTextWith: aBuilder.
self buildInputFrameWith: aBuilder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"animationProperty" : "FH 8/1/2021 19:28",
"animationString" : "MH 7/8/2021 10:16",
"buildInputTextWith:" : "mjs 8/1/2021 13:32",
"buildPanelWith:" : "ob 6/21/2022 19:48",
"buildPanelWith:" : "ob 6/26/2022 17:57",
"buildTextTextWith:" : "mjs 8/1/2021 13:33",
"buildUIWith:" : "LW 7/1/2021 17:45",
"createAnimationWith:withPreviousKey:" : "FH 7/26/2021 14:55",
Expand Down

0 comments on commit dee94bb

Please sign in to comment.