From 83b821ff36aa63484b284f24f30affda4d1da6fa Mon Sep 17 00:00:00 2001 From: JucaBlues Date: Sat, 31 May 2008 18:25:47 +0000 Subject: [PATCH] 2 new filters sent by Chrisdesign (http://chrisdesign.wordpress.com/filter-effects/) --- src/extension/internal/filter/CMakeLists.txt | 2 + src/extension/internal/filter/emboss.h | 47 ++++++++++++++++++++ src/extension/internal/filter/filter-all.cpp | 4 ++ src/extension/internal/filter/melt.h | 46 +++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 src/extension/internal/filter/emboss.h create mode 100644 src/extension/internal/filter/melt.h diff --git a/src/extension/internal/filter/CMakeLists.txt b/src/extension/internal/filter/CMakeLists.txt index f619dd5c7..ec76a902e 100644 --- a/src/extension/internal/filter/CMakeLists.txt +++ b/src/extension/internal/filter/CMakeLists.txt @@ -5,6 +5,7 @@ clouds.h crystal.h cutout.h drop-shadow.h +emboss.h etched-glass.h filter-all.cpp filter.cpp @@ -16,6 +17,7 @@ ink-bleed.h jelly-bean.h jigsaw-piece.h leopard-fur.h +melt.h metal.h motion-blur.h oil-slick.h diff --git a/src/extension/internal/filter/emboss.h b/src/extension/internal/filter/emboss.h new file mode 100644 index 000000000..ec4722449 --- /dev/null +++ b/src/extension/internal/filter/emboss.h @@ -0,0 +1,47 @@ +#ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_EMBOSS_H__ +#define __INKSCAPE_EXTENSION_INTERNAL_FILTER_EMBOSS_H__ +/* + * Copyright (C) 2008 Authors: + * Ted Gould + * Filter designed by Chrisdesign (http://chrisdesign.wordpress.com/filter-effects/) + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ +#include "filter.h" + +namespace Inkscape { +namespace Extension { +namespace Internal { +namespace Filter { + +class Emboss : public Inkscape::Extension::Internal::Filter::Filter { +public: + static void init (void) { + filter_init("emboss", /* ID -- should be unique */ + N_("Emboss"), /* Name in the menus, should have a N_() around it for translation */ + N_("Emboss effect"), + /* Menu tooltip to help users understand the name. Should also have a N_() */ + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n"); + /* The XML of the filter that should be added. There + * should be a surrounding what you'd like + * to be added with this effect. */ + }; +}; + +}; /* namespace Filter */ +}; /* namespace Internal */ +}; /* namespace Extension */ +}; /* namespace Inkscape */ + +#endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_EMBOSS_H__ */ diff --git a/src/extension/internal/filter/filter-all.cpp b/src/extension/internal/filter/filter-all.cpp index 08bef9f74..6f0208a0b 100644 --- a/src/extension/internal/filter/filter-all.cpp +++ b/src/extension/internal/filter/filter-all.cpp @@ -14,6 +14,7 @@ #include "crystal.h" #include "cutout.h" #include "drop-shadow.h" +#include "emboss.h" #include "etched-glass.h" #include "fire.h" #include "frost.h" @@ -21,6 +22,7 @@ #include "jelly-bean.h" #include "jigsaw-piece.h" #include "leopard-fur.h" +#include "melt.h" #include "metal.h" #include "motion-blur.h" #include "oil-slick.h" @@ -50,6 +52,7 @@ Filter::filters_all (void ) Crystal::init(); Cutout::init(); DropShadow::init(); + Emboss::init(); EtchedGlass::init(); Fire::init(); Frost::init(); @@ -57,6 +60,7 @@ Filter::filters_all (void ) JellyBean::init(); JigsawPiece::init(); LeopardFur::init(); + Melt::init(); Metal::init(); MotionBlur::init(); OilSlick::init(); diff --git a/src/extension/internal/filter/melt.h b/src/extension/internal/filter/melt.h new file mode 100644 index 000000000..d6372c13f --- /dev/null +++ b/src/extension/internal/filter/melt.h @@ -0,0 +1,46 @@ +#ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_MELT_H__ +#define __INKSCAPE_EXTENSION_INTERNAL_FILTER_MELT_H__ +/* + * Copyright (C) 2008 Authors: + * Ted Gould + * Filter designed by Chrisdesign (http://chrisdesign.wordpress.com/filter-effects/) + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include "filter.h" + +namespace Inkscape { +namespace Extension { +namespace Internal { +namespace Filter { + +class Melt : public Inkscape::Extension::Internal::Filter::Filter { +public: + static void init (void) { + filter_init("melt", /* ID -- should be unique */ + N_("Melt"), /* Name in the menus, should have a N_() around it for translation */ + N_("Melt effect"), + /* Menu tooltip to help users understand the name. Should also have a N_() */ + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n"); + /* The XML of the filter that should be added. There + * should be a surrounding what you'd like + * to be added with this effect. */ + }; +}; + +}; /* namespace Filter */ +}; /* namespace Internal */ +}; /* namespace Extension */ +}; /* namespace Inkscape */ + +#endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_MELT_H__ */ -- 2.30.2