From e1533062258057c78f61eaa6811f4924ca393733 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 30 Jul 2008 12:06:20 +0000 Subject: New LPE: path length (bzr r6477) --- src/live_effects/effect.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/live_effects/effect.cpp') diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 701b46d36..b0cebab8d 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -64,6 +64,7 @@ #include "live_effects/lpe-boolops.h" #include "live_effects/lpe-interpolate.h" #include "live_effects/lpe-text_label.h" +#include "live_effects/lpe-path_length.h" // end of includes namespace Inkscape { @@ -90,6 +91,7 @@ const Util::EnumData LPETypeData[] = { {MIRROR_SYMMETRY, N_("Mirror symmetry"), "mirror_symmetry"}, {OFFSET, N_("Offset"), "offset"}, {PARALLEL, N_("Parallel"), "parallel"}, + {PATH_LENGTH, N_("Path length"), "path_length"}, {PATTERN_ALONG_PATH, N_("Pattern Along Path"), "skeletal"}, // for historic reasons, this effect is called skeletal(strokes) in Inkscape:SVG {PERP_BISECTOR, N_("Perpendicular bisector"), "perp_bisector"}, {PERSPECTIVE_PATH, N_("Perspective path"), "perspective_path"}, @@ -192,6 +194,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case TEXT_LABEL: neweffect = static_cast ( new LPETextLabel(lpeobj) ); break; + case PATH_LENGTH: + neweffect = static_cast ( new LPEPathLength(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; -- cgit v1.2.3