X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Flive_effects%2Fparameter%2Fpath.h;h=76f3fa774ff61c633a23f6d598e65fca15c9ae97;hb=4ea30e1bba14987abced98e7bf194b69153e9e21;hp=64c2de55cfb81e9a0804a6d81a2982116e681365;hpb=79291918d036d77d586b6eba265d8d2ac0a7fee5;p=inkscape.git diff --git a/src/live_effects/parameter/path.h b/src/live_effects/parameter/path.h index 64c2de55c..76f3fa774 100644 --- a/src/live_effects/parameter/path.h +++ b/src/live_effects/parameter/path.h @@ -32,29 +32,31 @@ public: const gchar * default_value = "M0,0 L1,1"); virtual ~PathParam(); - virtual ParamType paramType() { return PATH_PARAM; } - std::vector const & get_pathvector(); Geom::Piecewise > const & get_pwd2(); virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips); - bool param_readSVGValue(const gchar * strvalue); - gchar * param_getSVGValue() const; + virtual bool param_readSVGValue(const gchar * strvalue); + virtual gchar * param_getSVGValue() const; - void param_set_default(); + virtual void param_set_default(); void param_set_and_write_default(); - void param_set_and_write_new_value (Geom::Piecewise > const & newpath); - void param_set_and_write_new_value (std::vector const & newpath); + void set_new_value (std::vector const &newpath, bool write_to_svg); + void set_new_value (Geom::Piecewise > const &newpath, bool write_to_svg); virtual void param_editOncanvas(SPItem * item, SPDesktop * dt); virtual void param_setup_nodepath(Inkscape::NodePath::Path *np); + virtual void addCanvasIndicators(SPLPEItem *lpeitem, std::vector &hp_vec); virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/); sigc::signal signal_path_pasted; sigc::signal signal_path_changed; + void paste_param_path(const char *svgd); + void on_paste_button_click(); + protected: std::vector _pathvector; // this is primary data storage, since it is closest to SVG. @@ -75,7 +77,6 @@ protected: void linked_modified(SPObject *linked_obj, guint flags); void on_edit_button_click(); - void on_paste_button_click(); void on_copy_button_click(); void on_link_button_click();