Commit Graph

2121 Commits

Author SHA1 Message Date
EDT 1999 Austin Donnelly 0a7dca9110 Dirty flag now correct in all cases. Can be displayed in image window
Mon Aug 23 10:15:32 EDT 1999  Austin Donnelly  <austin@gimp.org>

	Dirty flag now correct in all cases.  Can be displayed in image
	window title too.  See NOTE near gimp_image_dirty() for details.

	* app/fileops.c: gimp_image_clean_all() after reverting an image.
	* app/gdisplay.c: register handlers for gimage dirty and clean
	    signals to update image title.  New image-title-format
	    expansion: %Dx expands to x if the image is dirty.
	* app/gdisplay_ops.c: gimage->dirty flags != 0 is the correct
	    condition to test to see if an image is dirty.
	* app/gimpdrawable.c: gimp_image_dirty() should never be called
	    except from an undo_push_* function.  Call
	    undo_push_cantundo() if you want to dirty the image but can't
	    be bothered writing an undo handler (be ashamed of yourself!).
	* app/gimpimage.c: new gimage signal: clean.  Emitted when an undo
	    operation takes place.  Gimage changes when either dirty or
	    clean is emitted, so if you need to update previews etc, look
	    for both!  Move group_count into gimage structure, since
	    leaving it as a static in undo.c is bad if two undo groups are
	    started on different images at the same time.  More changes
	    of gimp_image_dirty() to undo_push_cantundo()
	    (parasite-related, plus layer moves).  See the NOTE on dirty
	    counter near gimp_image_dirty() for the full story.
	    gimp_image_dirty() and gimp_image_clean() simplified - counter
	    can go negative.
	* app/gimpimageP.h: group_count moved from undo.c
	* app/layers_dialog.c: push undo for layer name change, rather
	    than dirtying the image.
	* app/undo.c: layer rename undo functions
	    added. undo_push_cantundo() convenience functions added.
	    group_count made per-gimage since everything else is.  When
	    blowing away redo stack, make image infinitely dirty if redo
	    info contained file save point.
	* app/undo.h: added undo_push_layer_rename() and
	    undo_push_cantundo().
	* TODO: added idea for undo history window.
1999-08-23 14:34:58 +00:00
Michael Natterer ef4cb06bb7 export bucket_fill_region().
1999-08-23  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/bucket_fill.[ch]: export bucket_fill_region().

	* app/channels_dialog.c: enabled dropping a color to a channel.

	* app/color_area.c
	* app/color_panel.c
	* app/gimpdnd.[ch]: the whole color dnd is now done in a generic
	function in gimpdnd.c (dnd of other types is still hacked in at
	various places but will go to generic functions and callbacks as
	well).

	* app/disp_callbacks.[ch]
	* app/interface.c: drop a color to the display to bucket fill the
	selected region.
1999-08-23 14:19:26 +00:00
jaycox 5f2d497b40 fixed a couple of bugs in the scale_region code.
* app/paint_funcs.c: fixed a couple of bugs in the scale_region code.
1999-08-23 09:23:24 +00:00
EDT 1999 Adrian Likins 5c61305f24 app/gimpbrushhose.c removed. app/gimpbrushpipe.c New files to replace the
Mon Aug 23 00:56:59 EDT 1999 Adrian Likins <alikins@redhat.com>

        * app/gimpbrushhose.c
        * app/gimpbrushhose.h:
                removed.
        * app/gimpbrushpipe.c
        * app/gimpbrushpipe.h:
                New files to replace the above
        * app/gimpbrushlist.c
        * app/paintbrush.c
        * app/pixmapbrush.c
        * app/Makefile.am:
                s/hose/pipe. Seems someone else uses that name,
        so change it to pipe.

        * app/gimpbrush.c
        * app/gimpbrush.h
        * app/gimpbrushpixmap.c
        * app/patterns.c
        * app/patterns.h
        * app/pixmapbrush.c:
                Added functions to do the actual loading of
        brush/pattern data. Use them where approriate instead
        of cut&pasting the same code all over the place.

        * app/pixmapbrush.c: Fix the bug where masks and brush
        data werent aligned. I didnt quite notice that
        paint_core_get_paint_area returns an area with a 1 pixel
        border larger than the brush. Ooops.

        * TODO: just update a few things while I'm at it
        (pixmap/pipe stuff in particular)
