add ppbr info data
This commit is contained in:
@@ -88,20 +88,32 @@ class NodePanelBrushPreset : public Node
|
||||
NodeButton* m_btn_download;
|
||||
Node* m_notification;
|
||||
public:
|
||||
struct PPBRInfo
|
||||
{
|
||||
std::string author;
|
||||
std::string email;
|
||||
std::string url;
|
||||
std::string descr;
|
||||
Image header_image;
|
||||
};
|
||||
|
||||
Node* m_container;
|
||||
std::function<void(Node* target, std::shared_ptr<Brush>& brush)> on_brush_changed;
|
||||
std::function<void(Node* target)> on_popup_close;
|
||||
|
||||
NodePanelBrushPreset();
|
||||
~NodePanelBrushPreset();
|
||||
|
||||
virtual Node* clone_instantiate() const override;
|
||||
virtual void init() override;
|
||||
virtual kEventResult handle_event(Event* e) override;
|
||||
virtual void added(Node* parent) override;
|
||||
|
||||
void handle_click(Node* target);
|
||||
bool save();
|
||||
bool restore();
|
||||
void add_brush(std::shared_ptr<Brush> brush);
|
||||
bool export_ppbr(const std::string& path, const Image& header_image);
|
||||
bool export_ppbr(const std::string& path, const PPBRInfo& info);
|
||||
bool import_ppbr(const std::string& path);
|
||||
bool import_abr(const std::string& path);
|
||||
bool import_brush(const std::string& path);
|
||||
|
||||
Reference in New Issue
Block a user