~spyzer-abhishek0/+junk/gsoc2011

« back to all changes in this revision

Viewing changes to src/extension/internal/filter/etched-glass.h

  • Committer: Ted Gould
  • Date: 2008-12-10 21:36:50 UTC
  • Revision ID: ted@canonical.com-20081210213650-iqfepz2cdye26uix
 * 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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_ETCHED_GLASS_H__
2
 
#define __INKSCAPE_EXTENSION_INTERNAL_FILTER_ETCHED_GLASS_H__
3
 
/* Change the 'ETCHED_GLASS' above to be your file name */
4
 
 
5
 
/*
6
 
 * Copyright (C) 2008 Authors:
7
 
 *   Ted Gould <ted@gould.cx>
8
 
 *
9
 
 * Released under GNU GPL, read the file 'COPYING' for more information
10
 
 */
11
 
/* ^^^ Change the copyright to be you and your e-mail address ^^^ */
12
 
 
13
 
#include "filter.h"
14
 
 
15
 
namespace Inkscape {
16
 
namespace Extension {
17
 
namespace Internal {
18
 
namespace Filter {
19
 
 
20
 
class EtchedGlass : public Inkscape::Extension::Internal::Filter::Filter {
21
 
public:
22
 
        static void init (void) {
23
 
                filter_init("etched-glass",     /* ID -- should be unique */
24
 
                            N_("Etched Glass"), /* Name in the menus, should have a N_() around it for translation */
25
 
                            N_("Artist text"),
26
 
                                                     /* Menu tooltip to help users understand the name.  Should also have a N_() */
27
 
                                        "<filter>\n"
28
 
                        "<feGaussianBlur stdDeviation=\"6.3056666666666654\" in=\"BackgroundImage\"/>\n"
29
 
                        "<feComposite in2=\"SourceAlpha\" operator=\"in\"/>\n"
30
 
                        "<feBlend blend=\"normal\" in2=\"SourceGraphic\" mode=\"multiply\"/>\n"
31
 
                                        "</filter>\n");
32
 
                                                 /* The XML of the filter that should be added.  There
33
 
                                                  * should be a <svg:filter> surrounding what you'd like
34
 
                                                  * to be added with this effect. */
35
 
        };
36
 
};
37
 
 
38
 
}; /* namespace Filter */
39
 
}; /* namespace Internal */
40
 
}; /* namespace Extension */
41
 
}; /* namespace Inkscape */
42
 
 
43
 
/* Change the 'ETCHED_GLASS' below to be your file name */
44
 
#endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_ETCHED_GLASS_H__ */