summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-16 21:42:46 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-16 21:42:46 +0000
commit72f6706daefad31dd0a93b315e03269dac18e2ad (patch)
tree3a4af45cf44cf7b11594dd293d433673d185b84e /src/live_effects/effect.cpp
parentfix combo enum, to handle enums of all types (not only the ones that range fr... (diff)
downloadinkscape-72f6706daefad31dd0a93b315e03269dac18e2ad.tar.gz
inkscape-72f6706daefad31dd0a93b315e03269dac18e2ad.zip
add lpe-Boolops
(bzr r6334)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 4c74d56a6..ad9024772 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -62,6 +62,7 @@
#include "live_effects/lpe-copy_rotate.h"
#include "live_effects/lpe-offset.h"
#include "live_effects/lpe-ruler.h"
+#include "live_effects/lpe-boolops.h"
// end of includes
namespace Inkscape {
@@ -96,6 +97,7 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = {
{COPY_ROTATE, N_("Rotate copies"), "copy_rotate"},
{OFFSET, N_("Offset"), "offset"},
{RULER, N_("Ruler"), "ruler"},
+ {BOOLOPS, N_("Boolops"), "boolops"},
};
const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE);
@@ -178,6 +180,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case RULER:
neweffect = static_cast<Effect*> ( new LPERuler(lpeobj) );
break;
+ case BOOLOPS:
+ neweffect = static_cast<Effect*> ( new LPEBoolops(lpeobj) );
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;