From 22cce088046ec5cfeff1ca9c7afe4aa8998ebe46 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 27 Jul 2010 01:43:02 +0200 Subject: more powerstroke build infrastructure (bzr r9656) --- src/live_effects/lpe-powerstroke.cpp | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) (limited to 'src/live_effects/lpe-powerstroke.cpp') diff --git a/src/live_effects/lpe-powerstroke.cpp b/src/live_effects/lpe-powerstroke.cpp index c3de621ee..b349f9aa6 100644 --- a/src/live_effects/lpe-powerstroke.cpp +++ b/src/live_effects/lpe-powerstroke.cpp @@ -28,18 +28,15 @@ LPEPowerStroke::LPEPowerStroke(LivePathEffectObject *lpeobject) : Effect(lpeobject), offset_1(_("Start Offset"), _("Handle to control the distance of the offset from the curve"), "offset_1", &wr, this), offset_2(_("End Offset"), _("Handle to control the distance of the offset from the curve"), "offset_2", &wr, this), - offset_3(_("End Offset"), _("Handle to control the distance of the offset from the curve"), "offset_3", &wr, this) -// offset_points(_("Offset points"), _("Offset points"), "offset_points", &wr, this) + offset_3(_("End Offset"), _("Handle to control the distance of the offset from the curve"), "offset_3", &wr, this), + offset_points(_("Offset points"), _("Offset points"), "offset_points", &wr, this) { show_orig_path = true; registerParameter( dynamic_cast(&offset_1) ); registerParameter( dynamic_cast(&offset_2) ); registerParameter( dynamic_cast(&offset_3) ); -// registerParameter( dynamic_cast(&offset_points) ); - - /* register all your knotholder handles here: */ - //registerKnotHolderHandle(new PowerStroke::KnotHolderEntityAttachMyHandle(), _("help message")); + registerParameter( dynamic_cast(&offset_points) ); } LPEPowerStroke::~LPEPowerStroke() @@ -119,26 +116,6 @@ LPEPowerStroke::doEffect_pwd2 (Geom::Piecewise > const & return output; } - -/* ######################## - * Define the classes for your knotholder handles here - */ - -/* -namespace PowerStroke { - -class KnotHolderEntityMyHandle : public LPEKnotHolderEntity -{ -public: - // the set() and get() methods must be implemented, click() is optional - virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state); - virtual Geom::Point knot_get(); - //virtual void knot_click(guint state); -}; - -} // namespace PowerStroke -*/ - /* ######################## */ } //namespace LivePathEffect -- cgit v1.2.3