diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2009-01-02 02:08:21 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2009-01-02 02:08:21 +0000 |
| commit | 28002ad0a686ea0371baca5fb26615cb2089328d (patch) | |
| tree | eb69949f3a2d04ef8a05590488d983be65eaafe4 /src/live_effects/effect.cpp | |
| parent | 2geomification (diff) | |
| download | inkscape-28002ad0a686ea0371baca5fb26615cb2089328d.tar.gz inkscape-28002ad0a686ea0371baca5fb26615cb2089328d.zip | |
reorder LPE list
disable test effects per default
(bzr r7057)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 2a316a0bb..dc252722a 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -74,18 +74,19 @@ namespace LivePathEffect { const Util::EnumData<EffectType> LPETypeData[] = { // {constant defined in effect-enum.h, N_("name of your effect"), "name of your effect in SVG"} +#ifdef LPE_ENABLE_TEST_EFFECTS + {DOEFFECTSTACK_TEST, N_("doEffect stack test"), "doeffectstacktest"}, +#endif {ANGLE_BISECTOR, N_("Angle bisector"), "angle_bisector"}, {BEND_PATH, N_("Bend"), "bend_path"}, {BOOLOPS, N_("Boolops"), "boolops"}, {CIRCLE_WITH_RADIUS, N_("Circle (by center and radius)"), "circle_with_radius"}, {CIRCLE_3PTS, N_("Circle by 3 points"), "circle_3pts"}, {CONSTRUCT_GRID, N_("Construct grid"), "construct_grid"}, -#ifdef LPE_ENABLE_TEST_EFFECTS - {DOEFFECTSTACK_TEST, N_("doEffect stack test"), "doeffectstacktest"}, -#endif {ENVELOPE, N_("Envelope Deformation"), "envelope"}, {FREEHAND_SHAPE, N_("Freehand Shape"), "freehand_shape"}, // this is actually a special type of PatternAlongPath, used to paste shapes in pen/pencil tool {GEARS, N_("Gears"), "gears"}, + {ROUGH_HATCHES, N_("Hatches (rough)"), "rough_hatches"}, {INTERPOLATE, N_("Interpolate Sub-Paths"), "interpolate"}, {KNOT, N_("Knot"), "knot"}, {LATTICE, N_("Lattice Deformation"), "lattice"}, @@ -100,7 +101,6 @@ const Util::EnumData<EffectType> LPETypeData[] = { {COPY_ROTATE, N_("Rotate copies"), "copy_rotate"}, {RULER, N_("Ruler"), "ruler"}, {SKETCH, N_("Sketch"), "sketch"}, - {ROUGH_HATCHES, N_("Hatches (rough)"), "rough_hatches"}, {SPIRO, N_("Spiro spline"), "spiro"}, {CURVE_STITCH, N_("Stitch Sub-Paths"), "curvestitching"}, {TANGENT_TO_CURVE, N_("Tangent to curve"), "tangent_to_curve"}, @@ -148,11 +148,6 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case KNOT: neweffect = static_cast<Effect*> ( new LPEKnot(lpeobj) ); break; -#ifdef LPE_ENABLE_TEST_EFFECTS - case DOEFFECTSTACK_TEST: - neweffect = static_cast<Effect*> ( new LPEdoEffectStackTest(lpeobj) ); - break; -#endif case GEARS: neweffect = static_cast<Effect*> ( new LPEGears(lpeobj) ); break; @@ -219,6 +214,11 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case LINE_SEGMENT: neweffect = static_cast<Effect*> ( new LPELineSegment(lpeobj) ); break; +#ifdef LPE_ENABLE_TEST_EFFECTS + case DOEFFECTSTACK_TEST: + neweffect = static_cast<Effect*> ( new LPEdoEffectStackTest(lpeobj) ); + break; +#endif default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; |