1999-08-23 06:06:12 +00:00
Yukihiro Nakai 3f00c01bd5 ja.po: Update from Shirasaki Yasuhiro
ja.po: Update from Shirasaki Yasuhiro
1999-08-23 02:11:19 +00:00
Manish Singh 394097bc31 vestigal
-Yosh
1999-08-23 01:37:43 +00:00
Manish Singh 4ac47cdd86 add check for zlib for building psp plugin
* configure.in: add check for zlib for building psp plugin

* plug-ins/common/mkgen.pl
* plug-ins/common/plugin-defs.pl
* plug-ins/common/Makefile.am: add psp plugin

* plug-ins/common/mail.c: removed double gimp_destroy_params, fixing
a segfault

-Yosh
1999-08-22 22:51:31 +00:00
Tor Lillqvist 52e705c4dd Set PSP_DEBUG to zero.
Save the settings, too, in gpb.c.
1999-08-22 20:08:15 +00:00
Tor Lillqvist 7a56ef950d Use g_message, not gimp_message. g_message calls gimp_message eventually.
1999-08-22  Tor Lillqvist  <tml@iki.fi>

* plug-ins/common/psp.c: Use g_message, not gimp_message.
g_message calls gimp_message eventually.

* plug-ins/common/gpb.c: New plug-in for saving Adrian's gpb files
(pixmap brushes) from an RGBA image. Probably just of temporary
value.

* plug-ins/makefile.{cygwin,msc}: Add it.

* plug-ins/common/gbr.c: Use g_message instead of printf.

* app/makefile.{cygwin,msc}: Comment out the gcg stuff here,
too. Remove frac.o.
1999-08-22 19:02:52 +00:00
Michael Natterer 1e08aa1ef7 app/color_area.[ch] app/color_panel.[ch] enabled dnd for colors
1999-08-22  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/color_area.[ch]
	* app/color_panel.[ch]
	* app/gimpdnd.[ch]: enabled dnd for colors (compatible with the
	standard gtk/gnome color dnd). The color selection is now invoked
	on a real click, not on button_down to avoid confusion with dnd.

	* app/channels_dialog.c
	* app/disp_callbacks.c
	* app/interface.c
	* app/layers_dialog.c: minor dnd updates/fixes.

	* app/channel.[ch]
	* app/channel_pvt.h
	* app/docindex.[ch]
	* app/docindexif.[ch]
	* app/drawable.[ch]
	* app/floating_sel.c
	* app/gimage.[ch]
	* app/gimage_mask.c
	* app/gimpdrawable.[ch]
	* app/gimpdrawableP.h
	* app/gimpimage.[ch]
	* app/gimpimageP.h
	* app/layer.[ch]
	* app/layer_pvt.h
	* app/undo.c
	* app/xcf.c: wanted to do some s/int/gboolean/ in the layer files
	where appropriate and found myself spending the whole night doing
	a big code review for layers/channels/drawables/images:
	s/int/gboolean/, s/<type>/g<type>/, lots of indentation, removed
	some old global variables and deprecated functions, #include
	cleanups, proper prototypes, copyright headers, ...
1999-08-22 11:45:31 +00:00
Tomas Ogren 51f7bf2386 app/bucket_fill.c app/clone.c app/convolve.c app/flip_tool.c app/measure.c
1999-08-22  Tomas Ogren  <stric@ing.umu.se>

* app/bucket_fill.c
* app/clone.c
* app/convolve.c
* app/flip_tool.c
* app/measure.c
* app/pixmapbrush.c: i18n fixes
1999-08-22 05:56:27 +00:00
Tomas Ogren a27dcf473a Updated
1999-08-22  Tomas Ogren  <stric@ing.umu.se>

