diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-03-30 22:39:26 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-04-01 00:32:25 +0000 |
| commit | f356f24c488ef6bfd03c780b6ca986266199e62f (patch) | |
| tree | 3689a0f2f584936b74b5ecb3dabc21979a34b985 /src/live_effects/effect.cpp | |
| parent | Repair broken link by moving hacking file to contributing. (diff) | |
| download | inkscape-f356f24c488ef6bfd03c780b6ca986266199e62f.tar.gz inkscape-f356f24c488ef6bfd03c780b6ca986266199e62f.zip | |
Add LPE Dash Stroke
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 80fa208fa..941923a77 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -24,6 +24,7 @@ #include "live_effects/lpe-constructgrid.h" #include "live_effects/lpe-copy_rotate.h" #include "live_effects/lpe-curvestitch.h" +#include "live_effects/lpe-dash-stroke.h" #include "live_effects/lpe-dynastroke.h" #include "live_effects/lpe-ellipse_5pts.h" #include "live_effects/lpe-envelope.h" @@ -133,7 +134,7 @@ const Util::EnumData<EffectType> LPETypeData[] = { {FILL_BETWEEN_MANY, N_("Fill between many"), "fill_between_many"}, {ELLIPSE_5PTS, N_("Ellipse by 5 points"), "ellipse_5pts"}, {BOUNDING_BOX, N_("Bounding Box"), "bounding_box"}, -/* 9.93 */ +/* 0.93 */ {MEASURE_SEGMENTS, N_("Measure Segments"), "measure_segments"}, {FILLET_CHAMFER, N_("Fillet/Chamfer"), "fillet_chamfer"}, {BOOL_OP, N_("Boolean operation"), "bool_op"}, @@ -142,6 +143,7 @@ const Util::EnumData<EffectType> LPETypeData[] = { {POWERMASK, N_("Power mask"), "powermask"}, {PTS2ELLIPSE, N_("Ellipse from points"), "pts2ellipse"}, {OFFSET, N_("Offset"), "offset"}, + {DASH_STROKE, N_("Dash Stroke"), "dash_stroke"}, #ifdef LPE_ENABLE_TEST_EFFECTS {DOEFFECTSTACK_TEST, N_("doEffect stack test"), "doeffectstacktest"}, {ANGLE_BISECTOR, N_("Angle bisector"), "angle_bisector"}, @@ -346,6 +348,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case PTS2ELLIPSE: neweffect = static_cast<Effect*> ( new LPEPts2Ellipse(lpeobj) ); break; + case DASH_STROKE: + neweffect = static_cast<Effect*> ( new LPEDashStroke(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; |
