feat(app): sequence editor view with preview tools, filmstrip, section tabs and Export panel

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 17:26:54 +00:00
1 parent f6ad822fbb
commit 37703b13f9
16 files changed
+1606 -8

No files matched your search

+13 -4
View File
@@ -41,6 +41,7 @@ public sealed class CameraTab : EditorTab
];
AddKeyCommand = new RelayCommand(AddKey, () => !Editor.IsBusy && Keys.All(k => k.Frame != Editor.CurrentIndex));
RemoveKeyCommand = new RelayCommand(RemoveKey, () => !Editor.IsBusy && SelectedKey >= 0);
CommitCurveCommand = new RelayCommand(CommitCurve);
Refresh();
}
@@ -95,12 +96,16 @@ public sealed class CameraTab : EditorTab
public ICommand RemoveKeyCommand { get; }
private IReadOnlyList<CameraKey> Keys => Editor.Session.Project.Camera.Keyframes;
/// <summary>Run by the curve editor after each finished edit.</summary>
public ICommand CommitCurveCommand { get; }
/// <summary>Keyframes in frame order (the order of <see cref="KeyPoints"/>).</summary>
private List<CameraKey> Keys => [.. Editor.Session.Project.Camera.Keyframes.OrderBy(k => k.Frame)];
public override void Refresh()
{
base.Refresh();
var points = Keys.OrderBy(k => k.Frame).Select(ToPoint).ToList();
var points = Keys.Select(ToPoint).ToList();
if (!points.SequenceEqual(KeyPoints))
{
KeyPoints.Clear();
@@ -113,7 +118,7 @@ public sealed class CameraTab : EditorTab
/// <summary>The curve editor finished an edit (add, move, delete): the points become the keyframes, keeping each one's framing.</summary>
public void CommitCurve()
{
var old = Keys.OrderBy(k => k.Frame).ToList();
var old = Keys;
var keys = new List<CameraKey>();
foreach (var point in KeyPoints.OrderBy(p => p.X))
{
@@ -136,7 +141,7 @@ public sealed class CameraTab : EditorTab
var frame = Editor.CurrentIndex;
var key = new CameraKey(frame, 0.5, 0.5, 1, 0);
Editor.Session.Edit(p => p with { Camera = p.Camera with { Keyframes = [.. p.Camera.Keyframes.Append(key).OrderBy(k => k.Frame)] } });
SelectedKey = Keys.Select((k, i) => (k, i)).First(t => t.k.Frame == frame).i;
SelectedKey = Keys.FindIndex(k => k.Frame == frame);
}
private void RemoveKey()
@@ -195,6 +200,7 @@ public sealed class TimeTab : EditorTab
(p, v) => p with { Timing = p.Timing with { FitToSeconds = v > 0 ? v : null } },
v => v > 0 ? Formatting.Duration(TimeSpan.FromSeconds(v)) : Loc.L("Editor.Value.Off")),
];
CommitCurveCommand = new RelayCommand(CommitCurve);
Refresh();
}
@@ -204,6 +210,9 @@ public sealed class TimeTab : EditorTab
/// <summary>The monotone spline through <see cref="RemapPoints"/>.</summary>
public Func<double, double>? Evaluator { get => _evaluator; private set => Set(ref _evaluator, value); }
/// <summary>Run by the curve editor after each finished edit.</summary>
public ICommand CommitCurveCommand { get; }
/// <summary>"3,600 frames → 2 min 30 s · 24 fps".</summary>
public string? PlanText { get => _planText; private set => Set(ref _planText, value); }