1. 18 Aug, 1999 1 commit
    • Tor Lillqvist's avatar
      Actually use the enum types GimpImageType, GimpImageBaseType, · f6858e21
      Tor Lillqvist authored
      	* app/*.[ch]: Actually use the enum types GimpImageType,
      	GimpImageBaseType, LayerModeEffects, PaintApplicationMode,
      	BrushApplicationMode, GimpFillType and ConvertPaletteType, instead
      	of just int or gint. Hopefully I catched most of the places
      	where these should be used.
      
      	Add an enum ConvolutionType, suffix the too general constants
      	NORMAL, ABSOLUTE and NEGATIVE with _CONVOL. Use NORMAL_MODE
      	instead of NORMAL in some places (this was what was intended). Fix
      	some minor gccisms.
      
      	* app/apptypes.h: New file. This file contains the above
      	enumeration types, and some opaque struct typedefs. It was
      	necessary to collect these in one header that doesn't include
      	other headers, because when we started using the above mentioned
      	types in the headers, all hell broke loose because of the
      	spaghetti-like cross-inclusion mess between headers.
      
      	(An example: Header A includes header B, which includes header C
      	which includes A. B uses a type defined in A. This is not defined,
      	because A hasn't defined it yet at the point where it includes B,
      	and A included from B of course is skipped as we already are
      	reading A.)
      f6858e21
  2. 13 Aug, 1999 1 commit
    • Adrian Likins's avatar
      app/airbrush.c app/paintbrush.c app/pencil.c app/pixmapbrush.c · 29709cb9
      Adrian Likins authored
      Fri Aug 13 16:39:25 1999 Adrian Likins <alikins@redhat.com>
      
              * app/airbrush.c
              * app/paintbrush.c
              * app/pencil.c
              * app/pixmapbrush.c
              * app/pixmapbrush.h
      
              Added support for pixmap brushes to airbrush, pencil,
              and paintbrush. Merging this into paintbrush makes
              the pixmaptool itself kind of useless at the moment,
              but that will change ;->
      
              Still a few rough edges here, but its mostly there.
              I still need to make the "incremental" button for
              the tools to accurately reflect that pixmap always
              uses this mode.
      
              * app/eraser.c
              * app/eraser.h
              * app/tools_cmds.c
              * tools/pdbgen/pdb/tools.pdb
      
              Applied patch from  Shuji Narazaki <narazaki@gimp.org>
              to implement the anti-eraser. Neat.
      29709cb9
  3. 22 Jul, 1999 1 commit
    • BST 1999 Andy Thomas's avatar
      ./app/clone.c ./app/airbrush.c ./app/bezier_select.c ./app/paintbrush.c · 954151d6
      BST 1999 Andy Thomas authored
      
      Fri Jul 23 00:01:05 BST 1999 Andy Thomas <alt@gimp.org>
      
      	* ./app/clone.c
      	* ./app/airbrush.c
      	* ./app/bezier_select.c
      	* ./app/paintbrush.c
      	* ./app/eraser.c
      	* ./app/convolve.c
      	* ./app/smudge.c
      	* ./app/dodgeburn.c
      	* ./app/pencil.c
      	* ./app/paint_core.c
      
      	Better stroking of paths.
      	First point in stroke path is now correctly painted (try stroking
      	with a brush spacing of > 100.0 in gimp 1.0.x).
      	Fixed problem in paint_core_interpolate() where points were
      	missed in some cases.
      	(BTW for those who do not know the brush spacing means as follows:-
      	A spacing of 100.0 means brush strokes are placed next to each other
      	exactly with no gaps or overlaps. A spacing of 200.0 means only
      	alternate spaces are filled with the brush paint. A setting of 50.0
      	means the brush paints positions overlap by 50% of the brush width.
      	So 100.0 corresponds to exactly the brush width! It took me
      	ages to figure this simple thing out!)
      954151d6
  4. 09 Jul, 1999 1 commit
  5. 06 Jul, 1999 1 commit
    • Michael Natterer's avatar
      app/airbrush.c app/blend.c app/bucket_fill.c app/clone.c app/convolve.c · 1058f41d
      Michael Natterer authored
      1999-07-06  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
              * app/airbrush.c
              * app/blend.c
              * app/bucket_fill.c
              * app/clone.c
              * app/convolve.c
              * app/dodgeburn.c
              * app/eraser.c
              * app/ink.c
              * app/paintbrush.c
              * app/pencil.c
              * app/smudge.c: get opacity/paint mode from the current context
              (currently always the user context).
      
              * app/gimage_mask.c: the "stroke" command uses the paintbrush's
              settings if the current context is the user context and we are in
              per-tool paint options mode.
      
              * app/context_manager.[ch]
              * app/paint_options.h
              * app/preferences_dialog.c
              * app/tool_options.c
              * app/tools.c: moved the global/per-tool paint options switching
              to the context manager. The tool options themselves only contain
              the widgets for them now. This should fix the segfaults happening
              in per-tool mode.
      	Removed the disclaimer from the prefs. dlg. as it seems to work
      	now. The impl. in the context manager however is still a hack.
      
              * app/brush_select.c
              * app/brushes_cmds.c
              * tools/pdbgen/pdb/brushes.pdb: same as above.
      
              * app/lc_dialog.c: minimal code reduction. No functionality changed.
      1058f41d
  6. 14 May, 1999 1 commit
  7. 22 Apr, 1999 1 commit
    • Michael Natterer's avatar
      First version of per-tool paint options. No PDB interface yet. The tool · ca2cbd32
      Michael Natterer authored
      1999-04-22  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	First version of per-tool paint options. No PDB interface yet.
      	The tool options dialog got rather big when in per-tool mode, so
      	it will probably have to become a notebook.
      
      	It's not yet 100% consistent. If switched off, everything should
      	behave exactly like before.
      
      	* app/Makefile.am
      	* app/paint_options.h: new file
      
      	* app/tool_options.c: PaintOptions gui. Maintain a list of all
      	paint tools' ToolOptions to enable switching between global and
      	per-tool paint options.
      
      	* app/brush_select.[ch]: changed packing boxes, tables, ...
      	The paint options in the brush selection can be hidden now.
      	Moved create_paint_mode_menu() to paint_options.h and
      	tool_options.c and renamed it to paint_mode_menu_new().
      
      	* app/gimage_mask.c
      	* app/gimpbrush.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/paint_core.c: moved gimp_brush_[set|get]_spacing() from
      	gimpbrushlist.[ch] to gimpbrush.[ch].
      	Moved gimp_brush_[get|set]_[opacity|paint_mode]() to
      	paint_options.h and tool_options.c and renamed them to
      	paint_options_*_*().  They are "global paint options" now.
      
      	* app/airbrush.c
      	* app/blend.c
      	* app/bucket_fill.c
      	* app/clone.c
      	* app/convolve.c
      	* app/eraser.c
      	* app/ink.c
      	* app/paintbrush.c
      	* app/pencil.c: all paint tools' options are derived from
      	"PaintOptions" now. Opacity and paint mode are obtained through
      	macros which take into account the current paint options mode.
      
      	* app/buildmenu.h: #include <gtk/gtk.h>
      
      	* app/color_picker.c
      	* app/text_tool.c: changed spacings.
      
      	* app/gimprc.[ch]: new gimprc option "global-paint-options"
      
      	* app/preferences_dialog.c: Added a "Tool Options" page. Code
      	cleanup. Some work on the convenience constructors test site.
      
      	* app/tools.c: fixed "unused variable" warning.
      ca2cbd32
  8. 18 Apr, 1999 1 commit
    • Manish Singh's avatar
      new file, containes the PDB stuff for most of the tools · ccac10a4
      Manish Singh authored
      * app/tools_cmds.c: new file, containes the PDB stuff for most
      of the tools
      
      * app/gimprc_cmds.c: new file, PDB interface stuff for gimprc
      access
      
      * app/Makefile.am: added tools_cmds.c and gimprc_cmds.c
      
      * app/airbrush.[ch]
      * app/blend.[ch]
      * app/bucket_fill.[ch]
      * app/by_color_select.[ch]
      * app/clone.[ch]
      * app/color_picker.[ch]
      * app/convolve.[ch]
      * app/crop.[ch]
      * app/ellipse_select.[ch]
      * app/eraser.[ch]
      * app/flip_tool.[ch]
      * app/free_select.[ch]
      * app/fuzzy_select.[ch]
      * app/gimprc.[ch]
      * app/paintbrush.[ch]
      * app/pencil.[ch]
      * app/perspective_tool.[ch]
      * app/rect_select.c app/rect_select.h
      * app/rotate_tool.[ch]
      * app/scale_tool.[ch]
      * app/shear_tool.[ch]: bye bye PDB stuff (exported necessary enums
      functions, vars, etc.)
      
      * app/internal_procs.c: use register_foo functions
      
      * app/blend.[ch]: GradientType enum case changed
      
      * app/bucket_fill.[ch]: s/FillMode/BucketFillMode/, made the enum
      more consistent
      
      * app/clone.[ch]: capitalized the CloneType enum
      
      * app/color_picker.[ch]: changed get_color to pick_color so we don't
      conflict with colormaps.c get_color
      
      * app/convolve.[ch]: capitalized the ConvolveType enum
      
      * app/paint_core.h: made a GradientPaintMode enum
      
      * app/transform_core.h: BoundingBox enum
      
      * app/scale_tool.c: use the generic bounding box enum for X1, Y1, etc.
      
      * app/shear_tool.[ch]: turned HORZ and VERT into a ShearType enum
      
      -Yosh
      ccac10a4
  9. 12 Apr, 1999 1 commit
    • Michael Natterer's avatar
      app/airbrush.c app/bezier_select.c app/blend.c app/brightness_contrast.c · 8dbd5f9b
      Michael Natterer authored
      1999-04-12  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
              * app/airbrush.c
              * app/bezier_select.c
              * app/blend.c
              * app/brightness_contrast.c
              * app/bucket_fill.c
              * app/by_color_select.c
              * app/clone.c
              * app/color_balance.c
              * app/color_picker.c
              * app/convolve.c
              * app/crop.c
              * app/curves.c
              * app/ellipse_select.c
              * app/eraser.c
              * app/flip_tool.c
              * app/free_select.c
              * app/fuzzy_select.c
              * app/histogram_tool.c
              * app/hue_saturation.c
              * app/ink.c
              * app/iscissors.c
              * app/levels.c
              * app/magnify.c
              * app/move.c
              * app/paintbrush.c
              * app/pencil.c
              * app/posterize.c
              * app/rect_select.[ch]
              * app/text_tool.c
              * app/threshold.c
              * app/transform_tool.c
      
              * app/tools.[ch]
              * app/toolsF.h: again: all tools :(
      
              * app/Makefile.am
              * app/tool_options.[ch]
              * app/selection_options.h
              * app/tool_options_ui.h: new files.
      
              Ok, this time it's general enough for future extensions:
      
              - The tool options structures are organized like the gtk object
                system to allow derived tool options.
              - Renamed all create and reset functions to *_options_new() and
                *_options_reset() to reflect this.
              - Changed tools_register() again. Now it takes just a pointer to a
                ToolOptions structure.
              - Moved almost the entire tool options gui code to tool_options.c.
              - Visually separated the common selection options from the
                tool-specific ones. I'd like to do the same with opacity/paint
                mode in all paint tool options but I think this needs some more
                discussion.
      
              * app/histogram_tool.c: changed packing boxes, label alignments.
      
              * app/paintbrush.c: some more sensitive settings. The gradient
              feature can now be toggled with a button. Hopefully didn't break
              anything.
      8dbd5f9b
  10. 08 Apr, 1999 1 commit
    • Michael Natterer's avatar
      app/airbrush.c app/bezier_select.c app/blend.c app/brightness_contrast.c · f1b0a883
      Michael Natterer authored
      1999-04-08  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/airbrush.c
      	* app/bezier_select.c
      	* app/blend.c
      	* app/brightness_contrast.c
      	* app/bucket_fill.c
      	* app/by_color_select.c
      	* app/clone.c
      	* app/color_balance.c
      	* app/color_picker.c
      	* app/convolve.c
      	* app/crop.[ch]
      	* app/curves.c
      	* app/ellipse_select.c
      	* app/eraser.c
      	* app/flip_tool.c
      	* app/free_select.c
      	* app/fuzzy_select.c
      	* app/histogram_tool.c
      	* app/hue_saturation.c
      	* app/ink.c
      	* app/iscissors.c
      	* app/levels.c
      	* app/magnify.c
      	* app/move.c
      	* app/paintbrush.c
      	* app/pencil.c
      	* app/posterize.c
      	* app/rect_select.[ch]
      	* app/text_tool.[ch]
      	* app/threshold.c
      	* app/transform_tool.c
      
      	* app/tools.[ch]
      	* app/toolsF.h: in other words: all tools
      
      	Implemented the "reset tool options" feature.
      	- All tools register with a title string and a reset function now.
      	- The tool options' variables have two related <var>_d (default)
      	  and <var>_w (widget) variables to restore the default values.
      
      	"Standardized" the tool options UI:
      	- Put the stuff info a frame to give a hint that the dialog's
      	  contents will change.
      	- table layout, sensitive setting, spacings, borders, ...
      
      	As I had them all in my emacs simultaneously, I couldn't resist to
      	standardize the tools' *.c files declaration parts ;) Ansi stuff.
      f1b0a883
  11. 16 Dec, 1998 1 commit
  12. 13 Nov, 1998 1 commit
    • Marc Lehmann's avatar
      API-mega-break-it-all patch part one: removed the unnecessary PDB_IMAGE · 42e2c63c
      Marc Lehmann authored
              * airbrush.c, blend.c, brightness_contrast.c, bucket_fill.c
              by_color_select.c, channel_ops.c, clone.c, color_balance.c
              color_picker.c, convolve.c, curves.c, desaturate.c, edit_cmds.c
              equalize.c, eraser.c, flip_tool.c, fuzzy_select.c,
              gimage_mask_cmds.c histogram_tool.c, hue_saturation.c, invert.c,
              levels.c, pencil.c paintbrush.c, perspective_tool.c, posterize.c,
              rotate_tool.c scale_tool.c, shear_tool.c, text_tool.c, threshold.c:
      
              API-mega-break-it-all patch part one: removed the unnecessary
              PDB_IMAGE argument from many functions.
      
      Affected functions:
      gimp_airbrush gimp_blend gimp_brightness_contrast gimp_bucket_fill
      gimp_by_color_select gimp_channel_ops_offset gimp_clone gimp_color_balance
      gimp_color_picker gimp_convolve gimp_curves_explicit gimp_curves_spline
      gimp_desaturate gimp_edit_clear gimp_edit_copy gimp_edit_cut gimp_edit_fill
      gimp_edit_paste gimp_edit_stroke gimp_equalize gimp_eraser
      gimp_eraser_extended gimp_flip gimp_fuzzy_select gimp_histogram
      gimp_hue_saturation gimp_invert gimp_levels gimp_paintbrush
      gimp_paintbrush_extended gimp_pencil gimp_perspective gimp_posterize
      gimp_rotate gimp_scale gimp_selection_float gimp_selection_layer_alpha
      gimp_selection_load gimp_shear gimp_threshold
      42e2c63c
  13. 09 Jul, 1998 1 commit
    • jaycox's avatar
      Modified Files: ChangeLog app/Makefile.am app/airbrush.c app/app_procs.c · b7d8e6ea
      jaycox authored
      
       Modified Files:
       	ChangeLog app/Makefile.am app/airbrush.c app/app_procs.c
       	app/brush_select.c app/brush_select.h app/clone.c
       	app/colormaps.c app/commands.c app/convolve.c app/devices.c
       	app/eraser.c app/gimage_mask.c app/gimpobject.h app/ink.c
       	app/internal_procs.c app/paint_core.c app/paint_core.h
       	app/paintbrush.c app/pencil.c app/preferences_dialog.c
            Minor modifications to support new brush functionality
      
       Added Files:
       	app/brush_edit.c app/brush_edit.h app/gimpbrush.c
       	app/gimpbrush.h app/gimpbrushgenerated.c
       	app/gimpbrushgenerated.h app/gimpbrushlist.c
       	app/gimpbrushlist.h
            new files to support vector generated brushes and
            reorganization/objectification of the brush class
      
       Removed Files:
       	app/brushes.c app/brushes.h
          Obsoleted by gimpbrush.? and gimpbrushlist.?
      
       ----------------------------------------------------------------------
      b7d8e6ea
  14. 13 Apr, 1998 1 commit
  15. 18 Mar, 1998 1 commit
    • Adrian Likins's avatar
      appied most of gimp-hpux-980316-0.patch from ???? Mostly added static's · 9132cbb6
      Adrian Likins authored
               * blend.c brightness_contrast.c brush_select.c brushes.c
                bucket_fill.c by_color_select.c channels_dialog.c
                color_balance.c convolve.c crop.c curves.c eraser.c fileops.c
                frac.c gradient.c histogram_tool.c hue_saturation.c
                image_render.c indexed_palette.c layers_dialog.c levels.c
                move.c paintbrush.c pattern_select.c pencil.c
                perspective_tool.c posterize.c rect_select.c scale_tool.c
                threshold.c tips_dialog.c:
                       appied most of gimp-hpux-980316-0.patch
              from ???? Mostly added static's here and there
               and casting stuff.
      
              * app/indexed_palette.c: made dialog non-resizeable
      
      -adrian
      9132cbb6
  16. 25 Jan, 1998 1 commit
    • Manish Singh's avatar
      Misc changes for .18 · 2ce0e150
      Manish Singh authored
              * app/indexed_palette.c: fix for wrong color selected in indexed
              palette dialog
      
              * app/xcf.c: don't crash on bad input (0 byte files)
      
              * app/plug_in.h
              * app/plug_in.c: fixes Gimp's most obscure bug. Failed plugin
              queries are handle correctly now
      
              * app/commands.c: added marching ants speed to preferences
      
              * plug-ins/tiff/tiff.c: correction for inversion for MINISWHITE
              images without alpha
      
              * plug-ins/pcx/pcx.c: updated to new version
      
              * app/paint_funcs.h: changed OPAQUE and TRANSPARENT to
              OPAQUE_OPACITY and TRANSPARENT_OPACITY to avoid possible
              conflicts. All affects .c files changed.
      
      -Yosh
      2ce0e150
  17. 22 Jan, 1998 1 commit
  18. 24 Nov, 1997 1 commit