gimp/plug-ins/sel2path
Michael Natterer ef751a454d gimprc.in replaced "color-cube" by "min-colors".
2000-04-30  Michael Natterer  <mitch@gimp.org>

	* gimprc.in
	* app/gimprc.[ch]: replaced "color-cube" by "min-colors".

	* app/app_procs.c: read unitrc/gimprc before displaying the splash.

	* app/colormaps.c: set min_colors and install_cmap before
	initializing GdkRGB.

	* app/gimprc.[ch]
	* app/gimpunit.c: don't call the splash's progress_update function.

	* app/plug_in.c: pass min_colors instead of color_cube to plugins.

	* app/preferences_dialog.c: widget for min_colors.

	* libgimp/gimp.[ch]: s/color_cube/min_colors/ but left
	gimp_color_cube() there for source level compatibility.

	* libgimp/gimpprotocol.[ch]: changed the GPConfig message
	accordinly and increased the gimp protocol version number because
	the change breaks binary compatibility. Also actually pass the
	use_xshm variable over the wire (was only in the GPConfig struct
	before).

	Was it the right thing to do to increase the version number??

	* libgimp/gimpui.c (gimp_ui_init): use the same code as the app
	for initializing GdkRGB. Never explicitly activate Gdk's SHM
	usage (only switch it off).

	* app/main.c
	* libgimp/gimp.c: reverted the handling of all signals except
	SIGCHLD back to plain old signal() because those signals are
	fatal anyway and sigaction() as used by gimp_signal_*() made
	debugging (stacktrace) impossible.

	* plug-ins/AlienMap/AlienMap.c
	* plug-ins/AlienMap2/AlienMap2.c
	* plug-ins/FractalExplorer/Dialogs.c
	* plug-ins/bmp/bmp.c
	* plug-ins/borderaverage/borderaverage.c
	* plug-ins/dbbrowser/dbbrowser.c
	* plug-ins/faxg3/faxg3.c
	* plug-ins/fits/fits.c
	* plug-ins/flame/flame.c
	* plug-ins/fp/fp.c
	* plug-ins/fp/fp_gtk.c
	* plug-ins/gdyntext/Makefile.am
	* plug-ins/gdyntext/gdyntext_ui.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gflare/gflare.c
	* plug-ins/gfli/gfli.c
	* plug-ins/gimpressionist/gimpressionist.c
	* plug-ins/helpbrowser/helpbrowser.c
	* plug-ins/ifscompose/ifscompose.c
	* plug-ins/imagemap/Makefile.am
	* plug-ins/imagemap/imap_main.c
	* plug-ins/maze/maze_face.c
	* plug-ins/mosaic/mosaic.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/print/print.c
	* plug-ins/rcm/rcm_dialog.c
	* plug-ins/script-fu/script-fu-console.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-server.c
	* plug-ins/sel2path/Makefile.am
	* plug-ins/sel2path/sel2path.c
	* plug-ins/sgi/sgi.c
	* plug-ins/sinus/sinus.c
	* plug-ins/struc/struc.c
	* plug-ins/webbrowser/webbrowser.c
	* plug-ins/winsnap/winsnap.c
	* plug-ins/xjt/xjt.c: use gimp_ui_init().

	* plug-ins/Lighting/lighting_ui.c
	* plug-ins/MapObject/mapobject_ui.c: only switch Gdk SHM usage off,
	never on. Don't use gimp_ui_init() here because of libgck.
2000-04-30 18:17:55 +00:00
..
.cvsignore configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
bitmap.h configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
bounding-box.h configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
curve.c fixed bugs #7144 and #7139 2000-03-10 11:29:24 +00:00
curve.h configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
edge.c configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
edge.h configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
fit.c fixed bugs #7144 and #7139 2000-03-10 11:29:24 +00:00
fit.h configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
global.h removed compiler warnings 2000-01-28 13:12:50 +00:00
Makefile.am gimprc.in replaced "color-cube" by "min-colors". 2000-04-30 18:17:55 +00:00
math.c fixed bugs #7144 and #7139 2000-03-10 11:29:24 +00:00
pxl-outline.c fixed bugs #7144 and #7139 2000-03-10 11:29:24 +00:00
pxl-outline.h configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
README configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
README.limn configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
sel2path.c gimprc.in replaced "color-cube" by "min-colors". 2000-04-30 18:17:55 +00:00
sel2path.h configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
sel2path_adv_dialog.c configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
spline.c fixed bugs #7144 and #7139 2000-03-10 11:29:24 +00:00
spline.h configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
types.h configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00
vector.c removed compiler warnings 2000-01-28 13:12:50 +00:00
vector.h configure.in plug-ins/Makefile.am plug-ins/sel2path/* <- New directory 1999-07-09 21:52:00 +00:00


Andy Thomas (alt@gimp.org) 9th July 1999


This plug-in will take a selection and convert it into a path.
For the purpose of the plug-in the selection boundary is defined
in a similar manner to that worked out for the "marching ants" markers
of the selection. I think this gives the best user feel/feedback since 
the created path "follows" the "marching ants".

I cannot claim responsibility for the underlying algorithms. These
were taken directly from the GNU font utilities (the "limn" program 
in particular) written by Karl Berry and Kathryn Hargreaves.

Their email addresses quoted in the README are:-

Karl Berry              karl@cs.umb.edu
Kathryn Hargreaves      letters@cs.umb.edu

Please see fontutils-0.6 package for more details. I have included the 
README from the limn part of the package.

I thank Karl & Kathryn for producing such a well written set of utilites.

I have just added a gimp front-end onto them. 


How to use it.
~~~~~~~~~~~~~~

Simply select an area and then select either "<Image>/Selection/To Path"
menu item or the "Selection To Image" button in the paths dialog. The new
path will be created. Currently if the LCP dialog has not been activated
then the path will not be visible... A bug I have just found - simply
bring up the LCP dialog and select the Paths tab to see the newly created
path.

An additional function can be obtained by having the "Shift" modifier pressed
while using the button in the paths dialog. This will pop-up a "power-users"
menu where the parameters to the underlying algorithms can be modified. 
WARING:- Some values may cause the plugin to enter extremely long operations.
You have been warned. 

Have fun!


Andy.

PS. Please direct any bugs etc found in this plugin to either
myself or the gimp-developer mailing list. Thank.