diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-07-03 09:39:53 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-07-03 09:39:53 +0000 |
| commit | 07155c2bd75d0e118318875d81ba62c27b10f21d (patch) | |
| tree | 0206711e0cca69535f1278c2d9f4c457cbd633a5 /src/live_effects/effect.cpp | |
| parent | Partial 2geom update (anticipating changes that will be part of the next majo... (diff) | |
| download | inkscape-07155c2bd75d0e118318875d81ba62c27b10f21d.tar.gz inkscape-07155c2bd75d0e118318875d81ba62c27b10f21d.zip | |
New LPE: Offset
(bzr r6126)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 74e5c29fd..73ba7387a 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -60,6 +60,7 @@ #include "live_effects/lpe-angle_bisector.h" #include "live_effects/lpe-parallel.h" #include "live_effects/lpe-copy_rotate.h" +#include "live_effects/lpe-offset.h" // end of includes namespace Inkscape { @@ -91,6 +92,7 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = { {ANGLE_BISECTOR, N_("Angle bisector"), "angle_bisector"}, {PARALLEL, N_("Parallel"), "parallel"}, {COPY_ROTATE, N_("Rotate copies"), "copy_rotate"}, + {OFFSET, N_("Offset"), "offset"}, }; const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE); @@ -164,6 +166,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case COPY_ROTATE: neweffect = static_cast<Effect*> ( new LPECopyRotate(lpeobj) ); break; + case OFFSET: + neweffect = static_cast<Effect*> ( new LPEOffset(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; |
