From e2ebbb4f9c51fd4d4528899b761afe74f6f4dd42 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Thu, 12 Jun 2008 13:23:17 +0000 Subject: Infrastructure in class LivePathEffect::Effect to put Inkscape into 'wait for parameter path' mode; make LPEMirrorReflect use this to let the user specify the mirroring line (bzr r5902) --- src/live_effects/effect.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/live_effects/effect.h') diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h index 665509fd1..f1241c54b 100644 --- a/src/live_effects/effect.h +++ b/src/live_effects/effect.h @@ -95,10 +95,16 @@ public: EffectType effectType (); virtual void doOnApply (SPLPEItem *lpeitem); - virtual void doBeforeEffect (SPLPEItem *lpeitem); + void writeParamsToSVG(); + virtual void acceptParamPath (SPPath *param_path); + virtual int acceptsNumParams() { return 0; } + void doAcceptPathPreparations(SPLPEItem *lpeitem); + + inline bool pathParamAccepted() { return done_pathparam_set; } + virtual void doEffect (SPCurve * curve); virtual Gtk::Widget * newWidget(Gtk::Tooltips * tooltips); @@ -148,6 +154,7 @@ protected: std::vector > kh_entity_vector; int oncanvasedit_it; BoolParam is_visible; + bool done_pathparam_set; Inkscape::UI::Widget::Registry wr; -- cgit v1.2.3