mirror of https://github.com/GNOME/gimp.git
47 Commits
Author | SHA1 | Message | Date |
---|---|---|---|
Sven Neumann | 28fddfd554 |
Makefile.am removed this header file.
2003-03-25 Sven Neumann <sven@gimp.org> * Makefile.am * gimpintl.h: removed this header file. * gimpmiscui.c: include libgimp-intl.h. * gimp.c (gimp_main): call setlocale() and bind to the libgimp textdomain so that plug-ins don't need to do that explicitely. * libgimp/stdplugins-intl.h: added the functionality that used to live in gimpintl.h and removed the libgimp related stuff. Got rid of the INIT_I18N_UI() macro. * plug-ins/*/*.c: removed all occurances of INIT_I18N_UI(). Plug-ins simply call INIT_I18N() once in their run() function. * plug-ins/script-fu/script-fu-intl.h: added the functionality that used to live in gimpintl.h and removed the libgimp related stuff. * app/Makefile.am * app/gimp-intl.h: new file that defines the gettext macros for the GIMP core. * app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h. * plug-ins/script-fu/scripts/test-sphere.scm: fixed typos. |
|
Michael Natterer | 1329e016d2 |
app/core/gimpimage-mask.[ch] (gimp_image_mask_translate) added "gboolean
2003-03-18 Michael Natterer <mitch@gimp.org> * app/core/gimpimage-mask.[ch] (gimp_image_mask_translate) * app/core/gimplayer.[ch] (gimp_layer_translate): added "gboolean push_undo" parameters. * app/core/gimpimage-crop.c * app/core/gimpimage-resize.c * app/display/gimpdisplayshell-dnd.c * app/gui/layers-commands.c * app/widgets/gimptoolbox.c * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/selection.pdb: changed accordingly. * app/pdb/layer_cmds.c * app/pdb/selection_cmds.c: regenerated. * app/core/gimpimage-undo-push.c (undo_pop_layer_displace): call gimp_layer_translate() with "push_undo == FALSE" instead of duplicating gimp_layer_translate()'s code. Use GimpItemUndo for GIMP_UNDO_MASK. * app/tools/gimpeditselectiontool.c (gimp_edit_selection_tool_cursor_key): check if the top undo on the stack is of exactly the same type as the undo we would push and just don't push it then (compresses layer translate undos and fixes bug #86362). Changed stuff work with CAPS_LOCK or other modifiers pressed. |
|
Michael Natterer | 884b3aa7a3 |
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org> Made drawable/layer properties (visibility, opacity etc.) undoable (fixes bug #73893). * app/core/core-enums.[ch]: added undo types/groups for visibility, mode, opacity, linked and preserve_trans. * app/core/Makefile.am * app/core/core-types.h * app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a ref'ed GimpItem pointer so (1) this doesn't need to be done by all undo steps related to an item and (2) the item the undo step is for can be determined from outside the undo system. * app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item() which returns a new GimpItemUndo. * app/core/gimpimage-undo-push.[ch]: use it for all item related undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable and GimpVectors pointers from the private undo structs. Added undo push functions for the new undo types added above. * app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added "gboolean push_undo" parameter. * app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode, _preserve_trans, _linked): added "gboolean push_undo" parameters. * app/core/gimpimage-mask.c * app/core/gimpimage-merge.c * app/core/gimplayer-floating-sel.c * app/tools/gimpmovetool.c * app/xcf/xcf-load.c * app/widgets/gimpdrawablelistitem.c * app/widgets/gimplayerlistitem.c * app/widgets/gimplayerlistview.c: changed accordingly. * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to the foo_accessors() functions. Removed $func from foo_accesors() because we don't manipulate items without using getters/setters any longer. * app/pdb/channel_cmds.c * app/pdb/layer_cmds.c: regenerated. * app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal which carries an additional "GdkModifierType state" parameter as in GimpCellRendererViewable . * app/widgets/gimpcontainertreeview.c: emit "clicked" from the toggle renderer, not "toggled" so the callbacks get the modifier state. * app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive visible by <shift>+click" feature as in 1.2. * app/widgets/gimplayertreeview.c: compress layer opacity undos by looking at the top of the undo stack and not pushing an undo if there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active layer. |
|
Manish Singh | 6e41b13630 |
tools/pdbgen/pdb/channel.pdb use gimp_item_rename for set_name.
2003-03-17 Manish Singh <yosh@gimp.org> * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/layer.pdb: use gimp_item_rename for set_name. * app/pdb/channel_cmds.c * app/pdb/layer_cmds.c: regenerated * libgimpproxy/Makefile.am: use $(top_srcdir) |
|
Sven Neumann | 5e11bae69b |
fixed parasite serialization that I broke yesterday.
2003-03-06 Sven Neumann <sven@gimp.org> * app/core/gimpparasitelist.c: fixed parasite serialization that I broke yesterday. * app/widgets/gimpenummenu.c: added support for mnemonics. * app/core/core-enums.h: removed the inverted variants from the GimpAddMaskType enum. Registered the enum with the type system. * app/core/gimplayer.c: changed accordingly. * app/gui/layers-commands.c (layers_add_mask_query): use an enum frame and added a check button that allows to invert the inital layer mask. * tools/pdbgen/pdb/layer.pdb: updated documentation for the gimp-layer-create-mask PDB function. * plug-ins/script-fu/siod-wrapper.c: removed new enum values from the compatibility defines. * app/core/core-enums.c * app/pdb/layer_cmds.c * libgimp/gimpenums.h * libgimp/gimplayer_pdb.c * plug-ins/pygimp/gimpenums.py * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl: regenerated. |
|
Michael Natterer | 7a6a8d9dbb |
Moved the undo step implementations to the core and pass around lots of
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. |
|
Michael Natterer | b600fd8605 |
changed FOO_UNDO enum values to GIMP_UNDO_FOO.
2003-02-13 Michael Natterer <mitch@gimp.org> * app/core/core-enums.[ch]: changed FOO_UNDO enum values to GIMP_UNDO_FOO. * app/undo.[ch]: removed the undo group wrappers. * app/undo_history.c * app/core/gimpdrawable-transform.c * app/core/gimpedit.c * app/core/gimpimage-convert.c * app/core/gimpimage-crop.c * app/core/gimpimage-mask.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/gimpimage.c * app/core/gimpitem.c * app/core/gimplayer-floating-sel.c * app/core/gimplayer.c * app/display/gimpdisplayshell-dnd.c * app/gui/channels-commands.c * app/gui/image-commands.c * app/gui/layers-commands.c * app/paint/gimppaintcore.c * app/text/gimptext-compat.c * app/tools/gimpbezierselecttool.c * app/tools/gimpeditselectiontool.c * app/tools/gimpmeasuretool.c * app/tools/gimptexttool.c * app/tools/gimptransformtool.c * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/undo.pdb: changed accordingly. Pass meaningful undo names to gimp_image_undo_group_start(). * app/pdb/layer_cmds.c * app/pdb/undo_cmds.c: regenerated. |
|
Michael Natterer | 436ed648e8 |
added new virtual function duplicate() as replacement for all
2003-02-11 Michael Natterer <mitch@gimp.org> * app/core/gimpitem.[ch]: added new virtual function duplicate() as replacement for all gimp_*_copy() functions. * app/core/gimpchannel.[ch] * app/core/gimpdrawable.[ch] * app/core/gimplayer.[ch] * app/core/gimplayermask.[ch] * app/vectors/gimpvectors.[ch]: replaced public copy() functions by duplicate() implementations. * app/text/gimptextlayer.c: added a duplicate() implementation. * app/widgets/gimpitemlistview.[ch]: removed the "copy_item_func" and simply call gimp_item_duplicate(). * app/undo.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-mask.c * app/core/gimpimage-qmask.c * app/gui/channels-commands.c * app/gui/dialogs-constructors.c * app/gui/layers-commands.c * app/gui/vectors-commands.c * app/widgets/gimptoolbox.c * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/selection.pdb: changed accordingly. * app/pdb/channel_cmds.c * app/pdb/layer_cmds.c * app/pdb/selection_cmds.c: regenerated. |
|
Manish Singh | 1a44f2126c |
cleanup, removed unecessary G_OBJECT() casts. Should do the same for
2003-01-05 Manish Singh <yosh@gimp.org> * many files in app, modules and libgimp*: cleanup, removed unecessary G_OBJECT() casts. Should do the same for plug-ins, when more of them get undeprecated. |
|
Sven Neumann | 2193d83a26 |
tools/pdbgen/pdb/display.pdb applied a modified version of a patch from
2002-12-03 Sven Neumann <sven@gimp.org> * tools/pdbgen/pdb/display.pdb * tools/pdbgen/pdb/layer.pdb: applied a modified version of a patch from Wolfgang Hofer <hof@gimp.org> that adds two new PDB functions needed for GAP: gimp_displays_reconnect() and gimp_layer_new_from_drawable() (bug #77508). * app/pdb/display_cmds.c * app/pdb/internal_procs.c * app/pdb/layer_cmds.c * libgimp/gimpdisplay_pdb.[ch] * libgimp/gimplayer_pdb.[ch]: regenerated. |
|
Sven Neumann | 073e533a8a |
Finally landed the new GimpConfig based gimprc parser. It's not finished
2002-11-18 Sven Neumann <sven@gimp.org> Finally landed the new GimpConfig based gimprc parser. It's not finished yet but we need to start somewhere. This release removes the old gimprc.[ch] files. The gimprc format changes slightly, but the changes are minimal. The Preferences dialog is temporarily disabled since it still needs to be ported. If you are are afraid, stay away from CVS for a few days ;-) * app/Makefile.am * app/gimprc.[ch]: removed the old gimprc system. * app/base/Makefile.am * app/base/base-config.[ch]: removed these files in favor of config/gimpbaseconfig.[ch]. * app/core/Makefile.am * app/core/gimpcoreconfig.[ch]: removed these files in favor of config/gimpcoreconfig.[ch]. * app/config/Makefile.am * app/config/config-types.h: moved typedefs into this new file. * app/config/gimpbaseconfig.[ch] * app/config/gimpcoreconfig.[ch] * app/config/gimpdisplayconfig.[ch] * app/config/gimpguiconfig.[ch] * app/config/gimprc.[ch] * app/config/test-config.c: brought into shape for real use. * app/base/base-types.h: include config/config-types.h here. Added a global GimpBaseConfig *base_config variable to ease migration. * app/gui/Makefile.am: temporarily disabled the preferences dialog. * app/app_procs.c * app/undo.c * app/undo_history.c * app/base/base.[ch] * app/base/gimphistogram.c * app/base/pixel-processor.c * app/base/temp-buf.c * app/base/tile-cache.c * app/core/core-types.h * app/core/gimp-documents.c * app/core/gimp.c * app/core/gimpbrush.c * app/core/gimpbrushgenerated.c * app/core/gimpcontext.c * app/core/gimpdrawable-transform.c * app/core/gimpimage-new.c * app/core/gimpimage.c * app/core/gimpimagefile.c * app/core/gimpmodules.c * app/core/gimppattern.c * app/display/Makefile.am * app/display/gimpdisplay-handlers.c * app/display/gimpdisplay.[ch] * app/display/gimpdisplayshell-callbacks.c * app/display/gimpdisplayshell-handlers.c * app/display/gimpdisplayshell-layer-select.c * app/display/gimpdisplayshell-render.c * app/display/gimpdisplayshell-scale.c * app/display/gimpdisplayshell-scroll.c * app/display/gimpdisplayshell-selection.c * app/display/gimpdisplayshell.[ch] * app/display/gimpnavigationview.c * app/file/file-save.c * app/gui/device-status-dialog.c * app/gui/dialogs-constructors.c * app/gui/file-commands.c * app/gui/file-new-dialog.c * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c * app/gui/gui.c * app/gui/menus.c * app/gui/paths-dialog.c * app/gui/resize-dialog.c * app/gui/session.c * app/gui/test-commands.c * app/gui/tips-dialog.c * app/gui/tips-dialog.h * app/gui/user-install-dialog.c * app/gui/view-commands.c * app/paint/gimppaintcore.c * app/plug-in/plug-in.c * app/plug-in/plug-ins.c * app/tools/gimpbezierselecttool.c * app/tools/gimpbucketfilltool.c * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimpeditselectiontool.c * app/tools/gimpfuzzyselecttool.c * app/tools/gimpinktool.c * app/tools/gimpmagnifytool.c * app/tools/gimpmeasuretool.c * app/tools/gimppainttool.c * app/tools/gimppathtool.c * app/tools/gimptexttool.[ch] * app/tools/selection_options.c * app/tools/tools.c * app/tools/transform_options.c * app/widgets/gimphelp.c * app/widgets/gimpitemfactory.c * app/widgets/gimpselectioneditor.c * app/xcf/xcf-load.c * tools/pdbgen/pdb/fileops.pdb * tools/pdbgen/pdb/gimprc.pdb * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/transform_tools.pdb: use the new config system instead of the old gimprc stuff. * etc/gimprc.in * etc/gimprc_user.in: adapted to the new gimprc format. Will update the man-page later... * app/pdb/fileops_cmds.c * app/pdb/gimprc_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/pdb/transform_tools_cmds.c * libgimp/gimpgimprc_pdb.c: regenerated. |
|
Sven Neumann | ace7acd3b4 |
app/base/base-enums.h app/paint-funcs/paint-funcs-generic.h
2002-11-05 Sven Neumann <sven@gimp.org> * app/base/base-enums.h * app/paint-funcs/paint-funcs-generic.h * app/paint-funcs/paint-funcs.c * app/widgets/gimpwidgets-constructors.c: applied a patch from Guillermo S. Romero that adds three new layer modes (Softlight, Grain Extract and Grain Merge, #97686). * app/base/base-enums.c * app/pdb/brush_select_cmds.c * app/pdb/brushes_cmds.c * app/pdb/layer_cmds.c * app/pdb/misc_tools_cmds.c * app/widgets/gimpwidgets-constructors.c * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl: regenerated. |
|
Michael Natterer | 451d392aac |
Some PDB cleanup:
2002-09-10 Michael Natterer <mitch@gimp.org> Some PDB cleanup: * tools/pdbgen/pdb/procedural_db.pdb: removed the get_data() and set_data() implementations and the global "data_list" variable. Cleaned up the dump() stuff (pass the FILE pointer around instead of having a global variable for it). Fixed output_string() so it does not crash on NULL strings. * app/core/gimp.[ch]: added gimp->procedural_db_data_list. * app/pdb/procedural_db.[ch]: added procedural_db_[set|get]_data(). Don't leak data identifiers when overwriting an already existing entry. Added g_return_if_fail() stuff to all public functions. * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/drawable.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/parasite.pdb: tweaked some helper functions to take parameters which make them aware of the real type of the objects they handle (e.g. the PDB function gimp_layer_set_name() matches the core function gimp_object_get_name()). * app/pdb/pdb_glue.h: removed ugly CPP-level workarounds for the issue mentioned above. * app/pdb/channel_cmds.c * app/pdb/drawable_cmds.c * app/pdb/layer_cmds.c * app/pdb/parasite_cmds.c * app/pdb/procedural_db_cmds.c: regenerated. |
|
Michael Natterer | a8b08c7de7 |
added check_funcs (GIMP_IS_LAYER, GIMP_IS_IMAGE etc.) to all data types
2002-08-29 Michael Natterer <mitch@gimp.org> * tools/pdbgen/pdb.pl: added check_funcs (GIMP_IS_LAYER, GIMP_IS_IMAGE etc.) to all data types which are looked up by ID... * tools/pdbgen/app.pl: ...and call them here instead of just checking for (item != NULL). This way image item lookup becomes type safe. * app/pdb/channel_cmds.c * app/pdb/color_cmds.c * app/pdb/convert_cmds.c * app/pdb/display_cmds.c * app/pdb/drawable_cmds.c * app/pdb/edit_cmds.c * app/pdb/fileops_cmds.c * app/pdb/floating_sel_cmds.c * app/pdb/guides_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/pdb/misc_tools_cmds.c * app/pdb/paint_tools_cmds.c * app/pdb/parasite_cmds.c * app/pdb/paths_cmds.c * app/pdb/selection_cmds.c * app/pdb/selection_tools_cmds.c * app/pdb/text_tool_cmds.c * app/pdb/transform_tools_cmds.c * app/pdb/undo_cmds.c: regenerated. |
|
Sven Neumann | bba46560ba |
app/core/core-enums.h moved some more enums into the right place and
2002-03-18 Sven Neumann <sven@gimp.org> * app/core/core-enums.h * app/core/core-types.h: moved some more enums into the right place and namespacified them. * app/undo.c * app/core/gimpdrawable-bucket-fill.[ch] * app/core/gimpdrawable.c * app/core/gimpedit.c * app/core/gimpimage-mask.c * app/core/gimpimage-new.c * app/core/gimpimage-qmask.c * app/core/gimplayer.[ch] * app/display/gimpdisplayshell-dnd.c * app/gui/channels-commands.c * app/gui/file-new-dialog.c * app/gui/layers-commands.c * app/gui/menus.c * app/paint-funcs/paint-funcs.c * app/tools/gimpbucketfilltool.c * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/misc_tools.pdb: changed accordingly. * libgimp/gimpcompat.h * plug-ins/script-fu/siod-wrapper.c: added compat defines for changed GimpMaskApplyMode enum. * tools/pdbgen/enums.pl * app/pdb/drawable_cmds.c * app/pdb/edit_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/pdb/misc_tools_cmds.c * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c: regenerated. |
|
Manish Singh | 96f78088b0 |
tools/pdbgen/app.pl tools/pdbgen/enumcode-py.pl tools/pdbgen/enumcode.pl
2002-03-17 Manish Singh <yosh@gimp.org> * tools/pdbgen/app.pl * tools/pdbgen/enumcode-py.pl * tools/pdbgen/enumcode.pl * tools/pdbgen/enumgen.pl: removed enum nick support, best to keep internal and external names consistent * app/core/core-enums.h: remove chops from enums. Change TRANS to TRANSPARENT in GimpBlendMode * app/core/core-types.h: remove chops and nicks from enums. Change INV to INVERSE and SUB to SUBTRACT to make things more clear * app/core/gimpchannel.c * app/gui/channels-commands.c * app/gui/vectors-commands.c * app/tools/gimpbezierselecttool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimprectselecttool.c * app/tools/gimpselectiontool.c * app/tools/selection_options.c * app/tools/tools-types.h * app/widgets/gimpchannellistview.c * app/widgets/gimpvectorslistview.c: reflect SUB -> SUBTRACT change * app/core/gimpdrawable-blend.c: reflect TRANS -> TRANSPARENT change * app/core/gimplayer.c * app/gui/layers-commands.c: reflect INV -> INVERSE change * app/paint/paint-types.h: remove nick from PaintApplicationMode * app/tools/gimperasertool.c: fix tooltip * app/widgets/gimpenummenu.c: #include "libgimp/gimpintl.h" for gettext * libgimp/gimpcompat.h: compatibility enums here, since we removed the nicks * tools/pdbgen/enums.pl * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * app/core/core-enums.c * app/pdb/channel_cmds.c * app/pdb/drawable_cmds.c * app/pdb/edit_cmds.c * app/pdb/layer_cmds.c * app/pdb/misc_tools_cmds.c * app/pdb/paint_tools_cmds.c * app/pdb/selection_cmds.c * app/pdb/selection_tools_cmds.c: regenerated, enum changes * plug-ins/common/hot.c: GIMP_TRANS_IMAGE_FILL -> GIMP_TRANSPARENT_FILL * plug-ins/common/warp.c: GIMP_BG_IMAGE_FILL -> GIMP_BACKGROUND_FILL * plug-ins/script-fu/siod-wrapper.c: compat constant definitions |
|
Michael Natterer | 952353698f |
Forgot some gint opacity values:
2002-03-04 Michael Natterer <mitch@gimp.org> Forgot some gint opacity values: * app/core/gimplayer.[ch]: layer->opacity, gimp_layer_new(), gimp_layer_new_from_tiles() * app/core/gimpimage-projection.[ch]: gimp_image_projection_opacity() * app/core/gimpdrawable-transform.c * app/core/gimpedit.c * app/core/gimpimage-mask.c * app/core/gimpimage-merge.c * app/core/gimpimage-new.c * app/core/gimpimage.c * app/core/gimplayer-floating-sel.c * app/gui/layers-commands.c * app/tools/gimptexttool.c * app/widgets/gimplayerlistview.c * app/xcf/xcf-load.c * app/xcf/xcf-save.c * tools/pdbgen/pdb/layer.pdb: changed accordingly. * app/pdb/layer_cmds.c * libgimp/gimplayer_pdb.c: regenerated. |
|
Michael Natterer | cdf2a90b03 |
app/core/Makefile.am app/core/core-types.h new base class for something
2002-02-25 Michael Natterer <mitch@gimp.org> * app/core/Makefile.am * app/core/core-types.h * app/core/gimpitem.[ch]: new base class for something which is a child of an image, has a PDB ID, a tattoo, parasites and emits a "removed" signal. * app/core/gimpdrawable.[ch] * app/vectors/gimpvectors.[ch]: derive from GimpItem. Removed lots of stuff from GimpDrawable. * app/core/gimp.[ch]: changed gimp->drawable_table and gimp->next_drawable_ID to gimp->item_table and gimp->next_item_id. * app/undo.[ch]: s/undo_push_drawable_parasite/undo_push_item_parasite/, minor cleanups. * app/core/gimplayer.[ch]: changed gimp_layer_new_from_tiles() and gimp_layer_new_from_drawable() to take the "dest_gimage" as second, not first parameter. * app/image_map.c * app/core/gimpchannel.c * app/core/gimpdrawable-blend.c * app/core/gimpdrawable-bucket-fill.c * app/core/gimpdrawable-histogram.c * app/core/gimpdrawable-offset.c * app/core/gimpdrawable-preview.c * app/core/gimpdrawable-transform.c * app/core/gimpedit.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-mask.c * app/core/gimpimage-merge.c * app/core/gimpimage-pick-color.c * app/core/gimpimage.c * app/core/gimplayer-floating-sel.c * app/display/gimpdisplayshell-dnd.c * app/file/file-save.c * app/gui/channels-commands.c * app/gui/file-save-dialog.c * app/gui/layers-commands.c * app/gui/offset-dialog.c * app/gui/paths-dialog.c * app/gui/toolbox.c * 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/plug-in/plug-in.c * app/tools/gimpbezierselecttool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimpinktool.c * app/tools/gimppainttool.c * app/xcf/xcf-load.c * app/xcf/xcf-save.c * app/widgets/gimpdrawablepreview.c: changed accordingly. * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpitemlistview.[ch]: new widget implementing most of the stuff formerly done by GimpDrawableListView. * app/widgets/gimpchannellistview.c * app/widgets/gimpdrawablelistitem.c * app/widgets/gimpdrawablelistview.[ch] * app/widgets/gimplayerlistview.c: changed accordingly. * app/widgets/gimpdnd.[ch]: added a vectors DND type. * app/gui/menus.c * app/gui/dialogs.c * app/gui/dialogs-constructors.[ch]: added a vectors dialog and a vectors item_factory. * app/gui/Makefile.am * app/gui/vectors-commands.[ch]: new files implementing the callbacks for the new vectors dialog and item_factory. * app/pdb/pdb_glue.h: some more ugly hacks to keep intermediate perl code working... * tools/pdbgen/pdb.pl: added a vectors type, use GimpItem for all ID lookups. * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/color.pdb * tools/pdbgen/pdb/drawable.pdb * tools/pdbgen/pdb/edit.pdb * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/misc_tools.pdb * tools/pdbgen/pdb/parasite.pdb * tools/pdbgen/pdb/selection.pdb * tools/pdbgen/pdb/selection_tools.pdb: misc changes according to stuff above. * app/pdb/channel_cmds.c * app/pdb/color_cmds.c * app/pdb/drawable_cmds.c * app/pdb/edit_cmds.c * app/pdb/floating_sel_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/pdb/misc_tools_cmds.c * app/pdb/paint_tools_cmds.c * app/pdb/parasite_cmds.c * app/pdb/selection_cmds.c * app/pdb/selection_tools_cmds.c * app/pdb/text_tool_cmds.c * app/pdb/transform_tools_cmds.c: regenerated. |
|
Michael Natterer | a3c3e7d3a6 |
General undo cleanup:
2002-02-23 Michael Natterer <mitch@gimp.org> General undo cleanup: * app/undo.[ch]: made all undo structs private. Changed all undo_push_foo() functions to take useful parameters instead of "gpointer foo_ptr" and create the undo structs internally. Renamed lots of functions so they are more self-explanatory (like undo_push_gimage_mod -> undo_push_image_size). Added some undo functions (channel reordering is undoable now). Never pass in a UndoType, as they are reseved for groups now (see below). Lots of cleanup and stuff... * app/undo_types.h: is a private header now which defines "enum UndoImplType" which is reserved for actual undo operations. All enum values are named "FOO_UNDO". * app/core/core-types.h: added the "UndoType" enum here and don't include "undo_types.h" any more. The UndoType values are all named "FOO_UNDO_GROUP" and are reserved for undo groups. The ID space of actual undo operations and undo groups is now strictly disjunct. * app/core/gimpchannel.h * app/core/gimpimage.h * app/core/gimplayer.h * app/core/gimplayermask.h * app/paint/gimppaintcore.h * app/tools/gimptransformtool.h: removed undo stuct definitions. * app/undo_history.c * app/path_transform.h * app/core/gimpchannel.c * app/core/gimpdrawable-transform.c * app/core/gimpedit.c * app/core/gimpimage-convert.c * app/core/gimpimage-crop.c * app/core/gimpimage-mask.c * app/core/gimpimage-merge.c * app/core/gimpimage-qmask.c * app/core/gimpimage-resize.c * app/core/gimpimage-scale.c * app/core/gimpimage.c * app/core/gimplayer-floating-sel.c * app/core/gimplayer.c * app/display/gimpdisplayshell-dnd.c * app/gui/channels-commands.c * app/gui/image-commands.c * app/gui/layers-commands.c * app/gui/paths-dialog.c * app/paint/gimppaintcore.c * app/tools/gimpbezierselecttool.c * app/tools/gimpeditselectiontool.c * app/tools/gimpmeasuretool.c * app/tools/gimpmovetool.c * app/tools/gimptexttool.c * app/tools/gimptransformtool.c * tools/pdbgen/pdb/guides.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/undo.pdb: changed accordingly. * app/pdb/guides_cmds.c * app/pdb/layer_cmds.c * app/pdb/undo_cmds.c: regenerated. * app/core/gimpimage.[ch]: added infrastructure for holding a GimpList of GimpVectors objects. The API is the same as for layers and channels. Not used yet. |
|
Michael Natterer | 9f9fa587ec |
app/Makefile.am removed...
2002-02-21 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/floating_sel.[ch]: removed... * app/core/Makefile.am * app/core/gimplayer-floating-sel.[ch]: ...and added here. * app/undo.c * app/core/gimpdrawable-transform.c * app/core/gimpedit.c * app/core/gimpimage-convert.c * app/core/gimpimage-crop.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-mask.c * app/core/gimpimage-merge.c * app/core/gimpimage-projection.c * app/core/gimpimage-qmask.c * app/core/gimpimage-resize.c * app/core/gimpimage-scale.c * app/core/gimpimage.c * app/core/gimplayer.c * app/gui/layers-commands.c * app/tools/gimpeditselectiontool.c * app/tools/gimpfreeselecttool.c * app/tools/gimpmovetool.c * app/tools/gimprectselecttool.c * app/tools/gimptexttool.c * app/tools/gimptransformtool.c * app/xcf/xcf-load.c * app/xcf/xcf-save.c * plug-ins/tools/common/gimpbrushselecttool.c * tools/pdbgen/pdb/floating_sel.pdb * tools/pdbgen/pdb/layer.pdb: changed includes accordingly. * app/pdb/floating_sel_cmds.c * app/pdb/layer_cmds.c: regenerated. |
|
Michael Natterer | bc7c7f3216 |
Implemented #7100 (initialize layer mask with a copy of the image)
2002-02-20 Michael Natterer <mitch@gimp.org> Implemented #7100 (initialize layer mask with a copy of the image) * app/core/core-types.h: added ADD_COPY_MASK and ADD_INV_COPY_MASK enum values. * app/pdb/layer_cmds.c * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl: regenerated. * app/core/gimplayer.c (gimp_layer_create_mask): implement the new layer mask add modes. * app/gui/layers-commands.c (layers_add_mask_query): added radio buttons for the new modes. * app/paint-funcs/paint-funcs.c (flatten_region): this function was never needed so nobody noticed that it never worked. Fixed now. * app/undo.c * app/core/gimplayermask.h * app/core/gimpimage.c: the "mode" field of LayerMaskUndo is obsolete since some earlier 1.3 layer mask change. Removed it. (Makes mask undos work again) |
|
Michael Natterer | 733d6335fe |
Made the interpolation type configurable in the scale and transform
2002-02-12 Michael Natterer <mitch@gimp.org> Made the interpolation type configurable in the scale and transform options dialogs (#69251): * app/base/base-config.[ch] * app/config/gimpbaseconfig.[ch]: removed interpolation_type here... * app/core/gimpcoreconfig.[ch] * app/config/gimpcoreconfig.[ch]: ...and added it here. * app/gimprc.c * app/gui/preferences-dialog.c: changed accordingly. * app/paint-funcs/paint-funcs.[ch]: scale_region: take an interpolation_type parameter. * app/core/gimpchannel.[ch] * app/core/gimpdrawable-transform.[ch] * app/core/gimpimage-scale.[ch] * app/core/gimplayer.[ch]: pass interpolation_type parameters to all scale and transform functions. * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/transform_tools.pdb: changed accordingly. * app/gui/resize-dialog.[ch] * app/tools/transform_options.[ch]: added an interpolation_type menu. * app/gui/image-commands.c * app/gui/layers-commands.c * app/tools/gimptransformtool.c: changed accordingly. * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/pdb/transform_tools_cmds.c: regenerated. |
|
Michael Natterer | 9b8bf8de5c |
made gimp->global_buffer a GimpBuffer, not TileManager.
2001-12-13 Michael Natterer <mitch@gimp.org> * app/core/gimp.[ch]: made gimp->global_buffer a GimpBuffer, not TileManager. * app/core/gimpbuffer.[ch]: added a "gboolean copy_pixels" to gimp_buffer_new(). * app/core/gimpimage-new.c * app/core/gimpedit.[ch] * app/core/gimpimage-qmask.c * app/widgets/gimpbufferpreview.c * app/widgets/gimpbufferview.c * app/widgets/gimpcontainerview-utils.c: chaned accordingly, don't include "base/tile-manager.h". * app/core/gimpdrawable.[ch]: added gimp_drawable_copy(). * app/core/gimpchannel.[ch] * app/core/gimplayer.[ch] * app/core/gimplayermask.[ch]: use it in gimp_[channel|layer|layer_mask]_copy(), added "GType new_type" as paramater to all of them. * app/core/gimpimage-duplicate.c * app/gui/channels-commands.c * app/gui/edit-commands.c * app/gui/layers-commands.c * app/widgets/gimpchannellistview.c * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/selection.pdb: changed accordingly. * app/pdb/channel_cmds.c * app/pdb/layer_cmds.c * app/pdb/selection_cmds.c: regenerated. * app/core/gimplayer.[ch]: removed the "layer_type" parameter from gimp_layer_new_from_tiles() because it always needed to be equal to gimp_image_base_type_with_alpha() of the passed image. * app/core/gimpdrawable-transform.c * app/core/gimpedit.c * app/core/gimpimage-mask.c: cahanged accordingly. * app/core/gimpimage.[ch]: added some new GIMP_IMAGE_TYPE_FOO() marcos to get rid of magic values like "pixels = 3" all over the place. * app/core/gimplayer.[ch]: added gimp_layer_new_from_drawable() which creates a layer from an other image's drawable. * app/core/gimpimage-convert.[ch]: made the RGB and GRAY converters public to use them above, use the new GIMP_IMAGE_TYPE() macros. * app/display/gimpdisplayshell-dnd.c * app/gui/toolbox.c: removed tile manager stuff and use the new functions. * app/widgets/gimpdrawablelistview.[ch]: added a "convert_drawable_func" which is used to handle drops from other images. * app/widgets/gimpdrawablelistitem.c * app/widgets/gimplayerlistitem.c * app/widgets/gimplistitem.[ch]: implemented DND of layers between images using gimp_layer_new_from_drawable(). * app/gui/dialogs-constructors.c: changed accordingly. |
|
Sven Neumann | 03a6c04419 |
app/base/base-enums.h moved all remaining enums to base-enums.h
2001-12-11 Sven Neumann <sven@gimp.org> * app/base/base-enums.h * app/base/base-types.h: moved all remaining enums to base-enums.h * app/core/core-enums.h * app/core/core-types.h: moved GimpImageType to core-enums.h and changed the values from RGB_GIMAGE to GIMP_RGB_IMAGE and the like. * app/core/gimpchannel.c * app/core/gimpdrawable-preview.c * app/core/gimpdrawable-transform.c * app/core/gimpdrawable.c * app/core/gimpimage-contiguous-region.c * app/core/gimpimage-convert.c * app/core/gimpimage-mask.c * app/core/gimpimage-merge.c * app/core/gimpimage-new.c * app/core/gimpimage-projection.c * app/core/gimpimage.[ch] * app/core/gimplayer.c * app/core/gimplayermask.c * app/core/gimppalette-import.c * app/display/gimpdisplayshell-dnd.c * app/display/gimpdisplayshell-render.c * app/gui/file-save-dialog.c * app/gui/toolbox.c * app/plug-in/plug-in.c * app/tools/gimpblendtool.c * app/tools/gimpcolorpickertool.c * app/tools/gimpdodgeburntool.c: changed accordingly. * tools/pdbgen/Makefile.am: no need to parse app/base/base-types.h any longer. * app/pdb/color_cmds.c * app/pdb/drawable_cmds.c * app/pdb/layer_cmds.c * app/pdb/paint_tools_cmds.c * tools/pdbgen/enums.pl: regenerated. |
|
Sven Neumann | a65e1a39e4 |
app/core/Makefile.am new file that holds enums that are registered with
2001-12-08 Sven Neumann <sven@gimp.org> * app/core/Makefile.am * app/core/core-enums.h: new file that holds enums that are registered with the type system and is used to generate core-enums.c. * app/core/core-types.h: include core-enums.h * app/base/base-types.h: namespace cleanup. Prefix all enumeration types with Gimp and their values with GIMP. Moved GimpLayerModeEffects enum ... * app/base/base-enums.h: ... here. * app/image_map.c * app/base/temp-buf.c * app/core/gimpcontext.[ch] * app/core/gimpdrawable-transform.c * app/core/gimpdrawable.c * app/core/gimpedit.c * app/core/gimpimage-mask.c * app/core/gimpimage-merge.c * app/core/gimpimage-new.c * app/core/gimpimage-projection.c * app/core/gimpimage.[ch] * app/core/gimplayer.[ch] * app/display/gimpdisplayshell-dnd.c * app/display/gimpdisplayshell-render.c * app/gui/brush-select.c * app/gui/layers-commands.c * app/gui/preferences-dialog.c * app/gui/toolbox.c * app/paint-funcs/paint-funcs.[ch] * app/tools/gimpconvolvetool.c * app/tools/gimperasertool.c * app/tools/gimpiscissorstool.c * app/tools/gimppainttool.[ch] * app/tools/gimptexttool.c * app/tools/paint_options.c * app/widgets/gimplayerlistview.c * app/widgets/gimpwidgets-constructors.[ch] * app/xcf/xcf-load.c * tools/pdbgen/pdb/brush_select.pdb * tools/pdbgen/pdb/brushes.pdb * tools/pdbgen/pdb/color.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/tools.pdb: changed accordingly. * libgimpbase/gimpbasetypes.h: no need to chop GIMP prefix off the enums any longer. * app/pdb/brush_select_cmds.c * app/pdb/brushes_cmds.c * app/pdb/color_cmds.c * app/pdb/layer_cmds.c * app/pdb/message_cmds.c * app/pdb/procedural_db_cmds.c * app/pdb/tools_cmds.c * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl: regenerated. * app/gimprc.c: removed code to parse for "plug_in" keyword which was left over from some very early gimp days. * app/plug-in/plug-in.[ch]: removed now unused function plug_in_add(). |
|
Simon Budig | 8533a2d3af |
app/base/base-types.h app/paint-funcs/paint-funcs-generic.h
2001-11-24 Simon Budig <simon@gimp.org> * app/base/base-types.h * app/paint-funcs/paint-funcs-generic.h * app/paint-funcs/paint-funcs.c * app/paint-funcs/paint-funcs.h * app/widgets/gimpwidgets-constructors.c: implemented "Color Erase" paint mode, the hack in the eraser tool will be removed. * app/pdb/brush_select_cmds.c * app/pdb/brushes_cmds.c * app/pdb/layer_cmds.c * app/pdb/tools_cmds.c * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl: regenerated |
|
Michael Natterer | 01b780d682 |
added app/display/ and app/plug-in/. Empty for now except for the types
2001-08-17 Michael Natterer <mitch@gimp.org> * configure.in: added app/display/ and app/plug-in/. Empty for now except for the types files. * app/Makefile.am * app/appenums.h * app/apptypes.h: removed. * app/display/Makefile.am * app/display/display-types.h * app/plug-in/Makefile.am * app/plug-in/plug-in-types.h * app/gui/Makefile.am * app/gui/gui-types.h * app/pdb/Makefile.am * app/pdb/pdb-types.h: new files for typedefs. * app/appenv.h: added MessageHandlerType and StackTraceMode here. * app/undo_types.h: moved undo struct typedefs here. * app/tools/tools-types.h * app/core/core-types.h: added some enums and Tattoo here (renamed to GimpTattoo). * app/gdisplay.h: temp_hack: #include "display/display-types.h" * app/gimphelp.c: s/gtk_idle_add/g_idle_add/ * app/gimprc.c: don't use "gimprc" in token handlers but the passed "val1p" and "val2p". * app/image_map.[ch]: cleanup in preparation of making a GObject out of it. * app/base/pixel-region.[ch]: no need to pass the PixelRegionIterator around as void pointer. * app/core/gimp.[ch] * app/core/gimpcontext.[ch] * app/core/gimptoolinfo.[ch] * app/tools/tool_manager.c * app/widgets/gimpdnd.c: added the standard_tool_info to the Gimp object. * app/batch.c * app/file-open.c * app/file-save.c * app/file-utils.c * app/interface.c * app/main.c * app/path.[ch] * app/pathP.h * app/plug_in.h * app/core/gimpdrawable.[ch] * app/core/gimpimage-mask.c * app/core/gimpimage.[ch] * app/core/gimplayer.c * app/gui/color-area.c * app/gui/color-notebook.c * app/gui/colormap-dialog.c * app/gui/dialogs-commands.c * app/gui/dialogs-constructors.c * app/gui/error-console-dialog.c * app/gui/gradient-editor.c * app/gui/gradient-select.c * app/gui/indicator-area.c * app/gui/info-dialog.c * app/gui/palette-editor.c * app/gui/palette-select.c * app/gui/pattern-select.c * app/gui/session.c * app/gui/splash.c * app/gui/view-commands.c * app/tools/gimpinktool-blob.c * app/widgets/gimpcolorpanel.c * app/widgets/gimpdockbook.c * app/widgets/gimppreview.c * app/xcf/xcf-load.c * app/xcf/xcf-save.c * app/xcf/xcf.c: changed accordingly: s/Tattoo/GimpTattoo/, include the new types files, include <glib-object.h> instead of >gtk/gtk.h>. Bad hacks to get rid of SELECTION_OFF and friends in core/ (will be replaced ba a signal soon). * tools/pdbgen/Makefile.am: changed list of headers scanned for enums accordingly. * app/pdb/procedural_db.c * tools/pdbgen/app.pl * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/display.pdb * tools/pdbgen/pdb/gradient_select.pdb * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/pattern_select.pdb: same fixes as above, added hacks to ensure that all foo-types.h files are included before all other gimp internal includes, include "pdb-types.h" unconditionally. * tools/pdbgen/enums.pl * app/pdb/*_cmds.c: regenerated. |
|
Michael Natterer | 166714985c |
app/Makefile.am app/gimpunit.c removed...
2001-07-11 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/gimpunit.c * app/unitrc.h: removed... * app/core/Makefile.am * app/core/gimpunit.[ch]: ...re-added here. * app/core/gimp.[ch]: added the image and drawable hash tables, next_image_ID, next_guide_ID and next_drawable_ID, added a GimpCoreConfig pointer which is now initalized dynamically. * app/core/gimpcoreconfig.[ch]: don't provide a global core_config variable any more (need to access gimp->config now). * app/gdisplay.[ch] * app/core/gimpdrawable.[ch] * app/core/gimpimage.[ch]: removed all global variables from gimpimage.c and gimpdrawable.c, pass a Gimp* to all *_get_by_ID() functions. * tools/pdbgen/app.pl: pass Gimp* to all _get_by_ID() functions. * app/app_procs.c * app/file-open.c * app/file-save.c * app/gimprc.c * app/libgimp_glue.c * app/module_db.c * app/plug_in.c * app/undo.c * app/user_install.c * app/core/core-types.h * app/core/gimpcontext.c * app/core/gimpimage-crop.c * app/core/gimpimage-new.c * app/core/gimpparasite.c * app/gui/file-new-dialog.c * app/gui/file-open-dialog.c * app/gui/info-window.c * app/gui/preferences-dialog.c * app/gui/resize-dialog.c * app/xcf/xcf-load.c * app/xcf/xcf-save.c * app/xcf/xcf.c * app/widgets/gimpdnd.c * app/pdb/channel_cmds.c * app/pdb/color_cmds.c * app/pdb/convert_cmds.c * app/pdb/display_cmds.c * app/pdb/drawable_cmds.c * app/pdb/edit_cmds.c * app/pdb/fileops_cmds.c * app/pdb/floating_sel_cmds.c * app/pdb/guides_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/pdb/parasite_cmds.c * app/pdb/paths_cmds.c * app/pdb/selection_cmds.c * app/pdb/text_tool_cmds.c * app/pdb/tools_cmds.c * app/pdb/undo_cmds.c * app/pdb/unit_cmds.c * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/unit.pdb: changed accordingly. |
|
Michael Natterer | 37ce6b9ac8 |
app/Makefile.am removed.
2001-07-08 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/drawable.[ch]: removed. * app/core/gimpdrawable.[ch]: added the functions here. Made an end to the myth that FG/BG and the undo system (!!!) are not really part of the core. * app/disp_callbacks.c * app/floating_sel.c * app/image_map.c * app/qmask.c * app/undo.c * app/core/gimpchannel.c * app/core/gimpdrawable-desaturate.c * app/core/gimpdrawable-equalize.c * app/core/gimpdrawable-invert.c * app/core/gimpdrawable-offset.c * app/core/gimpedit.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-mask.c * app/core/gimpimage-new.c * app/core/gimpimage.[ch] * app/core/gimplayer.c * app/core/gimplayermask.c * app/gui/channels-commands.c * app/gui/gui.c * app/gui/layers-commands.c * app/tools/gimpairbrushtool.c * app/tools/gimpbezierselecttool.c * app/tools/gimpblendtool.c * app/tools/gimpbrightnesscontrasttool.c * app/tools/gimpbucketfilltool.c * app/tools/gimpclonetool.c * app/tools/gimpcolorbalancetool.c * app/tools/gimpconvolvetool.c * app/tools/gimpcurvestool.c * app/tools/gimphistogramtool.c * app/tools/gimphuesaturationtool.c * app/tools/gimpinktool.c * app/tools/gimpiscissorstool.c * app/tools/gimplevelstool.c * app/tools/gimppainttool.c * app/tools/gimpposterizetool.c * app/tools/gimpscaletool.c * app/tools/gimpthresholdtool.c * app/tools/gimptransformtool.c * app/tools/tool_manager.c * app/widgets/gimpchannellistitem.c * app/widgets/gimpchannellistview.c * app/widgets/gimpdrawablelistitem.c * app/widgets/gimplayerlistitem.c * app/widgets/gimplayerlistview.c * app/pdb/channel_cmds.c * app/pdb/color_cmds.c * app/pdb/drawable_cmds.c * app/pdb/edit_cmds.c * app/pdb/floating_sel_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/pdb/parasite_cmds.c * app/pdb/selection_cmds.c * app/pdb/text_tool_cmds.c * app/pdb/tools_cmds.c * tools/pdbgen/pdb.pl * tools/pdbgen/pdb/color.pdb * tools/pdbgen/pdb/drawable.pdb: changed accordingly. Misc small fixes and cleanups. |
|
Michael Natterer | 0164596064 |
app/core/Makefile.am app/core/core-types.h added an "application object"
2001-07-04 Michael Natterer <mitch@gimp.org> * app/core/Makefile.am * app/core/core-types.h * app/core/gimp.[ch]: added an "application object" called Gimp. Currently, it contains the image list, the clipboard, the data factories, the procedural hashtable and the tool info list. It's the toplevel object of the core object system. Finally, creating a Gimp object will return a standalone gimp core engine instance with no other global states/variables involved. * app/app_procs.[ch]: allocate a "Gimp" instance called "the_gimp" :) Removed stuff which is now done by the "Gimp" object. Merged gimp_init() into app_init() because gimp_init() is taken now. * app/context_manager.[ch]: removed stuff done by "Gimp". * app/batch.[ch] * app/gimage.[ch] * app/xcf/xcf-load.[ch] * app/xcf/xcf.[ch] * app/core/gimpedit.[ch] * app/tools/tool_manager.[ch]: pass around an additional "Gimp" argument. * app/pdb/procedural_db.[ch]: pass a "Gimp" pointer as first parameter to all internal procedures and to all procedural_db_* functions. * app/core/gimpcontext.[ch] * app/core/gimpimage.[ch]: added a "Gimp" pointer to the structs. * app/devices.c * app/errors.c * app/file-open.c * app/file-save.c * app/gimphelp.c * app/gimpunit.c * app/image_new.c * app/main.c * app/nav_window.c * app/plug_in.c * app/base/base.c * app/core/gimpdatafactory.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-mask.c * app/core/gimptoolinfo.[ch] * app/gui/brush-select.c * app/gui/convert-dialog.c * app/gui/dialogs-constructors.c * app/gui/edit-commands.c * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c * app/gui/gradient-editor.c * app/gui/gradient-select.c * app/gui/gui.c * app/gui/image-commands.c * app/gui/info-window.c * app/gui/menus.c * app/gui/palette-editor.c * app/gui/palette-import-dialog.c * app/gui/palette-select.c * app/gui/paths-dialog.c * app/gui/pattern-select.c * app/gui/preferences-dialog.c * app/gui/test-commands.c * app/gui/toolbox.c * app/gui/tools-commands.c * app/tools/gimpbezierselecttool.c * app/tools/gimpbucketfilltool.c * app/tools/gimppainttool.h * app/tools/gimptexttool.c * app/tools/gimptransformtool.h * app/widgets/gimpbufferview.c * app/widgets/gimpcontainerview-utils.c * app/widgets/gimpcursor.c * app/widgets/gimpdnd.c * app/widgets/gimpimagedock.c: changed accordingly. Cleaned up lots of includes. Many files still access the global "the_gimp" variable exported by app_procs.h. * tools/pdbgen/app.pl * tools/pdbgen/pdb/brush_select.pdb * tools/pdbgen/pdb/brushes.pdb * tools/pdbgen/pdb/convert.pdb * tools/pdbgen/pdb/edit.pdb * tools/pdbgen/pdb/fileops.pdb * tools/pdbgen/pdb/gradient_select.pdb * tools/pdbgen/pdb/gradients.pdb * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/palette.pdb * tools/pdbgen/pdb/pattern_select.pdb * tools/pdbgen/pdb/patterns.pdb * tools/pdbgen/pdb/procedural_db.pdb: changed accordingly. Don't use "the_gimp" here because all procedures get passed a "Gimp" pointer now. * app/pdb/*: regenerated. |
|
Michael Natterer | 7d1375e949 |
Makefile.am configure.in added new directory libgimpbase/
2001-05-21 Michael Natterer <mitch@gimp.org> * Makefile.am * configure.in * gimptool-1.4.in: added new directory libgimpbase/ * app/Makefile.am: link against the new lib. * app/appenums.h: removed the PDB enums which are in libgimpbase/gimpbasetypes.h now. They are all "Gimp" prefixed. * app/apptypes.h: #include "libgimpbase/gimpbasetypes.h" * app/[lots] * app/core/[of] * app/gui/[files] * app/tools/: changed includes and all PDB types. * app/pdb/*: regenerated. * libgimp/Makefile.am: don't build libgimpi.a uglyness any more. * libgimp/gimpenv.[ch] * libgimp/gimplimits.[hh] * libgimp/gimpparasite.[ch] * libgimp/gimpparasiteio.[ch] * libgimp/gimpprotocol.[ch] * libgimp/gimpsignal.[ch] * libgimp/gimpunit.h * libgimp/gimputils.[ch] * libgimp/gimpwire.[ch]: removed... * libgimpbase/*: ...and added here as new library. * libgimp/gimp.[ch] * libgimp/gimpdrawable.[ch] * libgimp/gimpenums.h * libgimp/gimpimage.[ch] * libgimp/gimptile.c * libgimp/gimptypes.h * libgimp/gimpunit.c: changed accordingly. Added the gimp_*_add_new_parasite to gimp.[ch], gimpdrawable.[ch] and gimpimage.[ch]. * libgimpwidgets/gimppatheditor.c * libgimpwidgets/gimpquerybox.c * libgimpwidgets/gimpsizeentry.c * libgimpwidgets/gimpunitmenu.c * libgimpwidgets/gimpwidgets.c * libgimpwidgets/gimpwidgetstypes.h: changed includes accordingly. * plug-ins/*/Makefile.am * plug-ins/common/mkgen.pl: link against libgimpbase. * tools/pdbgen/Makefile.am: scan libgimpbase/gimpbasetypes.h, so the enums are known to pdbgen... * tools/pdbgen/enumcode.pl: ...but don't write them out to libgimp/gimpenums.h * tools/pdbgen/app.pl: include libgimp/gimpbase.h in all *_cmds.c files. Added GIMP_ to the type names ganerated in app/. * tools/pdbgen/enums.pl: regenerated. * tools/pdbgen/pdb.pl * tools/pdbgen/pdb/fileops.pdb * tools/pdbgen/pdb/procedural_db.pdb * tools/pdbgen/pdb/unit.pdb: changed includes. |
|
Michael Natterer | a6cce18427 |
app/Makefile.am put the regex and MMX sources to EXTRA_DIST so they get
2001-05-20 Michael Natterer <mitch@gimp.org> * app/Makefile.am * plug-ins/script-fu/Makefile.am: put the regex and MMX sources to EXTRA_DIST so they get distributed unconditionally. * tools/pdbgen/pdb/layer.pdb: re-enabled the layer_mask procs but let them use accessors (which don't exist)... * app/pdb/pdb_glue.h: ... #define the accessors as macros here. Yes, this is ugly, but I simply don't fully understand pdbgen yoshcode. * app/pdb/internal_procs.c * app/pdb/layer_cmds.c * libgimp/gimplayer_pdb.[ch]: regenerated with the layer_mask accessors. * app/tools/Makefile.am: add the files which are not built to EXTRA_DIST. * pixmaps/Makefile.am * pixmaps/channel.xbm * pixmaps/eye.xbm * pixmaps/layer.xbm * pixmaps/linked.xbm * pixmaps/mask.xbm: removed. * plug-ins/Makefile.am: build XJT again because the layer_mask stuff is back. Perl also seems to build again. * plug-ins/common/aa.c: explicit casting fixes some warnings. * plug-ins/script-fu/interp_regex.c: #include "config.h". |
|
Michael Natterer | d240f623f1 |
new directory app/base/
2001-05-15 Michael Natterer <mitch@gimp.org> * configure.in: new directory app/base/ * app/Makefile.am * app/boundary.[ch] * app/brush_scale.[ch] * app/gimpchecks.h * app/gimplut.[ch] * app/pixel_processor.[ch] * app/pixel_region.[ch] * app/pixel_surround.[ch] * app/temp_buf.[ch] * app/tile.[ch] * app/tile_cache.[ch] * app/tile_manager.[ch] * app/tile_manager_pvt.h * app/tile_pvt.h * app/tile_swap.[ch]: moved to base/ * app/base/Makefile.am * app/base/base-types.h * app/base/*: new directory for the sub-object pixel maniplation and storage stuff. Does not include Gtk+ or anything outside base/. Did some cleanup in all files. * app/appenums.h * app/apptypes.h * app/core/gimpimage.h: removed types which are now in base/base-types.h. * app/base/base-config.[ch] * app/gimprc.[ch]: put the config variables for base/ to their own file so base/ doesn not have to include gimprc.h (does not yet work, i.e. the variables are un-configurable right now) * app/main.c: set a log handler for "Gimp-Base". * app/paint-funcs/Makefile.am * app/paint-funcs/paint-funcs.[ch]: removed the color hash which maps RGB to color indices because it's a totally standalone system which has nothing to do with the paint-funcs and introduced a GimpImage dependency. paint-funcs/ should be considered on the same sub-object (glib-only) level as base/, only in a different directory. * app/core/Makefile.am * app/core/gimpimage-colorhash.[ch]: put the color hash here. * app/gimage.c: don't invalidate the color hash here... * app/core/gimpimage.c: ... but in the colormap_changed() default inplementation. Initialize the hash in class_init(). * tools/pdbgen/Makefile.am: scan app/base/base-types.h for enums. * tools/pdbgen/enums.pl: regenerated. * app/[lots] * app/core/[of] * app/gui/[files] * app/pdb/[all] * app/tools/[over] * app/widgets/[the] * tools/pdbgen/pdb/[place]: changed #includes accordingly. And use base_config->value instead of the stuff from gimprc.h. |
|
Michael Natterer | b86ce96ae4 |
app/appenums.h app/core/core-types.h moved some more types to core-types.h
2001-05-13 Michael Natterer <mitch@gimp.org> * app/appenums.h * app/core/core-types.h * app/tools/tools-types.h: moved some more types to core-types.h and tools-types.h. Removed AUXILLARY_CHANNEL from the ChannelType enum. * app/gdisplay.[ch]: removed the "depth" and "color_type" fields from the struct. Cleaned up the header. * app/selection.c * app/gui/info-window.c: use g_visual->depth instead of gdisp->depth. * app/gimphelp.c: #include "core/core-types.h" * tools/pdbgen/Makefile.am: added app/core/core-types.h to the list of files to be scanned for enums. * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl * app/pdb/drawable_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c: regenerated. |
|
Michael Natterer | d1022c34b6 |
app/Makefile.am removed.
2001-05-10 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/asupsample.[ch]: removed. * app/core/Makefile.am * app/core/core-types.h * app/tools/Makefile.am * app/tools/tools-types.h: new files. * app/tools/gimptoolinfo.[ch]: removed. * app/core/gimptoolinfo.[ch]: added here. * libgimp/Makefile.am * libgimp/gimp.h * libgimp/gimpadaptivesupersample.[ch] * libgimp/gimpbilinear.[ch]: removed here... * libgimpcolor/Makefile.am * libgimpcolor/gimpcolortypes.h * libgimpcolor/gimpadaptivesupersample.[ch] * libgimpcolor/gimpbilinear.[ch]: ..and added here. * tools/pdbgen/app.pl * tools/pdbgen/pdb/paths.pdb * app/*.c: changed tons of #include's |
|
Michael Natterer | 8985b107c3 |
configure.in added new directory app/core/ for the core object system.
2001-05-09 Michael Natterer <mitch@gimp.org> * configure.in * app/Makefile.am: added new directory app/core/ for the core object system. * app/gimage_mask.[ch] * app/gimpbrush-header.h * app/gimpbrush.[ch] * app/gimpbrushgenerated.[ch] * app/gimpbrushpipe.[ch] * app/gimpchannel.[ch] * app/gimpcontainer.[ch] * app/gimpcontext.[ch] * app/gimpdata.[ch] * app/gimpdatafactory.[ch] * app/gimpdatalist.h * app/gimpdrawable-desaturate.[ch] * app/gimpdrawable-equalize.[ch] * app/gimpdrawable-invert.[ch] * app/gimpdrawable-offset.[ch] * app/gimpdrawable-preview.[ch] * app/gimpdrawable.[ch] * app/gimpgradient.[ch] * app/gimpimage-convert.[ch] * app/gimpimage-duplicate.[ch] * app/gimpimage-undo.[ch] * app/gimpimage.[ch] * app/gimplayer.[ch] * app/gimplayermask.[ch] * app/gimplist.[ch] * app/gimpmarshal.[ch] * app/gimpobject.[ch] * app/gimppalette-import.[ch] * app/gimppalette.[ch] * app/gimppattern-header.h * app/gimppattern.[ch] * app/gimpundo.[ch] * app/gimpundostack.[ch] * app/gimpviewable.[ch]: removed these files... * app/core/*: ...and added them here. * app/*.c * app/gui/*.c * app/pdb/*.c * app/tools/*.c * app/widgets/*.c * plug-ins/common/gbr.c * plug-ins/common/gih.c * plug-ins/common/pat.c * po/POTFILES.in * tools/pdbgen/Makefile.am * tools/pdbgen/enums.pl * tools/pdbgen/pdb.pl * tools/pdbgen/pdb/*.pdb: changed accordingly. |
|
Michael Natterer | 86dc60045c |
removed the ID system from the pdb/ subdir...
2001-04-13 Michael Natterer <mitch@gimp.org> * app/pdb/procedural_db.[ch]: removed the ID system from the pdb/ subdir... * app/gimpimage.[ch]: ...and temporarily added it back to GimpImage. The ID stuff is not only used by the PDB but is a more general type of service which is needed for the PDB, DND and some parts of the GUI. Finally, a GimpFactory class with subclasses for data objects, images etc. will maintain the ID spaces. * app/colormap_dialog.c * app/file-open.c * app/file-save.c * app/gdisplay.c * app/gimpdnd.c * app/gimpdrawable.c * app/info_window.c * app/lc_dialog.c * app/nav_window.c * app/palette_import.c * app/paths_dialog.c * app/plug_in.c * app/xcf.c * app/tools/gimptexttool.c * tools/pdbgen/pdb.pl * tools/pdbgen/pdb/image.pdb: use GimpImage's ID functions. * app/pdb/channel_cmds.c * app/pdb/channel_ops_cmds.c * app/pdb/convert_cmds.c * app/pdb/display_cmds.c * app/pdb/drawable_cmds.c * app/pdb/fileops_cmds.c * app/pdb/guides_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/pdb/parasite_cmds.c * app/pdb/paths_cmds.c * app/pdb/selection_cmds.c * app/pdb/text_tool_cmds.c * app/pdb/tools_cmds.c * app/pdb/undo_cmds.c: regenerated. |
|
Michael Natterer | b51d761fcc |
app/Makefile.am app/apptypes.h new subclass of GimpDrawableListView (the
2001-03-11 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/apptypes.h * app/gimplayerlistview.[ch]: new subclass of GimpDrawableListView (the upcoming replacement of the layers dialog). Connects to the new GimpLayer signals using the layer container as signal proxy (see below). * app/gimpcontainerview.[ch]: made "set_container" a virtual function. This is needed by the GimpLayerListView to connect/disconnect signals. Subclasses implementing this method MUST obey the following order of instructions: 1. disconnect from signals related to GimpContainerView->container 2. chain up (!!!) 3. connect to signals related to GimpContainerView->container And yes, I will add DocBook files for all those new objects :) * app/gimppreview.[ch]: made "border_color" a GimpRGB instead of guchar[3]. Added gimp_preview_set_border_color(). * app/gimpcontainergridview.c * app/gimplayerlistitem.c: use gimp_preview_set_border_color(). * app/gimpcontainerlistview.c * app/gimpdrawablelistview.c: cleanup. * app/gimpdrawablelistitem.c: we can safely asume that our parent widget is a GimpDrawableListView and use it's "reorder_drawable" function pointer (after checking that it's there). * app/gimplistitem.c: connect the correct DND type when changing the container of a list item with "reorderable" enabled. * app/gimplayer.[ch]: added accessors and "*_changed" signals for layer->mode, layer->opacity and layer->preserve_trans. * app/disp_callbacks.c: fixed a FIXME: use the correct bucket fill tool context again. * app/tools/paint_options.[ch]: paint_mode_menu_new(): added a boolean which toggles the "Behind" item on/off to the same constructor can be used for all paint mode menus. * app/tools/gimptoolinfo.c: rect. select is the standard tool again. * app/brush_select.c * app/floating_sel.c * app/gimpimage.c * app/layers_dialog.c * app/pdb/layer_cmds.c * app/tools/gimpeditselectiontool.c * tools/pdbgen/pdb/layer.pdb: use the new layer accessors and the paint_mode_menu constructor. * app/commands.c * app/gdisplay.c * app/menus.c * app/undo.c * app/tools/gimppainttool.c * app/tools/gimptool.c * app/tools/paint_options.c * app/tools/tool_manager.c: put the #warning's back inside #ifdef __GNUC__ |
|
Michael Natterer | af76f2bbb8 |
removed the layer mask functions.
2001-03-06 Michael Natterer <mitch@gimp.org> * app/gimage.[ch]: removed the layer mask functions. * app/gimpchannel.[ch]: added a boolean "dummy" parameter to gimp_channel_copy() so it has the same signature as gimp_layer_copy() and can be used by the GimpDrawableListView to generically duplicate drawables. * app/gimpcontainerview.c: call "select_item" with a NULL item before changing the underlying GimpContainer so subclasses have a chance to update (e.g. set button sensitivity). * app/gimpdnd.c: folded all the GtkType comparing code into a utility function (much more readable now). * app/gimpdrawablelistview.[ch]: activated the "raise", "lower", "duplicate" and "delete". I'm not really happy with all those function pointers passed to the constructor (and the dummy parameters I've added to some GimpChannel functions) -- OTOH the generic view maybe worth the "gboolean dummy" cruft hanging around in the channel class. * app/gimplayer.[ch]: removed the "apply_mask", "edit_mask" and "show_mask" booleans ... * app/gimplayermask.[ch]: .. and added them here together with proper accessors and "*_changed" signals. This also makes the layer mask undo code much clearer as we don't have to store the booleans separately. * app/gimplayerlistitem.c: badly hacked to acheive the correct indicator being drawn around the active drawable. This needs a new GimpPreview function for setting the border color. * app/gimplistitem.c: smaller horizontal spacing. * app/gimppreview.[ch]: added the "border_width" parameter also to gimp_preview_set_size() so we can modify all previews the same way after creation. * app/layers_dialog.c: no need to push an undo group around the "duplicate layer" code. Was this an artefact or did I miss something here ??? * app/channel_ops.c * app/channels_dialog.c * app/gimage_mask.c * app/gimpcontainergridview.c * app/gimpcontainerlistview.c * app/gimpdrawablelistitem.c * app/gimpimage.[ch] * app/qmask.c * app/test_commands.c * app/undo.c * app/xcf.c * app/pdb/channel_cmds.c * tools/pdbgen/pdb/channel.pdb * app/pdb/selection_cmds.c * tools/pdbgen/pdb/selection.pdb: changed accordingly. * app/pdb/internal_procs.c * app/pdb/layer_cmds.c * libgimp/gimplayer_pdb.[ch] * tools/pdbgen/pdb/layer.pdb: commented out the layer mask accessors from the perl code, so the functions temporarily disappeared all over the place. * plug-ins/Makefile.am: don't build XJT until the layer mask stuff is back. * pixmaps/eye.xpm: cropped it to it's minimal size. |
|
Michael Natterer | 65235b91a9 |
new function gimp_drawable_set_visible(). Renamed gimp_drawable_visible()
2001-03-04 Michael Natterer <mitch@gimp.org> * app/gimpdrawable.[ch]: new function gimp_drawable_set_visible(). Renamed gimp_drawable_visible() to gimp_drawable_get_visible(). Added a "visibility_changed" signal. * app/gimplistitem.[ch]: new virtual function "set_viewable" which allows subclasses to connect to the viewable's signals. * app/gimpdrawablelistitem.[ch]: added an eye button. Implement "set_viewable" to connect to the "visibility_changed" signal. * app/gimpchannel.[ch]: removed unused function gimp_channel_toggle_visibility(). * app/channels_dialog.c * app/floating_sel.c * app/gimage_mask.c * app/gimpimage.c * app/gimplayer.c * app/layers_dialog.c * app/xcf.c * app/pdb/channel_cmds.c * app/pdb/layer_cmds.c * app/pdb/pdb_glue.h * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/layer.pdb: removed direct access of drawable->visible and use the functions instead. Also makes PDB code generation nicer. * pixmaps/eye.xpm: cropped it a bit. |
|
Sven Neumann | cde309e45d | made it compile again | |
Sven Neumann | 9e131cb249 |
converted gimage->layers and gimage->channels to GimpLists.
2001-02-19 Sven Neumann <sven@gimp.org> * app/gimpimage.[ch]: converted gimage->layers and gimage->channels to GimpLists. * app/channel_ops.c * app/channels_dialog.c * app/commands.c * app/convert.c * app/floating_sel.c * app/gdisplay.c * app/gimpdrawable.c * app/layers_dialog.c * app/resize.c * app/undo.c * app/xcf.c * app/pdb/display_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/tools/crop.c * app/tools/edit_selection.c * tools/pdbgen/pdb/display.pdb * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/layer.pdb: changed accordingly |
|
Michael Natterer | dde74f9735 |
app/Makefile.am app/gimpchannel.[ch] new files moved here by Yosh.
2001-02-01 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/gimpchannel.[ch] * app/gimplayer.[ch]: new files moved here by Yosh. * app/channel.[ch] * app/layer.[ch]: removed. * app/gdisplay.c: cleanup stuff. * app/[lotsa files].c * tools/pdbgen/Makefile.am * tools/pdbgen/pdb.pl * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/drawable.pdb * tools/pdbgen/pdb/floating_sel.pdb * tools/pdbgen/pdb/layer.pdb: changed includes accordingly. |
|
Michael Natterer | d3dcfadccf |
app/pdb/Makefile.am new file which contains the stuff that makes PDB code
2001-01-29 Michael Natterer <mitch@gimp.org> * app/pdb/Makefile.am * app/pdb/pdb_glue.h: new file which contains the stuff that makes PDB code generation easier but is ugly when used in the app (see my comment in the log below). Contains: gimp_drawable_[layer|layer_mask|channel]() [channel|gimp_layer]_[set|get]_[name|tattoo]() * app/channel.[ch] * app/channels_dialog.c * app/gimpdrawable.h * app/gimpimage.c * app/gimplayermask.h * app/layer.c * app/layer.h * app/toolbox.c * app/undo.c * app/xcf.c * app/pdb/channel_cmds.c * app/pdb/drawable_cmds.c * app/pdb/layer_cmds.c * app/pdb/selection_cmds.c * app/tools/bezier_select.c * app/tools/bucket_fill.c * app/tools/by_color_select.c * app/tools/ellipse_select.c * app/tools/free_select.c * app/tools/fuzzy_select.c * app/tools/iscissors.c * app/tools/rect_select.c * tools/pdbgen/pdb/channel.pdb * tools/pdbgen/pdb/drawable.pdb * tools/pdbgen/pdb/layer.pdb * tools/pdbgen/pdb/selection.pdb: changed accordingly. |
|
Michael Natterer | a2ae989ff3 |
removed the "Layer" typedef.
2001-01-29 Michael Natterer <mitch@gimp.org> * app/apptypes.h: removed the "Layer" typedef. * app/layer.[ch]: removed the defines of the old function names. Don't implement methods of the parent class (get_name, get_tattoo, ...) but define them as macros. They will go to a separate "pdb_glue.h" header because they are used only by the PDB to simplify code generation (no application file should say gimp_layer_get_tattoo() but always gimp_drawable_get_tatoo()). * app/channel.h * app/channel_ops.c * app/channels_dialog.c * app/commands.c * app/convert.c * app/disp_callbacks.c * app/floating_sel.[ch] * app/gdisplay.c * app/gimage.c * app/gimage_mask.c * app/gimage_mask.h * app/gimpdnd.c * app/gimpdrawable.h * app/gimpimage.[ch] * app/gimplayermask.h * app/global_edit.c * app/image_new.c * app/layer_select.c * app/layers_dialog.c * app/resize.c * app/undo.c * app/xcf.[ch] * app/pdb/drawable_cmds.c * app/pdb/floating_sel_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/tools/bucket_fill.c * app/tools/by_color_select.c * app/tools/clone.c * app/tools/crop.c * app/tools/edit_selection.c * app/tools/ink.c * app/tools/move.c * app/tools/paint_core.c * app/tools/rect_select.c * app/tools/text_tool.c * app/tools/transform_core.c * tools/pdbgen/pdb/drawable.pdb * tools/pdbgen/pdb/floating_sel.pdb * tools/pdbgen/pdb/image.pdb * tools/pdbgen/pdb/layer.pdb: changed accordingly, cleanup. |
|
Michael Natterer | 8ddebdf79a |
app/Makefile.am new files cut out of layer.[ch]. Renamed all functions to
2001-01-28 Michael Natterer <mitch@gimp.org> * app/Makefile.am * app/gimplayermask.[ch]: new files cut out of layer.[ch]. Renamed all functions to gimp_layes_mask_*(). removed artefacts like the ref/unref functions. * app/apptypes.h: removed the "LayerMask" typedef. * app/layer.[ch]: removed the layer mask stuff and renamed all functions to gimp_layer_*(). Added temporary typedefs for the old function names. The layer mask preview stuff is still there (should probably go to new layer_preview.{ch] files). * app/gimpimage.[ch]: added gimp_image_invalidate_[layer|channel]_previews() formerly known as [layer|channel]_invalidate_previews(). * app/channel.[ch]: moved channel_layer_alpha() and channel_layer_mask() here because they are methods of the Channel. * app/channel_ops.c * app/convert.c * app/disp_callbacks.c * app/fileops.c * app/floating_sel.c * app/gimage.c * app/gimage_mask.c * app/gimpdnd.c * app/global_edit.c * app/layers_dialog.c * app/preferences_dialog.c * app/toolbox.c * app/undo.c * app/xcf.c * app/pdb/drawable_cmds.c * app/pdb/image_cmds.c * app/pdb/layer_cmds.c * app/tools/crop.c * app/tools/text_tool.c * app/tools/transform_core.c * tools/pdbgen/pdb.pl * tools/pdbgen/pdb/drawable.pdb: changed accordingly, cleanup. |
|
Sven Neumann | 6a31b131d1 |
changed destdir for app-side PDB wrappers to app/pdb
2001-01-21 Sven Neumann <sven@gimp.org> * tools/pdbgen/app.pl: changed destdir for app-side PDB wrappers to app/pdb * app/Makefile.am: don't create libgimpim.a in app. * configure.in * app/pdb/Makefile.am * app/pdb/internal_procs.[ch] * app/pdb/procedural_db.[ch] * app/pdb/*_cmds.c: moved PDB functions into their own subdirectory. * app/internal_procs.[ch] * app/procedural_db.[ch] * app/*_cmds.c: removed here * app/app_procs.c * app/batch.c * app/bezier_select.c * app/brush_select.c * app/bucket_fill.c * app/colormap_dialog.c * app/fileops.c * app/gimage.c * app/gimage_mask.c * app/gimphelp.c * app/gradient_select.c * app/info_window.c * app/invert.c * app/lc_dialog.c * app/menus.c * app/nav_window.c * app/palette_import.c * app/paths_dialog.c * app/pattern_select.c * app/plug_in.h * app/text_tool.c * app/xcf.c * po/POTFILES.in: changed accordingly |