Inkscape
Vector Graphics Editor
|
#include <unit.h>
Public Member Functions | |
UnitParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, Glib::ustring default_unit="px") | |
~UnitParam () override | |
UnitParam (const UnitParam &)=delete | |
UnitParam & | operator= (const UnitParam &)=delete |
bool | param_readSVGValue (const gchar *strvalue) override |
Glib::ustring | param_getSVGValue () const override |
Glib::ustring | param_getDefaultSVGValue () const override |
void | param_set_default () override |
void | param_set_value (const gchar *unit) |
void | param_update_default (const gchar *default_unit) override |
const gchar * | get_abbreviation () const |
Gtk::Widget * | param_newWidget () override |
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 Attributes | |
Glib::ustring | defunit |
std::unique_ptr< Inkscape::Util::Unit const > | unit |
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 |
Inkscape::LivePathEffect::UnitParam::UnitParam | ( | const Glib::ustring & | label, |
const Glib::ustring & | tip, | ||
const Glib::ustring & | key, | ||
Inkscape::UI::Widget::Registry * | wr, | ||
Effect * | effect, | ||
Glib::ustring | default_unit = "px" |
||
) |
Definition at line 19 of file unit.cpp.
References Inkscape::Util::UnitTable::get(), and unit.
|
overridedefault |
|
delete |
const gchar * Inkscape::LivePathEffect::UnitParam::get_abbreviation | ( | ) | const |
Definition at line 77 of file unit.cpp.
References unit.
Referenced by Inkscape::LivePathEffect::LPEMeasureSegments::createLine(), Inkscape::LivePathEffect::LPEMeasureSegments::createTextLabel(), Inkscape::LivePathEffect::LPETiling::doBeforeEffect(), Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect(), Inkscape::LivePathEffect::LPEMeasureSegments::doBeforeEffect(), Inkscape::LivePathEffect::LPEOffset::doBeforeEffect(), Inkscape::LivePathEffect::LPEOffset::doEffect_path(), Inkscape::LivePathEffect::LPEPathLength::doEffect_pwd2(), Inkscape::LivePathEffect::LPERuler::doEffect_pwd2(), Inkscape::LivePathEffect::LPEFilletChamfer::doOnApply(), Inkscape::LivePathEffect::LPEOffset::LPEOffset(), Inkscape::LivePathEffect::LPETiling::newWidget(), Inkscape::LivePathEffect::LPERuler::ruler_mark(), Inkscape::LivePathEffect::LPEOffset::sp_get_offset(), and Inkscape::LivePathEffect::LPEFilletChamfer::updateAmount().
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 47 of file unit.cpp.
References defunit.
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 41 of file unit.cpp.
References unit.
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 83 of file unit.cpp.
References Inkscape::LivePathEffect::Effect::getRepr(), Inkscape::LivePathEffect::Effect::getSPDoc(), Inkscape::LivePathEffect::Parameter::param_effect, Inkscape::LivePathEffect::Parameter::param_key, Inkscape::LivePathEffect::Parameter::param_label, Inkscape::LivePathEffect::Parameter::param_wr, and unit.
|
override |
Definition at line 31 of file unit.cpp.
References param_set_value().
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 53 of file unit.cpp.
References defunit, and param_set_value().
void Inkscape::LivePathEffect::UnitParam::param_set_value | ( | const gchar * | unit | ) |
Definition at line 68 of file unit.cpp.
References Inkscape::Util::UnitTable::get(), Inkscape::LivePathEffect::Parameter::param_effect, Inkscape::LivePathEffect::Effect::refresh_widgets, and unit.
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doOnApply(), param_readSVGValue(), and param_set_default().
|
override |
|
inlineoverridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 45 of file unit.h.
References Inkscape::LivePathEffect::UNIT.
|
private |
Definition at line 48 of file unit.h.
Referenced by param_getDefaultSVGValue(), param_set_default(), and param_update_default().
|
private |
Definition at line 49 of file unit.h.
Referenced by get_abbreviation(), param_getSVGValue(), param_newWidget(), param_set_value(), and UnitParam().