1. 26 May, 2004 1 commit
    • Michael Natterer's avatar
      app/paint/Makefile.am app/paint/gimpink-blob.[ch] app/paint/gimpink.[ch] · 5e07ceb8
      Michael Natterer authored
      2004-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/gimpink-blob.[ch]
      	* app/paint/gimpink.[ch]
      	* app/paint/gimpinkoptions.[ch]: new files. Ported the ink tool
      	to be a direct GimpPaintCore subclass without any GUI.
      
      	* app/paint/gimp-paint.c: register GimpInk with the list of paint
      	cores.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpinkoptions.[ch]
      	* app/tools/gimpinktool-blob.[ch]: removed these files.
      
      	* app/tools/gimpinkoptions-gui.[ch]: new files containing only
      	the GUI for GimpInkOptions.
      
      	* app/tools/gimpinktool.[ch]: reduced to some few lines which
      	implement a simple GimpPaintTool subclass.
      
      	* app/tools/gimp-tools.c: associate the GimpInk paint_core with
      	the GimpInkTool.
      5e07ceb8
  2. 25 May, 2004 1 commit
    • Michael Natterer's avatar
      app/paint/Makefile.am app/paint/gimpbrushcore-kernels.h new GimpPaintCore · 9a41a73d
      Michael Natterer authored
      2004-05-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/gimpbrushcore-kernels.h
      	* app/paint/gimpbrushcore.[ch]: new GimpPaintCore subclass
      	containing all the brush painting specific stuff.
      
      	* app/paint/gimppaintcore-kernels.h: removed this file.
      
      	* app/paint/gimppaintcore.[ch]: removed all brush stuff.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.[ch]
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.[ch]: changed accordingly. Derive all
      	classes which used to derive directly from GimpPaintCore from
      	GimpBrushCore now. Lots of cleanup.
      
      	* app/paint/paint-types.h
      	* app/paint/gimp-paint.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/tools/gimppainttool.c
      	* tools/kernelgen.c: changed accordingly.
      9a41a73d
  3. 09 Feb, 2004 1 commit
    • Manish Singh's avatar
      app/file/Makefile.am app/paint/Makefile.am app/text/Makefile.am changed · d14a5075
      Manish Singh authored
      2004-02-09  Manish Singh  <yosh@gimp.org>
      
              * app/file/Makefile.am
              * app/paint/Makefile.am
              * app/text/Makefile.am
              * app/xcf/Makefile.am: changed GTK_CFLAGS to GDK_PIXBUF_CFLAGS, since
              we don't use any gtk/gdk functions here. This especially helps in the
              text directory, since it avoids problems on broken setups with old
              fontconfig stuff in the X11 directory lying around.
      d14a5075
  4. 13 Dec, 2003 1 commit
    • Hans Breuer's avatar
      [ I've postponed my reservations against pangoft2/fontconfig/freetype2 · 1baa2d45
      Hans Breuer authored
      2003-12-12  Hans Breuer  <hans@breuer.org>
      
      	[
      	 I've postponed my reservations against pangoft2/fontconfig/freetype2
      	 usage, so The Gimp should now build with msvc without patching it.
      	]
      
      	* app/makefile.msc app/text/makefile.msc : use $(PANGOFT2_CFLAGS) etc.
      
      	* libgimpthumb/makefile.msc : (new file)
      	* makefile.msc : added libgimpthumb
      
      	* libgimpthumb/gimpthumbnail.c : include gimpwin32-io.h
      	* libgimpthumb/gimpthumb-utils.c : don't compare size pointer
      	with GIMP_THUMB_SIZE_FAIL but *size
      
      	* plug-ins/makefile.msc : handle libgimpoldpreview
      
      	* plug-ins/common/decompose.c : define cbrt() if not __GLIBC__
      
      	* plug-ins/common/winclipboard.c : make it compile without gimpcompat.h
      
      	* plug-ins/imagemap/imagemap_csim_lex.c : its a generated file
      	but still win32/msvc has no unistd.h
      
      	* plug-ins/pygimp/makefile.msc : (new file) to use the binary you
      	need to patch glib, see bug #98737
      
      	* plug-ins/libgimpoldpreview.c : use <libgimp/gimp.h> instead of "gimp.h"
      
      	* **/Makefile.am : added makefile.msc to EXTRA_DIST
      1baa2d45
  5. 18 Sep, 2003 1 commit
    • Michael Natterer's avatar
      app/paint/Makefile.am removed... ...and added. · 6b2ca702
      Michael Natterer authored
      2003-09-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/paint.[ch]: removed...
      	* app/paint/gimp-paint.[ch]: ...and added.
      
      	* app/core/gimp.c: changed accordingly.
      
      	* app/tools/Makefile.am
      	* app/tools/tools.[ch]: removed...
      
      	* app/tools/gimp-tools.[ch]: ...and added. Added
      	gimp_tools_restore() and gimp_tools_save() and moved the entire
      	tool registering and tool_options loading/saving code here. Call
      	tool_manager_init() from gimp_tools_init() and tool_manager_exit()
      	from gimp_tools_exit().
      
      	* app/tools/tool_manager.[ch]: removed the code which now lives
      	in gimp-tools.[ch]. The tool manager now has no knowledge about
      	individual tools any more and just handles the active_tool
      	and the tool part of tool <-> display interaction.
      	Removed tool_manager_get_info_by_type().
      
      	* app/tools/gimpvectortool.c (gimp_vector_tool_register): the
      	tool's identifier is "gimp-vector-tool", not "gimp-path-tool".
      
      	* app/app_procs.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimppainttool.c: changed accordingly.
      6b2ca702
  6. 07 Sep, 2003 1 commit
    • Sven Neumann's avatar
      app/display/Makefile.am app/gui/Makefile.am app/paint/Makefile.am · 6f1a0df8
      Sven Neumann authored
      2003-09-07  Sven Neumann  <sven@gimp.org>
      
      	* app/display/Makefile.am
      	* app/gui/Makefile.am
      	* app/paint/Makefile.am
      	* app/pdb/Makefile.am
      	* app/text/Makefile.am
      	* app/tools/Makefile.am
      	* app/widgets/Makefile.am
      	* app/xcf/Makefile.am (INCLUDES): removed $(LIBART_CFLAGS) again.
      6f1a0df8
  7. 06 Sep, 2003 1 commit
  8. 14 Jul, 2003 2 commits
    • Michael Natterer's avatar
      Argh... · 070fafb5
      Michael Natterer authored
      2003-07-14  Michael Natterer  <mitch@gimp.org>
      
      	Argh...
      
      	* app/paint/Makefile.am
      	* app/paint/gimppencil.[ch]: added it again as GimpPaintbrush
      	subclass and override nothing but the user visible undo name and
      	the paint_options type.
      
      	* app/paint/paint.c
      	* app/tools/tool_manager.c
      	* app/tools/gimppenciltool.c
      	* tools/pdbgen/pdb/paint_tools.pdb: reverted my last changes.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      070fafb5
    • Michael Natterer's avatar
      app/paint/Makefile.am removed. · e1e943b9
      Michael Natterer authored
      2003-07-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/gimppencil.[ch]: removed.
      
      	* app/paint/gimppenciloptions.[ch]: new files. Does nothing except
      	setting the default value of "hard" to TRUE.
      
      	* app/paint/paint.c
      	* app/tools/tool_manager.c: changed accordingly.
      
      	* app/tools/gimppenciltool.c
      	* tools/pdbgen/pdb/paint_tools.pdb: use the pintbrush core for
      	pencil drawing.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/gimppaintoptions-gui.c: show all paintbrush options
      	except "Hardness" for the pencil tool.
      e1e943b9
  9. 25 Mar, 2003 1 commit
  10. 14 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Moved the undo step implementations to the core and pass around lots of · 7a6a8d9d
      Michael Natterer authored
      2003-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Moved the undo step implementations to the core and pass around
      	lots of "const gchar *undo_desc". Fixes bug #104367.
      
      	* app/Makefile.am
      	* app/undo.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-undo-push.[ch]: ...and added here.
      
      	* app/paint/Makefile.am
      	* app/tools/Makefile.am
      	* app/paint/gimppaintcore-undo.[ch]
      	* app/tools/gimptransformtool-undo.[ch]: new files for the
      	paint and transform undos.
      
      	* app/core/gimppaintinfo.[ch]: added a blurb.
      
      	* 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/paint/paint-types.h
      	* app/paint/paint.c: pass the blurb when registering the core.
      
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-mask-select.[ch]
      	* app/core/gimpimage-mask.[ch]
      	* app/core/gimpimagemap.[ch]
      	* app/core/gimplayer-floating-sel.[ch]: added "undo_desc" parameters
      	to all undo pushing helper functions.
      
      	* app/undo_history.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly: pass
      	"undo_desc" strings, changed includes or simply removed inclusion
      	of "undo.h". Some random cleanups.
      
      	* tools/pdbgen/pdb/guides.pdb: cleaned up a lot. Fixed
      	gimp_image_find_next_guide() to not return guides with
      	position < 0 (and made it shorter and readable).
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      7a6a8d9d
  11. 05 Feb, 2003 2 commits
    • Michael Natterer's avatar
      Made GimpToolOptions a GimpContext subclass and objectified all tool · aa9f82d1
      Michael Natterer authored
      2003-02-05  Michael Natterer  <mitch@gimp.org>
      
      	Made GimpToolOptions a GimpContext subclass and objectified
      	all tool options types.
      
      	* app/core/core-types.h: replaced GimpToolOptionsNewFunc by
      	GimpToolOptionsGUIFunc.
      
      	* libgimpproxy/gimpproxytypes.h: regenerated.
      
      	* app/core/gimppaintinfo.[ch]: added "GType paint_options_type".
      
      	* app/core/gimptoolinfo.[ch]: added "GType tool_options_type",
      	removed tool_info->context since GimpToolOptions are a GimpContext
      	now. Added "gboolean use_context" as a temp_hack.
      
      	* libgimptool/gimptooltypes.h: added the tool_options_type to
      	the tool registering callback.
      
      	* app/tools/tool_options.[ch]: is a real GimpContext subclass now.
      
      	* app/paint/paint-types.h
      	* app/paint/paint.c: added the paint_options_type to the paint
      	registering stuff.
      
      	* app/paint/gimppaintoptions.[ch]: is a real GimpToolOptions
      	subclass now.
      
      	* app/paint/Makefile.am
      	* app/paint/gimpairbrushoptions.[ch]
      	* app/paint/gimpcloneoptions.[ch]
      	* app/paint/gimpconvolveoptions.[ch]
      	* app/paint/gimpdodgeburnoptions.[ch]
      	* app/paint/gimperaseroptions.[ch]
      	* app/paint/gimpsmudgeoptions.[ch]: new files holding
      	GimpPaintOptions subclasses.
      
      	* 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.c
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: removed paint options stuff, lots
      	of related changed & cleanups.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: changed accordingly.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.[ch]
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimpvectoroptions.[ch]: new files holding the various
      	tool options classes.
      
      	* app/tools/selection_options.[ch]
      	* app/tools/transform_options.[ch]: made them objects.
      
      	* app/tools/paint_options.[ch]: contains only the paint_options
      	GUI and reset stuff.
      
      	* app/tools/tools-types.h: removed SelectionOptions typedef for
      	now.
      
      	* app/tools/[all tools]: removed the tool options stuff except
      	some GUI constructors. Tons of related changes.
      
      	* app/tools/tool_manager.[ch]: changed tool registration / restore /
      	switching accordingly.
      
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c: changed accordingly.
      aa9f82d1
    • Sven Neumann's avatar
      fixed rules for generated sources. · 4f22db21
      Sven Neumann authored
      2003-02-05  Sven Neumann  <sven@gimp.org>
      
              * app/paint/Makefile.am: fixed rules for generated sources.
      
              * app/text/Makefile.am
              * app/text/text-enums.[ch]: added new files with text-related enums.
      
              * app/text/gimptext.[ch]: added text alignment property.
      
              * app/text/gimptext-render.[ch]: removed
      
              * app/text/text-types.h
              * app/text/gimptextlayout.[ch]: added new files that define
              GimpTextLayout, a wrapper around PangoLayout. Moved render code to
              this file.
      
      	* app/text/gimptextlayer.c: changed accordingly.
      4f22db21
  12. 03 Feb, 2003 1 commit
    • Michael Natterer's avatar
      removed the "truly ugly hack"... · f7a91117
      Michael Natterer authored
      2003-02-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/Makefile.am: removed the "truly ugly hack"...
      
      	* app/Makefile.am: ...and changed the linking order instead.
      
      	* app/base/Makefile.am
      	* app/core/Makefile.am
      	* app/paint/Makefile.am
      	* app/widgets/Makefile.am: fixed typo.
      f7a91117
  13. 31 Jan, 2003 1 commit
    • Sven Neumann's avatar
      allow NULL as context parameter in gimp_font_selection_new(). The widget · 57a23b7b
      Sven Neumann authored
      2003-01-31  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpfontselection.c: allow NULL as context parameter
      	in gimp_font_selection_new(). The widget then uses a default
      	PangoFT2Context.
      
      	* app/tools/gimptexttool.c (text_tool_options_new): call
      	gimp_font_selection_new() with a NULL context. The text tool now
      	doesn't know about Pango any longer.
      
      	* app/paint/Makefile.am
      	* app/tools/Makefile.am (INCLUDES): removed PANGOFT2_CFLAGS.
      57a23b7b
  14. 07 Jun, 2002 1 commit
    • Sven Neumann's avatar
      app/base/Makefile.am automake-1.6 seems to use yet another variable to · 3aae3940
      Sven Neumann authored
      2002-06-08  Sven Neumann  <sven@gimp.org>
      
      	* app/base/Makefile.am
      	* app/paint-funcs/Makefile.am: automake-1.6 seems to use yet another
      	variable to pass flags to the assembler (bug #84514). Define
      	AM_CCASFLAGS like AM_ASFLAGS to satisfy all versions of automake.
      
      	* configure.in
      	* all Makefiles: removed STRIP_BEGIN and STRIP_END since it's a
      	GNU make extension that we don't really need and newer versions of
      	automake don't seem to like it.
      3aae3940
  15. 19 Mar, 2002 2 commits
    • Sven Neumann's avatar
      app/base/Makefile.am app/base/base-enums.c app/core/Makefile.am · 3db3dff4
      Sven Neumann authored
      2002-03-19  Sven Neumann  <sven@gimp.org>
      
      	* app/base/Makefile.am
      	* app/base/base-enums.c
      	* app/core/Makefile.am
      	* app/core/core-enums.c
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-enums.c: purely cosmetic change.
      
      	* app/paint/Makefile.am
      	* app/paint/paint-enums.[ch]: generate paint-enums.c with registered
      	enums. Skip GIMP_BRUSH_PRESSURE and GIMP_CUSTOM_CONVOLVE so they
      	don't get exported to libgimp and are not registered as enum values.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: removed special casing of
      	GimpBrushApplicationMode and GimpConvolveType since the forbidden
      	values are now skipped anyway.
      
      	* libgimp/gimpcompat.h: removed compat defines for the forbidden
      	enum values. They shouldn't have been used.
      
      	* app/tools/Makefile.am
      	* app/tools/tools-enums.[ch]: generate tools-enums.c with registered
      	enums.
      
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.h
      	* app/paint/gimpdodgeburn.h
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.[ch]
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/paint_options.c: changed accordingly. Added more enum
      	radio frames and enum option menus.
      3db3dff4
    • Sven Neumann's avatar
      app/paint/Makefile.am app/paint/paint-enums.h split enums into their own · 9ea91143
      Sven Neumann authored
      2002-03-19  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/paint-enums.h
      	* app/paint/paint-types.h: split enums into their own file and
      	namespacified them.
      
      	* app/tools/Makefile.am
      	* app/tools/tools-enums.h
      	* app/tools/tools-types.h: split enums into their own file.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.[ch]
      	* app/paint/gimppaintoptions.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/paint_options.c
      	* plug-ins/gfig/gfig.c: changed accordingly.
      
      	* libgimp/gimpcompat.h
      	* plug-ins/script-fu/siod-wrapper.c: added compatibility defines for
      	changed enums.
      
      	* tools/pdbgen/Makefile.am: updated list of headers to parse for enums.
      
      	* app/pdb/paint_tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/pdb/paint_tools.pdb: regenerated.
      9ea91143
  16. 13 Mar, 2002 1 commit
    • Sven Neumann's avatar
      moved pdb directory to the end. · 6f0c89d0
      Sven Neumann authored
      2002-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/Makefile.am (SUBDIRS): moved pdb directory to the end.
      
      	* app/paint/Makefile.am: removed the ugly hack. Seems to work w/o it.
      
      	* themes/Default/Makefile.am: don't build inline pixbuf headers here.
      
      	* themes/Default/images/Makefile.am: build them here with a hack
      	that extracts the icon names out of the filenames. Cleaner Makefile
      	and correct dependencies.
      
      	* themes/Default/imagerc
      	* themes/Default/images/stock-button-reset.png: added a reset button
      	(which looks just like refresh at the moment).
      
      	* themes/Default/images/tools/Makefile.am: removed.
      
      	* libgimpwidgets/gimpstock.c
      	* libgimpwidgets/gimpwidgets.c: include the pixbuf headers from their
      	new places.
      6f0c89d0
  17. 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
  18. 26 Feb, 2002 2 commits
    • 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
  19. 21 Feb, 2002 1 commit
    • 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
  20. 14 Feb, 2002 1 commit
    • Michael Natterer's avatar
      Core/UI separation for the paint tools: · dca988f7
      Michael Natterer authored
      2002-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Core/UI separation for the paint tools:
      
      	* configure.in
      	* app/Makefile.am
      	* app/paint/.cvsignore
      	* app/paint/Makefile.am: added new directory for the paint methods
      	without GUI and tools around them.
      
      	* app/paint/paint-types.h: typedefs for this module.
      
      	* app/paint/gimppaintcore-kernels.h
      	* app/paint/gimppaintcore.[ch]: the general paint logic taken
      	from GimpPaintTool.
      
      	* 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]: subclasses of GimpPaintCore,
      	implementing their own paint() methods.  Needs more hacking
      	to get the GtkWidget pointers out of the options structs.
      
      	* app/tools/gimppainttool_kernels.h: removed.
      
      	* app/tools/tools-types.h: removed the paint tool enums.
      
      	* app/tools/gimpairbrushtool.[ch]
      	* app/tools/gimpclonetool.[ch]
      	* app/tools/gimpconvolvetool.[ch]
      	* app/tools/gimpdodgeburntool.[ch]
      	* app/tools/gimperasertool.[ch]
      	* app/tools/gimppaintbrushtool.[ch]
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimppenciltool.[ch]
      	* app/tools/gimpsmudgetool.[ch]: all paint tools are pure GUI
      	things now.  PaintOptions and friends still need to be chopped up
      	though...
      
      	* app/undo.c: changed PaintUndo to GimpPaintCoreUndo, some minor
      	cleanup.
      
      	* tools/kernelgen.c: changed accordingly.
      
      	* tools/pdbgen/Makefile.am: scan paint/paint-types.h for enums.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: hardcode "success = FALSE" for
      	all paint PDB wrappers.  The non-gui stuff is completely broken.
      	More commits to come...
      
      	* app/pdb/paint_tools_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      dca988f7