Extract canvas stroke commit and brush preset services

This commit is contained in:
2026-06-16 19:07:04 +02:00
parent a5002a4e3e
commit 200265e11d
10 changed files with 1188 additions and 1005 deletions

View File

@@ -0,0 +1,25 @@
#pragma once
#include "node_panel_brush.h"
#include <string>
namespace pp::panopainter {
class LegacyBrushPresetServices final {
public:
explicit LegacyBrushPresetServices(NodePanelBrushPreset& owner) noexcept;
bool save();
bool restore();
bool export_ppbr(const std::string& path, const NodePanelBrushPreset::PPBRInfo& info);
bool import_ppbr(const std::string& path);
bool import_abr(const std::string& path);
bool import_brush(const std::string& path);
void clear_brushes();
private:
NodePanelBrushPreset& owner_;
};
} // namespace pp::panopainter