Commit Graph

338 Commits

Author SHA1 Message Date
Sven Neumann 31331996fa fun with gradient_length and fade_out
--Sven & Jtl
1999-09-25 19:49:58 +00:00
Asbjørn Pettersen 3ede4b4487 add sys/types.h to skip warn. 1999-09-24 15:15:17 +00:00
Sven Neumann 48e8fa0141 Update from the registry.
--Sven
1999-09-21 13:11:00 +00:00
Nick Lamb /GIMP 6e6ede4456 Mac and PC can be friends :)
PC vs Mac radio buttons removed from dialog. Trust me.
1999-09-20 18:00:06 +00:00
Tomas Ogren 39b651a549 "u_long" isn't portable at all..
1999-09-18  Tomas Ogren  <stric@ing.umu.se>

* plug-ins/common/tiff.c: "u_long" isn't portable at all..
1999-09-18 01:22:29 +00:00
Nick Lamb /GIMP 8bc75810ae Update to version supporting 16-bit (truncated of course)
and Tiled TIFF familes.
1999-09-17 22:28:25 +00:00
Tor Lillqvist e422b59e59 Include config.h, guard inclusion of <unistd.h>.
1999-09-14  Tor Lillqvist  <tml@iki.fi>

* app/brush_select.c: Include config.h, guard inclusion of
<unistd.h>.

* app/gimpcontextpreview.c: Include config.h, <string.h> and
appenv.h.

* app/xinput_airbrush.c: Include config.h, <stdio.h>, appenv.h and
libgimp/gimpmath.h. Use G_PI.

* app/makefile.{cygwin,msc}: Updates.

* plug-ins/makefile.{cygwin,msc}: Add the unofficial sel_gauss
plug-in. Add new object files for FractalExplorer and
gimpressionist.

* plug-ins/common/iwarp.c (iwarp_deform): Combine two loops over
the same xi, yi area into one. Remove the then actually unused
deform_area_vectors array. Only one element of the array was used
for each x,yi loop.

* plug-ins/common/sparkle.c: Don't include <math.h>,
libgimp/gimpmath.h includes it. Use G_PI.
1999-09-14 21:20:04 +00:00
Manish Singh 2139d2b4ab plug-ins/gfli/fli.[ch] applied gimp-narazaki-990914-0, fixes bogus magic
* plug-ins/gfli/fli.[ch]
* plug-ins/gfli/gfli.c: applied gimp-narazaki-990914-0, fixes bogus
magic settings and noninteractive pdb

* plug-ins/common/ps.c: resolution info patch

-Yosh
1999-09-14 20:54:02 +00:00
Manish Singh 4555202ace don't use wacky binary modifiers to popen when !__EMX__
-Yosh
1999-09-14 20:16:36 +00:00
Sven Neumann 5a8eb56643 bug-fixing...
--Sven
1999-09-13 11:03:37 +00:00
Nick Lamb /GIMP 7633468a5f Update info structures after doing transformations, thus fixing bug
Also stopped applying sBIT. Scream if this hurts you :)
1999-09-13 00:57:52 +00:00
Manish Singh 3ce38aa009 another XachPatch (TM) to fix revert and urls
-Yosh
1999-09-11 23:45:57 +00:00
Vidar Madsen/gimpressionist fd8ba1f051 Added load/save + better alpha support + minor dialog layout changes
* plug-ins/common/spheredesigner.c: Added load/save +
better alpha support + minor dialog layout changes
1999-09-11 19:56:18 +00:00
EDT 1999 Austin Donnelly 1fdfba91b8 cheesy fix for INDEXEDA core dump: popup a window saying we can't handle
Fri Sep 10 18:36:34 EDT 1999  Austin Donnelly  <austin@gimp.org>

	* plug-ins/common/png.c: cheesy fix for INDEXEDA core dump: popup
	    a window saying we can't handle it.  We should really handle
	    it though.
