Extract canvas live stroke, node canvas state, and preset panel UI

This commit is contained in:
2026-06-16 19:53:50 +02:00
parent f78f72b607
commit 9b2a0d9c30
13 changed files with 1107 additions and 807 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include "node_panel_brush.h"
namespace pp::panopainter {
class LegacyBrushPresetPanelUi final {
public:
static void init(NodePanelBrushPreset& owner);
static void handle_click(NodePanelBrushPreset& owner, Node* target);
static void add_brush(NodePanelBrushPreset& owner, std::shared_ptr<Brush> brush);
static void added(NodePanelBrushPreset& owner);
private:
static void open_menu(NodePanelBrushPreset& owner, Node* button);
static void show_clear_presets_confirmation(NodePanelBrushPreset& owner);
};
} // namespace pp::panopainter