[gimp/metadata-browser] app, menus: add some new GEGL ops to the menus



commit a8a59baa527e38a7ab22514f20cc7efde797f36b
Author: Michael Natterer <mitch gimp org>
Date:   Fri Aug 31 22:19:43 2012 +0200

    app,menus: add some new GEGL ops to the menus

 app/actions/filters-actions.c |   56 +++++++++++++++++++++++++++++++++++++++++
 menus/image-menu.xml.in       |   14 +++++++++-
 2 files changed, 68 insertions(+), 2 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index 78de58e..9f4904f 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -39,6 +39,12 @@
 
 static const GimpStringActionEntry filters_actions[] =
 {
+  { "filters-cartoon", GIMP_STOCK_GEGL,
+    NC_("filters-action", "Ca_rtoon..."), NULL,
+    NC_("filters-action", "Simulate a cartoon by enhancing edges"),
+    "gegl:cartoon",
+    NULL /* FIXME GIMP_HELP_FILTER_CARTOON */ },
+
   { "filters-color-reduction", GIMP_STOCK_GEGL,
     NC_("filters-action", "Color _Reduction..."), NULL,
     NC_("filters-action", "Reduce the number of colors in the image, with optional dithering"),
@@ -81,6 +87,42 @@ static const GimpStringActionEntry filters_actions[] =
     "gegl:lens-distortion",
     NULL /* FIXME GIMP_HELP_FILTER_LENS_DISTORTION */ },
 
+  { "filters-noise-hsv", GIMP_STOCK_GEGL,
+    NC_("filters-action", "HSV Noise..."), NULL,
+    NC_("filters-action", "Scattering pixel values in HSV space"),
+    "gegl:noise-hsv",
+    NULL /* FIXME GIMP_HELP_FILTER_NOISE_HSV */ },
+
+  { "filters-noise-hurl", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Hurl..."), NULL,
+    NC_("filters-action", "Completely randomize a fraction of pixels"),
+    "gegl:noise-hurl",
+    NULL /* FIXME GIMP_HELP_FILTER_NOISE_HURL */ },
+
+  { "filters-noise-pick", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Pick..."), NULL,
+    NC_("filters-action", "Randomly interchange some pixels with neighbors"),
+    "gegl:noise-pick",
+    NULL /* FIXME GIMP_HELP_FILTER_NOISE_PICK */ },
+
+  { "filters-noise-rgb", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_RGB Noise..."), NULL,
+    NC_("filters-action", "Distort colors by random amounts"),
+    "gegl:noise-rgb",
+    NULL /* FIXME GIMP_HELP_FILTER_NOISE_RGB */ },
+
+  { "filters-noise-slur", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Slur..."), NULL,
+    NC_("filters-action", "Randomly slide some pixels downward (similar to melting)"),
+    "gegl:noise-slur",
+    NULL /* FIXME GIMP_HELP_FILTER_NOISE_SLUR */ },
+
+  { "filters-photocopy", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Photocopy..."), NULL,
+    NC_("filters-action", "Simulate color distortion produced by a copy machine"),
+    "gegl:photocopy",
+    NULL /* FIXME GIMP_HELP_FILTER_PHOTOCOPY */ },
+
   { "filters-pixelize", GIMP_STOCK_GEGL,
     NC_("filters-action", "_Pixelize..."), NULL,
     NC_("filters-action", "Simplify image into an array of solid-colored squares"),
@@ -111,6 +153,12 @@ static const GimpStringActionEntry filters_actions[] =
     "gegl:edge-sobel",
     NULL /* FIXME GIMP_HELP_FILTER_SOBEL */ },
 
+  { "filters-softglow", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Softglow..."), NULL,
+    NC_("filters-action", "Simulate glow by making highlights intense and fuzzy"),
+    "gegl:softglow",
+    NULL /* FIXME GIMP_HELP_FILTER_SOFTGLOW */ },
+
   { "filters-threshold-alpha", GIMP_STOCK_GEGL,
     NC_("filters-action", "_Threshold Alpha..."), NULL,
     NC_("filters-action", "Make transparency all-or-nothing"),
@@ -171,17 +219,25 @@ filters_actions_update (GimpActionGroup *group,
 #define SET_SENSITIVE(action,condition) \
         gimp_action_group_set_action_sensitive (group, action, (condition) != 0)
 
+  SET_SENSITIVE ("filters-cartoon",                 writable);
   SET_SENSITIVE ("filters-color-reduction",         writable);
   SET_SENSITIVE ("filters-color-temperature",       writable && !gray);
   SET_SENSITIVE ("filters-color-to-alpha",          writable && !gray && alpha);
   SET_SENSITIVE ("filters-difference-of-gaussians", writable);
   SET_SENSITIVE ("filters-gaussian-blur",           writable);
   SET_SENSITIVE ("filters-laplace",                 writable);
+  SET_SENSITIVE ("filters-noise-hsv",               writable && !gray);
+  SET_SENSITIVE ("filters-noise-hurl",              writable);
+  SET_SENSITIVE ("filters-noise-pick",              writable);
+  SET_SENSITIVE ("filters-noise-rgb",               writable);
+  SET_SENSITIVE ("filters-noise-slur",              writable);
   SET_SENSITIVE ("filters-lens-distortion",         writable);
+  SET_SENSITIVE ("filters-photocopy",               writable);
   SET_SENSITIVE ("filters-pixelize",                writable);
   SET_SENSITIVE ("filters-polar-coordinates",       writable);
   SET_SENSITIVE ("filters-ripple",                  writable);
   SET_SENSITIVE ("filters-sobel",                   writable);
+  SET_SENSITIVE ("filters-softglow",                writable);
   SET_SENSITIVE ("filters-semi-flatten",            writable && alpha);
   SET_SENSITIVE ("filters-threshold-alpha",         writable && alpha);
   SET_SENSITIVE ("filters-unsharp-mask",            writable);
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index 0e78f90..3910039 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -621,7 +621,13 @@
         <separator />
         <placeholder name="Glass" />
       </menu>
-      <menu action="plug-in-noise-menu" name="Noise" />
+      <menu action="plug-in-noise-menu" name="Noise">
+        <menuitem action="filters-noise-hsv" />
+        <menuitem action="filters-noise-hurl" />
+        <menuitem action="filters-noise-pick" />
+        <menuitem action="filters-noise-rgb" />
+        <menuitem action="filters-noise-slur" />
+      </menu>
       <menu action="plug-in-edge-detect-menu" name="Edge-Detect">
         <menuitem action="filters-difference-of-gaussians" />
         <menuitem action="filters-laplace" />
@@ -629,7 +635,11 @@
       </menu>
       <menu action="plug-in-generic-menu" name="Generic" />
       <menu action="plug-in-combine-menu" name="Combine" />
-      <menu action="plug-in-artistic-menu" name="Artistic" />
+      <menu action="plug-in-artistic-menu" name="Artistic">
+	<menuitem action="filters-cartoon" />
+	<menuitem action="filters-photocopy" />
+	<menuitem action="filters-softglow" />
+      </menu>
       <menu action="plug-in-decor-menu" name="Decor" />
       <menu action="plug-in-map-menu" name="Map" />
       <menu action="plug-in-render-menu" name="Render">



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]