1999-09-10 22:36:56 +00:00
Manish Singh 27acb4fa78 i18n buglet fix
-Yosh
1999-09-09 22:59:04 +00:00
Vidar Madsen/gimpressionist 6439161e80 Various fixes/enhancements
* plug-ins/common/spheredesigner.c: Various fixes/enhancements

	* plug-ins/gimpressionist/Makefile.am
        * plug-ins/gimpressionist/ChangeLog
        * plug-ins/gimpressionist/*.[ch]: Added Color options (new file color.c)
1999-09-09 20:28:34 +00:00
Manish Singh 322627964d (from gimp-narazaki-990909-0)
* app/layers_dialog.c: check for layer validity in
layer_widget_preview_events

* app/lc_dialog.c: remove GIMP_IMAGE() cast from the
menu_preview_update callback like the comment says to

(from gimp-yasuhiro-990907-0)

* app/menus.c
* plug-ins/common/autocrop.c
* plug-ins/common/c_astretch.c
* plug-ins/common/color_enhance.c
* plug-ins/common/guillotine.c
* plug-ins/common/normalize.c
* plug-ins/common/rotate.c
* plug-ins/common/rotators.c
* plug-ins/common/spheredesigner.c
* plug-ins/common/threshold_alpha.c
* plug-ins/common/zealouscrop.c: i18n markings

-Yosh
1999-09-09 07:09:33 +00:00
Marc Lehmann 698988c9f5 *** empty log message *** 1999-09-07 21:05:07 +00:00
Marc Lehmann 09e5838351 *** empty log message *** 1999-09-06 21:38:35 +00:00
Vidar Madsen/gimpressionist 0e5bf7222a Added configurable light-sources + reset to default settings.
* plug-ins/common/spheredesigner.c: Added configurable
light-sources + reset to default settings.
1999-09-05 01:49:02 +00:00
Manish Singh cd70fa440e autogen .cvsignore
-Yosh
1999-09-04 06:19:46 +00:00
Vidar Madsen/gimpressionist 8b586d785f Various fixes and enhancements, most notable "run-with-last-vals".
* plug-ins/common/spheredesigner.c: Various fixes and
enhancements, most notable "run-with-last-vals".
1999-09-04 02:38:46 +00:00
Manish Singh 61121b7702 add plug-ins/AlienMap2/Makefile to AC_OUTPUT
* configure.in: add plug-ins/AlienMap2/Makefile to AC_OUTPUT

* libgimp/gimp.c: setlocale (LC_NUMERIC, "C") in gimp_main
so floats are sane over the wire

* libgimp/stdplugins-intl.h: same for INIT_I18N_UI()

* plug-ins/common/color_enhance.c: no literal newlines in string for
portability

* plug-ins/sel2path/sel2path.c: i18n patch from SHIRASAKI Yasuhiro

-Yosh
1999-09-04 00:39:05 +00:00
Marc Lehmann 625df2ac59 *** empty log message *** 1999-09-03 23:14:44 +00:00
Tor Lillqvist 5475ff08a9 New files. Types and functions related to "standard" parasite types. Used
1999-09-02  Tor Lillqvist  <tml@iki.fi>

* libgimp/parasiteio.[ch]: New files. Types and functions related
to "standard" parasite types. Used for the
gimp-brush-pipe-parameters parasite that the gpb and psp plug-ins
handle, and the value of which is stored in gih files, from
which gimpbrushpipe.c parses it.

* libgimp/{Makefile.am,makefile.{cygwin,msc}}: Add new files.

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

* libgimp/gimp.h: Fix cosmetic argument name error.

* app/gimpbrushpipe.c: Remove code that previously
was copied here, use functions from parasiteio.c.

* plug-ins/common/gpb.c: Ditto. Add brush cell width and height
fields to the gih save dialog. Add cleverness to update rows and
columns as cell size is changes. (Still too easy for the user to
get confused, though.) Display corresponding guide grid on the
image. Unfortunately updating the guidelines doesn't seem to work.

* plug-ins/common/psp.c: Use functions from parasiteio.c.
1999-09-02 00:01:41 +00:00
Tor Lillqvist 6ef23d984f app/appenv.h New file. Includes <math.h>. Move G_PI, RINT(), ROUND() etc
1999-09-01  Tor Lillqvist  <tml@iki.fi>

* app/appenv.h
* libgimp/gimpmath.h: New file. Includes <math.h>. Move G_PI,
RINT(), ROUND() etc from app/appenv.h here, so plug-ins can
use them, too. Remove some commented-out old stuff in appenv.h.

* libgimp/gimp.h: Include gimpmath.h.

* libgimp/gimp.c (gimp_main): Win32: Don't install signal
handlers, we can't do anything useful in the handler ourselves
anyway (it would be nice to print out a backtrace, but that seems
pretty hard to do, even if not impossible). Let Windows inform the
user about the crash. If the plug-in was compiled with MSVC, and
the user also has it, she is offered a chance to start the
debugger automatically anyway.

* app/*several*.c: Include gimpmath.h for G_PI etc. Don't include
<math.h>, as gimpmath.h includes it.

* plug-ins/*/*many*.c: Include config.h. Don't include <math.h>.
Remove all the duplicated definitions of G_PI and rint(). Use
RINT() instead of rint().

