gimp r24994 - in trunk: . app/tools app/widgets cursors cursors/xbm



Author: mitch
Date: Thu Feb 28 12:16:42 2008
New Revision: 24994
URL: http://svn.gnome.org/viewvc/gimp?rev=24994&view=rev

Log:
2008-02-28  Michael Natterer  <mitch gimp org>

	* cursors/Makefile.am
	* cursors/gimp-tool-cursors.xcf
	* cursors/tool-polygon-select.png
	* cursors/xbm/tool-polygon-select.xbm
	* cursors/xbm/tool-polygon-select-mask.xbm
	* app/widgets/widgets-enums.h
	* app/widgets/gimpcursor.c: new cursor for polygon select.

	* app/tools/gimppolygonselecttool.c: use it.



Added:
   trunk/cursors/tool-polygon-select.png   (contents, props changed)
   trunk/cursors/xbm/tool-polygon-select-mask.xbm   (contents, props changed)
   trunk/cursors/xbm/tool-polygon-select.xbm   (contents, props changed)
Modified:
   trunk/ChangeLog
   trunk/app/tools/gimppolygonselecttool.c
   trunk/app/widgets/gimpcursor.c
   trunk/app/widgets/widgets-enums.h
   trunk/cursors/Makefile.am
   trunk/cursors/gimp-tool-cursors.xcf

Modified: trunk/app/tools/gimppolygonselecttool.c
==============================================================================
--- trunk/app/tools/gimppolygonselecttool.c	(original)
+++ trunk/app/tools/gimppolygonselecttool.c	Thu Feb 28 12:16:42 2008
@@ -192,7 +192,7 @@
   gimp_tool_control_set_scroll_lock (tool->control, FALSE);
   gimp_tool_control_set_wants_click (tool->control, TRUE);
   gimp_tool_control_set_tool_cursor (tool->control,
-                                     GIMP_TOOL_CURSOR_FREE_SELECT);
+                                     GIMP_TOOL_CURSOR_POLYGON_SELECT);
 
   poly_sel_tool->points   = NULL;
   poly_sel_tool->n_points = 0;

Modified: trunk/app/widgets/gimpcursor.c
==============================================================================
--- trunk/app/widgets/gimpcursor.c	(original)
+++ trunk/app/widgets/gimpcursor.c	Thu Feb 28 12:16:42 2008
@@ -66,6 +66,8 @@
 #include "cursors/xbm/tool-ellipse-select-mask.xbm"
 #include "cursors/xbm/tool-free-select.xbm"
 #include "cursors/xbm/tool-free-select-mask.xbm"
+#include "cursors/xbm/tool-polygon-select.xbm"
+#include "cursors/xbm/tool-polygon-select-mask.xbm"
 #include "cursors/xbm/tool-fuzzy-select.xbm"
 #include "cursors/xbm/tool-fuzzy-select-mask.xbm"
 #include "cursors/xbm/tool-paths.xbm"
@@ -305,6 +307,12 @@
     tool_free_select, NULL, NULL, NULL
   },
   {
+    tool_polygon_select_bits, tool_polygon_select_mask_bits,
+    tool_polygon_select_width, tool_polygon_select_height,
+    0, 0,
+    tool_polygon_select, NULL, NULL, NULL
+  },
+  {
     tool_fuzzy_select_bits, tool_fuzzy_select_mask_bits,
     tool_fuzzy_select_width, tool_fuzzy_select_height,
     0, 0,

Modified: trunk/app/widgets/widgets-enums.h
==============================================================================
--- trunk/app/widgets/widgets-enums.h	(original)
+++ trunk/app/widgets/widgets-enums.h	Thu Feb 28 12:16:42 2008
@@ -229,6 +229,7 @@
   GIMP_TOOL_CURSOR_RECT_SELECT,
   GIMP_TOOL_CURSOR_ELLIPSE_SELECT,
   GIMP_TOOL_CURSOR_FREE_SELECT,
+  GIMP_TOOL_CURSOR_POLYGON_SELECT,
   GIMP_TOOL_CURSOR_FUZZY_SELECT,
   GIMP_TOOL_CURSOR_PATHS,
   GIMP_TOOL_CURSOR_PATHS_ANCHOR,

Modified: trunk/cursors/Makefile.am
==============================================================================
--- trunk/cursors/Makefile.am	(original)
+++ trunk/cursors/Makefile.am	Thu Feb 28 12:16:42 2008
@@ -59,6 +59,7 @@
 	tool-paths-segment.png		\
 	tool-pencil.png			\
 	tool-perspective.png		\
+	tool-polygon-select.png		\
 	tool-rect-select.png		\
 	tool-resize.png			\
 	tool-rotate.png			\
@@ -136,6 +137,8 @@
 	xbm/tool-ellipse-select-mask.xbm	\
 	xbm/tool-free-select.xbm		\
 	xbm/tool-free-select-mask.xbm		\
+	xbm/tool-polygon-select.xbm		\
+	xbm/tool-polygon-select-mask.xbm	\
 	xbm/tool-fuzzy-select.xbm		\
 	xbm/tool-fuzzy-select-mask.xbm		\
 	xbm/tool-paths-anchor.xbm		\

Modified: trunk/cursors/gimp-tool-cursors.xcf
==============================================================================
Binary files. No diff available.

Added: trunk/cursors/tool-polygon-select.png
==============================================================================
Binary file. No diff available.

Added: trunk/cursors/xbm/tool-polygon-select-mask.xbm
==============================================================================
--- (empty file)
+++ trunk/cursors/xbm/tool-polygon-select-mask.xbm	Thu Feb 28 12:16:42 2008
@@ -0,0 +1,14 @@
+#define tool_polygon_select_mask_width 32
+#define tool_polygon_select_mask_height 32
+static unsigned char tool_polygon_select_mask_bits[] = {
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x80, 0x1f,
+   0x00, 0x00, 0x80, 0x7f, 0x00, 0x00, 0x80, 0xff, 0x00, 0x00, 0x80, 0xe3,
+   0x00, 0x00, 0xc0, 0xe1, 0x00, 0x00, 0xff, 0x71, 0x00, 0x80, 0xff, 0x71,
+   0x00, 0x00, 0xff, 0x70, 0x00, 0x00, 0x07, 0x70, 0x00, 0x00, 0x0e, 0x70,
+   0x00, 0x00, 0x3e, 0x38, 0x00, 0x00, 0xfc, 0x3b, 0x00, 0x00, 0xf8, 0x3f,
+   0x00, 0x00, 0xc0, 0x3f, 0x00, 0x00, 0x00, 0x1c };

Added: trunk/cursors/xbm/tool-polygon-select.xbm
==============================================================================
--- (empty file)
+++ trunk/cursors/xbm/tool-polygon-select.xbm	Thu Feb 28 12:16:42 2008
@@ -0,0 +1,14 @@
+#define tool_polygon_select_width 32
+#define tool_polygon_select_height 32
+static unsigned char tool_polygon_select_bits[] = {
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
+   0x00, 0x00, 0x00, 0x1d, 0x00, 0x00, 0x00, 0x61, 0x00, 0x00, 0x00, 0x41,
+   0x00, 0x00, 0x80, 0x40, 0x00, 0x00, 0x80, 0x20, 0x00, 0x00, 0xff, 0x20,
+   0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x04, 0x20,
+   0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x38, 0x10, 0x00, 0x00, 0xc0, 0x13,
+   0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00 };



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