Centralize legacy history bridge

This commit is contained in:
2026-06-03 20:45:33 +02:00
parent 6945ce7e23
commit d1bd4e9b46
9 changed files with 104 additions and 53 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
#include "app_core/history_ui.h"
#include "foundation/result.h"
namespace pp::panopainter {
struct LegacyHistorySnapshot {
int undo_count = 0;
int redo_count = 0;
int memory_bytes = 0;
};
[[nodiscard]] LegacyHistorySnapshot legacy_history_snapshot() noexcept;
[[nodiscard]] pp::foundation::Status execute_legacy_history_plan(const pp::app::HistoryUiPlan& plan);
void clear_legacy_history() noexcept;
} // namespace pp::panopainter