diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-05-16 15:01:06 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-05-16 15:01:06 +0000 |
| commit | d79e3a1e14cfb0263d40379dfd2f0eebbde1dc2c (patch) | |
| tree | 8052bc6e365cec0c8a16cfec6f606a60f5df011b /src/live_effects/lpe-clone-original.h | |
| parent | Fix a bug on reloading LPE Clone effect (diff) | |
| download | inkscape-d79e3a1e14cfb0263d40379dfd2f0eebbde1dc2c.tar.gz inkscape-d79e3a1e14cfb0263d40379dfd2f0eebbde1dc2c.zip | |
Improve the sync path on clone LPE
Diffstat (limited to 'src/live_effects/lpe-clone-original.h')
| -rw-r--r-- | src/live_effects/lpe-clone-original.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/live_effects/lpe-clone-original.h b/src/live_effects/lpe-clone-original.h index c8014e806..0d4825053 100644 --- a/src/live_effects/lpe-clone-original.h +++ b/src/live_effects/lpe-clone-original.h @@ -20,7 +20,7 @@ namespace Inkscape { namespace LivePathEffect { -enum Clonelpemethod { CLM_NONE, CLM_D, CLM_ORIGINALD, CLM_BSPLINESPIRO, CLM_CURRENT, CLM_END }; +enum Clonelpemethod { CLM_NONE, CLM_D, CLM_ORIGINALD, CLM_BSPLINESPIRO, CLM_END }; class LPECloneOriginal : public Effect, GroupBBoxEffect { public: @@ -30,6 +30,8 @@ public: void doBeforeEffect (SPLPEItem const* lpeitem) override; void cloneAttrbutes(SPObject *origin, SPObject *dest, const gchar * attributes, const gchar * style_attributes); void modified(SPObject */*obj*/, guint /*flags*/); + Gtk::Widget *newWidget(); + void syncOriginal(); void start_listening(); void quit_listening(); @@ -37,12 +39,14 @@ private: OriginalItemParam linkeditem; EnumParam<Clonelpemethod> method; TextParam attributes; + gchar * old_attributes; TextParam style_attributes; + gchar * old_style_attributes; BoolParam allow_transforms; const gchar * linked; - Clonelpemethod previous_method; bool listening; bool is_updating; + bool sync; sigc::connection modified_connection; LPECloneOriginal(const LPECloneOriginal&) = delete; LPECloneOriginal& operator=(const LPECloneOriginal&) = delete; |
