-
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
Showing
62 changed files
with
270 additions
and
56 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
12 changes: 12 additions & 0 deletions
12
.../AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/addMovingLine.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 @@ | ||
as yet unclassified | ||
addMovingLine | ||
| line | | ||
"self movingLine: (self addLineFrom: 105@25 to: 105@125)." | ||
|
||
line := LineMorph | ||
from: 105@25 | ||
to: 105@125 | ||
color: Color black | ||
width: self lineWidth. | ||
self movingLine: line. | ||
self addMorph: line. |
5 changes: 2 additions & 3 deletions
5
...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,8 +1,7 @@ | ||
as yet unclassified | ||
initialize | ||
|
||
super initialize. | ||
self | ||
"extent: 3@100;" | ||
extent: 3@100; | ||
color: Color black; | ||
position: (self startMargin@25). "get rid of magic number" "Cascade expected ->" | ||
position: self startMargin@25. |
1 change: 0 additions & 1 deletion
1
...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,4 +1,3 @@ | ||
as yet unclassified | ||
lineWidth | ||
|
||
^3. |
3 changes: 3 additions & 0 deletions
3
...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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
movingLine: anObject | ||
movingLine := anObject |
3 changes: 3 additions & 0 deletions
3
...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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
movingLine | ||
^ movingLine |
1 change: 0 additions & 1 deletion
1
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,6 +1,5 @@ | ||
as yet unclassified | ||
step | ||
|
||
| endPositionX| | ||
|
||
endPositionX := self timeline width - (self endMargin). | ||
|
2 changes: 1 addition & 1 deletion
2
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 | ||
stepTime | ||
^100 | ||
^100. |
9 changes: 9 additions & 0 deletions
9
...mationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/findLastKey.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 @@ | ||
updating | ||
findLastKey | ||
| last | | ||
|
||
last:= self endTime. | ||
self property subproperties do:[:subproperty | subproperty targetValues keysDo: [:key | key > last ifTrue:[last:= key]]]. | ||
^last | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
...nimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.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,3 @@ | ||
accessing | ||
property: anObject | ||
property := anObject |
3 changes: 3 additions & 0 deletions
3
...AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.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,3 @@ | ||
accessing | ||
property | ||
^ property |
6 changes: 6 additions & 0 deletions
6
.../AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/update..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 @@ | ||
updating | ||
update: aSymbol | ||
aSymbol = #addKeyframes | ||
ifTrue:[self endTime < self findLastKey ifTrue:[self endTime: self findLastKey]]. | ||
|
||
|
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
17 changes: 7 additions & 10 deletions
17
...mationsEditor-Core.package/AnimationsEditorTimebar.class/instance/addIntermediateLines.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,12 +1,9 @@ | ||
updating | ||
addIntermediateLines | ||
| positionX intermediateStart intermediateEnd lineRepetition | | ||
|
||
intermediateStart := self timeline startTime + 1. | ||
intermediateEnd := self timeline endTime - 1. | ||
lineRepetition := 100. | ||
intermediateStart to: intermediateEnd | ||
do: [:frame | frame \\ lineRepetition = 0 | ||
ifTrue: [ | ||
positionX := self convertFrameToPosition: frame. | ||
self addLineFrom: positionX @ self height to: positionX @ (self height - self lineHeight)]]. | ||
| positionX frame | | ||
frame := self timeline startTime + self intermediateLineDistance. | ||
[self timeline endTime > frame] | ||
whileTrue: [positionX := self convertFrameToPosition: frame. | ||
self addLineFrom: positionX @ self height to: positionX @ (self height - self lineHeight). | ||
self addLineLabelFor: (frame asString) to: (positionX - self labelXOffset) @ (self height - self lineHeight - self labelYOffset). | ||
frame := frame + self intermediateLineDistance.]. |
9 changes: 9 additions & 0 deletions
9
...imationsEditor-Core.package/AnimationsEditorTimebar.class/instance/addLineLabelFor.to..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 @@ | ||
updating | ||
addLineLabelFor: aFrame to: aPosition | ||
| label | | ||
|
||
label := StringMorph new. | ||
label contents: aFrame. | ||
label position: aPosition. | ||
label fontName: 'default' size: 13. | ||
self addMorph: label. |
7 changes: 7 additions & 0 deletions
7
...es/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/createDuration.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 @@ | ||
initialization | ||
createDuration | ||
|
||
self deleteDuration. | ||
self initializeDuration. | ||
self duration acceptValue: (self getDurationString: self endTime). | ||
self duration comeToFront. |
4 changes: 4 additions & 0 deletions
4
...es/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/deleteDuration.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 @@ | ||
initialization | ||
deleteDuration | ||
|
||
self duration ifNotNil: [self duration abandon]. |
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/duration..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 | ||
duration: anObject | ||
duration := anObject |
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/duration.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 | ||
duration | ||
^ duration |
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/endTime..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 | ||
endTime: anObject | ||
endTime := anObject. |
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/endTime.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 | ||
endTime | ||
^ endTime |
5 changes: 5 additions & 0 deletions
5
...nimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/getDurationString..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 @@ | ||
updating | ||
getDurationString: aNumber | ||
|temp| | ||
temp:= (aNumber asInteger)/1000 asFloat. | ||
^ 'Duration: ', temp, ' s'. |
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
...nimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/initializeDuration.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 | ||
initializeDuration | ||
|
||
self duration: StringMorph new; | ||
addMorph: self duration. | ||
self duration position: 5@7; | ||
fontName: ('Bitmap DejaVu Sans') pointSize: 9; | ||
color: Color black. | ||
|
3 changes: 3 additions & 0 deletions
3
...onsEditor-Core.package/AnimationsEditorTimebar.class/instance/intermediateLineDistance.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 @@ | ||
constants | ||
intermediateLineDistance | ||
^100. |
4 changes: 4 additions & 0 deletions
4
...ages/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/labelXOffset.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 | ||
labelXOffset | ||
|
||
^ 10 |
4 changes: 4 additions & 0 deletions
4
...ages/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/labelYOffset.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 | ||
labelYOffset | ||
|
||
^ 10 |
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
12 changes: 12 additions & 0 deletions
12
...ionsEditor-Core.package/AnimationsEditorTimeline.class/instance/addTimebarWithEndTime..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 @@ | ||
initialization | ||
addTimebarWithEndTime: aNumber | ||
| timebar | | ||
|
||
self timebar | ||
ifNotNil: [self timebar abandon]. | ||
timebar := AnimationsEditorTimebar on: self withExtent: self width @ self trackHeight. | ||
self addMorph: timebar. | ||
self timebar: timebar. | ||
self timebar updateScale. | ||
self timebar endTime: aNumber. | ||
self timebar createDuration. |
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: 3 additions & 1 deletion
4
...nimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/switchTimelineTo..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,6 +1,8 @@ | ||
creation | ||
switchTimelineTo: aProperty | ||
Transcript show: self endTime. | ||
self updateExtent. | ||
self property: aProperty. | ||
self createTracks. | ||
self addTimebar. | ||
self addTimebar. | ||
self updateStartEndProperty. |
7 changes: 4 additions & 3 deletions
7
packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/update..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,8 @@ | ||
updating | ||
update: aStartEndProperty | ||
self updateExtent. | ||
self startTime: aStartEndProperty startTime. | ||
self endTime: aStartEndProperty endTime. | ||
self endTime: aStartEndProperty endTime. | ||
self updateExtent. | ||
self createTracks. | ||
self addTimebar. | ||
Transcript show: 'update'. | ||
self addTimebar. |
10 changes: 9 additions & 1 deletion
10
...ges/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/updateExtent.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,11 @@ | ||
updating | ||
updateExtent | ||
self extent: self scrollPane extent - (self borderWidth * 2). | ||
| normalHeight fullWidth | | ||
|
||
normalHeight := self scrollPane height - self borderWidth. | ||
fullWidth := self endTime + self startMargin + self endMargin. | ||
self width: fullWidth. | ||
fullWidth > self scrollPane width | ||
ifTrue: [self height: normalHeight - self scrollPane scrollBarThickness.] | ||
ifFalse: [self height: normalHeight.]. | ||
|
8 changes: 8 additions & 0 deletions
8
...ionsEditor-Core.package/AnimationsEditorTimeline.class/instance/updateStartEndProperty.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 @@ | ||
updating | ||
updateStartEndProperty | ||
| startEndProperty | | ||
|
||
startEndProperty := self animationsEditor propertyStartEnd. | ||
startEndProperty property: self property. "<--- Ich vermute, dass diese Zeile nicht ausgeführt wird und dadurch den Defekt erzeugt." | ||
self property subproperties | ||
do:[:subproperty | subproperty addDependent: startEndProperty]. |
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
8 changes: 1 addition & 7 deletions
8
...tor-Core.package/AnimationsEditorTimelineObject.class/instance/convertFrameToPosition..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,9 +1,3 @@ | ||
creation | ||
convertFrameToPosition: aFrame | ||
| position totalDuration framesPerPixel frameOffset | | ||
|
||
totalDuration := self timeline endTime - self timeline startTime. | ||
framesPerPixel := totalDuration / self lineSegmentWidth. | ||
frameOffset := aFrame / framesPerPixel. | ||
position := self startMargin + frameOffset. | ||
^ position. | ||
^self startMargin + aFrame. |
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
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
Oops, something went wrong.