From 1529c5ade9d96ded4bb87881cb32582eead22538 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sat, 25 Aug 2007 21:15:55 +0000 Subject: [PATCH] Add #define to disable "test" LPE's --- src/live_effects/effect.cpp | 6 +++++- src/live_effects/effect.h | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 1e86ab479..6a880c07b 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -38,8 +38,10 @@ namespace LivePathEffect { const Util::EnumData LPETypeData[INVALID_LPE] = { // {constant defined in effect.h, _("name of your effect"), "name of your effect in SVG"} {SKELETAL_STROKES, _("Skeletal Strokes"), "skeletal"}, +#ifdef LPE_ENABLE_TEST_EFFECTS {SLANT, _("Slant"), "slant"}, {DOEFFECTSTACK_TEST, _("doEffect stack test"), "doeffectstacktest"}, +#endif {GEARS, _("Gears"), "gears"} }; const Util::EnumDataConverter LPETypeConverter(LPETypeData, INVALID_LPE); @@ -52,12 +54,14 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case SKELETAL_STROKES: neweffect = (Effect*) new LPESkeletalStrokes(lpeobj); break; - case SLANT: +#ifdef LPE_ENABLE_TEST_EFFECTS + case SLANT: neweffect = (Effect*) new LPESlant(lpeobj); break; case DOEFFECTSTACK_TEST: neweffect = (Effect*) new LPEdoEffectStackTest(lpeobj); break; +#endif case GEARS: neweffect = (Effect*) new LPEGears(lpeobj); break; diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h index 6af44b7e1..37e87a7a6 100644 --- a/src/live_effects/effect.h +++ b/src/live_effects/effect.h @@ -19,6 +19,8 @@ #define LPE_CONVERSION_TOLERANCE 0.01 // FIXME: find good solution for this. +//#define LPE_ENABLE_TEST_EFFECTS + struct SPShape; struct SPDocument; class NArtBpath; @@ -40,8 +42,10 @@ namespace LivePathEffect { enum EffectType { SKELETAL_STROKES = 0, +#ifdef LPE_ENABLE_TEST_EFFECTS SLANT, DOEFFECTSTACK_TEST, +#endif GEARS, INVALID_LPE // This must be last }; -- 2.30.2