feat(P6): grouped Export panel with preset table, encoding and playback rows
The Export step's cards and long form gave no room for the advanced encoding settings and the new playback contract. The Output panel is now four collapsible groups (Output, Encoding, Playback, File) with a muted summary while closed and a fixed footer (result line, Render now, Add to queue, Batch (n), Videos (n), Reveal, Send again). Presets become a 28 px table grouped by preset group. - Encoding: rate control, bit rate or quality, keyframes in seconds kept across a frame rate change, B-frames and profile, each gated per codec and depth with the reason in the tooltip. - Resolution: Preset, Source, the standard boxes fitted to the chosen proportions (4K at 9:16 renders 2160 x 3840) and Custom. - Playback: direction (Boomerang gated with star trails), loops, fades and hold; a non-default playback writes settings format 3. - Group open state is kept by the app through EditorSettings.Groups (bound to the app settings later), not in the project. - ExportPlan carries the output program for duration and frame count. - The tab resolves the export at once instead of from a stale plan. Refs #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d472dfdec1
commit
503b5f766a
12 files changed
+1663
-336
No files matched your search
@@ -53,6 +53,53 @@ public sealed class AutoSetting<T>(
|
||||
public ProjectSettings Reset(ProjectSettings project) => set(project, get(project).Reset());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Which collapsible groups of the editor are open, by group key ("export.encoding", "preset.social"): a group nobody
|
||||
/// toggled opens as its default says. Until <see cref="Bind"/> attaches the app's settings the state lives for the run;
|
||||
/// bound, each toggle is written there and saved.
|
||||
/// </summary>
|
||||
public sealed class GroupStates
|
||||
{
|
||||
private readonly Lock _lock = new();
|
||||
private IDictionary<string, bool> _store = new Dictionary<string, bool>(StringComparer.Ordinal);
|
||||
private Action? _save;
|
||||
|
||||
/// <summary>Keeps the state in <paramref name="store"/> (the app's settings), calling <paramref name="save"/> after each toggle.</summary>
|
||||
public void Bind(IDictionary<string, bool> store, Action? save)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(store);
|
||||
lock (_lock)
|
||||
{
|
||||
// What was toggled before the settings were attached stays.
|
||||
foreach (var (key, open) in _store)
|
||||
{
|
||||
if (!store.ContainsKey(key)) store[key] = open;
|
||||
}
|
||||
(_store, _save) = (store, save);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Whether the group <paramref name="key"/> is open; <paramref name="fallback"/> when it was never toggled.</summary>
|
||||
public bool IsExpanded(string key, bool fallback)
|
||||
{
|
||||
lock (_lock) return _store.TryGetValue(key, out var open) ? open : fallback;
|
||||
}
|
||||
|
||||
/// <summary>Remembers that the group <paramref name="key"/> is open or closed.</summary>
|
||||
public void Set(string key, bool expanded)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(key);
|
||||
Action? save;
|
||||
lock (_lock)
|
||||
{
|
||||
if (_store.TryGetValue(key, out var open) && open == expanded) return;
|
||||
_store[key] = expanded;
|
||||
save = _save;
|
||||
}
|
||||
save?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>The Auto settings of the editor's sections, in panel order.</summary>
|
||||
public static class EditorSettings
|
||||
{
|
||||
@@ -129,6 +176,12 @@ public static class EditorSettings
|
||||
public static bool IsSectionAuto(ProjectSettings project, AdvisorSection section) =>
|
||||
All.Where(s => s.Section == section).All(s => s.IsAuto(project));
|
||||
|
||||
/// <summary>
|
||||
/// The collapse state of the Export step's setting groups and preset groups (owner review 1, R3; DESIGN §4 collapsible
|
||||
/// group): this user's, kept by the app and not in the project.
|
||||
/// </summary>
|
||||
public static GroupStates Groups { get; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Whether <paramref name="setting"/> applies under the switches in force: the deflicker window, strength and regions
|
||||
/// with deflicker on, the transition length with holy grail on, the shutter angle with motion blur on, the flow quality
|
||||
|
||||
Reference in new issue
Block a user