summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-05-08 18:52:45 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-05-08 18:52:45 +0000
commita26ea800c61fdc4f8d4d8a8b5e882a29e0e2e5c4 (patch)
tree3c2d3d39758c4dcdda06c7b596311e1dcfc950e3 /src/live_effects/effect.cpp
parentset continue on error to true (diff)
downloadinkscape-a26ea800c61fdc4f8d4d8a8b5e882a29e0e2e5c4.tar.gz
inkscape-a26ea800c61fdc4f8d4d8a8b5e882a29e0e2e5c4.zip
add LPEConstructGrid
(bzr r5633)
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 cee0c0b21..2cd88fd8b 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -44,6 +44,7 @@
#include "live_effects/lpe-circle_with_radius.h"
#include "live_effects/lpe-perspective_path.h"
#include "live_effects/lpe-spiro.h"
+#include "live_effects/lpe-constructgrid.h"
#include "nodepath.h"
@@ -67,6 +68,7 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = {
{CIRCLE_WITH_RADIUS, N_("Circle (center+radius)"), "circle_with_radius"},
{PERSPECTIVE_PATH, N_("Perspective path"), "perspective_path"},
{SPIRO, N_("Spiro spline"), "spiro"},
+ {CONSTRUCT_GRID, N_("Construct grid"), "construct_grid"},
};
const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE);
@@ -113,6 +115,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case SPIRO:
neweffect = static_cast<Effect*> ( new LPESpiro(lpeobj) );
break;
+ case CONSTRUCT_GRID:
+ neweffect = static_cast<Effect*> ( new LPEConstructGrid(lpeobj) );
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;