X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Flive_effects%2Fparameter%2Fpath.h;h=d72b4b7fea30321bc4f6b3db05a2c4a8a838a3ff;hb=d43709890eb582d2be4fb89d5735665e6b917fcd;hp=6f2a0d1fdcc96ba8f6263efb1de88fe5280f0667;hpb=1673045848db9654bcb07a81fad34afb4b0623d1;p=inkscape.git diff --git a/src/live_effects/parameter/path.h b/src/live_effects/parameter/path.h index 6f2a0d1fd..d72b4b7fe 100644 --- a/src/live_effects/parameter/path.h +++ b/src/live_effects/parameter/path.h @@ -15,7 +15,7 @@ #include #include "live_effects/parameter/parameter.h" - +#include "live_effects/parameter/path-reference.h" #include namespace Inkscape { @@ -43,6 +43,7 @@ public: 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); virtual void param_editOncanvas(SPItem * item, SPDesktop * dt); virtual void param_setup_nodepath(Inkscape::NodePath::Path *np); @@ -59,12 +60,22 @@ protected: bool must_recalculate_pwd2; // set when _pathvector was updated, but _pwd2 not void ensure_pwd2(); // ensures _pwd2 is up to date - bool referring; // set when referring to another path, i.e. does not have its own pwd2, but should get it from another path - void update_from_referred(); // updates path data by looking up refered path + gchar * href; // contains link to other object, e.g. "#path2428", NULL if PathParam contains pathdata itself + PathReference ref; + sigc::connection ref_changed_connection; + sigc::connection linked_delete_connection; + sigc::connection linked_modified_connection; + void ref_changed(SPObject *old_ref, SPObject *new_ref); + void remove_link(); + void start_listening(SPObject * to); + void quit_listening(void); + void linked_delete(SPObject *deleted); + 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(); gchar * defvalue;