From 3a29b4fc6a3063f4658c8053adcb742f878f19b1 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 3 Oct 2026 10:50:17 +0000 Subject: [PATCH] fix(app): busy reasons on frame actions and curves; shot data lifts above the tools - Exclude, Set hero and the curve editors say why they wait while a job runs. - The preview's shot data moves just above the tools when both do not fit in one row (1200 px window with labelled tools) instead of overlapping them. - The measuring preparation reads luminance only when the deep analysis has it or a module needs it, so an unanalysed sequence with no module on decodes nothing. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- src/Titano.App/Editor/CameraTab.cs | 13 +++++++ src/Titano.App/Editor/EditorMeasures.xaml | 9 +++-- src/Titano.App/Editor/EditorPanels.xaml | 5 ++- src/Titano.App/Editor/FramesTab.cs | 18 ++++++++- src/Titano.App/Editor/PreviewRenderer.cs | 37 ++++++++++++------- src/Titano.Ui/Visuals/PreviewViewport.cs | 10 +++-- .../Editor/PreviewRendererTests.cs | 18 +++++++++ 7 files changed, 84 insertions(+), 26 deletions(-) diff --git a/src/Titano.App/Editor/CameraTab.cs b/src/Titano.App/Editor/CameraTab.cs index b964b43a..b346e4ca 100644 --- a/src/Titano.App/Editor/CameraTab.cs +++ b/src/Titano.App/Editor/CameraTab.cs @@ -106,6 +106,9 @@ public sealed class CameraTab : EditorTab public string AddKeyToolTip => Loc.L(Editor.IsBusy ? "Tooltips.Editor.Busy" : Keys.Any(k => k.Frame == Editor.CurrentIndex) ? "Tooltips.Editor.Camera.KeyExists" : "Tooltips.Editor.Camera.AddKey"); + /// How to edit the keyframe curve, or why it waits. + public string CurveToolTip => Loc.L(Editor.IsBusy ? "Tooltips.Editor.Busy" : "Tooltips.Editor.Camera.Curve"); + public string RemoveKeyToolTip => Loc.L(Editor.IsBusy ? "Tooltips.Editor.Busy" : HasSelectedKey ? "Tooltips.Editor.Camera.RemoveKey" : "Tooltips.Editor.Camera.NoKey"); /// Run by the curve editor after each finished edit. @@ -153,6 +156,7 @@ public sealed class CameraTab : EditorTab base.OnBusyChanged(); OnPropertyChanged(nameof(AddKeyToolTip)); OnPropertyChanged(nameof(RemoveKeyToolTip)); + OnPropertyChanged(nameof(CurveToolTip)); } /// A margin of the free crop (); all zero = the whole frame. @@ -243,6 +247,9 @@ public sealed class TimeTab : EditorTab /// Run by the curve editor after each finished edit. public ICommand CommitCurveCommand { get; } + /// How to edit the remap curve, or why it waits. + public string CurveToolTip => Loc.L(Editor.IsBusy ? "Tooltips.Editor.Busy" : "Tooltips.Editor.Time.Curve"); + /// "3,600 frames → 2 min 30 s · 24 fps". public string? PlanText { get => _planText; private set => Set(ref _planText, value); } @@ -315,6 +322,12 @@ public sealed class TimeTab : EditorTab public override void OnCurrentFrameChanged() => OnPropertyChanged(nameof(Playhead)); + public override void OnBusyChanged() + { + base.OnBusyChanged(); + OnPropertyChanged(nameof(CurveToolTip)); + } + private static Func? Spline(IReadOnlyList points) { if (points.Count < 2) return null; diff --git a/src/Titano.App/Editor/EditorMeasures.xaml b/src/Titano.App/Editor/EditorMeasures.xaml index 18fd29c6..3486ba0c 100644 --- a/src/Titano.App/Editor/EditorMeasures.xaml +++ b/src/Titano.App/Editor/EditorMeasures.xaml @@ -156,10 +156,11 @@ -