[gimp/soc-2011-seamless-clone2] app: add new enums GimpMattingDrawMode and GimpMattingEngine



commit db96a336ee97455d65395c6e1f4631aece0161d0
Author: Miroslav Talasek <miroslav talasek seznam cz>
Date:   Tue May 7 23:09:55 2013 +0200

    app: add new enums GimpMattingDrawMode and GimpMattingEngine

 app/tools/tools-enums.c |   60 +++++++++++++++++++++++++++++++++++++++++++++++
 app/tools/tools-enums.h |   23 ++++++++++++++++++
 2 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/tools-enums.c b/app/tools/tools-enums.c
index 787358d..86a3c3e 100644
--- a/app/tools/tools-enums.c
+++ b/app/tools/tools-enums.c
@@ -290,6 +290,66 @@ gimp_tool_action_get_type (void)
   return type;
 }
 
+GType
+gimp_matting_draw_mode_get_type (void)
+{
+  static const GEnumValue values[] =
+  {
+    { GIMP_MATTING_DRAW_MODE_FOREGROUND, "GIMP_MATTING_DRAW_MODE_FOREGROUND", "foreground" },
+    { GIMP_MATTING_DRAW_MODE_BACKGROUND, "GIMP_MATTING_DRAW_MODE_BACKGROUND", "background" },
+    { GIMP_MATTING_DRAW_MODE_UNKNOWN, "GIMP_MATTING_DRAW_MODE_UNKNOWN", "unknown" },
+    { 0, NULL, NULL }
+  };
+
+  static const GimpEnumDesc descs[] =
+  {
+    { GIMP_MATTING_DRAW_MODE_FOREGROUND, NC_("matting-draw-mode", "Draw foreground"), NULL },
+    { GIMP_MATTING_DRAW_MODE_BACKGROUND, NC_("matting-draw-mode", "Draw background"), NULL },
+    { GIMP_MATTING_DRAW_MODE_UNKNOWN, NC_("matting-draw-mode", "Draw unknown"), NULL },
+    { 0, NULL, NULL }
+  };
+
+  static GType type = 0;
+
+  if (G_UNLIKELY (! type))
+    {
+      type = g_enum_register_static ("GimpMattingDrawMode", values);
+      gimp_type_set_translation_context (type, "matting-draw-mode");
+      gimp_enum_set_value_descriptions (type, descs);
+    }
+
+  return type;
+}
+
+GType
+gimp_matting_engine_get_type (void)
+{
+  static const GEnumValue values[] =
+  {
+    { GIMP_MATTING_ENGINE_MATTING_GLOBAL, "GIMP_MATTING_ENGINE_MATTING_GLOBAL", "global" },
+    { GIMP_MATTING_ENGINE_MATTING_LEVIN, "GIMP_MATTING_ENGINE_MATTING_LEVIN", "levin" },
+    { 0, NULL, NULL }
+  };
+
+  static const GimpEnumDesc descs[] =
+  {
+    { GIMP_MATTING_ENGINE_MATTING_GLOBAL, NC_("matting-engine", "Matting Global"), NULL },
+    { GIMP_MATTING_ENGINE_MATTING_LEVIN, NC_("matting-engine", "Matting Levin"), NULL },
+    { 0, NULL, NULL }
+  };
+
+  static GType type = 0;
+
+  if (G_UNLIKELY (! type))
+    {
+      type = g_enum_register_static ("GimpMattingEngine", values);
+      gimp_type_set_translation_context (type, "matting-engine");
+      gimp_enum_set_value_descriptions (type, descs);
+    }
+
+  return type;
+}
+
 
 /* Generated data ends here */
 
diff --git a/app/tools/tools-enums.h b/app/tools/tools-enums.h
index a8fd663..c56f7d1 100644
--- a/app/tools/tools-enums.h
+++ b/app/tools/tools-enums.h
@@ -131,6 +131,29 @@ typedef enum
 } GimpToolAction;
 
 
+#define GIMP_TYPE_MATTING_DRAW_MODE (gimp_matting_draw_mode_get_type ())
+
+GType gimp_matting_draw_mode_get_type (void) G_GNUC_CONST;
+
+typedef enum
+{
+ GIMP_MATTING_DRAW_MODE_FOREGROUND,   /*< desc="Draw foreground" >*/
+ GIMP_MATTING_DRAW_MODE_BACKGROUND,   /*< desc="Draw background" >*/
+ GIMP_MATTING_DRAW_MODE_UNKNOWN,      /*< desc="Draw unknown" >*/
+} GimpMattingDrawMode;
+
+
+#define GIMP_TYPE_MATTING_ENGINE (gimp_matting_engine_get_type ())
+
+GType gimp_matting_engine_get_type (void) G_GNUC_CONST;
+
+typedef enum
+{
+ GIMP_MATTING_ENGINE_MATTING_GLOBAL,  /*< desc="Matting Global" >*/
+ GIMP_MATTING_ENGINE_MATTING_LEVIN,   /*< desc="Matting Levin" >*/
+} GimpMattingEngine;
+
+
 /*
  * non-registered enums; register them if needed
  */


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