2001-08-17 22:27:31 +08:00
## Process this file with automake to produce Makefile.in
2008-10-07 19:58:14 +08:00
AM_CPPFLAGS = \
2013-06-06 02:48:37 +08:00
-DG_LOG_DOMAIN= \" Gimp-Display\" \
-I$( top_builddir) \
-I$( top_srcdir) \
-I$( top_builddir) /app \
-I$( top_srcdir) /app \
$( GEGL_CFLAGS) \
$( GTK_CFLAGS) \
2018-04-08 04:39:13 +08:00
-I$( includedir)
2001-08-17 22:27:31 +08:00
noinst_LIBRARIES = libappdisplay.a
2002-06-08 07:00:46 +08:00
libappdisplay_a_sources = \
2001-12-19 01:45:29 +08:00
display-enums.h \
2001-11-11 07:03:22 +08:00
display-types.h \
2003-11-10 07:24:40 +08:00
gimpcanvas.c \
gimpcanvas.h \
2013-04-18 20:21:20 +08:00
gimpcanvas-style.c \
gimpcanvas-style.h \
2010-09-25 00:41:57 +08:00
gimpcanvasarc.c \
gimpcanvasarc.h \
2010-09-24 05:38:27 +08:00
gimpcanvasboundary.c \
gimpcanvasboundary.h \
2013-09-10 23:50:29 +08:00
gimpcanvasbufferpreview.c \
gimpcanvasbufferpreview.h \
2019-09-04 21:33:09 +08:00
gimpcanvascanvasboundary.c \
gimpcanvascanvasboundary.h \
2010-09-24 16:50:05 +08:00
gimpcanvascorner.c \
gimpcanvascorner.h \
2010-10-03 03:56:36 +08:00
gimpcanvascursor.c \
gimpcanvascursor.h \
2010-10-03 02:57:40 +08:00
gimpcanvasgrid.c \
gimpcanvasgrid.h \
2010-09-25 23:14:57 +08:00
gimpcanvasgroup.c \
gimpcanvasgroup.h \
2010-09-23 20:51:45 +08:00
gimpcanvasguide.c \
gimpcanvasguide.h \
2010-09-22 01:22:29 +08:00
gimpcanvashandle.c \
gimpcanvashandle.h \
2010-09-20 01:45:51 +08:00
gimpcanvasitem.c \
gimpcanvasitem.h \
2010-11-09 18:27:51 +08:00
gimpcanvasitem-utils.c \
gimpcanvasitem-utils.h \
2010-10-03 06:28:40 +08:00
gimpcanvaslayerboundary.c \
gimpcanvaslayerboundary.h \
2020-05-15 04:40:42 +08:00
gimpcanvaslimit.c \
gimpcanvaslimit.h \
2010-09-20 05:46:52 +08:00
gimpcanvasline.c \
gimpcanvasline.h \
2010-10-19 04:15:34 +08:00
gimpcanvaspassepartout.c \
gimpcanvaspassepartout.h \
2010-10-07 05:02:16 +08:00
gimpcanvaspath.c \
gimpcanvaspath.h \
2010-10-03 08:26:40 +08:00
gimpcanvaspen.c \
gimpcanvaspen.h \
2010-09-23 05:59:10 +08:00
gimpcanvaspolygon.c \
gimpcanvaspolygon.h \
2010-11-10 02:35:04 +08:00
gimpcanvasprogress.c \
gimpcanvasprogress.h \
2010-10-01 14:59:56 +08:00
gimpcanvasproxygroup.c \
gimpcanvasproxygroup.h \
2010-09-20 01:45:51 +08:00
gimpcanvasrectangle.c \
gimpcanvasrectangle.h \
2011-05-23 04:09:09 +08:00
gimpcanvasrectangleguides.c \
gimpcanvasrectangleguides.h \
2010-09-30 07:13:23 +08:00
gimpcanvassamplepoint.c \
gimpcanvassamplepoint.h \
2010-09-25 02:34:21 +08:00
gimpcanvastextcursor.c \
gimpcanvastextcursor.h \
2011-07-25 00:42:13 +08:00
gimpcanvastransformguides.c \
gimpcanvastransformguides.h \
2011-03-27 22:40:41 +08:00
gimpcanvastransformpreview.c \
gimpcanvastransformpreview.h \
2008-11-10 01:51:43 +08:00
gimpcursorview.c \
gimpcursorview.h \
2001-11-11 07:03:22 +08:00
gimpdisplay.c \
gimpdisplay.h \
gimpdisplay-foreach.c \
gimpdisplay-foreach.h \
gimpdisplay-handlers.c \
gimpdisplay-handlers.h \
gimpdisplayshell.c \
gimpdisplayshell.h \
2016-05-15 04:51:21 +08:00
gimpdisplayshell-actions.c \
gimpdisplayshell-actions.h \
2003-03-12 00:49:36 +08:00
gimpdisplayshell-appearance.c \
gimpdisplayshell-appearance.h \
2005-01-03 04:42:31 +08:00
gimpdisplayshell-autoscroll.c \
gimpdisplayshell-autoscroll.h \
2001-11-11 07:03:22 +08:00
gimpdisplayshell-callbacks.c \
gimpdisplayshell-callbacks.h \
2004-07-14 08:15:57 +08:00
gimpdisplayshell-close.c \
gimpdisplayshell-close.h \
2003-01-04 02:01:30 +08:00
gimpdisplayshell-cursor.c \
gimpdisplayshell-cursor.h \
2001-11-11 07:03:22 +08:00
gimpdisplayshell-dnd.c \
gimpdisplayshell-dnd.h \
2004-02-07 08:16:52 +08:00
gimpdisplayshell-draw.c \
gimpdisplayshell-draw.h \
2009-10-03 05:55:26 +08:00
gimpdisplayshell-expose.c \
gimpdisplayshell-expose.h \
2011-02-19 21:46:23 +08:00
gimpdisplayshell-grab.c \
gimpdisplayshell-grab.h \
2001-11-11 07:03:22 +08:00
gimpdisplayshell-handlers.c \
gimpdisplayshell-handlers.h \
2002-03-15 06:42:50 +08:00
gimpdisplayshell-filter.c \
gimpdisplayshell-filter.h \
gimpdisplayshell-filter-dialog.c \
gimpdisplayshell-filter-dialog.h \
2001-11-11 07:03:22 +08:00
gimpdisplayshell-layer-select.c \
gimpdisplayshell-layer-select.h \
2010-09-30 04:12:01 +08:00
gimpdisplayshell-items.c \
gimpdisplayshell-items.h \
2015-05-27 18:28:33 +08:00
gimpdisplayshell-profile.c \
gimpdisplayshell-profile.h \
2006-06-29 17:42:05 +08:00
gimpdisplayshell-progress.c \
gimpdisplayshell-progress.h \
2001-11-11 07:03:22 +08:00
gimpdisplayshell-render.c \
gimpdisplayshell-render.h \
2013-04-19 22:22:19 +08:00
gimpdisplayshell-rotate.c \
gimpdisplayshell-rotate.h \
2013-04-21 05:22:14 +08:00
gimpdisplayshell-rotate-dialog.c \
gimpdisplayshell-rotate-dialog.h \
2016-01-06 01:02:59 +08:00
gimpdisplayshell-rulers.c \
gimpdisplayshell-rulers.h \
2001-11-11 07:03:22 +08:00
gimpdisplayshell-scale.c \
gimpdisplayshell-scale.h \
2008-08-16 19:51:10 +08:00
gimpdisplayshell-scale-dialog.c \
gimpdisplayshell-scale-dialog.h \
2001-11-11 07:03:22 +08:00
gimpdisplayshell-scroll.c \
gimpdisplayshell-scroll.h \
2016-01-06 01:02:59 +08:00
gimpdisplayshell-scrollbars.c \
gimpdisplayshell-scrollbars.h \
2001-11-11 07:03:22 +08:00
gimpdisplayshell-selection.c \
gimpdisplayshell-selection.h \
2003-01-04 02:01:30 +08:00
gimpdisplayshell-title.c \
gimpdisplayshell-title.h \
2011-02-23 12:21:06 +08:00
gimpdisplayshell-tool-events.c \
gimpdisplayshell-tool-events.h \
2003-01-04 02:01:30 +08:00
gimpdisplayshell-transform.c \
gimpdisplayshell-transform.h \
2017-12-22 18:56:11 +08:00
gimpdisplayshell-utils.c \
gimpdisplayshell-utils.h \
2009-09-23 18:24:22 +08:00
gimpimagewindow.c \
gimpimagewindow.h \
2011-04-18 00:53:42 +08:00
gimpmotionbuffer.c \
gimpmotionbuffer.h \
2011-07-04 02:55:03 +08:00
gimpmultiwindowstrategy.c \
gimpmultiwindowstrategy.h \
2004-08-26 00:02:10 +08:00
gimpnavigationeditor.c \
gimpnavigationeditor.h \
2004-05-10 18:33:21 +08:00
gimpscalecombobox.c \
gimpscalecombobox.h \
2011-07-04 02:55:03 +08:00
gimpsinglewindowstrategy.c \
gimpsinglewindowstrategy.h \
2002-02-03 20:10:23 +08:00
gimpstatusbar.c \
2011-03-20 20:34:03 +08:00
gimpstatusbar.h \
gimptooldialog.c \
2013-06-07 16:24:51 +08:00
gimptooldialog.h \
gimptoolgui.c \
2017-06-11 05:47:54 +08:00
gimptoolgui.h \
2017-06-12 05:38:55 +08:00
gimptoolcompass.c \
gimptoolcompass.h \
2020-05-15 04:55:43 +08:00
gimptoolfocus.h \
gimptoolfocus.c \
2018-04-10 21:41:41 +08:00
gimptoolgyroscope.c \
gimptoolgyroscope.h \
2017-06-19 07:21:06 +08:00
gimptoolhandlegrid.c \
gimptoolhandlegrid.h \
2017-06-11 05:51:06 +08:00
gimptoolline.c \
gimptoolline.h \
2017-06-22 05:27:20 +08:00
gimptoolpath.c \
gimptoolpath.h \
2017-06-23 07:53:41 +08:00
gimptoolpolygon.c \
gimptoolpolygon.h \
2017-06-27 00:34:18 +08:00
gimptoolrectangle.c \
gimptoolrectangle.h \
2017-06-17 08:34:35 +08:00
gimptoolrotategrid.c \
gimptoolrotategrid.h \
gimptoolsheargrid.c \
gimptoolsheargrid.h \
2020-01-06 22:39:56 +08:00
gimptooltransform3dgrid.c \
gimptooltransform3dgrid.h \
2017-06-17 08:34:35 +08:00
gimptooltransformgrid.c \
gimptooltransformgrid.h \
2017-06-11 05:47:54 +08:00
gimptoolwidget.c \
app: add GimpToolWidgetGroup
GimpToolWidgetGroup is a tool widget acting as a container for
child widgets, multiplexing widget events and demultiplexing tool
events. It can be used by tools to display multiple widgets
simultaneously.
The group keeps track of the current focus widget, and hover
widget. Certain events are only dispatched to/forwarded from these
widgets.
The hover widget is determined by performing a hit test for all the
children, starting from the last child. The first widget returning
GIMP_HIT_DIRECT, if any, is selected as the hover widget;
otherwise, if the current focus widget returns GIMP_HIT_INDIRECT,
it's selected; otherwise, if exactly one widget returns
GIMP_HIT_INDIRECT, it's selected; otherwise, there is no hover
widget.
The focus widget is set when clicking on a widget (or
programatically, using gimp_tool_widget_set_focus()).
Additionally, the group can raise the clicked widget to the top of
the stack (see gimp_tool_widget_group_set_auto_raise().)
2018-06-05 15:08:04 +08:00
gimptoolwidget.h \
gimptoolwidgetgroup.c \
gimptoolwidgetgroup.h
2001-08-17 22:27:31 +08:00
2001-12-19 01:45:29 +08:00
libappdisplay_a_built_sources = display-enums.c
2001-08-17 22:27:31 +08:00
2001-12-19 01:45:29 +08:00
libappdisplay_a_SOURCES = \
$( libappdisplay_a_built_sources) \
$( libappdisplay_a_sources)
#
# rules to generate built sources
#
2003-02-03 21:39:55 +08:00
# setup autogeneration dependencies
2001-12-19 01:45:29 +08:00
gen_sources = xgen-dec
CLEANFILES = $( gen_sources)
2017-05-23 05:19:17 +08:00
xgen-dec : $( srcdir ) /display -enums .h $( GIMP_MKENUMS ) Makefile .am
2017-05-23 08:12:50 +08:00
$( AM_V_GEN) $( GIMP_MKENUMS) \
2019-10-30 05:13:34 +08:00
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"display-enums.h\"\n#include \"gimp-intl.h\"" \
2017-05-23 08:12:50 +08:00
--fprod "\n/* enumerations from \"@basename@\" */" \
2004-07-28 19:50:20 +08:00
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
2004-10-26 01:55:25 +08:00
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n" \
--dhead " static const Gimp@Type@Desc descs[] =\n {" \
2017-11-30 05:27:59 +08:00
--dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ },@if ('@valueabbrev@' ne 'NULL')@\n /* Translators: this is an abbreviated version of @valueudesc@.\n Keep it short. */\n { @VALUENAME@, @valueabbrev@, NULL },@endif@" \
2008-11-06 16:28:28 +08:00
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
2017-05-23 08:12:50 +08:00
$< > $@
2017-05-23 05:19:17 +08:00
2017-06-02 22:53:44 +08:00
# copy the generated enum file back to the source directory only if it's
# changed; otherwise, only update its timestamp, so that the recipe isn't
# executed again on the next build, however, allow this to (harmlessly) fail,
# to support building from a read-only source tree.
2017-05-23 05:19:17 +08:00
$(srcdir)/display-enums.c : xgen -dec
$( AM_V_GEN) if ! cmp -s $< $@ ; then \
cp $< $@ ; \
else \
touch $@ 2> /dev/null \
|| true; \
fi