* app/app_procs.[ch]: app_exit() takes a gboolean.

* app/batch.c
* app/commands.c
* app/interface.c: Call app_exit() with FALSE or TRUE.

* app/main.c (on_error): Call gimp_fatal_error. (main): Don't
install any signal handler on Win32 here, either.

* app/errors.c (gimp_fatal_error, gimp_terminate): Win32: Format
the message and call MessageBox with it.  g_on_error_query doesn't
do anything useful on Win32, and printf'ing a message to stdout or
stderr doesn't do anything, either, in a windowing application.
1999-09-01 20:30:56 +00:00
Sven Neumann 53af3d104a hopefully this helps tigert, but I doubt it ...
--Sven
1999-09-01 19:09:52 +00:00
Tor Lillqvist 6a71208875 Use _O_TEMPORARY. Removed #ifdef, instead define the Win32-only _O_BINARY
1999-09-01  Tor Lillqvist  <tml@iki.fi>

* app/tile_swap.c (tile_swap_open): Use _O_TEMPORARY. Removed
#ifdef, instead define the Win32-only _O_BINARY and _O_TEMPORARY
as zero if not defined.

* plug-ins/common/spheredesigner.c: Include config.h (#if
HAVE_CONFIG_H). RAND_FUNC and SRAND_FUNC are defined in that.
1999-09-01 04:27:30 +00:00
Manish Singh 581834dddb shut up cvs
-Yosh
1999-09-01 03:20:50 +00:00
Vidar Madsen/gimpressionist 01e27f730a Various fixes and enhancements.
* plug-ins/common/spheredesigner.c: Various fixes and enhancements.
1999-08-31 22:21:43 +00:00
Adam D. Moss c79365b3df remove workaround 1999-08-31 19:40:00 +00:00
Manish Singh 9d6bc8417e plug-ins/common/Makefile.am added note about autogeneration to the
* plug-ins/common/Makefile.am
* plug-ins/common/mkgen.pl: added note about autogeneration to
the generated Makefile.am

* plug-ins/common/plugin-defs.pl: added spheredesigner

-Yosh
1999-08-31 17:55:03 +00:00
Tor Lillqvist 2eafd14351 Minor portability fixes.
1999-08-31  Tor Lillqvist  <tml@iki.fi>

* plug-ins/common/spheredesigner.c: Minor portability fixes.

* plug-ins/makefile.{cygwin,msc}: Add spheredesigner.
1999-08-31 16:49:46 +00:00
Vidar Madsen/gimpressionist 0b52355fda plug-ins/common/Makefile.am Added the SphereDesigner plugin.
* plug-ins/common/Makefile.am
* plug-ins/common/spheredesigner.c: Added the SphereDesigner plugin.
1999-08-31 12:29:09 +00:00
Asbjørn Pettersen 10a170fc77 add include file 1999-08-29 18:41:56 +00:00
Adam D. Moss 193a9ac3c8 default comment is now NULL. 1999-08-29 17:43:35 +00:00
Manish Singh ccf7f01085 use INIT_I18N_UI ()
-Yosh
1999-08-28 19:23:22 +00:00
Tor Lillqvist 3e2ef66809 Put in a workaround for the problem with plug-ins on NT and W2K, where
1999-08-28  Tor Lillqvist  <tml@iki.fi>

* libgimp/gimp.c (gimp_main): Put in a workaround for the problem
with plug-ins on NT and W2K, where installing the GIMP under a
directory path with spaces (\Program Files\GIMP) would cause the
plug-ins to malfunction. Turns out the argv gets set up by the C
runtime incorrectly in such a case, the path name of the
executable is split at the spaces. The workaround is to splice
argv[0] together from the pieces again, shifting the rest of argv
down.

* app/plug_in.c (plug_in_open): Correct (harmless) typo in the
Win32 code.

* plug-ins/common/winclipboard.c: Put the pasting of a new image
under File/Acquire.
1999-08-28 17:00:33 +00:00
Tor Lillqvist 34f76ba34a In the case of angular selection, offset angle with G_PI/2 to be
1999-08-28  Tor Lillqvist  <tml@iki.fi>

* app/gimpbrushpipe.c (gimp_brush_pixmap_select_brush): In the
case of angular selection, offset angle with G_PI/2 to be
compatible with PSP tubes. Restrict the index of each dimension
separately to the appropriate range.

