1. 06 May, 2014 1 commit
  2. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      
      	* all files with a GPL header and all COPYING files:
      
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      
      
      svn path=/trunk/; revision=27913
      d9b5207a
  3. 09 Dec, 2006 1 commit
  4. 27 Dec, 2005 1 commit
    • Michael Natterer's avatar
      Fixed incomplete core/ui separation of paint tools and paint methods: · ef9b04c5
      Michael Natterer authored
      2005-12-27  Michael Natterer  <mitch@gimp.org>
      
      	Fixed incomplete core/ui separation of paint tools and paint
      	methods:
      
      	* app/core/core-enums.h
      	* app/core/gimpcontext.[ch]: added a "paint-info" property and API
      	so the current paint method can be selected without the need for
      	an active tool.
      
      	(gimp_context_real_set_tool): set the paint-info to
      	tool_info->paint_info so the paint method follows the active tool
      	just as the active image follows the active display.
      
      	* app/core/gimp.h (struct Gimp)
      	* app/core/gimppaintinfo.[ch]: added "standard_paint_info" API
      	and stuff to be consistent with other context object properties.
      
      	* app/paint/gimp-paint.c: set the paintbrush as
      	standard_paint_info.
      
      	* app/core/gimpstrokedesc.c (gimp_stroke_desc_new): removed the
      	hack of falling back to the paintbrush when there is no active
      	tool and use the active paint method instead. Fall back to the
      	standard paint method if there is no active one.
      	(nothing in the core uses the active tool any more now).
      
      	* app/widgets/gimpdeviceinfo.h: add the paint info to the
      	properties which are saved in devicerc.
      
      	Added identifiers (names) and stock-ids to GimpPaintInfo:
      
      	* app/core/gimppaintinfo.[ch] (gimp_paint_info_new): added
      	identifier and stock-id parameters.
      
      	* app/core/gimptoolinfo.c (gimp_tool_info_new): removed the hack
      	of setting the paint-info stock-id from the tool-info stock-id.
      
      	* app/paint/paint-types.h
      	* app/paint/gimp-paint.c: changed GimpPaintRegisterCallback
      	accordingly.
      
      	* app/tools/gimp-tools.c (gimp_tools_register): changed paint
      	info names accordingly.
      
      	* app/paint/*.c (gimp_*_register): pass identifier and stock-id
      	accordingly.
      ef9b04c5
  5. 27 Sep, 2003 1 commit
    • Michael Natterer's avatar
      derive it from GimpViewable. · d2b8494a
      Michael Natterer authored
      2003-09-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimppaintinfo.[ch]: derive it from GimpViewable.
      
      	* app/core/gimptoolinfo.c (gimp_tool_info_new): set the
      	paint_info's stock_id from the tool_info's stock_id.
      
      	* app/widgets/widgets-types.h: resurrected GimpItemStrokeFunc.
      
      	* app/widgets/gimpvectorstreeview.[ch]: added a item_stroke_func
      	pointer and use it instead of implementing stroking here.
      
      	* app/gui/vectors-commands.[ch]: added vectors_stroke_vectors()
      	which has the signature of a GimpItemStrokeFunc.
      
      	* app/gui/dialogs-constructors.c: use it for the paths dialog.
      
      	* app/gui/stroke-dialog.[ch]: extended to handle both libart and
      	GimpPaintCore stroking. Use a GimpContainerMenu view on the
      	gimp->paint_info_list container to select the paint core to use.
      d2b8494a
  6. 30 Aug, 2003 1 commit
    • Michael Natterer's avatar
      Fixed & cleaned up paint function registration to work without GUI. · c42641fe
      Michael Natterer authored
      2003-08-30  Michael Natterer  <mitch@gimp.org>
      
      	Fixed & cleaned up paint function registration to work without
      	GUI. Finishes core/GUI separation for the paint tools:
      
      	* app/core/gimppaintinfo.[ch]: removed "gchar *pdb_string" all over
      	the place since we don't stroke using the PDB any more.
      	(gimp_paint_info_new): create paint_info->paint_options here so
      	the paint system is fully initialized when there is no GUI.
      
      	* app/paint/paint.c: removed pdb_string stuff here, too.
      
      	* app/core/gimptoolinfo.[ch]: create tool_info->tool_options
      	only if tool_info->tool_options_type is not the same type
      	as paint_info->paint_options_type (if we are no paint tool).
      
      	* app/core/gimptooloptions.c: removed G_PARAM_CONSTRUCT_ONLY from
      	the "tool-info" property. Instead, changed
      	gimp_tool_options_set_property to ensure that it is only set once.
      
      	* app/core/gimp.c (gimp_initialize): moved paint_init() after
      	data_factory creation (was in gimp_init()), since GimpPaintInfo
      	now creates the GimpPaintOptions, which are GimpContexts, which
      	need gimp->*_factory to be constructed.
      
      	* app/tools/tool_manager.c: don't create tool_info->tool_options
      	here (it's not the job of the tool_manager to set up the core
      	paint system correctly, it must be already initialized before any
      	tool_manager function is called).
      
      	Made "Stroke Selection" and "Stroke Path" work the same way:
      
      	* app/paint/gimppaintcore-stroke.[ch]: added new function
      	gimp_paint_core_stroke_boundary() which strokes without using
      	the PDB.
      
      	* app/core/gimpimage-mask.c (gimp_image_mask_stroke): use it
      	instead of using the PDB. Enables all available paint options for
      	stroke operations. Fixes bug #119411.
      
      	* app/gui/vectors-commands.c (vectors_stroke_vectors)
      	* app/core/gimpimage-mask.c (gimp_image_mask_stroke): removed all
      	code which tries to figure how to stroke and simply look at the
      	active tool's tool_info->paint_info, since it is always set up
      	correctly now.
      c42641fe
  7. 14 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Moved the undo step implementations to the core and pass around lots of · 7a6a8d9d
      Michael Natterer authored
      2003-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Moved the undo step implementations to the core and pass around
      	lots of "const gchar *undo_desc". Fixes bug #104367.
      
      	* app/Makefile.am
      	* app/undo.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-undo-push.[ch]: ...and added here.
      
      	* app/paint/Makefile.am
      	* app/tools/Makefile.am
      	* app/paint/gimppaintcore-undo.[ch]
      	* app/tools/gimptransformtool-undo.[ch]: new files for the
      	paint and transform undos.
      
      	* app/core/gimppaintinfo.[ch]: added a blurb.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint-types.h
      	* app/paint/paint.c: pass the blurb when registering the core.
      
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-mask-select.[ch]
      	* app/core/gimpimage-mask.[ch]
      	* app/core/gimpimagemap.[ch]
      	* app/core/gimplayer-floating-sel.[ch]: added "undo_desc" parameters
      	to all undo pushing helper functions.
      
      	* app/undo_history.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly: pass
      	"undo_desc" strings, changed includes or simply removed inclusion
      	of "undo.h". Some random cleanups.
      
      	* tools/pdbgen/pdb/guides.pdb: cleaned up a lot. Fixed
      	gimp_image_find_next_guide() to not return guides with
      	position < 0 (and made it shorter and readable).
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      7a6a8d9d
  8. 05 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Made GimpToolOptions a GimpContext subclass and objectified all tool · aa9f82d1
      Michael Natterer authored
      2003-02-05  Michael Natterer  <mitch@gimp.org>
      
      	Made GimpToolOptions a GimpContext subclass and objectified
      	all tool options types.
      
      	* app/core/core-types.h: replaced GimpToolOptionsNewFunc by
      	GimpToolOptionsGUIFunc.
      
      	* libgimpproxy/gimpproxytypes.h: regenerated.
      
      	* app/core/gimppaintinfo.[ch]: added "GType paint_options_type".
      
      	* app/core/gimptoolinfo.[ch]: added "GType tool_options_type",
      	removed tool_info->context since GimpToolOptions are a GimpContext
      	now. Added "gboolean use_context" as a temp_hack.
      
      	* libgimptool/gimptooltypes.h: added the tool_options_type to
      	the tool registering callback.
      
      	* app/tools/tool_options.[ch]: is a real GimpContext subclass now.
      
      	* app/paint/paint-types.h
      	* app/paint/paint.c: added the paint_options_type to the paint
      	registering stuff.
      
      	* app/paint/gimppaintoptions.[ch]: is a real GimpToolOptions
      	subclass now.
      
      	* app/paint/Makefile.am
      	* app/paint/gimpairbrushoptions.[ch]
      	* app/paint/gimpcloneoptions.[ch]
      	* app/paint/gimpconvolveoptions.[ch]
      	* app/paint/gimpdodgeburnoptions.[ch]
      	* app/paint/gimperaseroptions.[ch]
      	* app/paint/gimpsmudgeoptions.[ch]: new files holding
      	GimpPaintOptions subclasses.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: removed paint options stuff, lots
      	of related changed & cleanups.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: changed accordingly.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.[ch]
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimpvectoroptions.[ch]: new files holding the various
      	tool options classes.
      
      	* app/tools/selection_options.[ch]
      	* app/tools/transform_options.[ch]: made them objects.
      
      	* app/tools/paint_options.[ch]: contains only the paint_options
      	GUI and reset stuff.
      
      	* app/tools/tools-types.h: removed SelectionOptions typedef for
      	now.
      
      	* app/tools/[all tools]: removed the tool options stuff except
      	some GUI constructors. Tons of related changes.
      
      	* app/tools/tool_manager.[ch]: changed tool registration / restore /
      	switching accordingly.
      
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c: changed accordingly.
      aa9f82d1
  9. 27 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am new object for registering GimpPaintCore subclasses, · 6086f832
      Michael Natterer authored
      2002-02-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimppaintinfo.[ch]: new object for registering
      	GimpPaintCore subclasses, just like GimpToolInfo for tools.
      
      	* app/core/gimp.h: added gimp->paint_info_list to hold them.
      
      	* app/core/gimptoolinfo.[ch]: removed the "pdb_string" and
      	"paint_core_name" pointers and added a GimpPaintInfo pointer
      	instead.
      
      	* app/core/gimpimage-mask.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/tool_manager.c: changed accordingly.
      
      	* app/paint/paint-types.h
      	* app/paint/paint.c: added paint class registration stuff like
      	the tool_manager does.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.[ch]
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: added register functions which are
      	called from paint_init().
      
      	The core object system lives not only in "core/", but in
      	core, paint, vectors, file, plug-in and xcf, so I had to hack
      	a bit to keep the deps working:
      
      	* app/pdb/pdb-types.h: don't include "paint/paint-types.h"...
      
      	* app/core/core-types.h: ...because it's included here. Moved
      	the inclusions of the core's subsystems' "foo/foo-types.h"
      	files to the end of the file.
      
      	* app/paint/Makefile.am: Some slimy radioactive uglyness.
      
      	* app/gui/drawable-commands.c
      	* app/tools/gimpblendtool.c: removed calling core functions via
      	the PDB because it makes no sense to do it manually in only a few
      	places.  This needs to be done generically using generated
      	wrappers living in "app/commands/" or something...
      6086f832