fix: wire the phase 5 parcels together
The seven parcels merged without textual conflicts; this connects what each left to the others: - Save frame renders through the Core still path (RenderTarget.StillFrame) instead of the interim one-frame project in a hidden folder, and is named by ExportNaming.StillPath; a missing encoder reports its own notice. - Render progress counts the output program's entries, so loops, boomerang and fades no longer overshoot; the Export panel shows RenderSetup.Program (the boomerang-over-star-trails fallback included). - A videos trash entry is titled by its sequence and carries the path it was deleted from, as the panel's restore message and the desktop row expect. - The desktop sets the videos library's protected folders (workspace) and its server connection; the server protects its data folder for copy jobs too. - Render menu and Export footer open Videos filtered on the sequence; the Videos section implements IVideosSection; the editor's group states are kept in AppSettings.EditorGroups and survive a restart. - Rail tooltips and the shortcut test follow the Videos shift (Ctrl+4 Videos, Archive/Jobs/Server Ctrl+5..7); the trash Restore button binds its row tooltip. Refs #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c4301eb6d3
commit
c4924c122e
49 files changed
+178
-193
No files matched your search
@@ -132,7 +132,7 @@ public sealed class EditorViewModel : LocalizedViewModel, IAsyncDisposable
|
||||
{
|
||||
if (p is string id) SelectedRenderChoice = RenderChoices.FirstOrDefault(c => string.Equals((string)c.Value, id, StringComparison.OrdinalIgnoreCase));
|
||||
});
|
||||
ShowVideosCommand = new RelayCommand(ShowVideos, () => VideosSection is not null);
|
||||
ShowVideosCommand = new RelayCommand(ShowVideos);
|
||||
_cancelServerJob = new AsyncRelayCommand(CancelServerJobAsync, () => ServerJob is not null);
|
||||
UndoCommand = new RelayCommand(() => Session.Undo(), () => !IsLocked && Session.History.CanUndo);
|
||||
RedoCommand = new RelayCommand(() => Session.Redo(), () => !IsLocked && Session.History.CanRedo);
|
||||
@@ -725,10 +725,6 @@ public sealed class EditorViewModel : LocalizedViewModel, IAsyncDisposable
|
||||
private string? RenderPresetId(bool basis) =>
|
||||
(IsReadOnly ? _renderPreset : null) ?? (basis ? Plan?.Export.BasePresetId : Plan?.Export.PresetId) ?? EditorSettings.ExportPreset.Effective(Session.Project, null);
|
||||
|
||||
/// <summary>The Videos section of this Chronos (owner review 1, R9; P7 adds it); null while there is none.</summary>
|
||||
private SectionKey? VideosSection =>
|
||||
Enum.TryParse<SectionKey>("Videos", out var key) && Shell.AllSections.Any(s => s.Key == key) ? key : null;
|
||||
|
||||
/// <summary>Why the project's export cannot be rendered now, localised; null when it can.</summary>
|
||||
public string? RenderBlockedReason => Plan switch
|
||||
{
|
||||
@@ -844,14 +840,8 @@ public sealed class EditorViewModel : LocalizedViewModel, IAsyncDisposable
|
||||
else Shell.Notify(Loc.L("Editor.Still.Queued"), label, Loc.L("Shell.Nav.Jobs"), Loc.L("Tooltips.Nav.Jobs"), () => Shell.Navigate(SectionKey.Jobs));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The videos of this sequence (Render ▾ › Videos). Until the Videos section takes a sequence filter (P7), it opens the
|
||||
/// section as it is.
|
||||
/// </summary>
|
||||
private void ShowVideos()
|
||||
{
|
||||
if (VideosSection is { } key) Shell.Navigate(key);
|
||||
}
|
||||
/// <summary>The videos of this sequence (Render ▾ › Videos): the Videos section filtered on it.</summary>
|
||||
private void ShowVideos() => Shell.OpenVideos(Session.Content.Sequence.Id, Title);
|
||||
|
||||
/// <summary>Re-reads the enabled state of every command (the async ones keep their own event).</summary>
|
||||
public void RefreshCommands()
|
||||
|
||||
@@ -100,8 +100,8 @@ public sealed class ExportPlanner(SequenceContent content, IReadOnlyList<IVideoE
|
||||
var (name, error) = FileName(export.NameTemplate, resolved, setup);
|
||||
// The estimates follow the setup, which renders the adapted size the encoder may cap (RenderSetup.Create).
|
||||
var size = RenderSize.Of(input.Project.Camera, resolved, content.SourceWidth, content.SourceHeight, RenderOptions.Default.MaxWorkingLongEdge);
|
||||
var program = OutputProgram.Build(setup.Plan, export.Playback, setup.Plan.FrameRate);
|
||||
return new ExportPlan(resolved, setup, setup.Estimate(model), name, error) { OutputSize = size, Program = program };
|
||||
// The program the render will play (RenderSetup.Program): playback applied, a boomerang over star trails played forward.
|
||||
return new ExportPlan(resolved, setup, setup.Estimate(model), name, error) { OutputSize = size, Program = setup.Program };
|
||||
}
|
||||
|
||||
/// <summary>The first problem of a name template, localised; null when it is valid.</summary>
|
||||
|
||||
@@ -977,7 +977,7 @@ public sealed class ExportTab : EditorTab
|
||||
});
|
||||
}
|
||||
|
||||
private void OpenVideos() => VideosLink.Open(Editor.Shell.AllSections, Editor.Shell.Navigate, Editor.Session.Content.Sequence.Id);
|
||||
private void OpenVideos() => Editor.Shell.OpenVideos(Editor.Session.Content.Sequence.Id, Editor.Title);
|
||||
|
||||
private void Select(PresetRow? row)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user