Commit Graph

29 Commits

Author SHA1 Message Date
Sven Neumann 09fe7e5f38 fixed gtk-doc comments.
2006-08-08  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpzoompreview.c: fixed gtk-doc comments.
2006-08-08 16:46:12 +00:00
Sven Neumann 1868877552 documentation.
2006-06-12  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpzoompreview.c (gimp_zoom_preview_get_source):
	documentation.

	* plug-ins/common/channel_mixer.c: minor cleanup and loop unrolling.
	Introduced an inline function to avoid code duplication.
2006-06-12 13:00:54 +00:00
Sven Neumann 6ebcf700d1 removed erroneous semicolon after G_DEFINE_TYPE macros.
2006-05-15  Sven Neumann  <sven@gimp.org>

	* app/*/*.c:
	* lib*/*.c: removed erroneous semicolon after G_DEFINE_TYPE macros.
2006-05-15 09:46:31 +00:00
David Odin c318e68e46 added some documentation.
* libgimp/gimpzoompreview.c: added some documentation.
2006-04-06 11:28:02 +00:00
David Odin 2770e17a4c untabbified.
* libgimp/gimpzoompreview.c: untabbified.
2006-03-19 13:35:24 +00:00
Sven Neumann 5793fc391c added "drawable" as construct-only property so that the widget can be
2006-02-26  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpzoompreview.c: added "drawable" as construct-only
	property so that the widget can be constructed using g_object_new().
2006-02-26 00:55:35 +00:00
Sven Neumann ef1c9dc840 removed unused import 2006-02-07 15:54:10 +00:00
Sven Neumann ce2a6cffd9 added missing include, removed now unused define 2006-02-07 15:52:53 +00:00
Sven Neumann 39c5fcbea9 libgimp/gimpdrawablepreview.[ch] reduced code duplication by exporting two
2006-02-07  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablepreview.[ch]
	* libgimp/gimpzoompreview.c: reduced code duplication by exporting
	two GimpDrawablePreview functions for internal use.
2006-02-07 15:36:17 +00:00
Sven Neumann 539ff359a4 connect-after to "realize" and "size-allocate" signals of the preview area
2006-02-06  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.c: connect-after to "realize" and
	"size-allocate" signals of the preview area and call the
	set-cursor method from the callback.

	* libgimpwidgets/gimpscrolledpreview.c: no need to explicitely set
	the cursor now that the virtual method is used correctly.

	* libgimp/gimpzoompreview.c: implement set-cursor and set the move
	cursor in accordance with the zoom factor.
2006-02-06 11:07:48 +00:00
Sven Neumann 3e30eeb6e5 added a priv pointer to the instance struct and changed the GET_PRIVATE()
2006-01-25  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpzoompreview.[ch]: added a priv pointer to the
	instance struct and changed the GET_PRIVATE() macro to access the
	private data via that pointer.
2006-01-25 14:40:31 +00:00
Sven Neumann b614bf5e85 libgimpwidgets/gimpintcombobox.[ch] libgimpwidgets/gimppageselector.[ch]
2006-01-25  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpintcombobox.[ch]
	* libgimpwidgets/gimppageselector.[ch]
	* libgimpwidgets/gimpzoommodel.[ch]: added a priv pointer to the
	instance struct and changed the GET_PRIVATE() macro to access the
	private data via that pointer.

	* libgimpwidgets/gimpscrolledpreview.[ch]
	* libgimpwidgets/gimpwidgets.def: added a priv pointer to the
	instance struct and moved all private data to the
	GimpScrolledPreviewPrivate struct. Added freeze/thaw methods so
	that derived widgets can be implemented without accessing private
	data.

	* libgimp/gimpzoompreview.c: changed accordingly.

	* libgimp/gimpfontselectbutton.[ch]: let the priv pointer be an
	anonymous void pointer.
2006-01-25 14:35:56 +00:00
Sven Neumann 235f6a623d when changing both horizontal and vertical scroll adjustments, set
in_drag to TRUE to suppress an update on an invalid intermediate state
2005-11-22 12:09:17 +00:00
Sven Neumann 3ac4aab0a1 zoom on Ctrl-Scroll events.
2005-11-22  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpzoompreview.c: zoom on Ctrl-Scroll events.

	* libgimpwidgets/gimpscrolledpreview.c
	(gimp_scrolled_preview_area_event): correctly clamp adjustment
	value on scroll events. Ignore scroll events when Ctrl is pressed.
2005-11-22 11:50:29 +00:00
David Odin 16bb98eeeb Enable selection masking, even if it looks buggy. It looks to me that the
* libgimp/gimpzoompreview.c: Enable selection masking, even if it
  looks buggy. It looks to me that the bug is in
  gimp_drawable_get_sub_preview (), not handling the selection drawable
  as a normal drawable.
2005-10-09 17:07:56 +00:00
David Odin 16aa8d299d better handling of selections and navigation popup. Still not perfect.
* libgimp/gimpzoompreview.c: better handling of selections and
  navigation popup. Still not perfect.
