Inkscape
Vector Graphics Editor
|
#include <text.h>
Public Member Functions | |
TextParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, const Glib::ustring default_value="") | |
~TextParam () override | |
Gtk::Widget * | param_newWidget () override |
bool | param_readSVGValue (const gchar *strvalue) override |
Glib::ustring | param_getSVGValue () const override |
Glib::ustring | param_getDefaultSVGValue () const override |
void | param_setValue (Glib::ustring newvalue) |
void | param_hide_canvas_text () |
void | setTextParam (Inkscape::UI::Widget::RegisteredText *rsu) |
void | param_set_default () override |
void | param_update_default (const gchar *default_value) override |
void | setPos (Geom::Point pos) |
void | setPosAndAnchor (const Geom::Piecewise< Geom::D2< Geom::SBasis > > &pwd2, const double t, const double length, bool use_curvature=false) |
void | setAnchor (double x_value, double y_value) |
const Glib::ustring | 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 | |
TextParam (const TextParam &)=delete | |
TextParam & | operator= (const TextParam &)=delete |
Private Attributes | |
double | anchor_x |
double | anchor_y |
Glib::ustring | value |
Glib::ustring | defvalue |
CanvasItemPtr< CanvasItemText > | canvas_text |
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::TextParam::TextParam | ( | const Glib::ustring & | label, |
const Glib::ustring & | tip, | ||
const Glib::ustring & | key, | ||
Inkscape::UI::Widget::Registry * | wr, | ||
Effect * | effect, | ||
const Glib::ustring | default_value = "" |
||
) |
Definition at line 30 of file text.cpp.
References canvas_text, desktop, and SPDesktop::getCanvasTemp().
|
overridedefault |
|
privatedelete |
|
inline |
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 113 of file text.cpp.
References defvalue.
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 107 of file text.cpp.
References value.
Referenced by Inkscape::LivePathEffect::LPEMeasureSegments::createTextLabel(), Inkscape::LivePathEffect::LPECloneOriginal::doBeforeEffect(), and Inkscape::LivePathEffect::LPEMeasureSegments::doBeforeEffect().
void Inkscape::LivePathEffect::TextParam::param_hide_canvas_text | ( | ) |
Definition at line 58 of file text.cpp.
References canvas_text.
Referenced by Inkscape::LivePathEffect::LPECloneOriginal::LPECloneOriginal(), and Inkscape::LivePathEffect::LPEMeasureSegments::LPEMeasureSegments().
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Reimplemented in Inkscape::LivePathEffect::TextParamInternal.
Definition at line 127 of file text.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, set, setTextParam(), and value.
|
override |
Definition at line 100 of file text.cpp.
References param_setValue().
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 45 of file text.cpp.
References defvalue, and param_setValue().
void Inkscape::LivePathEffect::TextParam::param_setValue | ( | Glib::ustring | newvalue | ) |
Definition at line 144 of file text.cpp.
References canvas_text, Inkscape::LivePathEffect::Parameter::param_effect, Inkscape::LivePathEffect::Effect::refresh_widgets, and value.
Referenced by Inkscape::LivePathEffect::LPEMeasureSegments::doBeforeEffect(), Inkscape::LivePathEffect::LPEPathLength::doEffect_pwd2(), param_readSVGValue(), param_set_default(), and setTextParam().
|
override |
Definition at line 51 of file text.cpp.
References defvalue.
Referenced by Inkscape::LivePathEffect::LPEMeasureSegments::LPEMeasureSegments().
|
inlineoverridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 55 of file text.h.
References Inkscape::LivePathEffect::TEXT.
void Inkscape::LivePathEffect::TextParam::setAnchor | ( | double | x_value, |
double | y_value | ||
) |
Definition at line 90 of file text.cpp.
References anchor_x, anchor_y, and canvas_text.
Referenced by Inkscape::LivePathEffect::LPETextLabel::doEffect_pwd2().
void Inkscape::LivePathEffect::TextParam::setPos | ( | Geom::Point | pos | ) |
Definition at line 64 of file text.cpp.
References canvas_text.
Referenced by Inkscape::LivePathEffect::LPETextLabel::doEffect_pwd2().
void Inkscape::LivePathEffect::TextParam::setPosAndAnchor | ( | const Geom::Piecewise< Geom::D2< Geom::SBasis > > & | pwd2, |
const double | t, | ||
const double | length, | ||
bool | use_curvature = false |
||
) |
Definition at line 72 of file text.cpp.
References Geom::angle_between(), Geom::arc_length_parametrization(), canvas_text, Geom::Piecewise< T >::cuts, Geom::derivative(), Geom::length(), Geom::rot90(), Geom::unit_vector(), and Geom::Piecewise< T >::valueAt().
Referenced by Inkscape::LivePathEffect::LPEPathLength::doEffect_pwd2().
void Inkscape::LivePathEffect::TextParam::setTextParam | ( | Inkscape::UI::Widget::RegisteredText * | rsu | ) |
Definition at line 119 of file text.cpp.
References Inkscape::UI::Widget::Text::getText(), param_setValue(), and Inkscape::LivePathEffect::Parameter::write_to_SVG().
Referenced by param_newWidget().
|
private |
Definition at line 60 of file text.h.
Referenced by setAnchor().
|
private |
Definition at line 61 of file text.h.
Referenced by setAnchor().
|
private |
Definition at line 64 of file text.h.
Referenced by param_hide_canvas_text(), param_setValue(), setAnchor(), setPos(), setPosAndAnchor(), and TextParam().
|
private |
Definition at line 63 of file text.h.
Referenced by param_getDefaultSVGValue(), param_set_default(), and param_update_default().
|
private |
Definition at line 62 of file text.h.
Referenced by get_value(), param_getSVGValue(), param_newWidget(), and param_setValue().