1. 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
  2. 26 Feb, 2002 10 commits
    • Sven Neumann's avatar
      app/gui/tips-dialog.c added support for simple text markup. · 3ed06437
      Sven Neumann authored
      2002-02-26  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/tips-dialog.c
      	* app/gui/tips-parser.c: added support for simple text markup.
      
      	* tips/gimp-tips.xml.in: document and use the new markup tags.
      3ed06437
    • Michael Natterer's avatar
      make absolute paths out of relative ones passed on the commandline so the · d9c23318
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/app_procs.c: make absolute paths out of relative ones
      	passed on the commandline so the GimpImagefiles can generate
      	previews.
      
      	* app/gui/Makefile.am
      	* app/gui/drawable-commands.[ch]: new files implementing menu
      	callbacks which work not just on layers.
      
      	* app/gui/layers-commands.[ch]: removed them here. Cleanup.
      
      	* app/gui/menus.c: changed accordingly.
      
      	* app/gui/brushes-commands.c
      	* app/gui/channels-commands.c
      	* app/gui/vectors-commands.c: cleanup. Added macros to get
      	rid of code duplication.
      d9c23318
    • Michael Natterer's avatar
      added a "item_activate_func" to the struct and the constructor so we can · 17c27e5e
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpitemlistview.[ch]: added a "item_activate_func"
      	to the struct and the constructor so we can distinguish double
      	click from right click in the callbacks.
      
      	* app/widgets/gimpvectorslistview.[ch]: added a "item_stroke_func".
      
      	* app/widgets/gimpchannellistview.c: reorder the "To Selection" button.
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      
      	* app/gui/menus.c: added separators and some new items to the
      	vectors menu. Use the SELECTION_REPLACE, _ADD, ... icons for
      	the resp. menu items.
      
      	* app/gui/vectors-commands.[ch]: added empty callbacks for the new
      	menu items, put the stroke stuff to an own function which is used
      	as "item_stroke_func" when creating GimpVectorsListViews.
      17c27e5e
    • Michael Natterer's avatar
      implemented gimp_image_mask_select_vectors() as simple wrapper around · 52d07c96
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask-select.[ch]: implemented
      	gimp_image_mask_select_vectors() as simple wrapper around
      	gimp_image_mask_select_polygon().
      
      	* app/gui/vectors-commands.c: call it from the "to selection"
      	callbacks.
      
      	* app/gui/channels-commands.c: use gimp_image_mask_select_channel()
      	instead of doing the same manually.
      
      	* app/paint/gimppencil.c: register as "GimpPencil", not
      	"GimpPencilCore".
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpvectorslistview.[ch]: new GimpItemListView
      	subclass featuring a "To Selection" and "Stroke" button.
      
      	* app/widgets/gimpitemlistview.c: create GimpVectorsListViews.
      52d07c96
    • Michael Natterer's avatar
      added gimp_paint_core_stroke_vectors() which strokes the whole vector · 5aa1c92f
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore-stroke.[ch]: added
      	gimp_paint_core_stroke_vectors() which strokes the whole vector
      	using one undo step.
      
      	* app/gui/vectors-commands.c: use the new function.
      
      	* app/tools/gimpvectortool.c: changed to do evil voodoo in
      	gimp_vectors_tool_set_vectors() and thus to always find a
      	display to show the vectors.
      5aa1c92f
    • Simon Budig's avatar
      app/gui/vectors-commands.c app/tools/gimpvectortool.c fixed a name of a · 8b59fe87
      Simon Budig authored
      2002-02-26  Simon Budig  <simon@gimp.org>
      
              * app/gui/vectors-commands.c
              * app/tools/gimpvectortool.c
              * app/tools/gimpvectortool.h: fixed a name of a function
              and corrected gimp_vector_tool_set_vectors.
      8b59fe87
    • Michael Natterer's avatar
      Added some kind of paint core registry. It's ugly and will change... · a2bd2ac2
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	Added some kind of paint core registry. It's ugly and will change...
      
      	* app/core/gimp.c: call paint_init() and paint_exit().
      
      	* app/core/gimptoolinfo.[ch]: added "gchar *paint_core_name" to
      	the GimpToolInfo structure and the contstructor.
      
      	* app/tools/tool_manager.c: pass the class names of the
      	GimpPaintCore subclasses to gimp_tool_info_new().
      
      	* app/paint/Makefile.am
      	* app/paint/paint.[ch]: new files. Simlply ref/unref all paint
      	core classes so we can find them using g_type_from_name().
      
      	* app/paint/gimppaintcore-stroke.[ch]: changed to take an array
      	of GimpCoords, not just gdouble.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: convert the stroke array here.
      
      	* app/gui/vectors-commands.c: ad-hoc implementation of vectors
      	stroking.  Double click now sets the active vectors in the vectors
      	tool.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      a2bd2ac2
    • Sven Neumann's avatar
      some documentation can't hurt. · 9c9b152c
      Sven Neumann authored
      2002-02-26  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/tips-parser.c: some documentation can't hurt.
      
      	* app/tools/Makefile.am
      	* app/paint/Makfile.am
      	* app/vectors/Makfile.am
      	* plug-ins/tools/Makefile.am: fixed dist target.
      9c9b152c
    • Simon Budig's avatar
      app/tools/gimpdrawtool.c Added function gimp_draw_tool_draw_strokes to be · 7f706974
      Simon Budig authored
      2002-02-26  Simon Budig  <simon@gimp.org>
      
              * app/tools/gimpdrawtool.c
              * app/tools/gimpdrawtool.h: Added function gimp_draw_tool_draw_strokes
              to be able to draw lines from a GimpCoords array.
      
              * app/vectors/gimpanchor.h: removed "active", since this should
              be a GUI thing.
      
              * app/vectors/gimpstroke.c
              * app/vectors/gimpstroke.h
              * app/vectors/gimpbezierstroke.c
              * app/vectors/gimpbezierstroke.h: Implemented (and fixed API) for
              interpolation.
      
              * app/tools/gimpvectortool.c
              * app/tools/gimpvectortool.h: Changed accordingly, we can actually
              draw polylines now.
      7f706974
    • Michael Natterer's avatar
      renamed undo_push_layer_rename() to undo_push_item_rename(), so · b20880ad
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo.[ch]: renamed undo_push_layer_rename() to
      	undo_push_item_rename(), so channel/vectors renaming is undoable.
      	Use "gsize" for all undo size variables. Cleanup.
      
      	* app/undo_types.h: s/LAYER_RENAME_UNDO/ITEM_RENAME_UNDO/.
      
      	* app/core/core-types.h: added LAYER_PROPERTIES_UNDO_GROUP.
      
      	* app/core/gimpimage.c: s/Vectors/Path/ in all user-visible strings.
      
      	* app/core/gimpitem.[ch]: cleanup.
      
      	* app/gui/menus.c: s/"New Path"/"New Path..."/, pass
      	"vectors_menu_update" to gimp_item_factory_new().
      
      	* app/gui/layers-commands.c: renaming the floating layer
      	transforms it into an ordinary layer. Push an undo group around
      	around both the "fs_to_layer" and the renaming.
      
      	* app/gui/channels-commands.c
      	* app/gui/vectors-commands.c: made renaming undoable, cleanup.
      
      	* app/widgets/gimpitemlistview.c: added an EEKY hack so "Delete"
      	is not broken any more for floating selections. Need a better
      	solution...
      b20880ad
  3. 25 Feb, 2002 11 commits
    • Sven Neumann's avatar
      changed dot to underscore in implementation of gimp_temp_name(). Fixes bug · f68a6a8d
      Sven Neumann authored
      2002-02-25  Sven Neumann  <sven@gimp.org>
      
              * tools/pdbgen/pdb/fileops.pdb: changed dot to underscore in
              implementation of gimp_temp_name(). Fixes bug #72324.
      
              * app/pdb/fileops_cmds.c: regenerated.
      f68a6a8d
    • Sven Neumann's avatar
      changed dot to underscore in implementation of gimp_temp_name(). Fixes bug · b95b4884
      Sven Neumann authored
      2002-02-25  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/fileops.pdb: changed dot to underscore in
      	implementation of gimp_temp_name(). Fixes bug #72324.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      
      	* Makefile.am
      	* tips/update.sh: added a script to update po files.
      b95b4884
    • Sven Neumann's avatar
      app/gui/tips-dialog.c added proper error handling. This completes the new · feeed3ab
      Sven Neumann authored
      2002-02-25  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/tips-dialog.c
      	* app/gui/tips-parser.c: added proper error handling. This completes
      	the new XML-based tips system that closes bug #68846.
      feeed3ab
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new GimpListItem · 1345ece5
      Michael Natterer authored
      2002-02-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemlistitem.[ch]: new GimpListItem subclass
      	which handles DND reordering of GimpItems.
      
      	* app/widgets/gimpdrawablelistitem.[ch]: derive from GimpItemListItem
      	and removed the reordering code.
      
      	* app/widgets/gimplistitem.c: create a GimpItemListItem if the
      	passed viewable is a GimpItem.
      1345ece5
    • Sven Neumann's avatar
      updated · 80aa8233
      Sven Neumann authored
      2002-02-25  Sven Neumann  <sven@gimp.org>
      
      	* README.i18n: updated
      
      	* app/gui/tips-dialog.c
      	* app/gui/tips-parser.[ch]: dropped the locale matching magic since
      	it would never work for all cases. Instead introduced a special
      	message so translators can specify the exact tips locale.
      80aa8233
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new base class for something · cdf2a90b
      Michael Natterer authored
      2002-02-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitem.[ch]: new base class for something which is a
      	child of an image, has a PDB ID, a tattoo, parasites and emits
      	a "removed" signal.
      
      	* app/core/gimpdrawable.[ch]
      	* app/vectors/gimpvectors.[ch]: derive from GimpItem. Removed
      	lots of stuff from GimpDrawable.
      
      	* app/core/gimp.[ch]: changed gimp->drawable_table and
      	gimp->next_drawable_ID to gimp->item_table and gimp->next_item_id.
      
      	* app/undo.[ch]: s/undo_push_drawable_parasite/undo_push_item_parasite/,
      	minor cleanups.
      
      	* app/core/gimplayer.[ch]: changed gimp_layer_new_from_tiles() and
      	gimp_layer_new_from_drawable() to take the "dest_gimage" as
      	second, not first parameter.
      
      	* app/image_map.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-save-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/toolbox.c
      	* 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/plug-in/plug-in.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/widgets/gimpdrawablepreview.c: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemlistview.[ch]: new widget implementing most
      	of the stuff formerly done by GimpDrawableListView.
      
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimplayerlistview.c: changed accordingly.
      
      	* app/widgets/gimpdnd.[ch]: added a vectors DND type.
      
      	* app/gui/menus.c
      	* app/gui/dialogs.c
      	* app/gui/dialogs-constructors.[ch]: added a vectors dialog and
      	a vectors item_factory.
      
      	* app/gui/Makefile.am
      	* app/gui/vectors-commands.[ch]: new files implementing the
      	callbacks for the new vectors dialog and item_factory.
      
      	* app/pdb/pdb_glue.h: some more ugly hacks to keep intermediate
      	perl code working...
      
      	* tools/pdbgen/pdb.pl: added a vectors type, use GimpItem for all
      	ID lookups.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb
      	* tools/pdbgen/pdb/parasite.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: misc changes according to
      	stuff above.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      cdf2a90b
    • Simon Budig's avatar
      app/vectors/gimpbezierstroke.c app/tools/gimpvectortool.[ch] · 7112b206
      Simon Budig authored
      2002-02-25  Simon Budig  <simon@gimp.org>
      
              * app/vectors/gimpbezierstroke.c
              * app/tools/gimpvectortool.[ch]
              * app/vectors/gimpstroke.[ch]
              * app/vectors/gimpvectors.[ch]: Fixed various bugs, *including*
              the nasty one from this morning (thanks Mitch).
      7112b206
    • Sven Neumann's avatar
      strip newlines, tabs and adjacent spaces from string values. Added a naive · c3efdd2a
      Sven Neumann authored
      2002-02-25  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/tips-parser.[ch]: strip newlines, tabs and adjacent spaces
      	from string values. Added a naive locale match algorithm. We'll see
      	how well it works in real life...
      
      	* app/gui/tips-dialog.c: call gimp_tips_from_file() with current
      	locale. Let GTK+ do the line breaks, assorted cosmetic changes.
      
      	* tips/de.po: stripped newlines from translation.
      c3efdd2a
    • Michael Natterer's avatar
      app/vectors/Makefile.am new files creating dummy vectors previews. · 619c9a94
      Michael Natterer authored
      2002-02-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/Makefile.am
      	* app/vectors/gimpvectors-preview.[ch]: new files creating dummy
      	vectors previews.
      
      	* app/vectors/gimpvectors.[ch]: added a "gimage" pointer.
      
      	* app/vectors/gimpbezierstroke.c
      	* app/vectors/gimpstroke.c: some object stuff fixes.
      619c9a94
    • Simon Budig's avatar
      app/vectors/gimpvectors.c Changed to a container of GimpStrokes. This will · 29b80633
      Simon Budig authored
      2002-02-25  Simon Budig  <simon@gimp.org>
      
              * app/vectors/gimpvectors.c
              * app/vectors/gimpvectors.h: Changed to a container of
              GimpStrokes. This will enable it to contain different
              Stroke-types in one Vectors-Object (think Entry in path
              dialog)
      
              * app/vectors/gimpstroke.c
              * app/vectors/gimpstroke.h
              * app/vectors/gimpbezierstroke.c
              * app/vectors/gimpbezierstroke.h: New Objects: A connected
              component in a vector.
      
              * app/vectors/gimpbezier.c
              * app/vectors/gimpbezier.h: Removed, obsoleted by gimpstroke
              and gimpbezierstroke.
      
              * app/tools/gimpvectortool.c
              * app/vectors/Makefile.am
              * app/vectors/vectors-types.h
              * app/vectors/gimpanchor.h: Changed accordingly.
      
              There is a nasty bug I am yet unable to find in the tool.
              Don't use it. For some reason a wrong function instead of
              gimp_stroke_real_anchor_get_next gets called. I have *no*
              idea, whats wrong here. I stared at the code for hours.
      
              If somebody has an idea I'd appreciate a hint.
      29b80633
    • Sven Neumann's avatar
      app/gui/Makefile.am new files. A simple XML parser for the gimp-tips.xml · d7127846
      Sven Neumann authored
      2002-02-25  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/Makefile.am
      	* app/gui/tips-parser.[ch]: new files. A simple XML parser for the
      	gimp-tips.xml file.
      
      	* app/gui/tips-dialog.c: Removed old gimp_tips.txt parsing code and
      	switched to use gimp-tips.xml with the new parser. This needs some
      	more work ...
      d7127846
  4. 24 Feb, 2002 2 commits
    • Michael Natterer's avatar
      app/undo.[ch] added undo stuff for GimpVectors. · 76913601
      Michael Natterer authored
      2002-02-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo.[ch]
      	* app/undo_types.h: added undo stuff for GimpVectors.
      
      	* app/core/gimimage.c: use the new undo functions. Still unused
      	and untested.
      76913601
    • Michael Natterer's avatar
      added parasite undo groups. · ab0c8fe2
      Michael Natterer authored
      2002-02-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-types.h: added parasite undo groups.
      
      	* app/undo.c: added assertions to make undo_push_group_start()
      	accept only "UndoType" values and undo_push() only "UndoImplType".
      
      	* app/core/gimpdrawable.c: use the new undo group and don't
      	include "undo_types.h".
      ab0c8fe2
  5. 23 Feb, 2002 3 commits
    • Michael Natterer's avatar
      app/undo_types.h added new undo type IMAGE_TYPE_UNDO along with · 78317432
      Michael Natterer authored
      2002-02-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo_types.h
      	* app/undo.[ch]: added new undo type IMAGE_TYPE_UNDO along with
      	undo_push_image_type(), removed undoing the base_type from
      	IMAGE_SIZE_UNDO. Hacked the undo_names a bit.
      
      	* app/core/gimpimage-convert.c: call undo_push_image_type().
      
      	This removes lots of unneeded invalidations on type/size undo.
      78317432
    • Sven Neumann's avatar
      include undo_types.h to fix the build. · bd795672
      Sven Neumann authored
      2002-02-23  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.c: include undo_types.h to fix the build.
      bd795672
    • Michael Natterer's avatar
      General undo cleanup: · a3c3e7d3
      Michael Natterer authored
      2002-02-23  Michael Natterer  <mitch@gimp.org>
      
      	General undo cleanup:
      
      	* app/undo.[ch]: made all undo structs private. Changed all
      	undo_push_foo() functions to take useful parameters instead of
      	"gpointer foo_ptr" and create the undo structs internally.
      	Renamed lots of functions so they are more self-explanatory
      	(like undo_push_gimage_mod -> undo_push_image_size). Added some
      	undo functions (channel reordering is undoable now).  Never pass
      	in a UndoType, as they are reseved for groups now (see below).
      	Lots of cleanup and stuff...
      
      	* app/undo_types.h: is a private header now which defines "enum
      	UndoImplType" which is reserved for actual undo operations.
      	All enum values are named "FOO_UNDO".
      
      	* app/core/core-types.h: added the "UndoType" enum here and don't
      	include "undo_types.h" any more. The UndoType values are all
      	named "FOO_UNDO_GROUP" and are reserved for undo groups.
      
      	The ID space of actual undo operations and undo groups
      	is now strictly disjunct.
      
      	* app/core/gimpchannel.h
      	* app/core/gimpimage.h
      	* app/core/gimplayer.h
      	* app/core/gimplayermask.h
      	* app/paint/gimppaintcore.h
      	* app/tools/gimptransformtool.h: removed undo stuct definitions.
      
      	* app/undo_history.c
      	* app/path_transform.h
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/undo.pdb: changed accordingly.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      
      	* app/core/gimpimage.[ch]: added infrastructure for holding a
      	GimpList of GimpVectors objects. The API is the same as for layers
      	and channels. Not used yet.
      a3c3e7d3
  6. 22 Feb, 2002 3 commits
    • Michael Natterer's avatar
      app/Makefile.am removed... · ac0c4af0
      Michael Natterer authored
      2002-02-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpprogress.[ch]: removed...
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: ...and added here. Prefixed
      	everything with "gimp_".
      
      	* app/gui/image-commands.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      ac0c4af0
    • Michael Natterer's avatar
      app/vectors/Makefile removed. · a4550e9c
      Michael Natterer authored
      2002-02-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/Makefile
      	* app/vectors/Makefile.in: removed.
      a4550e9c
    • Simon Budig's avatar
      app/vectors/Makefile app/vectors/Makefile.am app/vectors/Makefile.in · a7fcc25f
      Simon Budig authored
      2002-02-22  Simon Budig  <simon@gimp.org>
      
              * app/vectors/Makefile
              * app/vectors/Makefile.am
              * app/vectors/Makefile.in
              * app/vectors/gimpanchor.h
              * app/vectors/gimpbezier.c
              * app/vectors/gimpbezier.h
              * app/vectors/gimpvectors.c
              * app/vectors/gimpvectors.h
              * app/vectors/vectors-types.h: new files, the beginning
              of a new vector infrastructure for gimp.
      
              * configure.in
              * app/Makefile.am
              * app/core/core-types.h: changed accordingly.
      
              * app/tools/Makefile.am
              * app/tools/gimpvectortool.c
              * app/tools/gimpvectortool.h
              * app/tools/tools.c: New tool without practical use (yet),
              using the new infrastructure.
      
              to be continued...
      a7fcc25f
  7. 21 Feb, 2002 4 commits
    • Michael Natterer's avatar
      app/Makefile.am removed... · 9f9fa587
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/floating_sel.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/gimplayer-floating-sel.[ch]: ...and added here.
      
      	* app/undo.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* plug-ins/tools/common/gimpbrushselecttool.c
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed includes accordingly.
      
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/layer_cmds.c: regenerated.
      9f9fa587
    • Michael Natterer's avatar
      Made the paint tool PDB wrappers work again (a bit at least...) · 9c510759
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	Made the paint tool PDB wrappers work again (a bit at least...)
      
      	* app/Makefile.am: changed linking order. libtool sucks.
      
      	* app/undo.c: check if active_tool is a GimpPaintTool before
      	casting it.
      
      	* app/paint/Makefile.am
      	* app/paint/paint-types.h: added new files/types.
      
      	* app/paint/gimppaintoptions.[ch]: new files cut out of
      	tools/paint_options.h. Prefixed everything with "Gimp". There is
      	still GtkWidget* cruft hanging around in the structs...
      
      	* app/paint/gimppaintcore-stroke.[ch]: utility function
      	which paints a stroke array. Needed for the PDB wrappers.
      
      	* 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.[ch]
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.[ch]: added *_options_new() functions which
      	create correctly initialized options structures without widgets.
      
      	* app/tools/paint_options.[ch]: removed the options struct
      	definitions and value initialisations.
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpsmudgetool.c: changed all paint_options functions
      	accordingly, s/PaintOptions/GimpPaintOptions/g etc., removed all
      	#if 0'ed non_gui functions.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: use gimp_paint_core_stroke().
      	We currently leak all paint_options structs created by the PDB
      	wrappers, more stuff to come...
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      9c510759
    • Michael Natterer's avatar
      Implemented #66921 (needs gimp-*-refresh in PDB) · 41e2a325
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	Implemented #66921 (needs gimp-*-refresh in PDB)
      
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/patterns.pdb: added gimp_*_refresh() procedures.
      
      	* tools/pdbgen/pdb/palette.pdb: typo: s/patterns/palettes/
      
      	* app/pdb/gradients_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/patterns_cmds.c
      	* libgimp/gimpgradients_pdb.[ch]
      	* libgimp/gimppalette_pdb.c: regenerated.
      41e2a325
    • Michael Natterer's avatar
      return the corrent value in g_retuen_val_if_fail(). · 5153abaf
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpdrawtool.c: return the corrent value in
      	g_retuen_val_if_fail().
      
      	* app/tools/gimppainttool.c: removed some more painting logic...
      
      	* app/paint/gimppaintcore.[ch]: ...and added it here so the PDB
      	wrappers can use it too. Added "gboolean use_pressure" which needs
      	to be set by GimpPaintTool so we don't need access to GdkDevices.
      5153abaf
  8. 20 Feb, 2002 3 commits
    • Michael Natterer's avatar
      Implemented #7100 (initialize layer mask with a copy of the image) · bc7c7f32
      Michael Natterer authored
      2002-02-20  Michael Natterer  <mitch@gimp.org>
      
      	Implemented #7100 (initialize layer mask with a copy of the image)
      
      	* app/core/core-types.h: added ADD_COPY_MASK and ADD_INV_COPY_MASK
      	enum values.
      
      	* app/pdb/layer_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/core/gimplayer.c (gimp_layer_create_mask): implement
      	the new layer mask add modes.
      
      	* app/gui/layers-commands.c (layers_add_mask_query): added radio
      	buttons for the new modes.
      
      	* app/paint-funcs/paint-funcs.c (flatten_region): this function
      	was never needed so nobody noticed that it never worked. Fixed now.
      
      	* app/undo.c
      	* app/core/gimplayermask.h
      	* app/core/gimpimage.c: the "mode" field of LayerMaskUndo is
      	obsolete since some earlier 1.3 layer mask change. Removed it.
      	(Makes mask undos work again)
      bc7c7f32
    • Michael Natterer's avatar
      Implemented #10125 ("quick" colour picker does not honour "sample merged") · a49635e2
      Michael Natterer authored
      2002-02-20  Michael Natterer  <mitch@gimp.org>
      
      	Implemented #10125 ("quick" colour picker does not honour
      	"sample merged")
      
      	* app/tools/gimpcolorpickertool.[ch]: made definition of
      	GimpColorPickerToolOptions public.
      
      	* app/tools/gimppainttool.c: get the color picker's tool_options
      	and pick colors accordingly. Also draw a rectangle for
      	"sample_average".
      a49635e2
    • Michael Natterer's avatar
      Oops, yesterday's "fix" for #10466 made it even worse :) · ad067c73
      Michael Natterer authored
      2002-02-20  Michael Natterer  <mitch@gimp.org>
      
      	Oops, yesterday's "fix" for #10466 made it even worse :)
      
      	* app/core/gimpdrawable-transform.c: need the 0.5 offset to
      	the pixel's center only for INTERPOLATION_NONE, as the LINEAR
      	and CUBIC algorithms already know about their errors.
      
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c: some more s/gint/gdouble/ so the
      	tools can detect pointer motions again...
      ad067c73
  9. 19 Feb, 2002 1 commit
    • Michael Natterer's avatar
      Fixed #10466 (disappearing pixels when rotating by 90 deg): · 8d0af04c
      Michael Natterer authored
      2002-02-19  Michael Natterer  <mitch@gimp.org>
      
      	Fixed #10466 (disappearing pixels when rotating by 90 deg):
      
      	* app/core/gimpdrawable-transform.c: when transforming backwards
      	to find the destination line's sub-pixel source coordinates, we
      	need to transform the pixels _center_, not it's upper left corner.
      
      	* app/core/gimpdrawable-transform-utils.[ch]: added
      	gimp_drawable_transform_matrix_rotate_center() which takes double
      	center coordinates instead of an integer pixel bounding box.
      
      	* app/tools/gimptransformtool.[ch]: use double instead of int for
      	all coordinates except the original bounding box.
      
      	* app/tools/gimprotatetool.c: use double whenever touching the
      	"center" value, so it can be sub-pixel positioned.
      8d0af04c
  10. 18 Feb, 2002 2 commits
    • Sven Neumann's avatar
      removed INIT_LOCALE() macro. Error out if config.h wasn't included before. · d3f6ad09
      Sven Neumann authored
      2002-02-18  Sven Neumann  <sven@gimp.org>
      
      	* libgimp/gimpintl.h: removed INIT_LOCALE() macro. Error out if
      	config.h wasn't included before.
      
      	* app/main.c: directly call the appropriate functions to set up I18N.
      
      	* libgimp/libgimp-intl.h: error out if config.h wasn't included.
      
      	* plug-ins/script-fu/script-fu-intl.h: set codeset to UTF-8.
      d3f6ad09
    • Michael Natterer's avatar
      app/tools/tools-types.h chain up unconditionally in control(), · bec4c725
      Michael Natterer authored
      2002-02-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-types.h
      	* app/tools/*.[ch]: chain up unconditionally in control(),
      	s/ToolAction/GimpToolAction/g, s/ToolState/GimpToolState/g.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c: don't touch tool->paused_count
      	(setting it to 0 was a hack which should no longer be needed).
      
      	* app/tools/gimpdrawtool.c: check if the draw tool has actually
      	been started (draw_tool->gdisp != NULL) before calling it's
      	draw() function.
      
      	* app/tools/tool_manager.c: simplified tool_manager_control_active():
      	simply call gimp_tool_control() if gdisp == tool->gdisp.
      
      	* app/tools/gimptool.[ch]: gimp_tool_control(): do all the PAUSE,
      	RESUME and HALT voodoo here.
      
      	* app/tools/gimppainttool.c: implemented #9902 (Drawing straight
      	lines does not work between different views). It's an evil hack,
      	but clearly marked in the source.
      bec4c725