feat: export panel and Render menu, playback options, videos library (owner review 1 phase 5) (#27)
CI / Build and test (push) Successful in 9m41s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 9s
Release / Build, test and publish (push) Successful in 14m49s
CI / PostgreSQL 16 integration (push) Successful in 8m51s
CI / PostgreSQL 17 integration (push) Successful in 9m48s
CI / Docker image (push) Successful in 54s
Release / Server image (push) Successful in 1m39s

Owner review 1 R3, R8, R9. A grouped Export step and Render menu; encoding, playback (reverse, boomerang, loops, fades, hold) and still frames; one videos library on the desktop and the server with a verified trash and copies to a videos folder.

Closes #21

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #27.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-05 09:18:40 +01:00
1 parent 188b2c2e55
commit 728ffa35cb
729 files changed
+26954 -1652

No files matched your search

+53
View File
@@ -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