From 71b9c7f35b45b2145ef2ee301a50367c8a7ba91f Mon Sep 17 00:00:00 2001 From: jfbarraud Date: Tue, 23 Sep 2008 22:06:28 +0000 Subject: [PATCH] add a path parameter to doeffect_stack_test to test a bug --- src/live_effects/lpe-test-doEffect-stack.cpp | 4 +++- src/live_effects/lpe-test-doEffect-stack.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/live_effects/lpe-test-doEffect-stack.cpp b/src/live_effects/lpe-test-doEffect-stack.cpp index f858e0f4b..2bcc7fb0d 100644 --- a/src/live_effects/lpe-test-doEffect-stack.cpp +++ b/src/live_effects/lpe-test-doEffect-stack.cpp @@ -20,10 +20,12 @@ namespace LivePathEffect { LPEdoEffectStackTest::LPEdoEffectStackTest(LivePathEffectObject *lpeobject) : Effect(lpeobject), step(_("Stack step"), ("How deep we should go into the stack"), "step", &wr, this), - point(_("point param"), "tooltip of point parameter", "point_param", &wr, this) + point(_("point param"), "tooltip of point parameter", "point_param", &wr, this,Geom::Point(0,0)), + path(_("path param"), "tooltip of path parameter", "path_param", &wr, this,"M 0,100 100,0") { registerParameter( dynamic_cast(&step) ); registerParameter( dynamic_cast(&point) ); + registerParameter( dynamic_cast(&path) ); point.set_oncanvas_looks(SP_KNOT_SHAPE_SQUARE, SP_KNOT_MODE_XOR, 0x00ff0000); } diff --git a/src/live_effects/lpe-test-doEffect-stack.h b/src/live_effects/lpe-test-doEffect-stack.h index 7c22a3b37..fa3ee09be 100644 --- a/src/live_effects/lpe-test-doEffect-stack.h +++ b/src/live_effects/lpe-test-doEffect-stack.h @@ -16,6 +16,7 @@ #include "live_effects/effect.h" #include "live_effects/parameter/parameter.h" #include "live_effects/parameter/point.h" +#include "live_effects/parameter/path.h" namespace Inkscape { namespace LivePathEffect { @@ -32,6 +33,7 @@ public: private: ScalarParam step; PointParam point; + PathParam path; LPEdoEffectStackTest(const LPEdoEffectStackTest&); LPEdoEffectStackTest& operator=(const LPEdoEffectStackTest&); -- 2.30.2