* plug-ins/common/gpb.c (gih_save_dialog): Must not free the combo
box string list, the strings are not strdup'ed by the combo box.
1999-08-28 11:23:58 +00:00
Tor Lillqvist 70fca093f3 Implement the selection of brush based on cursor direction, pressure,
1999-08-28  Tor Lillqvist  <tml@iki.fi>

* app/gimpbrushpipe.c: Implement the selection of brush based on
cursor direction, pressure, tilt, or a random value. (Hmm, forgot
velocity, later.) (In addition to just incrementally stepping.)
Read the brush pipe parameters from the gih file's second line.
There is no way to tune the parameters in the GIMP, they must
currently be set when saving the gih file (in the gpb plug-in).

* app/gimpbrushpipe.h
* app/gimpbrushpipeP.h: Move the PipeSelectModes enum to the
"private" header. Add a stride array to GimpBrushPipe to make
indexing easier.

* plug-ins/common/gpb.c: Add selection mode fields to the dialog.
Attach the pipe parameters entered as a parasite, too.

* docs/parasites.txt
* plug-ins/common/psp.c: Use "placement", not "spacing" (which
means another thing).
1999-08-28 01:14:42 +00:00
Tor Lillqvist 191eaa7036 A few more lines about the pipe parameters parasite. Related change to
the psp plug-in.
1999-08-27 06:25:22 +00:00
Tor Lillqvist 19d47775a3 Add Acquire under the File menu.
1999-08-27  Tor Lillqvist  <tml@iki.fi>

* app/menus.c: Add Acquire under the File menu.

* plug-ins/twain: New (Windows-only) plug-in. Interface to TWAIN
image sources. Written by Craig Setera.

* plug-ins/Makefile.am: Add twain sources to EXTRA_DIST.

* plug-ins/makefile.{cygwin,msc}: Move gimpressionist and twain
around as they are in this directory now.

* plug-ins/common/screenshot.c
* plug-ins/winsnap/winsnap.c
* plug-ins/twain/twain.c: Put them under File/Acquire.
1999-08-26 23:49:39 +00:00
Tor Lillqvist 387002c04b Add a flags field and corresponding type ToolFlags to PaintCore. The only
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
brushes).

* 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.
1999-08-26 21:33:58 +00:00
Tor Lillqvist 868bdfff44 Overhaul of pixmap brushes and pipes: No separate pixmap pipe
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.
1999-08-26 00:54:30 +00:00
Manish Singh 3cf62e52d4 shut up cvs
-Yosh
1999-08-26 00:50:39 +00:00
Manish Singh c1ca8b13ac Makefile.am configure.in install a gimpinstall script (basically
* Makefile.am
* configure.in
* gimptool.in: install a gimpinstall script (basically install-sh)
for platforms without an install tool

* plug-ins/common/csource.c: correct some gccisms

* plug-ins/unsharp/dialog_f.c
* plug-ins/unsharp/dialog_i.c
* plug-ins/unsharp/unsharp.c: // IS NOT A VALID C COMMENT

-Yosh
1999-08-26 00:31:37 +00:00
Manish Singh 93413604a1 more i18n fixes (missed a patch from before)
* app/gdisplay.c: more i18n fixes (missed a patch from before)

* plug-ins/common/plugin-defs.pl
* plug-ins/common/Makefile.am: added gpb

-Yosh
1999-08-25 19:18:41 +00:00
Manish Singh 3423edf7eb big i18n fix patch from SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp>. Fixes
those pesky menu problems

-Yosh
1999-08-24 19:57:55 +00:00
Sven Neumann 8e93d2d347 use real-life units
--Sven
1999-08-24 18:36:38 +00:00
Tor Lillqvist 416aa56f19 Added saving of .gih files.
1999-08-24  Tor Lillqvist  <tml@iki.fi>

* plug-ins/common/gpb.c: Added saving of .gih files.

* plug-ins/common/psp.c: Small changes, renamed the parasite.

* docs/parasites.txt: Suggesta a parasite for pixmap brush pipes.

* docs/gih.txt: Add the above parasite on the second line after
the number of brushes. Suggest how to edit brush pipes.

* docs/gpb.txt: Mention the gpb plug-in.

* app/pixmapbrush.c: Small clarification.

Fixes by Hans Breuer:

* libgimp/gimp.def: Add missing entries.

* app/gimpimage.h: Added declaration of	gimp_image_{freeze,thaw}_undo.

* modules/makefile.msc: Drop the .msvc from dll names.

* plug-ins/common/jpeg.c: Guard inclusion of
unistd.h. (save_dialog): Restrict text box height to help people
with small displays.
1999-08-24 05:30:14 +00:00