21 lines
657 B
C++
21 lines
657 B
C++
#pragma once
|
|
|
|
#include "node_panel_brush.h"
|
|
|
|
namespace pp::panopainter {
|
|
|
|
class LegacyBrushPresetPanelUi final {
|
|
public:
|
|
static void init(NodePanelBrushPreset& owner);
|
|
static kEventResult handle_event(NodePanelBrushPreset& owner, Event* event);
|
|
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
|