diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-07-21 19:05:55 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-07-21 19:05:55 +0000 |
| commit | e7afb49bd67284227bf5df1df22f9993b1bfa581 (patch) | |
| tree | 5ee0f0a2edaa66685ffa97d1150978317b360f39 /src/live_effects/effect.cpp | |
| parent | Disambiguate sigc::ptr_fun to fix C++14 compilation. (diff) | |
| download | inkscape-e7afb49bd67284227bf5df1df22f9993b1bfa581.tar.gz inkscape-e7afb49bd67284227bf5df1df22f9993b1bfa581.zip | |
This for you CR ยท Measure line, show the distance on rect lines CAD like with auto update
(bzr r15017.1.1)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 1868ca43b..d01312ca7 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -40,6 +40,7 @@ #include "live_effects/lpe-lattice2.h" #include "live_effects/lpe-lattice.h" #include "live_effects/lpe-line_segment.h" +#include "live_effects/lpe-measure-line.h" #include "live_effects/lpe-mirror_symmetry.h" #include "live_effects/lpe-offset.h" #include "live_effects/lpe-parallel.h" @@ -151,6 +152,8 @@ 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 */ + {MEASURE_LINE, N_("Measure Line"), "measure-line"}, }; const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, sizeof(LPETypeData)/sizeof(*LPETypeData)); @@ -319,6 +322,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case TRANSFORM_2PTS: neweffect = static_cast<Effect*> ( new LPETransform2Pts(lpeobj) ); break; + case MEASURE_LINE: + neweffect = static_cast<Effect*> ( new LPEMeasureLine(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; |
