summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4db1988)
raw | patch | inline | side by side (parent: 4db1988)
author | jfbarraud <jfbarraud@users.sourceforge.net> | |
Tue, 23 Sep 2008 22:06:28 +0000 (22:06 +0000) | ||
committer | jfbarraud <jfbarraud@users.sourceforge.net> | |
Tue, 23 Sep 2008 22:06:28 +0000 (22:06 +0000) |
src/live_effects/lpe-test-doEffect-stack.cpp | patch | blob | history | |
src/live_effects/lpe-test-doEffect-stack.h | patch | blob | history |
diff --git a/src/live_effects/lpe-test-doEffect-stack.cpp b/src/live_effects/lpe-test-doEffect-stack.cpp
index f858e0f4bb691490ee424fdb68ad0e45b372801b..2bcc7fb0d88f6ccf38fb3ce10107526e5c7ce35e 100644 (file)
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);
}
diff --git a/src/live_effects/lpe-test-doEffect-stack.h b/src/live_effects/lpe-test-doEffect-stack.h
index 7c22a3b37cddcda79b8aabab9f61b762d6500cc4..fa3ee09be9f76dac65b68be6310f309ef2e47436 100644 (file)
#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 {
private:
ScalarParam step;
PointParam point;
+ PathParam path;
LPEdoEffectStackTest(const LPEdoEffectStackTest&);
LPEdoEffectStackTest& operator=(const LPEdoEffectStackTest&);