summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-06-18 02:13:25 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-06-18 02:13:25 +0000
commit1c46ad2d6ea563c69cf73e3341f57f0d16c88d7e (patch)
tree610b72c3f9b9c848905002e41ae467c614f11cd6 /src/live_effects/effect.cpp
parentRemove superfluous #include from lpe-skeleton.h (diff)
downloadinkscape-1c46ad2d6ea563c69cf73e3341f57f0d16c88d7e.tar.gz
inkscape-1c46ad2d6ea563c69cf73e3341f57f0d16c88d7e.zip
New LPE: Parallel
(bzr r5975)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 7e56023a6..73b5a5786 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -58,6 +58,7 @@
#include "live_effects/lpe-mirror_reflect.h"
#include "live_effects/lpe-circle_3pts.h"
#include "live_effects/lpe-angle_bisector.h"
+#include "live_effects/lpe-parallel.h"
// end of includes
namespace Inkscape {
@@ -87,6 +88,7 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = {
{MIRROR_REFLECT, N_("Mirror reflection"), "mirror_reflect"},
{CIRCLE_3PTS, N_("Circle through 3 points"), "circle_3pts"},
{ANGLE_BISECTOR, N_("Angle bisector"), "angle_bisector"},
+ {PARALLEL, N_("Parallel"), "parallel"},
};
const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE);
@@ -154,6 +156,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case ANGLE_BISECTOR:
neweffect = static_cast<Effect*> ( new LPEAngleBisector(lpeobj) );
break;
+ case PARALLEL:
+ neweffect = static_cast<Effect*> ( new LPEParallel(lpeobj) );
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;