summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-08-29 22:36:46 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-08-29 22:36:46 +0000
commit0b4b6cf7cdf14a64844186ea1e22ef6a0dba42bb (patch)
tree045ce745d261eeb22875310393ff32dc59beff0e /src/live_effects/effect.cpp
parentDockable dialogs patch applied (diff)
downloadinkscape-0b4b6cf7cdf14a64844186ea1e22ef6a0dba42bb.tar.gz
inkscape-0b4b6cf7cdf14a64844186ea1e22ef6a0dba42bb.zip
LPE:
- rename RealParam to ScalarParam, add range checking for ScalarParam, add integer only flag for it aswell. - fix up todo.txt and create new one for parameters - add Curve Stitch LPE (bzr r3614)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index a7f4d5781..d13de7f9e 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -30,6 +30,7 @@
#include "live_effects/lpe-slant.h"
#include "live_effects/lpe-test-doEffect-stack.h"
#include "live_effects/lpe-gears.h"
+#include "live_effects/lpe-curvestitch.h"
namespace Inkscape {
@@ -42,7 +43,8 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = {
{SLANT, _("Slant"), "slant"},
{DOEFFECTSTACK_TEST, _("doEffect stack test"), "doeffectstacktest"},
#endif
- {GEARS, _("Gears"), "gears"}
+ {GEARS, _("Gears"), "gears"},
+ {CURVE_STITCH, _("Curve stitching"), "curvestitching"},
};
const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE);
@@ -65,6 +67,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case GEARS:
neweffect = (Effect*) new LPEGears(lpeobj);
break;
+ case CURVE_STITCH:
+ neweffect = (Effect*) new LPECurveStitch(lpeobj);
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;