From 31f41e23c5f4653263b564ad080649f10be055e5 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 10 Dec 2008 13:36:50 -0800 Subject: * Removing the bitmap files that aren't being used. * Removing the filter files that haven't been used. * Adding a small little script to pull the strings out of the filters.svg file and pull them into a header file so that they can be translated. * Fix generate_POTFILES.sh so that it warns that it'll probably break things * Update POTFILES.in so that it matches the files better. * Making a bunch of .svg files not executable. * Patching the effects code so that the sorting of the menus is correct and the first entry is not ignored. (bzr r6984) --- src/extension/internal/bitmap/convolve.cpp | 67 ------------------------------ 1 file changed, 67 deletions(-) delete mode 100644 src/extension/internal/bitmap/convolve.cpp (limited to 'src/extension/internal/bitmap/convolve.cpp') diff --git a/src/extension/internal/bitmap/convolve.cpp b/src/extension/internal/bitmap/convolve.cpp deleted file mode 100644 index 2a27fc1ed..000000000 --- a/src/extension/internal/bitmap/convolve.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2007 Authors: - * Christopher Brown - * Ted Gould - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include "extension/effect.h" -#include "extension/system.h" - -#include "convolve.h" - -namespace Inkscape { -namespace Extension { -namespace Internal { -namespace Bitmap { - -void -Convolve::applyEffect(Magick::Image *image) { - image->convolve(_order, _kernel); -} - -void -Convolve::refreshParameters(Inkscape::Extension::Effect *module) { - _order = module->get_param_int("order"); - if (_order % 2 == 0) _order--; - _kernel = new double[_order]; - int i = 0; - - char *arrayStr = g_strdup(module->get_param_string("kernel")); - - char *num = strtok(arrayStr, ","); - while (num != NULL) - { - _kernel[i++] = atof(num); - - num = strtok(NULL, ","); - } -} - -#include "../clear-n_.h" - -void -Convolve::init(void) -{ - Inkscape::Extension::build_from_mem( - "\n" -// TRANSLATORS: see http://docs.gimp.org/en/gimp-tool-convolve.html - "" N_("Convolve") "\n" - "org.inkscape.effect.bitmap.convolve\n" - "4\n" - "1,1,0,0\n" - "\n" - "all\n" - "\n" - "\n" - "\n" - "" N_("Apply Convolve Effect") "\n" - "\n" - "\n", new Convolve()); -} - -}; /* namespace Bitmap */ -}; /* namespace Internal */ -}; /* namespace Extension */ -}; /* namespace Inkscape */ -- cgit v1.2.3