* sv.po: Updated
1999-08-22 02:22:02 +00:00
Tor Lillqvist 5d2714b742 Handle the tube block, too. Save tube (image hose) parameters in a
* plug-ins/common/psp.c: Handle the tube block, too. Save tube
(image hose) parameters in a parasite. Yet-to-be-written code
that creates a .gih file (or something better) can get them
from there.

Actually attach the comment parasite.

Must set layer offset after adding it to the image.
1999-08-22 01:54:06 +00:00
Tomas Ogren cdad1e0164 Remember kids, "Options" is spelled "Options", not "Ootions"
1999-08-22  Tomas Ogren  <stric@ing.umu.se>

* app/tool_options.c: Remember kids, "Options" is spelled "Options",
not "Ootions"
1999-08-22 01:40:36 +00:00
Tor Lillqvist 32879bafe3 Use spinbutton for number of colours.
1999-08-22  Tor Lillqvist  <tml@iki.fi>

* app/convert.c: Use spinbutton for number of colours.

* app/preferences_dialog.h: Export gimp_spin_button_new. Not the
most logical place for it, though.
1999-08-22 00:56:18 +00:00
Manish Singh e0dc5cd9e1 version number bump
* configure.in: version number bump

* autogen.sh
* configure.in
* app/Makefile.am: comment out gcg stuff, nobody seems to be using it

* app/colormap_dialog.*: added generated files

-Yosh
1999-08-22 00:39:51 +00:00
Sven Neumann d5cc2ac5da RGB brush scaling
--Sven
1999-08-21 20:33:13 +00:00
BST 1999 Adam D. Moss 6ac43482aa Eradicated.
Sat Aug 21 20:30:48 BST 1999  Adam D. Moss  <adam@gimp.org>

	* app/frac.[ch]: Eradicated.

	* app/xcf.c: In mourning.
1999-08-21 19:42:47 +00:00
Adam D. Moss abad4162a6 Add to the PDB the right way! 1999-08-21 19:27:56 +00:00
Tor Lillqvist 10fee11e15 Improve PDB blurbs. 1999-08-21 19:08:21 +00:00
Tor Lillqvist 1c19f04c46 Also provide a Clear button.
1999-08-21  Tor Lillqvist  <tml@iki.fi>

* app/errorconsole.c: Also provide a Clear button.

* app/gimprc.c: Add a missing static function declaration.

* app/makefile.{cygwin,msc}: Add new files.

* libgimp/gimp.def: Add new entry points.

* plug-ins/common/jpeg.c: Must include glib.h first. You don't
want to know why.

* plug-ins/common/psp.c: New file. This plug-in Loads Paint Shop
Pro files (.psp and .tub). Doesn't yet save them. Handles only 24-
bit images (with or without alpha) correctly so far.

* plug-ins/makefile.{cygwin,msc}: Build psp. Somebody please add
it to the auto* build system, too. I guess a test for zlib (which it
needs) is needed in configure.in.
1999-08-21 19:00:41 +00:00
BST 1999 Adam D. Moss 2403247334 Preview layers need to be alpha-padded, since they're not on the bottom of
Sat Aug 21 16:53:17 BST 1999  Adam D. Moss  <adam@gimp.org>

	* plug-ins/common/jpeg.c:  Preview layers need to be alpha-padded,
	since they're not on the bottom of the stack.  That's a GIMP rule.

	Plus... use new API functions gimp_image_{freeze,thaw}_undo() to avoid
	the dilemma of either consuming a squillion superfluous tiles or
	clobbering the whole undo stack.

	* app/gimage.h
	* app/gimage_cmds.c
	* app/gimpimage.c
	* libgimp/gimp.h
	* libgimp/gimpimage.c: New API functions
	gimp_image_{freeze,thaw}_undo()	to avoid the above twin	evils.
	Similar to gimp_image_{disable,enable}_undo() but without
	clobbering the undo stack (I would have simply changed the latter,
	but too many plugins seem to rely on that behaviour).  See the PDB
	docs for slightly more information.
