1. 05 Jun, 2003 2 commits
    • Sven Neumann's avatar
      use OPAQUE_OPACITY instead of 255. · b1c437b4
      Sven Neumann authored
      2003-06-05  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.c (gimp_drawable_get_color_at):
      	* app/core/gimpimage-projection.c (gimp_image_projection_get_color_at):
      	use OPAQUE_OPACITY instead of 255.
      
      	* app/core/gimpimage-pick-color.[ch]: factored out code that
      	averages over colors so it can be used from GimpImageTool.
      
      	* app/tools/gimpimagemaptool.[ch]: derived from GimpColorTool and
      	added a GimpColorTool::pick implementation.
      
      	* app/tools/gimpcoloroptions.c
      	* app/tools/gimpcolorpickeroptions.c: add the toggle for
      	"sample_merged" in gimp_color_picker_options_gui().
      
      	* app/tools/gimpcolortool.c (gimp_color_tool_cursor_update): check
      	if the cursor is over the active drawable or if "sample_merged" is
      	active.
      
      	* app/tools/gimplevelstool.c: simplified since all color-picking is
      	now handled by the parent classes. Fixes bug #112668.
      b1c437b4
    • Sven Neumann's avatar
      changed the default radius. · 21b4aba9
      Sven Neumann authored
      2003-06-05  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpcoloroptions.c: changed the default radius.
      
      	* app/tools/gimpcolortool.[ch]: pass GimpColorOptions to
      	gimp_color_tool_enable(). Added gimp_color_tool_disable() and
      	gimp_color_tool_is_enabled().
      
      	* app/tools/gimpcolorpickertool.c: changed accordingly.
      
      	* app/tools/gimppainttool.[ch]: derived GimpPaintTool from
      	GimpColorTool and removed most color picking code.
      
      	* app/tools/gimpdodgeburntool.c (gimp_dodgeburn_tool_modifier_key)
      	* app/tools/gimperasertool.c (gimp_eraser_tool_modifier_key):
      	chain up to the parent class.
      
      	* app/tools/gimppaintbrushtool.c: purely cosmetic change.
      21b4aba9
  2. 04 Jun, 2003 2 commits
    • Sven Neumann's avatar
      added VOID: ENUM, BOXED, INT. · b108d702
      Sven Neumann authored
      2003-06-04  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpmarshal.list: added VOID: ENUM, BOXED, INT.
      
      	* app/tools/gimpcolortool.[ch]: added a default implementation for
      	GimpColorTool::pick. Emit a "picked" signal when a color was
      	successfully picked.
      
      	* app/tools/gimpcolorpickertool.c: simplified a lot since
      	GimpColorTool does most of the work for us now.
      b108d702
    • Sven Neumann's avatar
      app/tools/Makefile.am app/tools/gimpcoloroptions.[ch] new files that · 737bf44e
      Sven Neumann authored
      2003-06-04  Sven Neumann  <sven@gimp.org>
      
              * app/tools/Makefile.am
              * app/tools/gimpcoloroptions.[ch]
              * app/tools/gimpcolortool.[ch]: new files that implement base
              classes moved out of GimpColorPickerOptions and GimpColorPickerTool.
      
              * app/tools/gimpcolorpickeroptions.[ch]
              * app/tools/gimpcolorpickertool.[ch]: derive from the new obejcts.
      
              * app/tools/gimpimagemaptool.h
              * app/tools/gimppainttool.c
              * app/tools/tools-types.h: moved typedefs into the types file.
      737bf44e