2005-10-09 13:54:03 +00:00
Sven Neumann d4d69df6d9 libgimp/gimpaspectpreview.c added missing API docs.
2005-10-05  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpaspectpreview.c
	* libgimp/gimpzoompreview.c: added missing API docs.

2005-10-05  Sven Neumann  <sven@gimp.org>

	* libgimp/libgimp-docs.sgml
	* libgimp/libgimp-sections.txt
	* libgimp/tmpl/gimpgrid.sgml: added new Grid PDB API.

	* libgimp/tmpl/gimpzoompreview.sgml: updated.
2005-10-05 13:50:09 +00:00
David Odin 66d00503a4 added a new function: gimp_zoom_preview_get_factor(), which is a proxy to
* libgimp/gimpzoompreview.[ch]: added a new function:
  gimp_zoom_preview_get_factor(), which is a proxy to get the zoom
  factor of the zoom model used by the zoom preview.
  Also renamed the zoom field of the private data of gimpzoompreview to
  model, since it is a gimpzoommodel.

* libgimp/gimpui.def: added gimp_zoom_preview_get_factor.

* plug-ins/common/nova.c: use gimp_zoom_preview_get_factor to
  correctly handle the position of the nova at various zoom level.
  There still are problems if there is a selection before when running
  this plugin.
2005-10-02 18:00:49 +00:00
David Odin 9af9bae012 added VOID__DOUBLE_DOUBLE marshaller.
* libgimpwidgets/gimpwidgetsmarshal.list: added VOID__DOUBLE_DOUBLE
 marshaller.

* libgimpwidgets/gimpzoommodel.[ch]: new signal: "zoomed", emitted
  when the zoom factor changes.  This signal have the old factor and the
  new factor as argument.

* libgimp/gimpzoompreview.c: use the "zoomed" signal instead of the
  "notify::value" one. This allow to use the old and new factors to keep
  the preview centered on the same point.
2005-10-01 15:12:59 +00:00
David Odin 95f8702dbe call gtk_adjustment_value_changed in addition to gtk_adjustment_changed,
* libgimp/gimpzoompreview.c: call gtk_adjustment_value_changed in
  addition to gtk_adjustment_changed, so the offsets are correctly
  updated.
2005-10-01 12:01:27 +00:00
Sven Neumann 3670d4c3ae renamed newly added function to gimp_preview_get_controls(). Increased row
2005-09-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.[ch]: renamed newly added function to
	gimp_preview_get_controls(). Increased row padding for controls.

	* libgimpwidgets/gimpwidgets.def
	* libgimp/gimpzoompreview.c: changed accordingly.

	* libgimpbase/gimputils.c (gimp_enum_get_value): ref the enum
	class instead of only peeking at it.

	* libgimpwidgets/gimpzoommodel.c (gimp_zoom_button_new): set a
	tooltip on zoom buttons that only show an icon.
2005-09-28 11:02:02 +00:00
Sven Neumann 9ab6ffa950 added a hbox to the table and the "Update Preview" checkbutton there.
2005-09-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.[ch]: added a hbox to the table and
	the "Update Preview" checkbutton there. Added a function to access
	this control box. Increased default size to 200.

	* libgimpwidgets/gimpscrolledpreview.[ch]: added function
	gimp_scrolled_preview_set_policy() to control when the scrollbars
	should be shown.

	* libgimpwidgets/gimpwidgets.def: updated.

	* libgimp/gimpzoompreview.c: pack the zoom buttons into the
	preview's control box. Commented out the label, it shows a bogus
	zoom factor. Set scrollbar policy to ALWAYS to avoid resizing.
2005-09-28 02:46:06 +00:00
Sven Neumann 3d0adbf117 removed GimpZoomWidgetType.
2005-09-25  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgetsenums.[ch]: removed GimpZoomWidgetType.

	* libgimpwidgets/gimpzoommodel.[ch]: removed gimp_zoom_widget_new()
	in favor of gimp_zoom_button_new().

	* libgimp/gimpzoompreview.c: changed accordingly.

	* libgimpwidgets/gimpwidgets.def: updated.

	* plug-ins/MapObject/mapobject_main.[ch]
	* plug-ins/MapObject/mapobject_preview.c
	* plug-ins/MapObject/mapobject_ui.c: use a GimpZoomModel and let
	it create the zoom buttons.

	* plug-ins/MapObject/mapobject_apply.c
	* plug-ins/MapObject/mapobject_image.c
	* plug-ins/MapObject/mapobject_shade.c: include "gimp/gimpui.h".
2005-09-25 21:22:39 +00:00
David Odin 5f32493cc8 remove the GIMP_ZOOM_LABEL value from GimpZoomWidgetType.
* libgimpwidgets/gimpwidgetsenums.h: remove the GIMP_ZOOM_LABEL value
  from GimpZoomWidgetType.

* libgimpwidgets/gimpwidgetsenums.c: regenerated.

* libgimp/gimpzoompreview.c: provides two read only properties,
  "fraction" and "percentage" to be used with prop widgets.

* libgimpwidgets/gimpzoommodel.c: use a gimp_prop_label to show the
  zoom fraction.
