2006-10-21 Michael Natterer <mitch@gimp.org> Added "Edit -> Fade" which allows to modify the paint mode and opacity of the last drawable operation (fill, plugins etc.). Started from a patch by Bill Skaggs. Fixes bug #170707. * app/base/base-enums.[ch] (enum GimpLayerModeEffects): register the values REPLACE_MODE, ERASE_MODE and ANTI_ERASE_MODE with the type system. * app/widgets/gimppropwidgets.[ch] * app/widgets/gimpwidgets-constructors.[ch]: added "gboolean with_replace_modes" to the paint mode menu constructors. * app/tools/gimppaintoptions-gui.c * app/widgets/gimpbrushselect.c * app/widgets/gimplayertreeview.c: pass with_replace_modes = FALSE. * app/core/gimpdrawableundo.[ch]: added members which keep tiles, paint mode and opacity of the pasted pixels. * app/core/gimpimage-undo.[ch] (gimp_image_undo_get_fadeable): returns a GimpUndo suitable for a fade operation, or NULL. * app/core/gimp-edit.[ch] (gimp_edit_fade): implements the actual fade by undoing the last operation and then re-applying the pixels with different paint mode and opacity. * app/core/gimpdrawable-combine.c: store the pasted pixels in the GimpDrawableUndo. * app/actions/edit-actions.c * app/actions/edit-commands.[ch]: action and callback for fade. * app/dialogs/Makefile.am * app/dialogs/fade-dialog.[ch]: the fade dialog. * app/widgets/gimphelp-ids.h: the fade help ID. * menus/image-menu.xml.in: added a menu entry in "Edit".
106 lines
2.3 KiB
Makefile
106 lines
2.3 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
AM_CPPFLAGS = \
|
|
-DG_LOG_DOMAIN=\"Gimp-Dialogs\" \
|
|
@GTHREAD_CFLAGS@
|
|
|
|
INCLUDES = \
|
|
-I$(top_builddir) \
|
|
-I$(top_srcdir) \
|
|
-I$(top_builddir)/app \
|
|
-I$(top_srcdir)/app \
|
|
$(GTK_CFLAGS) \
|
|
-I$(includedir)
|
|
|
|
noinst_LIBRARIES = libappdialogs.a
|
|
|
|
libappdialogs_a_sources = \
|
|
dialogs-types.h \
|
|
dialogs.c \
|
|
dialogs.h \
|
|
dialogs-constructors.c \
|
|
dialogs-constructors.h \
|
|
\
|
|
about-dialog.c \
|
|
about-dialog.h \
|
|
authors.h \
|
|
channel-options-dialog.c \
|
|
channel-options-dialog.h \
|
|
convert-dialog.c \
|
|
convert-dialog.h \
|
|
desaturate-dialog.c \
|
|
desaturate-dialog.h \
|
|
fade-dialog.c \
|
|
fade-dialog.h \
|
|
file-open-dialog.c \
|
|
file-open-dialog.h \
|
|
file-open-location-dialog.c \
|
|
file-open-location-dialog.h \
|
|
file-save-dialog.c \
|
|
file-save-dialog.h \
|
|
grid-dialog.h \
|
|
grid-dialog.c \
|
|
image-merge-layers-dialog.c \
|
|
image-merge-layers-dialog.h \
|
|
image-new-dialog.c \
|
|
image-new-dialog.h \
|
|
image-properties-dialog.c \
|
|
image-properties-dialog.h \
|
|
image-scale-dialog.c \
|
|
image-scale-dialog.h \
|
|
keyboard-shortcuts-dialog.c \
|
|
keyboard-shortcuts-dialog.h \
|
|
layer-add-mask-dialog.c \
|
|
layer-add-mask-dialog.h \
|
|
layer-options-dialog.c \
|
|
layer-options-dialog.h \
|
|
module-dialog.c \
|
|
module-dialog.h \
|
|
offset-dialog.c \
|
|
offset-dialog.h \
|
|
palette-import-dialog.c \
|
|
palette-import-dialog.h \
|
|
preferences-dialog.c \
|
|
preferences-dialog.h \
|
|
print-size-dialog.c \
|
|
print-size-dialog.h \
|
|
quit-dialog.c \
|
|
quit-dialog.h \
|
|
resize-dialog.c \
|
|
resize-dialog.h \
|
|
resolution-calibrate-dialog.c \
|
|
resolution-calibrate-dialog.h \
|
|
scale-dialog.c \
|
|
scale-dialog.h \
|
|
stroke-dialog.c \
|
|
stroke-dialog.h \
|
|
template-options-dialog.c \
|
|
template-options-dialog.h \
|
|
tips-dialog.c \
|
|
tips-dialog.h \
|
|
tips-parser.c \
|
|
tips-parser.h \
|
|
user-install-dialog.c \
|
|
user-install-dialog.h \
|
|
vectors-export-dialog.c \
|
|
vectors-export-dialog.h \
|
|
vectors-import-dialog.c \
|
|
vectors-import-dialog.h \
|
|
vectors-options-dialog.c \
|
|
vectors-options-dialog.h
|
|
|
|
libappdialogs_a_built_sources = \
|
|
authors.h
|
|
|
|
libappdialogs_a_SOURCES = \
|
|
$(libappdialogs_a_built_sources) $(libappdialogs_a_sources)
|
|
|
|
EXTRA_DIST = \
|
|
authors.xsl \
|
|
makefile.msc
|
|
|
|
|
|
authors.h: $(top_srcdir)/authors.xml
|
|
if HAVE_XSLTPROC
|
|
$(XSLTPROC) authors.xsl $< > $(@) || rm -f $(@)
|
|
endif
|