Extract canvas object draw and brush panel services

This commit is contained in:
2026-06-16 18:43:14 +02:00
parent b56a46a82c
commit a5002a4e3e
10 changed files with 504 additions and 279 deletions

View File

@@ -0,0 +1,26 @@
#pragma once
#include <string>
class NodePanelBrush;
namespace pp::panopainter {
class LegacyBrushPanelServices final {
public:
explicit LegacyBrushPanelServices(NodePanelBrush& panel) noexcept;
int find_brush(const std::string& name) const;
std::string get_texture_path(int index) const;
std::string get_thumb_path(int index) const;
bool save();
bool restore();
void clear();
void scan();
void reload();
private:
NodePanelBrush& panel_;
};
} // namespace pp::panopainter