Thin brush panel, preview, and node utility shells
This commit is contained in:
@@ -14,13 +14,43 @@
|
||||
#include <regex>
|
||||
#include <set>
|
||||
|
||||
namespace pp::panopainter {
|
||||
|
||||
LegacyBrushPresetServices::LegacyBrushPresetServices(NodePanelBrushPreset& owner) noexcept
|
||||
pp::panopainter::LegacyBrushPresetServices::LegacyBrushPresetServices(NodePanelBrushPreset& owner) noexcept
|
||||
: owner_(owner)
|
||||
{
|
||||
}
|
||||
|
||||
bool NodePanelBrushPreset::save()
|
||||
{
|
||||
return pp::panopainter::LegacyBrushPresetServices(*this).save();
|
||||
}
|
||||
|
||||
bool NodePanelBrushPreset::restore()
|
||||
{
|
||||
return pp::panopainter::LegacyBrushPresetServices(*this).restore();
|
||||
}
|
||||
|
||||
bool NodePanelBrushPreset::export_ppbr(const std::string& path_in, const PPBRInfo& info_data)
|
||||
{
|
||||
return pp::panopainter::LegacyBrushPresetServices(*this).export_ppbr(path_in, info_data);
|
||||
}
|
||||
|
||||
bool NodePanelBrushPreset::import_ppbr(const std::string& path)
|
||||
{
|
||||
return pp::panopainter::LegacyBrushPresetServices(*this).import_ppbr(path);
|
||||
}
|
||||
|
||||
bool NodePanelBrushPreset::import_abr(const std::string& path)
|
||||
{
|
||||
return pp::panopainter::LegacyBrushPresetServices(*this).import_abr(path);
|
||||
}
|
||||
|
||||
bool NodePanelBrushPreset::import_brush(const std::string& path)
|
||||
{
|
||||
return pp::panopainter::LegacyBrushPresetServices(*this).import_brush(path);
|
||||
}
|
||||
|
||||
namespace pp::panopainter {
|
||||
|
||||
bool LegacyBrushPresetServices::save()
|
||||
{
|
||||
auto path = App::I->data_path + "/settings/presets.bin";
|
||||
|
||||
Reference in New Issue
Block a user