diff options
| author | Ted Gould <ted@gould.cx> | 2008-12-10 21:36:50 +0000 |
|---|---|---|
| committer | Ted Gould <ted@canonical.com> | 2008-12-10 21:36:50 +0000 |
| commit | 31f41e23c5f4653263b564ad080649f10be055e5 (patch) | |
| tree | 5435ba4c8754720172352dc0180bd723a6f45f1c /src/extension/internal/bitmap | |
| parent | use 2geom bezier fitting (is copy of inkscape's) (diff) | |
| download | inkscape-31f41e23c5f4653263b564ad080649f10be055e5.tar.gz inkscape-31f41e23c5f4653263b564ad080649f10be055e5.zip | |
* 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)
Diffstat (limited to 'src/extension/internal/bitmap')
| -rw-r--r-- | src/extension/internal/bitmap/convolve.cpp | 67 | ||||
| -rw-r--r-- | src/extension/internal/bitmap/convolve.h | 29 |
2 files changed, 0 insertions, 96 deletions
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 <audiere@gmail.com> - * Ted Gould <ted@gould.cx> - * - * 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( - "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n" -// TRANSLATORS: see http://docs.gimp.org/en/gimp-tool-convolve.html - "<name>" N_("Convolve") "</name>\n" - "<id>org.inkscape.effect.bitmap.convolve</id>\n" - "<param name=\"order\" gui-text=\"" N_("Order") "\" type=\"int\" min=\"0\" max=\"64\">4</param>\n" - "<param name=\"kernel\" gui-text=\"" N_("Kernel Array") "\" type=\"string\" >1,1,0,0</param>\n" - "<effect>\n" - "<object-type>all</object-type>\n" - "<effects-menu>\n" - "<submenu name=\"" N_("Raster") "\" />\n" - "</effects-menu>\n" - "<menu-tip>" N_("Apply Convolve Effect") "</menu-tip>\n" - "</effect>\n" - "</inkscape-extension>\n", new Convolve()); -} - -}; /* namespace Bitmap */ -}; /* namespace Internal */ -}; /* namespace Extension */ -}; /* namespace Inkscape */ diff --git a/src/extension/internal/bitmap/convolve.h b/src/extension/internal/bitmap/convolve.h deleted file mode 100644 index 3cfdc7fd3..000000000 --- a/src/extension/internal/bitmap/convolve.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2007 Authors: - * Christopher Brown <audiere@gmail.com> - * Ted Gould <ted@gould.cx> - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include "imagemagick.h" - -namespace Inkscape { -namespace Extension { -namespace Internal { -namespace Bitmap { - -class Convolve : public ImageMagick { -private: - int _order; - double* _kernel; -public: - void applyEffect(Magick::Image *image); - void refreshParameters(Inkscape::Extension::Effect *module); - static void init (void); -}; - -}; /* namespace Bitmap */ -}; /* namespace Internal */ -}; /* namespace Extension */ -}; /* namespace Inkscape */ |