1999-08-21 16:15:58 +00:00
Tor Lillqvist 0bcaca2ff6 Now actually reads uncompressed and RLE-compressed channels. Still not
LZ77-compressed channels. And no saving yet. Hacking continues
after I've been to the sauna ;-)
1999-08-21 15:41:13 +00:00
Seth Burgess ae8333bf99 Xach's slider sensitiviity patch
Modified Files:
 	ChangeLog plug-ins/common/jpeg.c
1999-08-21 13:53:11 +00:00
Sven Neumann c53c8f4122 I promise to never say 'perfect' again...
--Sven
1999-08-21 13:16:20 +00:00
Sven Neumann b79e8e290e the measure tool is now perfect, IMO
--Sven
1999-08-21 11:30:10 +00:00
jaycox 12246d3a0e removed cubic_interpolation variable. use the interpolation_type variable
* app/gimprc.[ch]: removed cubic_interpolation variable.
	* app/transform_core.c: use the interpolation_type variable
	instead of the old cubic_interpolation variable.
1999-08-21 08:25:18 +00:00
Tor Lillqvist 5d6799eb6d Yet another intermediate version. 1999-08-21 03:06:07 +00:00
Seth Burgess 770d8cad3e Stienar Gunderson's very handy jpeg patch
Modified Files:
 	ChangeLog plug-ins/common/jpeg.c
1999-08-21 02:10:48 +00:00
BST 1999 Adam D. Moss 2d65428408 Navigation window shows checkmarked alpha, also previews correctly for
Sat Aug 21 01:06:53 BST 1999  Adam D. Moss  <adam@gimp.org>

	* app/nav_window.c: Navigation window shows checkmarked alpha,
	also previews correctly for greyscale images now.
1999-08-21 00:18:58 +00:00
Tor Lillqvist 49331fbfc0 Coding continues. Add some support for PSP format version 4.0. 1999-08-20 23:52:19 +00:00
Adam D. Moss 58d866bcde removed stdio.h inc. 1999-08-20 23:26:08 +00:00
BST 1999 Adam D. Moss 517cf3ed98 Improved pointer tracking when dragging navigator rectangle - less lag.
Sat Aug 21 00:07:37 BST 1999  Adam D. Moss  <adam@gimp.org>

	* app/nav_window.c: Improved pointer tracking when
	dragging navigator rectangle - less lag.  Enabled hourglass
	when computing first thumbnail.
1999-08-20 23:20:23 +00:00
Michael Natterer 70407d2882 app/Makefile.am new file. Contains a function which creates dnd preview
1999-08-20  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/Makefile.am
	* app/gimpdnd.c: new file. Contains a function which creates dnd
	preview icons for all kinds of drawables.

	* app/gimpdnd.h: added the new dnd types.

	* app/channels_dialog.c: same dnd functions as in the layers
	dialog. Fixed channels_dialog_flush(). Code cleanup.

	* app/layers_dialog.c: enabled dnd for layer masks.

	* app/disp_callbacks.c
	* app/interface.c: dnd code generalization. The toolbox and the
	display accept drop of any kind of drawable now.

	* app/gimage.h
	* app/gimpimage.[ch]: new function gimp_image_position_channel().

	* app/layer.[ch]: new function layer_mask_get_layer().
1999-08-20 19:59:06 +00:00
Adam D. Moss 643e8f128a Worked around an April libgimp API change which was causing probs. 1999-08-20 19:35:13 +00:00
jaycox 99111b635f added InterpolationType enum. replaced cubic_interpolation flag with
* app/apptypes.h: added InterpolationType enum.
	* app/gimprc.[ch], app/preferences_dialog.c: replaced
	cubic_interpolation flag with interpolation_type variable.

	* app/pixel_region.[ch]: added pixel_region_has_alpha function.

	* app/paint_funcs.c: rewrote scale_region.  It now behaves
	correctly on images with alpha, no longer leaves an artifact on the
	right edge of images when scailing up, and runs signifigantly
	faster.
