Commit 95f3ec2f authored by Øyvind Kolås's avatar Øyvind Kolås

replaced "ifdef GEGL_CHANT_SELF" with "ifdef GEGL_CHANT_PROPERTIES"

parent a88a0680
2006-09-02 Øyvind Kolås <pippin@gimp.org>
* gegl/gegl-chant.h,
* operations/transform/chant.h: define GEGL_CHANT_PROPERTIES
for the rest a global replace of "#ifdef GEGL_CHANT_SELF" with "#ifdef
GEGL_CHANT_PROPERTIES"
* operations/blur/box-blur.c:
* operations/blur/gaussian-blur.c:
* operations/color/brightness-contrast.c:
* operations/color/invert.c:
* operations/color/stretch-contrast.c:
* operations/color/threshold.c:
* operations/core/clone.c:
* operations/core/crop.c:
* operations/core/nop.c:
* operations/core/shift.c:
* operations/display/display.c:
* operations/file-io/jpg-load.c:
* operations/file-io/load.c:
* operations/file-io/magick-load.c:
* operations/file-io/png-load.c:
* operations/file-io/png-save.c:
* operations/file-io/raw-load.c:
* operations/generated/math.rb:
* operations/generated/porter-duff.rb:
* operations/generated/svg-blend.rb:
* operations/meta/dropshadow.c:
* operations/meta/layer.c:
* operations/meta/unsharp-mask.c:
* operations/render/blank.c:
* operations/render/checkerboard.c:
* operations/render/noise.c:
* operations/render/text.c:
* operations/transform/rotate.c:
* operations/transform/scale.c:
* operations/transform/shear.c:
* operations/transform/translate.c:
* operations/transparency/opacity.c:
2006-09-02 Øyvind Kolås <pippin@gimp.org>
Namespaced the chanting by performing a recursive
......
......@@ -2,6 +2,8 @@
#error "GEGL_CHANT_SELF not defined"
#endif
#define GEGL_CHANT_PROPERTIES 1
/****************************************************************************/
#include <string.h>
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (radius, 0.0, 200.0, 4.0, "radius of square pixel region, (width and height will be radius*2+1.")
......
......@@ -20,7 +20,7 @@
* in "Signal Processing 44 (1995) 139 - 151"
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (radius_x, -0.91675, 500.0, 4.0, "blur radius in horizontal direction.")
gegl_chant_double (radius_y, -0.91675, 500.0, 4.0, "blur radius in vertical direction.")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (contrast, -100.0, 100.0, 1.0, "Range scale factor")
gegl_chant_double (brightness, -10.0, 10.0, 0.0, "Amount to increase brightness")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
#else
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
#else
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (value, -100.0, 100.0, 0.5, "global threshold level (used when there is no aux input")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string (ref, "", "The reference ID used as input.")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "left most pixel coordinate")
gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "top pixel coordinate")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
#else
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "x coordinate of new origin")
gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "y coordinate of new origin")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string(window_title, "window_title", "Title to be given output window")
gegl_chant_string(icon_title, "icon_title", "Icon to be used for output window")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string (path, "/tmp/romedalen.jpg", "Path to jpg file on disk to load")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string(path, "/tmp/lena.png", "Path of file to load.")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string (path, "/tmp/gegl-logo.svg", "path to file to load")
gegl_chant_pointer (cached, "private")
#else
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string (path, "/tmp/romedalen.png", "path to file to load")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string(path, "/tmp/fnord.png", "path to new file to save - for stdout")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string (path, "/tmp/test.raw", "path to file to load")
gegl_chant_pointer (cached, "private")
#else
......
......@@ -35,7 +35,7 @@ a.each do
file.write copyright
file.write "
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (value, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, \"global value used if aux doesn't contain data\")
#else
......
......@@ -40,7 +40,7 @@ a.each do
file.write copyright
file.write "
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
#else
......
......@@ -33,7 +33,7 @@ a.each do
file.write copyright
file.write "
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
#else
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double(opacity, 0.0, 1.0, 0.5, "Opacity")
gegl_chant_double(x, -G_MAXDOUBLE, G_MAXDOUBLE, 20.0, "horizontal position")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string(composite_op, "over", "Composite operation to use")
gegl_chant_double(opacity, 0.0, 1.0, 1.0, "Opacity")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double(radius, 0.0, 30.0, 1.4, "Radius")
gegl_chant_double(scale, 0.0, 100.0, 10.0, "Scale")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
#else
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_int (x, -G_MAXINT, G_MAXINT, 16, "")
gegl_chant_int (y, -G_MAXINT, G_MAXINT, 16, "")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (alpha, -G_MAXDOUBLE, G_MAXDOUBLE, 12.3, "")
gegl_chant_double (beta, -G_MAXDOUBLE, G_MAXDOUBLE, 0.1, "")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string (string, "Hello", "utf8 string to display")
gegl_chant_double (size, 1.0, 2048.0, 10.0, "approximate height of text in pixels")
......
......@@ -2,6 +2,8 @@
#error "GEGL_CHANT_SELF not defined"
#endif
#define GEGL_CHANT_PROPERTIES 1
/****************************************************************************/
#include <string.h>
......
......@@ -18,7 +18,7 @@
* Copyright 2006 Philip Lafleur
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (degrees, -G_MAXDOUBLE, G_MAXDOUBLE, 0., "")
......
......@@ -18,7 +18,7 @@
* Copyright 2006 Philip Lafleur
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1., "")
gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 1., "")
......
......@@ -18,7 +18,7 @@
* Copyright 2006 Philip Lafleur
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1., "")
gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 1., "")
......
......@@ -18,7 +18,7 @@
* Copyright 2006 Philip Lafleur
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1., "")
gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 1., "")
......
......@@ -17,7 +17,7 @@
*
* Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/
#ifdef GEGL_CHANT_SELF
#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (value, -10.0, 10.0, 0.5, "global opacity value, used if no aux input is provided")
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment