Commit Graph

40 Commits

Author SHA1 Message Date
Michael Natterer e494bbd557 store resolution values as doubles, not floats.
1999-05-18  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/app_procs.c (and many of the files below): store resolution
	values as doubles, not floats.

	* app/brush_select.c
	* app/pattern_select.c: hide the "refresh" button in client
	dialogs. Don't know if this is desired but it fixes a SEGV.

	* app/file_new_dialog.c: New ui using code/ideas from Austin,
	Marco and Nick. The "size" frame is still a bit bloated but I
	didn't want to reduce it's functionality right now. It's closer to
	the result of the last discussion but not perfect yet...
	Added a dialog to confirm image sizes larger than the new
	max_new_image_size value.
	The new "reset" button uses the values from gimprc.
	Removed some #include's, added the copyright header.

	* app/gimprc.[ch]: new rc variable max_new_image_size.

	* app/preferences_dialog.c: added the "max image size"
	option. Generalized the mem size unit code.

	* app/resize.c: an additional box lets the offset widget always
	shrink correctly.

	* app/text_tool.c: fixed a minor memory leak.

	* libgimp/Makefile.am: add all widgets to libgimpui.*

	* libgimp/gimpfileselection.c: cosmetic changes.

	* libgimp/gimplimits.h: a maximum image size which should satisfy
	everybody ;)

	* libgimp/gimpsizeentry.c: allow the creation of sizeentries
	without fields. This (finally) enables arbitrary layout of the
	spinbuttons.

	* plug-ins/script-fu/script-fu-scripts.c: use the fileselection
	widget for script parameter SF_FILENAME.
1999-05-18 17:33:39 +00:00
BST 1999 Austin Donnelly e789291fa5 app/brush_select.c app/brush_select.h app/pattern_select.c delay the popup
Sat May  1 22:18:55 BST 1999  Austin Donnelly  <austin@gimp.org>

	* app/brush_select.c
	* app/brush_select.h
	* app/pattern_select.c
	* app/pattern_select.h: delay the popup of pattern and brush
 	    preview window by 150 millisecs.  Allows flicker-free
 	    selection of brushes/patterns, and still have fast pattern
 	    preview like we used to.  Ideally, should really factor out
 	    the common code in these two files into one generic picker
 	    widget.

	* app/free_select.c: cosmetic whitespace change.

	* app/draw_core.c: use GDK_CAP_NOT_LAST, not GDK_CAP_BUTT,
 	    otherwise sequential line segments in XOR mode have
 	    single-pixel gaps between them.  Worse, if the segments are
 	    only one pixel long, you don't get _any_ lines.  XFree86 seems
 	    to ignore GDK_CAP_BUTT, which is why this bug hasn't been seen
 	    before.  NCD X servers comply with the spec a little more
 	    pedantically, so need GDK_CAP_NOT_LAST.  OS/2 and Win32 people
 	    should check that (eg) the lasso tool still provides proper
 	    visual feedback.
1999-05-01 21:37:34 +00:00
Michael Natterer 02f6c21be8 app/brush_select.[ch] disabled setting the size of the brushes dialog
1999-04-29  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/brush_select.[ch]
	* app/pattern_select.[ch]: disabled setting the size of the
	brushes dialog again because it still caused SIGFPE's in some rare
	cases. I'm trying to fix that.
	*Minimal* ui spacing changes. Some changes to make the code look
	more similar (I'm a make-them-look-the-same fanatic ;)
1999-04-29 08:50:22 +00:00
Michael Natterer f2546516fe added a "BG Color Fill" radio button. Toggling FG/BG with <shift> works in
1999-04-24  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/bucket_fill.c: added a "BG Color Fill" radio button.
	Toggling FG/BG with <shift> works in both color fill modes now.

	* app/brush_select.c: session management sets the size of the
	dialog again (depending on the current paint options mode because
	bad things happen if the brush preview's size is reduced beyond
	it's minimum).
1999-04-23 23:28:49 +00:00
Manish Singh b8c19394dc gave parasite undo a MISC_UNDO class for now so it compiles
* app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now
so it compiles

* app/tools_cmds.c: fix crop invoker to give correct args to
crop_image

* app/color_cmds.c: s/GRAY/GRAY_LUT/g;

* app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs,
brush_select_dialog, s/active_dialogs/brush_active_dialogs/

* app/gimage_cmds.[ch]
* app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate
function from gimage_cmds to channel_ops, export offset and duplicate

* app/gimpbrushlist.[ch]: removed PDB procs

* app/gradient.[ch]: removed PDB procs,

* app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients,
grad_active_dialogs, gradient_select_dialog

* app/gradient_select.c: removed PDB procs,
s/active_dialogs/grad_active_dialogs/

* app/patterns.[ch]: removed PDB procs

* app/pattern_select.[ch]: removed PDB procs,
s/active_dialogs/pattern_active_dialogs/

* app/procedural_db.c: removed PDB procs and supporting functions

* app/procedrual_db.h: fiddled with enums

* app/channel_cmds.[ch]
* app/drawable_cmds.[ch]
* app/parasite_cmds.[ch]: pdbgenned now, removed header files

* app/gimpparasite.c: minor cleanup

* app/internal_procs.c: use pdbgen stuff

* app/tools_cmds.c
* app/text_tool_cmds.c: updated from pdbgen

* app/brushes_cmds.c
* app/brush_select_cmds.c
* app/gradient_cmds.c
* app/gradient_select_cmds.c
* app/patterns_cmds.c
* app/pattern_select_cmds.c
* app/procedural_db_cmds.c: new pdbgen files

* app/Makefile.am: file shuffle (see above)

-Yosh
1999-04-23 20:54:02 +00:00
Michael Natterer f3c85b0175 app/brush_select.[ch] made the previews change their size in sync with
1999-04-23  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/brush_select.[ch]
	* app/pattern_select.[ch]: made the previews change their size in
	sync with resizing the dialog. The previews auto-resize with their
	parent frame now. Connect to the preview's "size_allocate" signal,
	not to the frame's, don't "signal_connect_after". Get the size of
	the preview from it's allocation and not from it's requisition.
	There's no need to remember width, height and the frame in the
	structures anymore, so I kicked them out. Tweaked the code to look
	more similar.
1999-04-23 14:47:50 +00:00
Michael Natterer ca2cbd3257 First version of per-tool paint options. No PDB interface yet. The tool
1999-04-22  Michael Natterer  <mitschel@cs.tu-berlin.de>

	First version of per-tool paint options. No PDB interface yet.
	The tool options dialog got rather big when in per-tool mode, so
	it will probably have to become a notebook.

	It's not yet 100% consistent. If switched off, everything should
	behave exactly like before.

	* app/Makefile.am
	* app/paint_options.h: new file

	* app/tool_options.c: PaintOptions gui. Maintain a list of all
	paint tools' ToolOptions to enable switching between global and
	per-tool paint options.

	* app/brush_select.[ch]: changed packing boxes, tables, ...
	The paint options in the brush selection can be hidden now.
	Moved create_paint_mode_menu() to paint_options.h and
	tool_options.c and renamed it to paint_mode_menu_new().

	* app/gimage_mask.c
	* app/gimpbrush.[ch]
	* app/gimpbrushlist.[ch]
	* app/paint_core.c: moved gimp_brush_[set|get]_spacing() from
	gimpbrushlist.[ch] to gimpbrush.[ch].
	Moved gimp_brush_[get|set]_[opacity|paint_mode]() to
	paint_options.h and tool_options.c and renamed them to
	paint_options_*_*().  They are "global paint options" now.

	* app/airbrush.c
	* app/blend.c
	* app/bucket_fill.c
	* app/clone.c
	* app/convolve.c
	* app/eraser.c
	* app/ink.c
	* app/paintbrush.c
	* app/pencil.c: all paint tools' options are derived from
	"PaintOptions" now. Opacity and paint mode are obtained through
	macros which take into account the current paint options mode.

	* app/buildmenu.h: #include <gtk/gtk.h>

	* app/color_picker.c
	* app/text_tool.c: changed spacings.

	* app/gimprc.[ch]: new gimprc option "global-paint-options"

	* app/preferences_dialog.c: Added a "Tool Options" page. Code
	cleanup. Some work on the convenience constructors test site.

	* app/tools.c: fixed "unused variable" warning.
1999-04-22 14:34:00 +00:00
Michael Natterer 2f34216a2a app/brush_select.c app/channels_dialog.c app/color_select.c app/devices.c
1999-03-27  Michael Natterer  <mitschel@cs.tu-berlin.de>

        * app/brush_select.c
        * app/channels_dialog.c
        * app/color_select.c
        * app/devices.c
        * app/file_new_dialog.c
        * app/gradient_select.c
        * app/palette_select.c
        * app/pattern_select.c: applied a patch from Marco Lamberto
        <lm@geocities.com> which unifies actionareas ("Cancel" rightmost
        and default). Did the same in some more dialogs.

        * libgimp/gimpfileselection.c
        * libgimp/gimppatheditor.c
        * app/preferences_dialog.[ch]: completely reworked the preferences
        dialog:

        - select the notebook's pages with a tree.
        - reordered the categories. Please give me feedback, this really
          needs to be intuitive.
        - removed lots of unused #include's.
        - turned the prefs. dialog into a test site for new convenience
          constructors. These changes are however not visible. Flame me
          until they're perfect ;) When finished, this stuff can save
          *many* lines of gtk+ code.

        * modules/colorsel_gtk.c: made it circular.
1999-03-27 18:16:30 +00:00
jaycox 3152a7dbba pop up the brush-edit dialog whenever the user creates a new brush.
* app/brush_select.c: pop up the brush-edit dialog whenever the
        user creates a new brush.
1999-03-07 11:50:09 +00:00
jaycox 99c0d4a1eb make the edit button active if the default brush is a generated brush.
* app/brush_select.c: make the edit button active if the default
 	brush is a generated brush.  Make sure brush spacing >= 1.0
	* app/gimpbrushlist.c: do not add a brush to the brush list if it
 	failed to load
	* app/gradient.c:  Fix typo that caused a crash with --no-data
	* app/main.c: be more forgiving of fp rounding in gserialize tests
1999-01-19 19:43:36 +00:00
GMT 1999 Austin Donnelly 31fba3b3dc app/brush_select.c app/channels_dialog.c app/disp_callbacks.c
Sun Jan 10 21:42:11 GMT 1999  Austin Donnelly  <austin@greenend.org.uk>

	* app/brush_select.c
	* app/channels_dialog.c
	* app/disp_callbacks.c
	* app/histogram_tool.c
	* app/info_dialog.c
	* app/layer_select.c
	* app/pattern_select.c
	* plug-ins/gfig/gfig.c
	* plug-ins/newsprint/newsprint.c: More changes of the form
 	       s/gtk_label_set/gtk_label_set_text/
1999-01-10 21:54:02 +00:00
Manish Singh d2ea549d27 stuff from patches/i18n by Daniel Egger
* app/*: stuff from patches/i18n by Daniel Egger

* app/channels_dialog.c: fixes minor buglets in the channels dialog

-Yosh
1998-12-16 00:37:09 +00:00
BST 1998 Andy Thomas af5cdfbd58 app/brush_select.h app/brush_select.c app/internal_procs.c
Tue Oct 20 23:20:40 BST 1998 Andy Thomas <alt@picnic.demon.co.uk>


	* app/brush_select.h
	* app/brush_select.c
	* app/internal_procs.c
	* app/gimpbrushlist.c
	* libgimp/Makefile.am
	* libgimp/gimpmenu.h
	* libgimp/gimpmenu.c
	* plug-ins/script-fu/scripts/3d-outline.scm
	* plug-ins/script-fu/scripts/test-sphere.scm
	* plug-ins/script-fu/scripts/trochoid.scm
	* plug-ins/script-fu/script-fu-enums.h
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu.c

	New file libgimp/gimpbrushmneu.c.

	Brush dialog can now be fully controlled via the PDB. New widget (not
	true widget) type added to libgimpui (gimp_brush_select_widget()).
	Plugins should easily be able to control & select brushes. Script-fu
	updated to use new widget. See the test script for example.

	Started to change some of the scripts to use the new widget types.
1998-10-20 22:36:52 +00:00
EDT 1998 Adrian Likins 25721826d0 Lots of ii8n stuff here and some additions to the de.po. Applied
Wed Oct 14 17:46:15 EDT 1998 Adrian Likins <adrian@gimp.org>

        * app/*, po/de.po, de/POTFILES.in, libgimp/gimpintl.h:
        Lots of ii8n stuff here and some additions to the de.po.
        Applied gimp-egger-981005-1 ,gimp-egger-981006-1,
        gimp-egger-981007-1, gimp-egger-981008-1,
        gimp-egger-981009-1.patch, gimp-egger-981010-1.patch

        * plug-in/guillotine/guillotine.c: added the coordinates
        of the split images from the original image to the title.
        ie foo.jpg (0,0) for the image in the topleft.

        * plug-in/script-fu/scripts/neon-logo.scm,
        perspective-shadow.scm, predator.scm,rendermap.scm,
        ripply-anim.scm, select_to_image.scm,swirltile.scm,
        xach-effect.scm: updated scripts to use new script-fu stuff

wooo boy! a big un!

	in testing this, it looks like some of the po files are busted.
but the code stuff seems okay.

-adrian
1998-10-14 23:23:52 +00:00
BST 1998 Andy Thomas 825fdecff0 app/brush_select.[ch] Fixed problem with resizing the brush popup dialogs.
Tue Oct 13 22:01:41 BST 1998  Andy Thomas <alt@picnic.demon.co.uk>

	app/brush_select.[ch] Fixed problem with resizing the brush popup
	dialogs.
1998-10-13 21:10:22 +00:00
BST 1998 Andy Thomas dbb801e2d6 app/blend.c app/brush_select.c app/brush_select.h app/bucket_fill.c
Sat Sep 19 01:19:18 BST 1998 Andy Thomas <alt@picnic.demon.co.uk>

	* app/blend.c app/brush_select.c app/brush_select.h app/bucket_fill.c
	app/gimpbrushlist.c app/internal_procs.c app/plug_in.c libgimp/gimp.c
	libgimp/gimp.h libgimp/gimpmenu.c libgimp/gimptile.c
	plug-ins/gfig/gfig.c

	Infrastructure to allow gimp dialogs to be controlled from plugins.
	Brush dialog can now be invoked multiple times. Dialogs invoked
	via plugins do not control the active brush (dialog only used for
	selections).
	New gimp_interactive_selection_brush() function to popup dialog
	Example of usage in the gfig plugin.
	Other dialogs should be able to use this method of invocation.
1998-09-19 00:40:27 +00:00
jaycox 21c343913a more carefull when the active brush changes white_space() was ungetch'ing
* app/brush_generated.c: more carefull when the active brush
	  changes
	* app/docindexif.c: white_space() was ungetch'ing the eof
	  marker which can clear the eof flag on some systems.
	* app/docindex.c: check for ferror()s
	* app/brush_select[ch]: sensitize the edit button iff the
	  active brush is a generated brush.
1998-09-09 01:35:35 +00:00
jaycox 69d922412a ----------------------------------------------------------------------
----------------------------------------------------------------------
 Modified Files:
 	ChangeLog app/Makefile.am app/brush_select.c app/gimpbrush.c
 	app/gimpbrush.h app/gimpbrushgenerated.c app/gimpbrushlist.c
 	app/gimplist.c app/paint_core.c app/paint_core.h
    added axis to brushes.  paint_core now references a brush instead
    of a mask.  cleaned up some [brush]list removal stuff.


 Added Files:
 	app/vector2d.c app/vector2d.h
    very basic vector math struct/functions.
----------------------------------------------------------------------
1998-07-24 08:56:18 +00:00
jaycox 2f93825eb2 ----------------------------------------------------------------------
----------------------------------------------------------------------
 Modified Files:
 	ChangeLog app/brush_select.c
 	app/gimpbrush.c app/gimpbrush.h app/gimpbrushgenerated.c
 	app/gimpbrushlist.c app/gimpbrushlist.h
     removed the index field from GimpBrush.  tweaked the brush renaming
     code

	app/edit_selection.c:
     look ahead in the event queue and process as many arrow keys as we
     can.
 ----------------------------------------------------------------------
1998-07-20 14:05:33 +00:00
jaycox 33cc34dda2 ----------------------------------------------------------------------
----------------------------------------------------------------------
 Modified Files:
 	ChangeLog app/brush_select.c app/gimpbrush.c app/gimpbrush.h
 	app/gimpbrushlist.c
      made the scrollbars recalc in brush_select when a brush is
      added/removed.
      GimpBrushLists now force brush names to be unique.
 ----------------------------------------------------------------------
1998-07-19 22:32:35 +00:00
jaycox b2f1e85cf3 ----------------------------------------------------------------------
----------------------------------------------------------------------
 Modified Files:
 	ChangeLog app/brush_edit.c app/brush_edit.h app/brush_select.c
 	app/gimpbrush.c app/gimpbrushgenerated.c
 	app/gimpbrushgenerated.h app/gimpbrushlist.c
      added support for loading generated brushes and updated the
      brush_edit a bit.
 Added Files:
 	data/brushes/round1.vbr
   A sample generated brush.
1998-07-16 11:44:56 +00:00
jaycox a528c42a2e ----------------------------------------------------------------------
----------------------------------------------------------------------
 Modified Files:
 	ChangeLog app/brush_edit.c app/brush_select.c
	app/gimpbrushgenerated.c app/gimpbrushgenerated.h
 	app/interface.c
     Added freeze/thaw to gimpbrushgenerated.
     added a close button and a preview to the brush_edit dialog.
 ----------------------------------------------------------------------
1998-07-15 12:15:24 +00:00
jaycox 5d0a6dfee0 ----------------------------------------------------------------------
----------------------------------------------------------------------
 Modified Files:
 	ChangeLog app/brush_select.c app/gimpbrushgenerated.c
 	app/gimpbrushlist.c
      fixed brush ref counting.
 ----------------------------------------------------------------------
1998-07-13 10:04:42 +00:00
jaycox ed2e3ee66f ----------------------------------------------------------------------
----------------------------------------------------------------------
Modified Files:
	ChangeLog app/Makefile.am app/brush_select.c
	app/gimpbrushlist.c app/gimpbrushlist.h app/gimpsetF.h
	added sorting on the brush_list, fixed some encapulation issues.

	app/paint_funcs.c
	minor speed tweak to border_region
Added Files:
	app/gimpbrushlistF.h app/gimpbrushlistP.h app/gimplist.c
	app/gimplist.h app/gimplistF.h app/gimplistP.h
        Split gimpbrushlist.h into 3 files.  New class "GimpList"
----------------------------------------------------------------------
1998-07-12 11:40:43 +00:00
Sven Neumann 329e2072d8 More session-managment functionality. Opened dialogs are saved and eventually
reopened. Try to use the --restore-session command-line option.


--Sven
1998-07-11 22:23:23 +00:00
jaycox 8fca3091fe Modified Files: ChangeLog app/brush_select.c app/brush_select.h
Modified Files:
 	ChangeLog app/brush_select.c app/brush_select.h
 	app/gimpbrushgenerated.c app/gimpbrushlist.c
 	app/gimpbrushlist.h app/paint_core.c app/paint_core.h
       Signalified the brushes and cleaned up a few things.

 	app/paint_funcs.c: Minor speed tweak
 ----------------------------------------------------------------------
1998-07-10 08:59:55 +00:00
jaycox b7d8e6ea91 Modified Files: ChangeLog app/Makefile.am app/airbrush.c app/app_procs.c
Modified Files:
 	ChangeLog app/Makefile.am app/airbrush.c app/app_procs.c
 	app/brush_select.c app/brush_select.h app/clone.c
 	app/colormaps.c app/commands.c app/convolve.c app/devices.c
 	app/eraser.c app/gimage_mask.c app/gimpobject.h app/ink.c
 	app/internal_procs.c app/paint_core.c app/paint_core.h
 	app/paintbrush.c app/pencil.c app/preferences_dialog.c
      Minor modifications to support new brush functionality

 Added Files:
 	app/brush_edit.c app/brush_edit.h app/gimpbrush.c
 	app/gimpbrush.h app/gimpbrushgenerated.c
 	app/gimpbrushgenerated.h app/gimpbrushlist.c
 	app/gimpbrushlist.h
      new files to support vector generated brushes and
      reorganization/objectification of the brush class

 Removed Files:
 	app/brushes.c app/brushes.h
    Obsoleted by gimpbrush.? and gimpbrushlist.?

 ----------------------------------------------------------------------
1998-07-09 05:31:06 +00:00
Sven Neumann d16b3aba04 Rough outline of session-managment. A new config
file 'sessionrc' is written and the position of some windows is
remembered. Still has some problems (offset by wm decorations).
Can be switched off in the preferences.
1998-06-22 17:30:40 +00:00
Manish Singh 5cc38d44a2 divide paint mode stuff
-Yosh
1998-06-09 04:04:43 +00:00
Manish Singh 6ddbb705a3 more g_message changes
* more g_message changes

* CEL plugin update

* INSTALL: info on why plugins don't get built

-Yosh
1998-05-30 07:32:37 +00:00
Manish Singh 84abd5d700 Have fun recompiling gimp everyone. It's the great FSF address change!
-Yosh
1998-04-13 05:44:11 +00:00
Manish Singh bd6b3ae4b9 app/brush_select.c get rid of unused variable warnings
* app/brush_select.c
* app/iscissors.c: get rid of unused variable warnings

* app/fileops.c: refresh the filesel better

* app/plug_in.c: make sure everything gets initialized to something in the
plug-in struct

-Yosh
1998-03-31 06:08:08 +00:00
Adrian Likins 380deeb2d8 Fixed up --no-data so that the various *_init() routines always get
* app/app_procs.c app/brush_select.c app/brushes.c
        app/brushes.h app/convert.c app/gradient.c app/gradient.h
        app/palette.c app/palette.h app/pattern_select.c app/patterns.c
        app/patterns.h:   Fixed up --no-data so that the various *_init()
        routines always get called, and so that when in interactive mode
        the data can be loaded by the user even when started with --no-data.
        Fixes the blend bug too...

	yeah, sven scooped me... but i think this is still a needed patch...

-adrian
1998-03-26 18:24:42 +00:00
Adrian Likins 9132cbb666 appied most of gimp-hpux-980316-0.patch from ???? Mostly added static's
* blend.c brightness_contrast.c brush_select.c brushes.c
          bucket_fill.c by_color_select.c channels_dialog.c
          color_balance.c convolve.c crop.c curves.c eraser.c fileops.c
          frac.c gradient.c histogram_tool.c hue_saturation.c
          image_render.c indexed_palette.c layers_dialog.c levels.c
          move.c paintbrush.c pattern_select.c pencil.c
          perspective_tool.c posterize.c rect_select.c scale_tool.c
          threshold.c tips_dialog.c:
                 appied most of gimp-hpux-980316-0.patch
        from ???? Mostly added static's here and there
         and casting stuff.

        * app/indexed_palette.c: made dialog non-resizeable

-adrian
1998-03-18 22:35:31 +00:00
Tim Janik 2b52f8a864 fixed a lot of the destroy handlers and delete_event handlers, still
not everything perfect, though.
-timj
1998-03-12 22:01:43 +00:00
CST 1998 Francisco Bustamante 074c967274 Changed call to gtk_window_set_policy to avoid shrinking of the dialog as
Sun Feb 22 22:07:10 CST 1998  Francisco Bustamante <pancho@nuclecu.unam.mx>

	* brush_select.c (brush_select_new): Changed call to gtk_window_set_policy
	  to avoid shrinking of the dialog as it caused a SIGSEGV when shrinked to
	  a very small size.
1998-02-23 04:05:12 +00:00
Manish Singh 89b600d2bc removed all usage of linked.[ch] and switched to GSLists
-Yosh
1998-01-29 08:03:27 +00:00
Adrian Likins c62f70ab13 added a call to gtk_window_set_wmclass to most of the gimp
dialogs

-adrian
1998-01-25 22:13:00 +00:00
People doing a 16 bpc version of gimp 92f0e489b6 fix memory leak 1997-12-18 04:19:11 +00:00
Elliot Lee 32cefec8f7 Initial revision 1997-11-24 22:05:25 +00:00