10#include <glibmm/i18n.h>
24namespace LivePathEffect {
44 defvalue->set(default_value ? default_value :
"");
57 return value->toString();
69 auto const hbox = Gtk::make_managed<Gtk::Box>(Gtk::Orientation::HORIZONTAL, 2);
72 auto const colorpickerwdg = Gtk::make_managed<UI::Widget::RegisteredColorPicker>(
param_label,
84 colorpickerwdg->setColor(*
value);
87 colorpickerwdg->set_undo_parameters(_(
"Change color button parameter"), INKSCAPE_ICON(
"dialog-path-effects"));
RAII-style mechanism for creating a temporary undo-insensitive context.
void param_setValue(std::optional< Colors::Color > newvalue)
std::optional< Colors::Color > value
Glib::ustring param_getDefaultSVGValue() const override
bool param_readSVGValue(const gchar *strvalue) override
void param_update_default(const gchar *default_value) override
void param_set_default() override
std::optional< Colors::Color > defvalue
Gtk::Widget * param_newWidget() override
ColorPickerParam(const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, std::optional< Colors::Color >={})
Glib::ustring param_getSVGValue() const override
Inkscape::XML::Node * getRepr()
Inkscape::UI::Widget::Registry * param_wr
Glib::ustring param_tooltip
Glib::ustring param_label
Typed SVG document implementation.
TODO: insert short description here.
Macro for icon names used in Inkscape.
void pack_start(Gtk::Box &box, Gtk::Widget &child, bool const expand, bool const fill, unsigned const padding)
Adds child to box, packed with reference to the start of box.
Helper class to stream background task notifications as a series of messages.
static cairo_user_data_key_t key
Helpers for using Gtk::Boxes, encapsulating large changes between GTK3 & GTK4.
static Inkscape::Colors::Color default_color(SPItem *item)
Find default color based on colors in existing fill.