summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-03-18 23:34:31 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-03-18 23:34:31 +0000
commit95b10e0707ee0e16055d5e514e1d05c929d49b5a (patch)
treec6ffa6349cfa6c13d1bdbb03aafdac48f997c7dc /src/live_effects/effect.cpp
parentUpdated to trunk (diff)
downloadinkscape-95b10e0707ee0e16055d5e514e1d05c929d49b5a.tar.gz
inkscape-95b10e0707ee0e16055d5e514e1d05c929d49b5a.zip
Added in new toy effect "Taper Strokes," readded a missing header file, bugfixes
(bzr r13090.1.25)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index eac0f79f4..d6840e5b8 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -52,7 +52,8 @@
#include "live_effects/lpe-fill-between-many.h"
#include "live_effects/lpe-ellipse_5pts.h"
#include "live_effects/lpe-bounding-box.h"
-//#include "live_effects/lpe-jointype.h"
+#include "live_effects/lpe-jointype.h"
+#include "live_effects/lpe-taperstroke.h"
#include "xml/node-event-vector.h"
#include "sp-object.h"
@@ -109,7 +110,8 @@ const Util::EnumData<EffectType> LPETypeData[] = {
{RECURSIVE_SKELETON, N_("Recursive skeleton"), "recursive_skeleton"},
{TANGENT_TO_CURVE, N_("Tangent to curve"), "tangent_to_curve"},
{TEXT_LABEL, N_("Text label"), "text_label"},
-// {JOIN_TYPE, N_("Join type"), "join_type"},
+ {JOIN_TYPE, N_("Join type"), "join_type"},
+ {TAPER_STROKE, N_("Taper stroke"), "taper_stroke"},
#endif
/* 0.46 */
{BEND_PATH, N_("Bend"), "bend_path"},
@@ -273,9 +275,12 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case BOUNDING_BOX:
neweffect = static_cast<Effect*> ( new LPEBoundingBox(lpeobj) );
break;
- /*case JOIN_TYPE:
+ case JOIN_TYPE:
neweffect = static_cast<Effect*> ( new LPEJoinType(lpeobj) );
- break;*/
+ break;
+ case TAPER_STROKE:
+ neweffect = static_cast<Effect*> ( new LPETaperStroke(lpeobj) );
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;