10#include <glibmm/i18n.h>
20namespace LivePathEffect {
24 Effect* effect,
bool default_value)
25 :
Parameter(
label, tip,
key, wr, effect), value(default_value), defvalue(default_value)
59 return value ?
"true" :
"false";
72 auto const checkwdg = Gtk::make_managed<UI::Widget::RegisteredCheckButton>(
param_label,
79 checkwdg->setActive(
value);
80 checkwdg->setProgrammatically =
false;
81 checkwdg->set_undo_parameters(_(
"Change bool parameter"), INKSCAPE_ICON(
"dialog-path-effects"));
91 if (
value != newvalue) {
bool param_readSVGValue(const gchar *strvalue) override
Glib::ustring param_getSVGValue() const override
Gtk::Widget * param_newWidget() override
BoolParam(const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, bool default_value=false)
void param_set_default() override
Glib::ustring param_getDefaultSVGValue() const override
void param_setValue(bool newvalue)
void param_update_default(bool const default_value)
Inkscape::XML::Node * getRepr()
Inkscape::UI::Widget::Registry * param_wr
Glib::ustring param_tooltip
Glib::ustring param_label
Utility functions to convert ascii representations to numbers.
Macro for icon names used in Inkscape.
bool read_bool(gchar const *value, bool default_value)
Helper class to stream background task notifications as a series of messages.
static cairo_user_data_key_t key