1. 04 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h added an "application object" · 01645960
      Michael Natterer authored
      2001-07-04  Michael Natterer  <mitch@gimp.org>
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimp.[ch]: added an "application object" called Gimp.
      	Currently, it contains the image list, the clipboard, the data
      	factories, the procedural hashtable and the tool info list.  It's
      	the toplevel object of the core object system. Finally, creating a
      	Gimp object will return a standalone gimp core engine instance
      	with no other global states/variables involved.
      	* app/app_procs.[ch]: allocate a "Gimp" instance called "the_gimp" :)
      	Removed stuff which is now done by the "Gimp" object. Merged
      	gimp_init() into app_init() because gimp_init() is taken now.
      	* app/context_manager.[ch]: removed stuff done by "Gimp".
      	* app/batch.[ch]
      	* app/gimage.[ch]
      	* app/xcf/xcf-load.[ch]
      	* app/xcf/xcf.[ch]
      	* app/core/gimpedit.[ch]
      	* app/tools/tool_manager.[ch]: pass around an additional "Gimp"
      	* app/pdb/procedural_db.[ch]: pass a "Gimp" pointer as first
      	parameter to all internal procedures and to all procedural_db_*
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpimage.[ch]: added a "Gimp" pointer to the structs.
      	* app/devices.c
      	* app/errors.c
      	* app/file-open.c
      	* app/file-save.c
      	* app/gimphelp.c
      	* app/gimpunit.c
      	* app/image_new.c
      	* app/main.c
      	* app/nav_window.c
      	* app/plug_in.c
      	* app/base/base.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimptoolinfo.[ch]
      	* app/gui/brush-select.c
      	* app/gui/convert-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/edit-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palette-select.c
      	* app/gui/paths-dialog.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/test-commands.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimppainttool.h
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.h
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpcursor.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpimagedock.c: changed accordingly. Cleaned up
      	lots of includes. Many files still access the global "the_gimp"
      	variable exported by app_procs.h.
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly. Don't
      	use "the_gimp" here because all procedures get passed a "Gimp"
      	pointer now.
      	* app/pdb/*: regenerated.
  2. 31 Mar, 2001 1 commit
    • Michael Natterer's avatar
      made undo_pop_paint() work again. · 2824801f
      Michael Natterer authored
      2001-03-31  Michael Natterer  <mitch@gimp.org>
      	* app/undo.c: made undo_pop_paint() work again.
      	* app/tools/gimppainttool.[ch]: store the tool ID and the tool
      	type in the PaintUndo struct.
      	* app/tools/gimppenciltool.c: removed unused variable.
      	* app/tools/gimptool.c: removed and reordered STUB()s and cruft.
  3. 30 Mar, 2001 1 commit
  4. 27 Feb, 2001 2 commits
    • Michael Natterer's avatar
      build the measure tool again. · 84b634f2
      Michael Natterer authored
      2001-02-27  Michael Natterer  <mitch@gimp.org>
      	* app/tools/Makefile.am: build the measure tool again.
      	* app/tools/gimpcolorpickertool.c: correct prototypes for some
      	functions so we don't get warnings about incompatible assignments
      	in "class_init", chain up in "control".
      	* app/tools/gimpdrawtool.c: added an implementation of "control"
      	which can be called from subclasses so we don't need to call
      	GimpDrawTool's methods directly from there.
      	* app/tools/gimppaintbrushtool.[ch]: create it's tool options so it
      	doesn't crash. Commented out the non_gui stuff. We need a different
      	interface for this.
      	* app/tools/gimppainttool.[ch]: some cleanups: call the draw tool's
      	"control" function, fixed "cursor_update", fixed indentation.
      	* app/tools/measure.[ch]: made it work again (properly subclass
      	* app/tools/tool.c: re-added the non_gui paintbrush STUB()'s
      	* app/tools/tools.c: don't allocate the non_gui stuff.
      	GimpPaintTool is an abstract superclass, so we cannot create
      	an instance of it. Moreover, the current non_gui stuff assumes
      	that there is something like a "paint_core" and changes it's
      	virtual function pointers, breaking the object system totally.
    • Nate Summers's avatar
      Introduced GimpPaintTool and GimpDrawTool · 80a8d5a7
      Nate Summers authored
  5. 24 Feb, 2001 1 commit
    • Michael Natterer's avatar
      updated. · 17335326
      Michael Natterer authored
      2001-02-24  Michael Natterer  <mitch@gimp.org>
      	* TODO.xml: updated.
      	* app/appenums.h
      	* app/apptypes.h: prefixed the cursor stuff with "Gimp", added
      	the new stock tool cursor enum. Removed the old ToolType enum.
      	* app/cursorutil.[ch]
      	* app/gdisplay.[ch]: removed the old ToolType enum and prefixed
      	the functions with "gimp_". Also stripped all "toggle cursor"
      	stuff from the cursor code, so the new API is easier and not
      	depending on the tool system.
      	All existing tool cursors can be used via the new stock tool
      	cursor enum, so no tool has to fiddle around with bitmap cursors.
      	There will be an cursorutil function for registering stock tool
      	cursor types on the fly.
      	* app/disp_callbacks.c
      	* app/scroll.[ch]: moved the display scrollbar callbacks from
      	scroll.[ch] to disp_callbacks.c. Removed some crap from scroll.h
      	* app/tools/tool.[ch]: removed the BitmapCursor pointers from the
      	tool class struct and add cursor and toggle cursor IDs to the
      	GimpTool struct. Work in progress.
      	* app/dialog_handler.c
      	* app/tools/bezier_select.c
      	* app/tools/blend.c
      	* app/tools/bucket_fill.c
      	* app/tools/by_color_select.c
      	* app/tools/clone.c
      	* app/tools/color_picker.c
      	* app/tools/convolve.c
      	* app/tools/crop.c
      	* app/tools/dodgeburn.c
      	* app/tools/edit_selection.c
      	* app/tools/ellipse_select.c
      	* app/tools/flip_tool.c
      	* app/tools/free_select.c
      	* app/tools/fuzzy_select.c
      	* app/tools/ink.c
      	* app/tools/iscissors.c
      	* app/tools/magnify.c
      	* app/tools/measure.c
      	* app/tools/move.c
      	* app/tools/paint_core.[ch]
      	* app/tools/perspective_tool.c
      	* app/tools/rect_select.c
      	* app/tools/rotate_tool.c
      	* app/tools/scale_tool.c
      	* app/tools/shear_tool.c
      	* app/tools/text_tool.c
      	* app/tools/transform_core.[ch]: changed accordingly. Did this
      	"blind" for most tools because they don't compile. The changes are
      	minimal, so there should be no conflicts.
  6. 20 Jan, 2001 1 commit
    • Michael Natterer's avatar
      made gradient_get_color_at() use GimpRGB. · c31d2639
      Michael Natterer authored
      2001-01-20  Michael Natterer  <mitch@gimp.org>
      	* app/gradient.[ch]: made gradient_get_color_at() use GimpRGB.
      	* app/airbrush.c
      	* app/blend.c
      	* app/gimpcontextpreview.c
      	* app/gradient_select.c
      	* app/paint_core.[ch]
      	* app/paintbrush.c
      	* app/palette.c
      	* app/pencil.c
      	* app/gradients_cmds.c
      	* app/gradient_select_cmds.c
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb: changed accordingly.
  7. 31 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/airbrush.[ch] app/bezier_select.c app/bezier_selectP.h app/blend.[ch] · 2db88815
      Michael Natterer authored
      2000-12-31  Michael Natterer  <mitch@gimp.org>
      	* app/airbrush.[ch]
      	* app/bezier_select.c
      	* app/bezier_selectP.h
      	* app/blend.[ch]
      	* app/boundary.h
      	* app/brightness_contrast.[ch]
      	* app/bucket_fill.c
      	* app/by_color_select.c
      	* app/clone.[ch]
      	* app/color_balance.c
      	* app/color_picker.c
      	* app/commands.c
      	* app/convolve.[ch]
      	* app/crop.c
      	* app/crop.h
      	* app/curves.c
      	* app/dodgeburn.[ch]
      	* app/edit_selection.[ch]
      	* app/ellipse_select.c
      	* app/eraser.[ch]
      	* app/flip_tool.[ch]
      	* app/free_select.[ch]
      	* app/fuzzy_select.[ch]
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/histogram_tool.[ch]
      	* app/hue_saturation.[ch]
      	* app/image_map.[ch]
      	* app/ink.[ch]
      	* app/iscissors.c
      	* app/levels.c
      	* app/magnify.[ch]
      	* app/move.c
      	* app/nav_window.[ch]
      	* app/paint_core.[ch]
      	* app/paintbrush.[ch]
      	* app/path_bezier.[ch]
      	* app/path_tool.c
      	* app/pencil.[ch]
      	* app/perspective_tool.[ch]
      	* app/posterize.c
      	* app/rect_select.[ch]
      	* app/rotate_tool.[ch]
      	* app/scale_tool.[ch]
      	* app/selection.[ch]
      	* app/shear_tool.[ch]
      	* app/smudge.[ch]
      	* app/text_tool.[ch]
      	* app/threshold.c
      	* app/tools.[ch]
      	* app/transform_core.[ch]: removed the "gdisp_ptr" madness and
      	useless casts all over the place. Introduced a "PaintState" enum
      	instead of #define's. Various cleanups.
  8. 29 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h · 8d6c335f
      Michael Natterer authored
      2000-12-29  Michael Natterer  <mitch@gimp.org>
      	* app/Makefile.am
      	* app/channel_pvt.h
      	* app/drawable_pvt.h
      	* app/gdisplayF.h
      	* app/gimpdrawableP.h
      	* app/gimpimageP.h
      	* app/layer_pvt.h
      	* app/toolsF.h: removed these files.
      	* app/apptypes.h
      	* tools/pdbgen/enums.pl: added tons of opaque typedefs and enums.
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb
      	* app/*: chainsaw #include cleanup:
      	- Never (never!!) include stuff in header files except where we
      	  need access to structures' contents (like derived objects).
      	- Added prototypes and proper formating in many files.
      	- The #include order in *all* *.c files is as follows:
      	#include "config.h"
      	#include <system stuff>
      	#include <gtk/gtk.h>
      	#include "apptypes.h"
      	#include "gimp stuff"
      	#include "libgimp stuff"
      	#include "libgimp/gimpintl.h"
      	By following this scheme we can easily see a file's dependencies
      	from it's #include's and can grep for the inclusion to find out
      	where a file is used.
      	* tools/pdbgen/app.pl: changed to follow the include scheme above.
      	* libgimp/Makefile.am
      	* libgimp/gimpuitypes.h: new file, included from libgimp/gimpui.h
      	and from app/apptypes.h.
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimpparasite.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimpprotocol.c
      	* libgimp/gimpquerybox.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimptypes.h
      	* libgimp/gimpui.h
      	* libgimp/gimpunit.h
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: changed accordingly.
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gdyntext/message_window.c
      	* plug-ins/imagemap/imap_default_dialog.c
      	* plug-ins/imagemap/imap_file.c: these files used to include
      	"libgimp/gimpui.h" without including "libgimp/gimp.h". This is
      	no longer possible because the libgimpui headers don't inlcude
      	"libgimp/gimpunit.h" any more.
  9. 16 Dec, 2000 1 commit
    • Sven Neumann's avatar
      Last-minute cleanup: · dfa2bed5
      Sven Neumann authored
      2000-12-16  Sven Neumann  <sven@gimp.org>
      	Last-minute cleanup:
      	* app/gimpdrawableF.h
      	* app/gimphistogramF.h
      	* app/gimpimageF.h
      	* app/gimplistF.h
      	* app/gimplutF.h
      	* app/gimpobjectF.h
      	* app/gimpsetF.h
      	* app/layerF.h
      	* app/parasitelistF.h: removed these files
      	* app/Makefile.am
      	* tools/pdbgen/Makefile.am: changed accordingly
      	* app/[almost every file]: include cleanup
  10. 05 Jun, 2000 1 commit
    • Sven Neumann's avatar
      indentation, no real changes · a43f448b
      Sven Neumann authored
      2000-06-05  Sven Neumann  <sven@gimp.org>
              * app/paint_core.[ch]: indentation, no real changes
              * plug-ins/gap/README
              * plug-ins/gap/gap_mov_dialog.c
              * plug-ins/gap/gap_mov_exec.c: applied a patch from Wolfgang
              * plug-ins/imagemap/imap_csim.y: applied a patch from
              Maurits Rijk which promises to fix bug #10090.
              Yosh, could you regenerate the C code, please...?!
              * tips/gimp_tips.txt: applied gimp-quinet-20000508-0.patch,
              an update to the english tips file provided by Raphael Quinet.
  11. 14 Jan, 2000 1 commit
  12. 25 Dec, 1999 1 commit
    • Garry R. Osgood's avatar
      Season's Greetings! app/clone.c app/paint_core.c app/paint_core.h Updated · c60db90f
      Garry R. Osgood authored
      1999-12-25 Garry R. Osgood <gosgood@idt.net>
      Season's Greetings!
              * app/clone.c
              * app/paint_core.c
              * app/paint_core.h
              * MAINTAINERS
      MAINTAINERS: Updated my entry (it wasn't there ;)
      app/paint_core.[ch] supplied new PaintTool states to clone_paint_func() so that
      writes of temporary markings made directly to the window are not
      clobbered by buffered writes stemming from gdisplay_flush_xxx()
      routines. clone_tool_paint_func() has been modified to take advantage
      of these new states, retiring bug #2184 in a way that does not change
      user interface semantics. There are small additions to the PaintCore
      interface that do not affect clientele unaware of added semantics.
      These changes are detailed at http://idt.net/~gosgood/gimp-patch/patch03.html.
  13. 25 Sep, 1999 2 commits
    • Sven Neumann's avatar
      fun with gradient_length and fade_out · 31331996
      Sven Neumann authored
      --Sven & Jtl
    • Manish Singh's avatar
      moved the gtk_set_locale call to after it's been inited · d02f3bce
      Manish Singh authored
      * app/main.c: moved the gtk_set_locale call to after it's
      been inited
      * app/paint_core.h: set skip for ToolFlags
      * app/procedural_db.h: don't skip PDB_TEMPORARY in PDBProcType
      * libgimp/Makefile.am: don't install stdplugins-intl.h, that's
      only for disted plugins
      * libgimp/gimpenums.h: is now autogenned
      * libgimp/gimpfeatures.h.in: #define for new enums
      * libgimp/gimpintl.h: #include <locale.h>
      * libgimp/stdplugins-intl.h: add include guards
      * plug-ins/AlienMap2/Makefile.am: add INTLLIBS
      * plug-ins/gflare/Makefile.am: removed unused libgimpui
      * plug-ins/script-fu/script-fu-console.c
      * plug-ins/script-fu/script-fu-scripts.c
      * plug-ins/script-fu/script-fu-server.c: use stdplugins-intl.h
      * plug-ins/sel2path/Makefile.am: removed unused libgck.la
      * tools/pdbgen/Makefile.am: removed script-fu.pl, added enumcode.pl
      * tools/pdbgen/lib.pl
      * tools/pdbgen/enumcode.pl: enumcode.pl now autogenned gimpenums.h
      as well as the script-fu stuff
  14. 09 Sep, 1999 2 commits
  15. 04 Sep, 1999 1 commit
  16. 01 Sep, 1999 1 commit
  17. 26 Aug, 1999 2 commits
    • Tor Lillqvist's avatar
      Add a flags field and corresponding type ToolFlags to PaintCore. The only · 387002c0
      Tor Lillqvist authored
      1999-08-27  Tor Lillqvist  <tml@iki.fi>
      * app/paint_core.h: Add a flags field and corresponding type
      ToolFlags to PaintCore. The only flag bit defined so far is
      TOOL_CAN_HANDLE_CHANGING_BRUSH, which those tools who don't mind
      if the brush changes while painting (as in the case of pixmap pipe
      * app/paint_core.c: Test above flag before calling the brush's
      select_brush method.
      * app/airbrush.c
      * app/paintbrush.c
      * app/pencil.c: Set above flag.
      * app/makefile.{cygwin,msc}: Add latest additions.
    • Tor Lillqvist's avatar
      Overhaul of pixmap brushes and pipes: No separate pixmap pipe · 868bdfff
      Tor Lillqvist authored
      brush tool any longer. The paintbrush, airbrush and pencil
      tools, which already knew how to handle the single-pixmap
      brushes now also handle the pipes as well.
      * app/pixmapbrush.{h,c}
      * app/gimpbrushpixmap.{h,c}: Removed these files.
      * app/Makefile.am
      * app/makefile.{cygwin,msc}: Remove from here, too.
      * app/gimpbrushpipe.{h,c}: Total overhaul.
      * app/paint_core.h
      * app/apptypes.h: Some more types moved to apptypes.h
      * app/context_manager.c
      * app/tool_options.c
      * app/tools.c
      * app/toolsF.h: Remove PIXMAPBRUSH tool.
      * app/gimpbrush.h: New method: select_brush. Used to change the
      brush in paint_core, for pipe brushes.
      * app/gimpbrush.c: Add gimp_brush_select_brush, which is dummy for
      the normal brushes (returns the same brush).
      * app/paint_core.c: Call the brush's select_brush method to get a
      potential new brush before calling the paint_func.
      * app/gimpbrushlist.c: Various changes related to the pixmap and
      pipe overhaul.
      * app/airbrush.c
      * app/pencil.c: Reorder code a bit in the tool motion function to
      avoid executing unnecessary code in the case of a pixmap brush.
      Other changes in the same commit:
      * app/install.c: Make quote_spaces extern.
      * app/appenv.h: Declare it.
      * libgimp/gimpui.def: Add missing entry points.
      * libgimp/makefile.{cygwin,msc}: Add missing objects to gimpui.
  18. 19 Aug, 1999 1 commit
    • Adrian Likins's avatar
      add GradientPaintMode enum move above enum use above enum · 311953b1
      Adrian Likins authored
      Wed Aug 18 22:49:31 1999 Adrian Likins <alikins@redhat.com>
              * app/apptypes.h: add GradientPaintMode enum
              * app/paint_core.h: move above enum
              * app/paintbrush.c: use above enum
              * app/drawable_cmds.c: include "layers.h" so it
              will link again
  19. 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
      	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.)
  20. 02 Jul, 1999 1 commit
    • Michael Natterer's avatar
      the Tool structure is now allocated by a common constructor which sets · a60b2c2f
      Michael Natterer authored
      1999-07-02  Michael Natterer  <mitschel@cs.tu-berlin.de>
      	* app/[all tools]: the Tool structure is now allocated by a common
      	constructor which sets default values and provides default tool
      	action functions. To get rid of much code duplication there should
      	be a object hierarchy of tools.
      	* app/context_manager.c
      	* app/tools.[ch]: create and destroy private contexts for the
      	paint tools on startup and exit. They are not used yet.
      	* app/interface.c
      	* app/menus.c
      	* app/tools.h: num_tools is now exported in tools.h
      	* app/commands.c
      	* app/gdisplay.c
      	* app/menus.c: made "Toggle Selection" a toggleable menu item.
  21. 21 Jun, 1999 1 commit
    • Michael Natterer's avatar
      namespace cleanups. · f1b5e1ae
      Michael Natterer authored
      1999-06-21  Michael Natterer  <mitschel@cs.tu-berlin.de>
      	* app/context_manager.c: namespace cleanups.
      	* app/commands.[ch]
      	* app/menus.c: moved the "Toggle Selection" menu entry to "View",
      	sprinkled some separators and made the layers/channels/paths popup
      	menus consistent with Tigert's last ops buttons change.
      	* app/fileops.c
      	* app/plug_in.c: check for gdisplay_active() returning NULL in
      	some more places.
      	* app/[all tool related files]:
      	- Turned the ToolAction and ToolState #define's into typedef'ed
      	  enums, so the compiler can do some more sanity checking.
      	- Removed one more unused global variable "active_tool_layer".
      	- Removed some #include's from tools.c.
      	- Standardized the individual tools' structure names.
      	- Moved showing/hiding the tool options to separate functions.
      	- Stuff...
      	* app/commands.c
      	* app/disp_callbacks.c
      	* app/gdisplay.c
      	* app/tools.c: fixed the segfaults which happened when the image
      	of one of the tools which have dialogs (levels/posterize/...) was
      	deleted. My approach was to do stricter sanity checking and to set
      	some gdisplay pointers correctly where appropriate, so I can't
      	tell exactly where the bug was.
      	The curves tool now(??) updates on every _second_ display change
      	only, which is really obscure.
      	Finding/changing the display to operate on should definitely be
      	done by connecting to the user context's "display_changed"
      	* app/gimpset.c: emit the "remove" signal _after_ removing the
      	pointer from the set. If this was not a bug but a feature, please
      	let me know, we'll need two signals then.
  22. 13 May, 1999 1 commit
    • jaycox's avatar
      set the fg or bg color if ctrl or alt is held. use the new dropper cursor. · 628e07eb
      jaycox authored
      	* app/paint_core.[ch]: set the fg or bg color if ctrl or alt is
       	held.  use the new dropper cursor.
      	* app/cursorutil.[ch], app/gdisplay.[ch], app/rect_select.c: Use
       	GimpCursorType enum values > GDK_CURSOR_LAST instead of seperate
       	functions to choose between cursor types.
      	* app/color_picker.c: use the new dropper cursor.
      	* app/paintbrush.c, app/airbrush.c, app/paintbrush.c: use the new
       	color picking feature of paint_core.
      	* cursors/dropper, cursors/droppermsk: new cursor for the color
       	picker tool. (this cursor is REALLY ugly, someone should fix it)
  23. 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
      * 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
  24. 10 Apr, 1999 1 commit
    • Manish Singh's avatar
      new file (from pdbgen) · d6116b8d
      Manish Singh authored
      * text_tool_cmds.c: new file (from pdbgen)
      * Makefile.am: add new file, use AM_CPPFLAGS instead of CPPFLAGS
      * internal_procs.c: register pdbgened text_tool procs
      * text_tool.c: remove PDB stuff, export text_render and
      text_get_extents and SizeType and SUPERSAMPLE symbols
      * text_tool.c: remove PDB stuff
      * blend.[ch]
      * bucket_fill.[ch]
      * clone.[ch]
      * convolve.[ch]: export some enums
      * channel.h
      * paint_core.h: #define->enum
      * channel.c
      * gimpparasite.c
      * parasitelist.c
      * pixel_processor.c: warning cleanup
      * convert_cmds.c
      * paths_cmds.c: slight pdbgen changes
  25. 28 Mar, 1999 1 commit
  26. 19 Mar, 1999 1 commit
    • EST 1999  Adrian Likins's avatar
      app/paintbrush.c app/paint_core.c moved all the code for figuring out the · 7e28ed4c
      EST 1999 Adrian Likins authored
      Thu Mar 18 19:35:48 EST 1999  Adrian Likins <adrian@gimp.org>
              * app/paintbrush.c
              * app/paint_core.c
              * app/paint_core.h: moved all the code for figuring out the
              paint_core->distance to color stuff to paint_core.[ch]. Updated
              paintbrush.c to use the new function. Also now can either loop
              thorugh the gradient (sawtooth, start->end, start->end or
              triangle start->end,end->start). Also mode for going
              thought the gradient once, forwards or backwards. None of these
              options are available from the gui or the PDB yet though.
  27. 16 Aug, 1998 1 commit
  28. 24 Jul, 1998 1 commit
    • jaycox's avatar
      ---------------------------------------------------------------------- · 69d92241
      jaycox authored
       Modified Files:
       	ChangeLog app/Makefile.am app/brush_select.c app/gimpbrush.c
       	app/gimpbrush.h app/gimpbrushgenerated.c app/gimpbrushlist.c
       	app/gimplist.c app/paint_core.c app/paint_core.h
          added axis to brushes.  paint_core now references a brush instead
          of a mask.  cleaned up some [brush]list removal stuff.
       Added Files:
       	app/vector2d.c app/vector2d.h
          very basic vector math struct/functions.
  29. 10 Jul, 1998 1 commit
    • jaycox's avatar
      Modified Files: ChangeLog app/brush_select.c app/brush_select.h · 8fca3091
      jaycox authored
       Modified Files:
       	ChangeLog app/brush_select.c app/brush_select.h
       	app/gimpbrushgenerated.c app/gimpbrushlist.c
       	app/gimpbrushlist.h app/paint_core.c app/paint_core.h
             Signalified the brushes and cleaned up a few things.
       	app/paint_funcs.c: Minor speed tweak
  30. 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
            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.?
  31. 06 Jun, 1998 1 commit
    • Owen Taylor's avatar
      app/Makefile.am app/app_procs.c app/brushes.c app/commands.[ch] · f6a5a938
      Owen Taylor authored
      Fri Jun  5 22:37:40 1998  Owen Taylor  <otaylor@gtk.org>
      	* app/Makefile.am app/app_procs.c app/brushes.c app/commands.[ch]
      	  app/disp_callbacks.c app/gdisplay.[ch] app/gimprc.c
      	  app/interface.[ch] app/menus.c app/paint_core.[ch]
      	  app/paintbrush.c app/palette.c app/scroll.c
      	  app/tools.[ch] app/undo.c
      	- Added two new dialogs - input devices; (GtkInputDialog)
      	  and DeviceStatus - which shows the tool/color for
      	  each device.
      	- Added device_status_update() call that gets called
      	  whenever the tool/color etc. are changed.
      	- Added ~/.gimp/devicerc file to store settings
      	- Code to draw cursor on canvas for non XFree86 XInput
      	  where device can't control cursor and extended input
      	  device simultaneously.
      	- Changed input handling so that we always use the pointer
      	  position from the device, not from gdk_input_window_get_cursor,
      	  so that motion and cursor position sync.
      	- Various changes so things work with non-integer coordinates
      	- Pay attention to pressure and tilt in basic tool support.
              - New paint mode PRESSURE that changes the brush based on
      	  the brush pressure
      	- Left in a few XInput hacks that should be removed, but I no longer
      	  remember what they are.
  32. 13 Apr, 1998 1 commit
  33. 22 Jan, 1998 1 commit
  34. 08 Dec, 1997 1 commit
  35. 24 Nov, 1997 1 commit