diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-08-07 17:45:53 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-08-07 17:45:53 +0000 |
| commit | 238f18ff7d05d690b399da7cf62305cbf748700e (patch) | |
| tree | 265f4bb08a1e63e65eed8cedc3f09e6d85921e3a /src/live_effects/parameter/path.cpp | |
| parent | Khmer translation updated (diff) | |
| download | inkscape-238f18ff7d05d690b399da7cf62305cbf748700e.tar.gz inkscape-238f18ff7d05d690b399da7cf62305cbf748700e.zip | |
try to make LPE optimizations easier. example in LPE Bend
(bzr r6584)
Diffstat (limited to 'src/live_effects/parameter/path.cpp')
| -rw-r--r-- | src/live_effects/parameter/path.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 68cb5cd63..84aadff3c 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -49,6 +49,7 @@ PathParam::PathParam( const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, Inkscape::UI::Widget::Registry* wr, Effect* effect, const gchar * default_value) : Parameter(label, tip, key, wr, effect), + changed(true), _pathvector(), _pwd2(), must_recalculate_pwd2(false), @@ -119,7 +120,7 @@ PathParam::param_readSVGValue(const gchar * strvalue) _pathvector = sp_svg_read_pathv(strvalue); } - signal_path_changed.emit(); + emit_changed(); return true; } @@ -254,7 +255,7 @@ PathParam::set_new_value (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & newpa } else { _pwd2 = newpath; must_recalculate_pwd2 = false; - signal_path_changed.emit(); + emit_changed(); } } @@ -282,7 +283,7 @@ PathParam::set_new_value (std::vector<Geom::Path> const &newpath, bool write_to_ param_write_to_repr(svgd); g_free(svgd); } else { - signal_path_changed.emit(); + emit_changed(); } } @@ -300,6 +301,13 @@ PathParam::ensure_pwd2() } void +PathParam::emit_changed() +{ + changed = true; + signal_path_changed.emit(); +} + +void PathParam::start_listening(SPObject * to) { if ( to == NULL ) { @@ -364,7 +372,7 @@ PathParam::linked_modified(SPObject *linked_obj, guint /*flags*/) } must_recalculate_pwd2 = true; - signal_path_changed.emit(); + emit_changed(); SP_OBJECT(param_effect->getLPEObj())->requestModified(SP_OBJECT_MODIFIED_FLAG); } |