1999-08-20 10:06:54 +00:00
Asbjørn Pettersen 6322090df3 open tips file with rt 1999-08-20 09:24:56 +00:00
Tor Lillqvist f4fe52eda3 A start of a PSP plug-in. Doesn't actually do anything useful yet,
committed already just as a safety measure in case my disk crashes...
ChangeLog entry will be written when it is ready.
1999-08-20 00:47:05 +00:00
Marc Lehmann a86617d581 see plug-ins/perl/Changes 1999-08-19 20:31:37 +00:00
Michael Natterer 311c83b0a4 app/Makefile.am new file containing the dnd data definitions.
1999-08-19  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/Makefile.am
	* app/gimpdnd.h: new file containing the dnd data definitions.

	* app/disp_callbacks.[ch]
	* app/interface.c: drop layers on the toolbox to create a new
	image and on the display to copy it to the image's layer stack.

	* app/layers_dialog.c: drop layer on the "New" button to create an
	empty layer with the dropped layer's properties, to "Duplicate" to
	duplicate it and on the trashcan to delete it.
	Thanks to Andy for the ultra-cool dnd preview pixmap patch.

	* app/layer.[ch]
	* app/undo.c: renamed layer_mask() to layer_get_mask(). Prototyped
	some function headers.

	* app/disp_callbacks.c: Wheelmouse stuff: Shift+wheel scales the
	display.

	* app/airbrush.c
	* app/eraser.c
	* app/paint_options.h
	* app/paintbrush.c
	* app/pencil.c
	* app/tool_options.c: moved the "Incremental" toggle to the
	PaintOptions structure because it is used more often now.
1999-08-19 19:53:30 +00:00
Sven Neumann e7c1e75606 support for adding guides at the handles
--Sven
1999-08-19 16:26:47 +00:00
Manish Singh 8a95c9c242 #include "channel.h" and "layer.h" for GIMP_CHANNEL, GIMP_IS_LAYER, and
* tools/pdbgen/pdb/drawable.pdb: #include "channel.h" and "layer.h"
for GIMP_CHANNEL, GIMP_IS_LAYER, and GIMP_LAYER #defines

The rest of these files are generated from the fresh pdbgen run

-Yosh
1999-08-19 06:46:50 +00:00
Adrian Likins fe6739fe1b oh yeah, the Makefile.am for the new brushes too 1999-08-19 05:25:24 +00:00
Adrian Likins 342374190e data/brushes/vine.gih new files, a sample hose and a sample pixmap brush
* data/brushes/vine.gih
        * data/brushes/pepper.gpb: new files, a sample hose
        and a sample pixmap brush

        * docs/gpb.txt
        * docs/gih.txt: vague description of the current pixmap
        brush and hose formats

        * app/gimpbrushhose.c
        * app/gimpbrushpicmap.c: use the brush spacing info now
1999-08-19 05:22:45 +00:00
Adrian Likins 311953b12c add GradientPaintMode enum move above enum use above enum
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
1999-08-19 03:51:33 +00:00
Tor Lillqvist fcf6d3acce Add apptypes.h.
* tools/pdbgen/Makefile.am: Add apptypes.h.
1999-08-18 23:56:26 +00:00
Tor Lillqvist 808a7d1717 ChangeLog for previous commit; additionally:
* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/layer.pdb: Add a few casts.
1999-08-18 23:49:31 +00:00
Tor Lillqvist f6858e21d1 Actually use the enum types GimpImageType, GimpImageBaseType,
* 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.)
1999-08-18 23:41:39 +00:00
Sven Neumann 088a9d7131 almost done with the measure tool ...
--Sven
1999-08-18 18:48:35 +00:00
Tor Lillqvist e9ae1a599b Mention where a sample .gih file can be found. 1999-08-18 00:18:16 +00:00