Inkscape
Vector Graphics Editor
|
#include <colorpicker.h>
Public Member Functions | |
ColorPickerParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, std::optional< Colors::Color >={}) | |
~ColorPickerParam () override=default | |
Gtk::Widget * | param_newWidget () override |
bool | param_readSVGValue (const gchar *strvalue) override |
void | param_update_default (const gchar *default_value) override |
Glib::ustring | param_getSVGValue () const override |
Glib::ustring | param_getDefaultSVGValue () const override |
void | param_setValue (std::optional< Colors::Color > newvalue) |
void | param_set_default () override |
std::optional< Colors::Color > | get_value () const |
ParamType | paramType () const override |
![]() | |
Parameter (Glib::ustring label, Glib::ustring tip, Glib::ustring key, Inkscape::UI::Widget::Registry *wr, Effect *effect) | |
virtual | ~Parameter () |
Parameter (const Parameter &)=delete | |
Parameter & | operator= (const Parameter &)=delete |
virtual bool | param_readSVGValue (char const *strvalue)=0 |
virtual void | param_widget_is_visible (bool is_visible) |
virtual void | param_widget_is_enabled (bool is_enabled) |
void | write_to_SVG () |
void | read_from_SVG () |
void | setUpdating (bool updating) |
bool | getUpdating () const |
virtual void | param_update_default (char const *default_value)=0 |
Glib::ustring const * | param_getTooltip () const |
virtual bool | providesKnotHolderEntities () const |
virtual void | addKnotHolderEntities (KnotHolder *, SPItem *) |
virtual void | addCanvasIndicators (SPLPEItem const *, std::vector< Geom::PathVector > &) |
virtual void | param_editOncanvas (SPItem *, SPDesktop *) |
virtual void | param_setup_nodepath (Inkscape::NodePath::Path *) |
virtual void | param_transform_multiply (Geom::Affine const &, bool set) |
virtual std::vector< SPObject * > | param_get_satellites () |
void | param_higlight (bool highlight) |
void | change_selection (Inkscape::Selection *selection) |
void | update_satellites () |
EffectType | effectType () const |
void | connect_selection_changed () |
Private Member Functions | |
ColorPickerParam (const ColorPickerParam &)=delete | |
ColorPickerParam & | operator= (const ColorPickerParam &)=delete |
Private Attributes | |
std::optional< Colors::Color > | value |
std::optional< Colors::Color > | defvalue |
Additional Inherited Members | |
![]() | |
sigc::scoped_connection | selection_changed_connection |
Glib::ustring | param_key |
Glib::ustring | param_tooltip |
Inkscape::UI::Widget::Registry * | param_wr |
Glib::ustring | param_label |
bool | oncanvas_editable |
bool | widget_is_visible |
bool | widget_is_enabled |
![]() | |
void | param_write_to_repr (const char *svgd) |
![]() | |
bool | _updating = false |
Inkscape::Display::TemporaryItem * | ownerlocator = nullptr |
Effect * | param_effect |
Definition at line 18 of file colorpicker.h.
Inkscape::LivePathEffect::ColorPickerParam::ColorPickerParam | ( | const Glib::ustring & | label, |
const Glib::ustring & | tip, | ||
const Glib::ustring & | key, | ||
Inkscape::UI::Widget::Registry * | wr, | ||
Effect * | effect, | ||
std::optional< Colors::Color > | default_color = {} |
||
) |
Definition at line 26 of file colorpicker.cpp.
|
overridedefault |
|
privatedelete |
|
inline |
Definition at line 38 of file colorpicker.h.
References value.
Referenced by Inkscape::LivePathEffect::LPEMeasureSegments::createArrowMarker(), Inkscape::LivePathEffect::LPEMeasureSegments::doBeforeEffect(), Inkscape::LivePathEffect::LPEPowerMask::doBeforeEffect(), Inkscape::LivePathEffect::LPEPowerMask::LPEPowerMask(), and Inkscape::LivePathEffect::LPEPowerMask::setMask().
|
privatedelete |
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 61 of file colorpicker.cpp.
References defvalue.
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 55 of file colorpicker.cpp.
References value.
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 67 of file colorpicker.cpp.
References Inkscape::LivePathEffect::Effect::getRepr(), Inkscape::LivePathEffect::Effect::getSPDoc(), Inkscape::UI::pack_start(), Inkscape::LivePathEffect::Parameter::param_effect, Inkscape::LivePathEffect::Parameter::param_key, Inkscape::LivePathEffect::Parameter::param_label, Inkscape::LivePathEffect::Parameter::param_tooltip, Inkscape::LivePathEffect::Parameter::param_wr, and value.
|
override |
Definition at line 48 of file colorpicker.cpp.
References param_setValue().
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 36 of file colorpicker.cpp.
References defvalue, and param_setValue().
void Inkscape::LivePathEffect::ColorPickerParam::param_setValue | ( | std::optional< Colors::Color > | newvalue | ) |
Definition at line 94 of file colorpicker.cpp.
References value.
Referenced by param_readSVGValue(), and param_set_default().
|
override |
Definition at line 42 of file colorpicker.cpp.
References defvalue.
|
inlineoverridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 39 of file colorpicker.h.
References Inkscape::LivePathEffect::COLOR_PICKER.
|
private |
Definition at line 45 of file colorpicker.h.
Referenced by param_getDefaultSVGValue(), param_set_default(), and param_update_default().
|
private |
Definition at line 44 of file colorpicker.h.
Referenced by get_value(), param_getSVGValue(), param_newWidget(), and param_setValue().