summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-07-15 12:41:03 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-07-15 12:41:03 +0000
commite364accb2f7883333fde52fb70041f251556fcd0 (patch)
tree5a4480081410be8a648bf28e3a1a93cee2b3a8a6 /src/live_effects/effect.cpp
parentSupport for copy/paste with Windows clipboard. (LP 217609) (diff)
downloadinkscape-e364accb2f7883333fde52fb70041f251556fcd0.tar.gz
inkscape-e364accb2f7883333fde52fb70041f251556fcd0.zip
New LPE: Ruler
(bzr r6319)
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 66d2334e0..d5ac6dc74 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -61,6 +61,7 @@
#include "live_effects/lpe-parallel.h"
#include "live_effects/lpe-copy_rotate.h"
#include "live_effects/lpe-offset.h"
+#include "live_effects/lpe-ruler.h"
// end of includes
namespace Inkscape {
@@ -93,6 +94,7 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = {
{PARALLEL, N_("Parallel"), "parallel"},
{COPY_ROTATE, N_("Rotate copies"), "copy_rotate"},
{OFFSET, N_("Offset"), "offset"},
+ {RULER, N_("Ruler"), "ruler"},
};
const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE);
@@ -169,6 +171,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case OFFSET:
neweffect = static_cast<Effect*> ( new LPEOffset(lpeobj) );
break;
+ case RULER:
+ neweffect = static_cast<Effect*> ( new LPERuler(lpeobj) );
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;