~spyzer-abhishek0/+junk/gsoc2011

« back to all changes in this revision

Viewing changes to src/extension/internal/filter/clouds.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_CLOUDS_H__
2
 
#define __INKSCAPE_EXTENSION_INTERNAL_FILTER_CLOUDS_H__
3
 
/* Change the 'CLOUDS' 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 Clouds : public Inkscape::Extension::Internal::Filter::Filter {
21
 
public:
22
 
        static void init (void) {
23
 
                filter_init("clouds",     /* ID -- should be unique */
24
 
                            N_("Clouds"), /* Name in the menus, should have a N_() around it for translation */
25
 
                            N_("Yes, more descriptions"),
26
 
                                                     /* Menu tooltip to help users understand the name.  Should also have a N_() */
27
 
                                        "<filter>\n"
28
 
                        "<feTurbulence type=\"fractalNoise\" baseFrequency=\"0.040293040293040296 0.10695970695970697\" numOctaves=\"3\"/>\n"
29
 
                        "<feColorMatrix values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 5 -2.7\" result=\"result0\"/>\n"
30
 
                        "<feFlood flood-color=\"rgb(255,255,255)\" flood-opacity=\"1\"/>\n"
31
 
                        "<feComposite in2=\"result0\" operator=\"in\"/>\n"
32
 
                        "<feComposite in2=\"SourceGraphic\" operator=\"atop\"/>\n"
33
 
                                        "</filter>\n");
34
 
                                                 /* The XML of the filter that should be added.  There
35
 
                                                  * should be a <svg:filter> surrounding what you'd like
36
 
                                                  * to be added with this effect. */
37
 
        };
38
 
};
39
 
 
40
 
}; /* namespace Filter */
41
 
}; /* namespace Internal */
42
 
}; /* namespace Extension */
43
 
}; /* namespace Inkscape */
44
 
 
45
 
/* Change the 'CLOUDS' below to be your file name */
46
 
#endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_CLOUDS_H__ */