gimp/app
Michael Natterer 5f63e079b8 Chopped up the display stuff (beware: unfinished)...
2001-10-31  Michael Natterer  <mitch@gimp.org>

	Chopped up the display stuff (beware: unfinished)...

	The plan is that GimpDisplay is the object which collects
	updates from the image, compresses them and waits for the GIMP
	to be idle to actually paint them. It should be a non-GUI object
	which is the model for the actual widget to connect to.

	GimpDisplayShell has all the widgets and handles painting and
	exposing of the result. Nobody should actually be required to
	update ot look at it as it should be a view on the GimpDisplay
	object.

	Much stuff is still in the wrong place and the functions don't
	follow their files' filename namespace any more. More to come...

	* app/display/Makefile.am
	* app/display/gimpdisplay-ops.[ch]: removed. It's functions didn't
	belong together anyway.

	* app/display/gimpdisplay-area.[ch]: new files: the GimpArea
	functions.

	* app/display/gimpdisplay-handlers.[ch]: new files: signal
	handlers for GimpImage signals. Mostly from app/gui.c.

	* app/display/gimpdisplay.[ch]: removed all widgets and other
	GUI stuff. There is still much undecided here...

	* app/display/gimpdisplayshell.[ch]: actually use the object and
	filled it with all the stuff from GimpDisplay.

	* app/display/gimpdisplay-callbacks.[ch]
	* app/display/gimpdisplay-foreach.[ch]
	* app/display/gimpdisplay-render.c
	* app/display/gimpdisplay-scale.[ch]
	* app/display/gimpdisplay-scroll.[ch]
	* app/display/gimpdisplay-selection.c: changed accordingly.

	* app/core/gimp.[ch]: return a GimpObject from
	gimp_create_display() so it can be used as single GUI independent
	point to create displays, require the initial scale as parameter.

	* app/core/gimpcontext.c: changed the ugly EEKWrapper according to
	the GimpDisplay structure changes. Bugfix: set the image to NULL
	in gimp_context_display_destroyed().

	* app/core/gimpedit.c
	* app/core/gimpimage-new.c: changed gimp_create_display() calls
	accordingly.

	* app/core/gimpimage-convert.c: invalidate the layer & image
	previews here, not in the caller.

	* app/core/gimpimage-crop.c: update the whole image after cropping.

	* app/core/gimpimage.[ch]: added gimp_image_find_guide(),
	gimp_image_snap_point() and gimp_image_snap_rectangle(). Added
	"resolution_changed" and "unit_changed" signals and corresp.
	public convenience functions to emit them.

	* app/core/gimplayer.c: emit the image's "alpha_changed" signal
	when adding alpha to the bottom (and only) layer of the image.

	* app/gimpprogress.c
	* app/image_map.c
	* app/nav_window.c
	* app/qmask.c
	* app/undo.c
	* app/user_install.c: changed accordingly.

	* app/gui/edit-commands.c
	* app/gui/file-commands.c
	* app/gui/file-open-dialog.c
	* app/gui/image-commands.c
	* app/gui/info-window.c
	* app/gui/preferences-dialog.c
	* app/gui/toolbox.c
	* app/gui/view-commands.c: ditto.

	* app/gui/gui.[ch]: removed most gimp->images handlers as the
	displays connect to them themselves now. chaged gui_display_new()
	according to the gimp_create_display() changes.
	Added gui_get_screen_resolution().

	* app/tools/gimpbezierselecttool.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbucketfilltool.c
	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpclonetool.c
	* app/tools/gimpcolorpickertool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpdrawtool.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpfreeselecttool.c
	* app/tools/gimpfuzzyselecttool.c
	* app/tools/gimpinktool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimpmagnifytool.c
	* app/tools/gimpmeasuretool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimppainttool.c
	* app/tools/gimppathtool.c
	* app/tools/gimprectselecttool.c
	* app/tools/gimpselectiontool.c
	* app/tools/gimptexttool.c
	* app/tools/gimptool.c
	* app/tools/gimptransformtool.c
	* app/tools/xinput_airbrush.c: lots of changes because GimpDisplay
	has become two objects. Lots of gdisp->shell casting uglyness
	added. This is fine because exactly these parts will have to go
	away.

	(GimpDisplay will provide methods for XOR drawing upon the display
	in image coordinates without the need to transform coordinates all
	the time. Also the tools shouldn't see GdkEvents but get more
	useful virtual functions which speak in image coordinates too).

	* app/widgets/gimpcomponentlistitem.c: removed a now useless image
	update.

	* tools/pdbgen/pdb/display.pdb: use gimp_create_display().

	* app/pdb/display_cmds.c: regenerated.
