Code

add a path parameter to doeffect_stack_test to test a bug
authorjfbarraud <jfbarraud@users.sourceforge.net>
Tue, 23 Sep 2008 22:06:28 +0000 (22:06 +0000)
committerjfbarraud <jfbarraud@users.sourceforge.net>
Tue, 23 Sep 2008 22:06:28 +0000 (22:06 +0000)
src/live_effects/lpe-test-doEffect-stack.cpp
src/live_effects/lpe-test-doEffect-stack.h

index f858e0f4bb691490ee424fdb68ad0e45b372801b..2bcc7fb0d88f6ccf38fb3ce10107526e5c7ce35e 100644 (file)
@@ -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<Parameter *>(&step) );
     registerParameter( dynamic_cast<Parameter *>(&point) );
+    registerParameter( dynamic_cast<Parameter *>(&path) );
 
     point.set_oncanvas_looks(SP_KNOT_SHAPE_SQUARE, SP_KNOT_MODE_XOR, 0x00ff0000);
 }
index 7c22a3b37cddcda79b8aabab9f61b762d6500cc4..fa3ee09be9f76dac65b68be6310f309ef2e47436 100644 (file)
@@ -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&);