Commit graph

719 commits

Author SHA1 Message Date
Federico Mena Quintero 24d3b78474 Set the width/height of the image item.
1999-09-22  Federico Mena Quintero  <federico@redhat.com>

	* ui-image.c (ui_image_set_image): Set the width/height of the
	image item.

	* image-item.c (ImageItemPrivate): Added user width and height
	values.  Removed the single zoom value.
	(image_item_class_init): Register the width/ height arguments.
	(image_item_init): Initialize the width/height values.
	(image_item_set_arg): Handle the width/height arguments.
	(image_item_get_arg): Likewise.
	(recompute_bounding_box): Use width/height instead of zoom.
	(image_item_update): Likewise.
	(image_item_draw): Likewise.
	(image_item_point): Likewise.
	(image_item_bounds): Likewise.

	* render.c (render_image): Changed so that it takes in a GdkPixbuf
	instead of an Image.  Added support for anamorphic scaling.
1999-09-23 00:38:53 +00:00
Michael Meeks 4be302c453 cleans + use new GdkPixBuf API. 1999-09-22 22:56:03 +00:00
Kjartan Maraas 91670526a2 Hush now little baby 1999-09-22 22:17:41 +00:00
Federico Mena Quintero cf4dbc6b46 Added a zoom factor menu.
1999-09-18  Federico Mena Quintero  <federico@redhat.com>

	* window.c (zoom_menu): Added a zoom factor menu.

	* ui-image.c (ui_image_construct): Set the step_increment for the
	scrolling adjustments.
1999-09-19 21:13:13 +00:00
Arturo Espinosa e4c0da7b2c Add the files - Federico 1999-09-18 18:22:54 +00:00
Federico Mena Quintero f23ac3bbe5 New function to get the current zoom factor. (ui_image_zoom_fit): New
1999-09-18  Federico Mena Quintero  <federico@redhat.com>

	* ui-image.c (ui_image_get_zoom): New function to get the current
	zoom factor.
	(ui_image_zoom_fit): New function to zoom to fit the size of the
	image view.

	* window.c (window_construct): Create the toolbar.
	(view_menu): Added the View menu.
	(window_zoom_in): Zoom in by 5%.
	(window_zoom_out): Zoom out by 5%.
	(window_zoom_1): Zoom to 1:1 scale.
	(window_zoom_fit): Zoom to fit the window.
	(window_construct): Keep a pointer to the view menu and call
	set_mode().
	(set_menu_sensitivity): New function to set the sensitivity of
	menu items according to the window mode.
	(set_mode): Call set_menu_sensitivity().

	* tb-image.[ch]: New files with the definition of a toolbar for
	image windows.

	* commands.[ch]: New files with command callbacks for menus and
	toolbars.
1999-09-18 18:22:17 +00:00
Federico Mena Quintero acec53b2c9 Open the images specified in the command line.
1999-09-18  Federico Mena Quintero  <federico@redhat.com>

	* main.c (main): Open the images specified in the command line.

	* window.c (window_open_image): Renamed from open_image() and made
	public.

	* ui-image.c (ui_image_set_zoom): New function to set the zoom
	factor of an image view.
1999-09-18 05:08:14 +00:00
Federico Mena Quintero c8613a2e7f Implemented File/New Window. (open_cmd): Oops. Patch from Tom Gilbert to
1999-09-17  Federico Mena Quintero  <federico@redhat.com>

	* window.c (new_window_cmd): Implemented File/New Window.
	(open_cmd): Oops.  Patch from Tom Gilbert to fix the cancel
	button.
1999-09-18 01:51:40 +00:00
Michael Meeks 957e195843 Start of generic image component. 1999-09-17 23:32:22 +00:00
Federico Mena Quintero d1656cffee Doh. Unref the correct image (typo fix).
1999-09-17  Federico Mena Quintero  <federico@redhat.com>

	* ui-image.c (ui_image_set_image): Doh.  Unref the correct image
	(typo fix).
1999-09-17 19:21:42 +00:00
Federico Mena Quintero 2dd33b3bba Set the default size of windows to something resonable. (open_cmd): Keep
1999-09-17  Federico Mena Quintero  <federico@redhat.com>

	* window.c (window_construct): Set the default size of windows to
	something resonable.
	(open_cmd): Keep the file selection dialog around so that it
	preserves its cwd.  Added a field to WindowPrivate to hold it.
	(open_ok_clicked): Just hide, don't destroy the dialog.
	(open_cancel_clicked): Likewise.
	(open_delete_event): Likewise.
	(window_destroy): Destroy the file selection dialog.

	* ui-image.c (ui_image_set_image): Set the canvas scroll region
	based on the image size.
1999-09-17 19:16:45 +00:00
Federico Mena Quintero 5673c8f06f Set the canvas scroll region based on the image size.
1999-09-17  Federico Mena Quintero  <federico@redhat.com>

	* ui-image.c (ui_image_set_image): Set the canvas scroll region
	based on the image size.

	* zoom.[ch]: New files with utilitiy functions for computing zoom
	factors.

	* Makefile.am (eog_SOURCES): Added zoom.[ch] to the sources.

	* window.c (WindowPrivate): Added a bin field.  Now we put the
	contents in a simple bin because GnomeApp does not like its
	contents to be removed and added again.
	(window_construct): Create the bin.
	(set_mode): Put the real contents in the bin.
1999-09-17 18:51:05 +00:00
Federico Mena Quintero 6844390535 Removed old test cruft.
1999-09-17  Federico Mena Quintero  <federico@redhat.com>

	* main.c: Removed old test cruft.

	* window.c (confirm_save): Renamed from confirm_close().
	(open_image): Implemented File/Open.

	* ui-image.c: For now the image view is simply derived from
	GtkScrollFrame.  Implemented basic image setting functionality.

	* image-item.c (image_item_set_arg): Refcount the image.
	(image_item_destroy): Unref the image.

	* image.c (image_new): New function.
	(image_load): New function.  Do simplistic loading of images.
	(image_ref image_unref): Implemented refcounting of images.
1999-09-17 08:33:54 +00:00
Federico Mena Quintero e82206abf5 Change of plans. Do not confirm for unsaved files using the Emacs way of
1999-09-16  Federico Mena Quintero  <federico@redhat.com>

	* window.c (exit_cmd): Change of plans.  Do not confirm for
	unsaved files using the Emacs way of doing it, but rather present
	a save/don't save/don't exit dialog.
	(confirm_close): Present a confirmation dialog.
1999-09-16 21:07:34 +00:00
Arturo Espinosa 5ca6532920 Sync to laptop for shutdown - Federico 1999-09-15 16:12:42 +00:00
Arturo Espinosa ceffd956d5 More work - Federico 1999-09-15 07:21:31 +00:00
Arturo Espinosa 7b495112aa This should not be here - Federico 1999-09-15 05:25:44 +00:00
Arturo Espinosa c1a8412d55 Initial import of the Eye of Gnome - Federico 1999-09-15 05:19:29 +00:00
Arturo Espinosa 948a56b383 Initial revision 1999-09-15 05:19:29 +00:00