2001-10-31 21:18:57 +00:00
..
actions Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
arch/i386/mmx app/Makefile.am app/detect_mmx.S app/arch/i386/mmx/detect_mmx.S 2001-04-02 17:19:41 +00:00
base rewrote so gcc-3.0 doesn't complain. 2001-10-29 12:51:21 +00:00
core Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
dialogs Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
display Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
file Cleanup weekend... 2001-10-29 11:47:11 +00:00
gui Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
menus Cleanup weekend... 2001-10-29 11:47:11 +00:00
paint Oops - forgot to remove a #warning. 2001-10-30 23:28:02 +00:00
paint-funcs rewrote so gcc-3.0 doesn't complain. 2001-10-29 12:51:21 +00:00
pdb app/pdb/tools_cmds.c app/tools/gimperasertool.c app/tools/gimperasertool.h 2001-10-30 22:59:06 +00:00
plug-in app/plug_in.c libgimp/gimp.c libgimpbase/gimpbasetypes.h 2001-10-28 00:53:42 +00:00
tools Oops - forgot to remove a #warning. 2001-10-30 23:28:02 +00:00
widgets rewrote so gcc-3.0 doesn't complain. 2001-10-29 12:51:21 +00:00
xcf app/Makefile.am removed. 2001-10-18 17:27:36 +00:00
.cvsignore shut up CVS 2000-08-26 12:52:38 +00:00
Makefile.am generate app/file/Makefile 2001-10-25 13:30:01 +00:00
airbrush.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
app_procs.c Cleanup weekend... 2001-10-29 11:47:11 +00:00
app_procs.h generate app/file/Makefile 2001-10-25 13:30:01 +00:00
appenv.h generate app/file/Makefile 2001-10-25 13:30:01 +00:00
batch.c added -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_COMPAT_H. 2001-08-29 17:48:28 +00:00
batch.h seems Mathieu messed up the last commit :) Added these two files back from 2001-07-18 00:24:07 +00:00
colormaps.c added -DGDK_DISABLE_DEPRECATED. 2001-09-03 13:03:34 +00:00
colormaps.h added -DGDK_DISABLE_DEPRECATED. 2001-09-03 13:03:34 +00:00
devices.c rewrote so gcc-3.0 doesn't complain. 2001-10-29 12:51:21 +00:00
devices.h app/devices.h app/disp_callbacks.c applied a patch from 2001-08-19 11:21:48 +00:00
errors.c require GTK+-1.3.8 and PangoFT2-0.19. 2001-09-19 14:42:35 +00:00
errors.h app_procs.c errors.c errors.h file-save.c gdisplay.c module_db.c use 2001-07-25 01:03:43 +00:00
floating_sel.c app/appenv.h removed "use_mmx" and the MMX detection. 2001-07-13 19:25:34 +00:00
floating_sel.h app/Makefile.am new file with one set of functions... 2001-01-29 13:51:23 +00:00
gdisplay_color.c Cleanup weekend... 2001-10-29 11:47:11 +00:00
gdisplay_color.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
gdisplay_color_ui.c Cleanup weekend... 2001-10-29 11:47:11 +00:00
gdisplay_color_ui.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
general.c removed search_in_path() and the unused xstrsep(). 2001-05-16 18:09:45 +00:00
general.h removed search_in_path() and the unused xstrsep(). 2001-05-16 18:09:45 +00:00
gimp.rc Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00
gimp.sym Update to match Unix version. 2000-05-28 23:46:16 +00:00
gimphelp.c added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
gimphelp.h app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h 2000-12-29 15:22:01 +00:00
gimpprogress.c Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
gimpprogress.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimprc.c rewrote so gcc-3.0 doesn't complain. 2001-10-29 12:51:21 +00:00
gimprc.h added -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_COMPAT_H. 2001-08-29 17:48:28 +00:00
image_map.c Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
image_map.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
libgimp_glue.c app/Makefile.am app/gimpunit.c removed... 2001-07-11 12:39:49 +00:00
libgimp_glue.h removed the gimp_busy boolean, check whether user_installation is needed 2001-07-10 19:16:16 +00:00
main.c generate app/file/Makefile 2001-10-25 13:30:01 +00:00
makefile.mingw.in disabled display filters code, since it is unfinished 2000-12-24 20:27:04 +00:00
makefile.msc define HAVE_DIRENT_H, it's from build/win32/dirent 2001-10-28 18:45:45 +00:00
nav_window.c Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
nav_window.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
ops_buttons.c app/docindex.c more GObject porting. 2001-07-29 08:37:43 +00:00
ops_buttons.h app/docindex.c more GObject porting. 2001-07-29 08:37:43 +00:00
paint_core.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
paint_options.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
path.c Cleanup weekend... 2001-10-29 11:47:11 +00:00
path.h added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
pathP.h added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
path_bezier.c Cleanup weekend... 2001-10-29 11:47:11 +00:00
path_bezier.h app/Makefile.am app/apptypes.h app/path_bezier.[ch] app/path_curves.[ch] 2001-04-07 14:55:39 +00:00
path_curves.c s/USE_GCC_INTEL_MMX/HAVE_ASM_MMX/ 2001-05-19 16:09:41 +00:00
path_curves.h app/path_curves.[ch] app/tools/gimpdrawtool.c app/tools/gimppathtool.[ch] 2001-04-11 13:28:53 +00:00
path_transform.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
plug_in.c app/plug_in.c libgimp/gimp.c libgimpbase/gimpbasetypes.h 2001-10-28 00:53:42 +00:00
plug_in.h link the app in a different order as some init functions are called from 2001-10-19 16:41:09 +00:00
plug_in_cmds.c Garry R. Osgood <grosgood@rcn.com> 2001-03-11 13:15:41 +00:00
qmask.c Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
qmask.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
transform_core.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
undo.c Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
undo.h app/apptypes.h app/channel_ops.c app/commands.c app/convert.[ch] 2001-03-08 02:01:52 +00:00
undo_history.c added -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_COMPAT_H. 2001-08-29 17:48:28 +00:00
undo_history.h app/Makefile.am new file. 2001-01-29 02:45:02 +00:00
undo_types.h added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
user_install.c Chopped up the display stuff (beware: unfinished)... 2001-10-31 21:18:57 +00:00
user_install.h removed the gimp_busy boolean, check whether user_installation is needed 2001-07-10 19:16:16 +00:00
wilber.ico Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00