2005-09-24 21:12:56 +00:00
David Odin f94f48f130 Moved the GimpZoomType enum from here...
* app/widgets/widgets-enums.h: Moved the GimpZoomType enum from	here...

* libgimpwidgets/gimpwidgetsenums.h: ...to here.

* app/widgets/widgets-enums.c
* libgimpwidgets/gimpwidgetsenums.c: regenerated.

* app/display/gimpdisplayshell-scale.[ch]: removed
  gimp_display_shell_scale_zoom_step and
  gimp_display_shell_scale_get_fraction from here...

* libgimpwidgets/gimpzoommodel.[ch]: ... to here so we can use these
  utility functions in plug-ins and in the core.
  Also removed the step-size property since the zoom-model now use
  gimp_zoom_model_zoom_step.

* app/actions/view-commands.c
* app/display/gimpdisplayshell-title.c
* app/display/gimpdisplayshell.c
* app/tools/gimpmagnifytool.c: modified accordingly.

* libgimp/gimpzoompreview.c: don't pass any argument to the
  gimp_zoom_model_new function.

* libgimpwidgets/gimpwidgets.def: added gimp_zoom_model_zoom_step
  (gimp_zoom_model_get_fraction was already there)

* devel-docs/app/app-sections.txt: removed
  gimp_display_shell_scale_zoom_step and
  gimp_display_shell_scale_get_fraction.
2005-09-24 17:25:36 +00:00
David Odin a4baae329d renamed the properties "value", "minimum" and "maximum".
* libgimpwidgets/gimpzoommodel.c: renamed the properties "value",
  "minimum" and "maximum".

* libgimp/gimpzoompreview.c: modified accordingly.
2005-09-22 17:24:50 +00:00
David Odin 0730c66b4c make use of private data instead of struct members. Added a
* libgimp/gimpzoompreview.[ch]: make use of private data instead of struct
  members. Added a gimp_zoom_preview_get_drawable so we can still get the
  drawable from a preview in plug-ins.

  Also changed gimp_zoom_preview_get_data to gimp_zoom_preview_get_source,
  to make it more obvious what it returns.

* libgimp/gimpui.def
* plug-ins/common/AlienMap2.c
* plug-ins/common/apply_lens.c
* plug-ins/common/blinds.c
* plug-ins/common/channel_mixer.c
* plug-ins/common/colorify.c
* plug-ins/common/flarefx.c
* plug-ins/common/illusion.c
* plug-ins/common/jigsaw.c
* plug-ins/common/mapcolor.c
* plug-ins/common/max_rgb.c
* plug-ins/common/nova.c
* plug-ins/common/polar.c
* plug-ins/common/retinex.c
* plug-ins/common/waves.c
* plug-ins/common/whirlpinch.c: changed accordingly.
2005-09-20 21:52:54 +00:00
David Odin 68ea16b7a1 use private data instead of struct members. Added min-factor and
* libgimpwidgets/gimpzoommodel.[ch]: use private data instead of
  struct members. Added min-factor and max-factor properties so we can
  set the zoom range. These can be set by a new utility function:
  gimp_zoom_model_set_range.

* libgimpwidgets/gimpwidgets.def: added gimp_zoom_model_set_range.

* libgimp/gimpzoompreview.c: use gimp_zoom_model_set_range so we can
  only zoom in.
2005-09-20 19:56:52 +00:00
David Odin 5b538db8e4 New object to handle zoom factor, and create widgets to control or view
* libgimpwidgets/gimpzoommodel.[ch]: New object to handle zoom
  factor, and create widgets to control or view this value.

* libgimpwidgets/Makefile.am
* libgimpwidgets/gimpwidgets.h: Added gimpzoommodel.[ch].

* libgimpwidgets/gimpwidgetsenums.h: new enum: GimpZoomWidgetType.
  This enumerate which knid of widget you can created from the zoom
  model.

* libgimpwidgets/gimpwidgetsenums.c
* libgimpwidgets/gimpwidgetstypes.h: regenerated.

* libgimpwidgets/gimppreview.c: move the update toggle to the bottom
  of the vbox.

* libgimp/Makefile.am
* libgimp/gimpui.h
* libgimp/gimpuitypes.h
* libgimp/gimpzoompreview.[ch]: New widget, derivated from
  GimpScrolledPreview, which offer the same functionnalities as the
  GimpAspectPreview widget plus zoom facilities.

* plug-ins/common/AlienMap2.c
* plug-ins/common/apply_lens.c
* plug-ins/common/blinds.c
* plug-ins/common/channel_mixer.c
* plug-ins/common/colorify.c
* plug-ins/common/flarefx.c
* plug-ins/common/illusion.c
* plug-ins/common/jigsaw.c
* plug-ins/common/mapcolor.c
* plug-ins/common/max_rgb.c
* plug-ins/common/nova.c
* plug-ins/common/polar.c
* plug-ins/common/retinex.c
* plug-ins/common/waves.c
* plug-ins/common/whirlpinch.c: use a GimpZoomPreview instead of a
  GimpAspectPreview.
2005-09-19 22:58:16 +00:00