1. 28 Jun, 2004 2 commits
    • Michael Natterer's avatar
      fix typo in last commit. · d61cc35e
      Michael Natterer authored
      d61cc35e
    • Michael Natterer's avatar
      added new function gimp_get_mod_string() which takes a GdkModifierType and · 6cd57372
      Michael Natterer authored
      2004-06-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpwidgets-utils.[ch]: added new function
      	gimp_get_mod_string() which takes a GdkModifierType and returns
      	correctly formated strings for all shift,control,alt combinations.
      
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpcolorpickeroptions.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcropoptions.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpflipoptions.c
      	* app/tools/gimpmagnifyoptions.c
      	* app/tools/gimpmoveoptions.c
      	* app/tools/gimptransformoptions.c
      	* app/tools/gimpvectoroptions.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpthumbbox.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/widgets/gimpvectorstreeview.c: use the new function instead
      	of gimp_get_mod_name_shift(),control(),alt(),separator(). This
      	kindof addresses the issue of configurable modifier keys but is
      	actually indended to ease translation of format strings ("%s" is
      	easier to get right than "%s%s%s").
      6cd57372
  2. 22 Jun, 2004 1 commit
  3. 13 Jun, 2004 1 commit
    • Philip Lafleur's avatar
      Fixed incorrect logic that caused perfect-but-slow pointer tracking to be · afb3f5c1
      Philip Lafleur authored
      2004-06-12  Philip Lafleur  <plafleur@cvs.gnome.org>
      
      	* app/display/gimpdisplayshell-callbacks.c: Fixed incorrect logic that
      	caused perfect-but-slow pointer tracking to be used in tools that
      	don't request exact mode.
      
      	* app/display/Makefile.am:
      	* app/display/gimpdisplayshell-appearance.[ch]:
      	* app/display/gimpdisplayshell-callbacks.c:
      	* app/display/gimpdisplayshell.[ch]:
      	* app/display/gimpdisplayshell-preview.[ch]: added
      	* app/tools/gimpperspectivetool.c:
      	* app/tools/gimprotatetool.c:
      	* app/tools/gimpscaletool.c:
      	* app/tools/gimpsheartool.c:
      	* app/tools/gimptransformoptions.[ch]:
      	* app/tools/gimptransformtool.[ch]: Implemented live transformation
      	previews, available through tool options. Fixes bug #108172.
      afb3f5c1
  4. 04 May, 2004 1 commit
    • Sven Neumann's avatar
      app/tools/gimpblendoptions.c app/tools/gimpbucketfilloptions.c · 6fd0eeac
      Sven Neumann authored
      2004-05-04  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpblendoptions.c
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpcoloroptions.c
      	* app/tools/gimpinkoptions.c
      	* app/tools/gimppaintoptions-gui.c
      	* app/tools/gimpselectionoptions.c
      	* app/tools/gimptooloptions-gui.c
      	* app/tools/gimptransformoptions.c: use GimpFrames where GtkFrame
      	was used. Put "Pressure Sensitivity" frame into a GtkExpander.
      6fd0eeac
  5. 18 Apr, 2004 1 commit
    • Sven Neumann's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h removed GimpEnumMenu. · 89cf4554
      Sven Neumann authored
      2004-04-18  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpenummenu.[ch]: removed GimpEnumMenu.
      
      	* app/widgets/gimpenumwidgets.[ch]: moved widget constructors that
      	don't use GimpEnumMenu from gimpenummenu.[ch] to these new files.
      
      	* app/widgets/gimpenumcombobox.[ch]: added a GtkComboBox widget
      	using GimpEnumStore; replaces GimpEnumMenu.
      
      	* app/widgets/gimpenumstore.[ch]: added new function
      	gimp_enum_store_lookup_by_value().
      
      	* app/widgets/gimppropwidgets.[ch]: replaced
      	gimp_prop_enum_option_menu_new() with gimp_prop_enum_combo_box_new().
      
      	* app/gui/brush-select.[ch]
      	* app/gui/convert-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/tools/gimpblendoptions.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimppaintoptions-gui.c
      	* app/tools/gimpselectionoptions.c
      	* app/tools/gimptransformoptions.c
      	* app/widgets/gimpcolorframe.c
      	* app/widgets/gimpeditor.c
      	* app/widgets/gimpgrideditor.c
      	* app/widgets/gimphistogrameditor.c
      	* app/widgets/gimpstrokeeditor.c
      	* app/widgets/gimptemplateeditor.c
      	* app/widgets/gimptexteditor.c: ported to GimpEnumComboBox.
      89cf4554
  6. 13 Mar, 2004 3 commits
    • Michael Natterer's avatar
      Completed the fix for bug #136702: · 2498c665
      Michael Natterer authored
      2004-03-13  Michael Natterer  <mitch@gimp.org>
      
      	Completed the fix for bug #136702:
      
      	* app/core/gimpitem.[ch]: added "gboolean supersample" and
      	"gint recursion_level" to GimpItem::transform().
      
      	* app/core/gimpitem-linked.[ch]	(gimp_item_linked_transform): ditto.
      
      	* app/core/gimpdrawable-transform.[ch]: added "recursion_level"
      	parameters and removed the RECURSION_LEVEL #define.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/vectors/gimpvectors.c: changed accordingly.
      
      	* app/tools/gimptransformoptions.[ch]: added new property
      	"recursion_level" which is not serializable and has no GUI. Pretty
      	useless, but it's IMHO better to hardcode the default value here
      	than in gimpdrawable-transform.c
      
      	* app/tools/gimptransformtool.c: changed accordingly.
      
      	* tools/pdbgen/pdb/transform_tools.pdb: hardcode "recursion_level"
      	to 3.
      
      	* app/pdb/transform_tools_cmds.c: regenerated.
      2498c665
    • Sven Neumann's avatar
      for consistency, changed the label from "Supersample" to "Supersampling". · beaed82c
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptransformoptions.c (gimp_transform_options_gui): for
      	consistency, changed the label from "Supersample" to "Supersampling".
      beaed82c
    • Raphael Quinet's avatar
      added new "supersample" property to GimpTransformOptions and added · 59dfdac9
      Raphael Quinet authored
      2004-03-13  Raphael Quinet  <quinet@gamers.org>
      
      	* app/tools/gimptransformoptions.[ch]: added new "supersample"
      	property to GimpTransformOptions and added corresponding check
      	button in the option dialog for the transform tools.
      
      	* app/core/gimpdrawable-transform.[ch],
      	* app/core/gimpdrawable.c,
      	* app/tools/gimptransformtool.c: new "gboolean supersample"
      	parameter added to gimp_drawable_transform_tiles_affine() and
      	gimp_drawable_transform_affine().
      
      	* tools/pdbgen/pdb/transform_tools.pdb: ditto.  For the PDB calls,
      	the supersample parameter is set to FALSE for "rotate" and "shear"
      	and set to TRUE for "perspective", "scale" and "transform_2d".
      
      	* app/pdb/transform_tools_cmds.c: regenerated.
      
      	The new "supersample" option lets the user decide if the
      	transformations should use supersampling (RECURSION_LEVEL 3) or
      	not.  This fixes both bug #136702 and bug #109817.  Hopefully for
      	good, this time.
      59dfdac9
  7. 26 Aug, 2003 1 commit
  8. 17 Jul, 2003 1 commit
    • Michael Natterer's avatar
      added "gboolean allow_percent" to gimp_param_spec_unit() and to the · 486aed8e
      Michael Natterer authored
      2003-07-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig-params.[ch]: added "gboolean allow_percent"
      	to gimp_param_spec_unit() and to the GIMP_CONFIG_INSTALL_PROP_UNIT()
      	macro. Changed value validation accordingly.
      
      	* app/config/gimpconfig-types.c (string_to_unit): parse "percent"
      	correctly.
      
      	* app/widgets/gimppropwidgets.c (gimp_prop_unit_menu_new): show
      	the "Percent" menu entry if the param_spec allows percent.
      
      	* app/config/gimpcoreconfig.c
      	* app/core/gimpgrid.c
      	* app/core/gimptemplate.c
      	* app/text/gimptext.c: pass FALSE to disallow percent.
      
      	* app/paint/gimppaintoptions.c
      	* app/tools/gimpselectionoptions.c: pass TRUE. Brings back the
      	percent feature for fade_length, gradient_length and fixed_size
      	rect/ellipse select.
      
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpmagnifyoptions.c
      	* app/tools/gimpselectionoptions.c
      	* app/tools/gimptransformoptions.c: don't call the the reset()
      	functions from the GUI constructors (and reset the options just
      	deserialized from disk). Instead, added set_defaults() functions
      	which do everything the old reset() functions did (except
      	upchaining) and call set_defaults() from reset() and from the GUI
      	constructors.
      486aed8e
  9. 29 Jun, 2003 1 commit
    • Michael Natterer's avatar
      Getting rid of some legacy filenames: · 8dd2e807
      Michael Natterer authored
      2003-06-29  Michael Natterer  <mitch@gimp.org>
      
      	Getting rid of some legacy filenames:
      
      	* app/core/Makefile.am
      	* app/core/gimptooloptions.[ch]: new files.
      
      	* app/paint/gimppaintoptions.h: changed #include accordingly.
      	#define GIMP_PAINT_OPTIONS_CONTEXT_MASK here.
      
      	* app/tools/paint_options.[ch]
      	* app/tools/tool_options.[ch]: removed these files.
      
      	* app/tools/gimppaintoptions-gui.[ch]
      	* app/tools/gimptooloptions-gui.[ch]: new files.
      
      	* app/tools/gimppainttool.h: removed GIMP_PAINT_TOOL_OPTIONS_MASK
      	define again.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendoptions.c
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcoloroptions.[ch]
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.c
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpselectionoptions.[ch]
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimptransformoptions.[ch]
      	* app/tools/tool_manager.c
      	* app/gui/tool-options-dialog.c: changed accordingly.
      
      	* app/tools/tools.c: moved the vector tool before iscissors.
      8dd2e807
  10. 30 May, 2003 1 commit
    • Michael Natterer's avatar
      added enum GimpTransformType which can be one of { LAYER, SELECTION, PATH · 15b9be6a
      Michael Natterer authored
      2003-05-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-enums.[ch]: added enum GimpTransformType which
      	can be one of { LAYER, SELECTION, PATH }
      
      	* app/tools/gimptransformoptions.[ch]: added a GimpTransformType
      	property to GimpTransformOptions. Added a GUI for the new
      	option.
      
      	* app/tools/gimpflipoptions.[ch]: derive it from
      	GimpTransformOptions and add the GUI here, too.
      
      	* app/tools/gimpfliptool.c
      	* app/tools/gimptransformtool.[ch]: added support for transforming
      	the selection. Added framework for transforming paths (still
      	unimplemented).
      
      	* app/tools/gimpselectionoptions.c: small cleanup.
      
      	* libgimpwidgets/gimpstock.[ch]
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-path-16.png
      	* themes/Default/images/stock-path-22.png
      	* themes/Default/images/stock-selection-16.png: new icons for the
      	new transform options buttons. Simply copied existing ones...
      15b9be6a
  11. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      
      	* gimpmiscui.c: include libgimp-intl.h.
      
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	stuff.
      
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
      28fddfd5
  12. 21 Feb, 2003 1 commit
  13. 10 Feb, 2003 1 commit
    • Michael Natterer's avatar
      connect to GimpTransformOptions' "notify" signal and update grid and path · 58d780e0
      Michael Natterer authored
      2003-02-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.[ch]: connect to GimpTransformOptions'
      	"notify" signal and update grid and path drawing accordingly.
      
      	* app/tools/gimptransformoptions.c: removed the same stuff here.
      	Doesn't depend on the tool_manager any more.
      
      	* app/tools/gimpselectionoptions.c
      	* app/tools/paint_options.c: don't #include "tool_manager.h"
      58d780e0
  14. 09 Feb, 2003 1 commit
    • Michael Natterer's avatar
      simplified everything a lot by merging the public GimpContextPropType enum · eb6e907b
      Michael Natterer authored
      2003-02-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontext.[ch]: simplified everything a lot by
      	merging the public GimpContextPropType enum with the internal
      	anonymous object property id enum. Removed the internal copy_prop
      	functions and handle property copying in a big switch() in
      	gimp_context_copy_property(). Removed the separate signal
      	connections for each property of the parent context and do the
      	same using a single "notify" handler. Emit "notify" signals all
      	over the place.  Removed internal arrays which are no longer
      	needed due to enum merge and copy_property simplification.
      	Removed the array of signal names and use g_signal_name().
      	Removed gimp_context_unset_parent() and allow "parent" being NULL
      	in gimp_context_set_parent().
      
      	* app/tools/tool_manager.c
      	* app/widgets/gimpdevices.c: changed accordingly.
      
      	* libgimptool/gimptooltypes.h: changed GimpToolOptionsGUIFunc to
      	return a GtkWidget (the created tool options widget).
      
      	* libgimptool/gimptoolmodule.c: #include <gtk/gtk.h>
      
      	* app/tools/tool_options.[ch]: removed the "main_vbox" from the
      	GimpToolOptions struct. Changed gimp_tool_options_gui() to create
      	and return the main_vbox.
      
      	* app/tools/tool_manager.c: create the "This Tool has no Options"
      	label here if NULL was passed as "options_gui_func". Attach the
      	options widget to the tool_options object using
      	g_object_set_data().
      
      	* app/gui/tool-options-dialog.c: changed accordingly.
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.[ch]
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimpselectionoptions.[ch]
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimptransformoptions.[ch]
      	* app/tools/gimpvectoroptions.[ch]
      	* app/tools/paint_options.[ch]: return the options vbox from
      	all tool_options_gui functions.
      eb6e907b
  15. 08 Feb, 2003 1 commit
    • Michael Natterer's avatar
      app/tools/transform_options.[ch] removed... · d24dac68
      Michael Natterer authored
      2003-02-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/transform_options.[ch]
      	* app/tools/selection_options.[ch]: removed...
      
      	* app/tools/gimpselectionoptions.[ch]
      	* app/tools/gimptransformoptions.[ch]: ...and added here.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectoroptions.h: changed accordingly.
      
      	* app/tools/gimpinkoptions.[ch]: renamed "sensitivity" to
      	"size_sensitivity". Reordered properties. Added utility
      	constructors blob_button_new() and brush_widget_new().
      
      	* app/tools/gimpinktool.c: changed accordingly.
      d24dac68
  16. 07 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Added object properties for almost all tool_options values and registered · eeec3ced
      Michael Natterer authored
      2003-02-07  Michael Natterer  <mitch@gimp.org>
      
      	Added object properties for almost all tool_options values
      	and registered lots of enums with the type system:
      
      	Part I (enum and type cleanup):
      
      	* app/core/core-enums.[ch]
      	* app/core/core-types.h: removed InternalOrientaionType and
      	register GimpOrientationType. Register GimpChannelOps.
      	Removed GimpToolOptionsGUIFunc.
      
      	* app/xcf/xcf-private.h: added XcfOrientationType with the
      	same values as the old InternalOrientationType
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c: translate between GimpOrientationType and
      	XcfOrientationType.
      
      	* app/core/gimpdrawable-transform-utils.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.h
      	* app/display/gimpdisplayshell.c
      	* tools/pdbgen/stddefs.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/transform_tools_cmds.c
      	* libgimp/gimpenums.h
      	* libgimpproxy/gimpproxytypes.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimptool/gimptoolenums.[ch]: added GimpTransformGridType.
      
      	* libgimptool/gimptooltypes.h: removed GimpToolOptionsResetFunc,
      	added GimpToolOptionsGUIFunc.
      
      	Part II (tool options changes):
      
      	* app/config/gimpconfig-utils.c (gimp_config_reset_properties):
      	don't reset object properties because they have NULL as default
      	value.
      
      	* app/widgets/gimppropwidgets.[ch]: added
      	gimp_prop_[enum|boolean]_radio_frame_new(),
      	gimp_prop_paint_mode_menu_new() and gimp_prop_scale_entry_new(),
      	which are all needed by the new tool options GUI code.
      
      	* app/tools/tool_options.[ch]: removed the "reset_func" since
      	the virtual reset() method is used now.
      
      	* app/paint/gimpairbrushoptions.[ch]
      	* app/paint/gimpcloneoptions.[ch]
      	* app/paint/gimpconvolveoptions.[ch]
      	* app/paint/gimpdodgeburnoptions.[ch]
      	* app/paint/gimperaseroptions.[ch]
      	* app/paint/gimppaintoptions.[ch]
      	* app/paint/gimpsmudgeoptions.[ch]: added properties all over the
      	place and removed the widget and default_value members from
      	the structs. Renamed some values (e.g. s/type/clone_type/).
      	Don't #include <gtk/gtk.h>.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint-types.h
      	* app/paint/paint.c: changed accordingly. Don't #include <gtk/gtk.h>.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: changed accordingly.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.c
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimptextoptions.c
      	* app/tools/paint_options.[ch]
      	* app/tools/selection_options.[ch]
      	* app/tools/transform_options.[ch]: ditto: added properties and
      	removed widget and default_value stuff. Removed most reset functions.
      	Use gimp_prop widgets all over the place, renamed some values
      	as above.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectoroptions.c: changed accordingly. Ported
      	the paint_options GUI constructors to gimp_prop widgets.
      
      	* app/widgets/gimpselectioneditor.c
      	* app/gui/tool-options-dialog.c: changed accordingly.
      eeec3ced
  17. 05 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Made GimpToolOptions a GimpContext subclass and objectified all tool · aa9f82d1
      Michael Natterer authored
      2003-02-05  Michael Natterer  <mitch@gimp.org>
      
      	Made GimpToolOptions a GimpContext subclass and objectified
      	all tool options types.
      
      	* app/core/core-types.h: replaced GimpToolOptionsNewFunc by
      	GimpToolOptionsGUIFunc.
      
      	* libgimpproxy/gimpproxytypes.h: regenerated.
      
      	* app/core/gimppaintinfo.[ch]: added "GType paint_options_type".
      
      	* app/core/gimptoolinfo.[ch]: added "GType tool_options_type",
      	removed tool_info->context since GimpToolOptions are a GimpContext
      	now. Added "gboolean use_context" as a temp_hack.
      
      	* libgimptool/gimptooltypes.h: added the tool_options_type to
      	the tool registering callback.
      
      	* app/tools/tool_options.[ch]: is a real GimpContext subclass now.
      
      	* app/paint/paint-types.h
      	* app/paint/paint.c: added the paint_options_type to the paint
      	registering stuff.
      
      	* app/paint/gimppaintoptions.[ch]: is a real GimpToolOptions
      	subclass now.
      
      	* app/paint/Makefile.am
      	* app/paint/gimpairbrushoptions.[ch]
      	* app/paint/gimpcloneoptions.[ch]
      	* app/paint/gimpconvolveoptions.[ch]
      	* app/paint/gimpdodgeburnoptions.[ch]
      	* app/paint/gimperaseroptions.[ch]
      	* app/paint/gimpsmudgeoptions.[ch]: new files holding
      	GimpPaintOptions subclasses.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: removed paint options stuff, lots
      	of related changed & cleanups.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: changed accordingly.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.[ch]
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimpvectoroptions.[ch]: new files holding the various
      	tool options classes.
      
      	* app/tools/selection_options.[ch]
      	* app/tools/transform_options.[ch]: made them objects.
      
      	* app/tools/paint_options.[ch]: contains only the paint_options
      	GUI and reset stuff.
      
      	* app/tools/tools-types.h: removed SelectionOptions typedef for
      	now.
      
      	* app/tools/[all tools]: removed the tool options stuff except
      	some GUI constructors. Tons of related changes.
      
      	* app/tools/tool_manager.[ch]: changed tool registration / restore /
      	switching accordingly.
      
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c: changed accordingly.
      aa9f82d1
  18. 05 Jan, 2003 1 commit
  19. 19 Dec, 2002 1 commit
    • Michael Natterer's avatar
      added utility functions gimp_get_mod_name_[shift|control|alt]() and · 4328fa94
      Michael Natterer authored
      2002-12-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpwidgets-utils.[ch]: added utility functions
      	gimp_get_mod_name_[shift|control|alt]() and gimp_get_mod_separator()
      	which get the translated strings for "Shift", "Ctrl", "Alt" and "+"
      	from GtkAccelLabelClass to force consistency between menu
      	accelerators and other modifiers displayed in the GUI.
      	Made the format string to display the modifier ("<%s>")
      	translatable separately.
      
      	* app/gui/file-open-dialog.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/transform_options.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemlistview.c
      	* app/widgets/gimpvectorslistview.c: use the new functions instead
      	of hardcoding the modifier names over and over again.
      
      	* app/tools/transform_options.c: made a scale_entry out of the
      	grid density spinbutton.
      4328fa94
  20. 17 Dec, 2002 1 commit
    • Michael Natterer's avatar
      app/tools/gimptransformtool.c replaced the totally unclear (to the user) · 6af7df62
      Michael Natterer authored
      2002-12-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.c
      	* app/tools/transform_options.[ch]: replaced the totally unclear
      	(to the user) way we used to calculate the number of grid lines
      	from the value entered in the "Density" spinbutton by a system
      	where the user has the choice between the number of grid lines to
      	display and the spacing between the displayed grid lines. Replaced
      	the "Show Grid" toggle by an option menu to choose the grid type
      	from. (idea from drc on #gimp).
      6af7df62
  21. 18 Nov, 2002 1 commit
    • Sven Neumann's avatar
      Finally landed the new GimpConfig based gimprc parser. It's not finished · 073e533a
      Sven Neumann authored
      2002-11-18  Sven Neumann  <sven@gimp.org>
      
      	Finally landed the new GimpConfig based gimprc parser. It's not
      	finished yet but we need to start somewhere. This release removes
      	the old gimprc.[ch] files. The gimprc format changes slightly, but
      	the changes are minimal. The Preferences dialog is temporarily
      	disabled since it still needs to be ported. If you are are afraid,
      	stay away from CVS for a few days ;-)
      
      	* app/Makefile.am
      	* app/gimprc.[ch]: removed the old gimprc system.
      
      	* app/base/Makefile.am
      	* app/base/base-config.[ch]: removed these files in favor of
      	config/gimpbaseconfig.[ch].
      
      	* app/core/Makefile.am
      	* app/core/gimpcoreconfig.[ch]: removed these files in favor of
      	config/gimpcoreconfig.[ch].
      
      	* app/config/Makefile.am
      	* app/config/config-types.h: moved typedefs into this new file.
      
      	* app/config/gimpbaseconfig.[ch]
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimpdisplayconfig.[ch]
      	* app/config/gimpguiconfig.[ch]
      	* app/config/gimprc.[ch]
      	* app/config/test-config.c: brought into shape for real use.
      
      	* app/base/base-types.h: include config/config-types.h here. Added
      	a global GimpBaseConfig *base_config variable to ease migration.
      
      	* app/gui/Makefile.am: temporarily disabled the preferences dialog.
      
      	* app/app_procs.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/base/base.[ch]
      	* app/base/gimphistogram.c
      	* app/base/pixel-processor.c
      	* app/base/temp-buf.c
      	* app/base/tile-cache.c
      	* app/core/core-types.h
      	* app/core/gimp-documents.c
      	* app/core/gimp.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpmodules.c
      	* app/core/gimppattern.c
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gimpnavigationview.c
      	* app/file/file-save.c
      	* app/gui/device-status-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/paths-dialog.c
      	* app/gui/resize-dialog.c
      	* app/gui/session.c
      	* app/gui/test-commands.c
      	* app/gui/tips-dialog.c
      	* app/gui/tips-dialog.h
      	* app/gui/user-install-dialog.c
      	* app/gui/view-commands.c
      	* app/paint/gimppaintcore.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimptexttool.[ch]
      	* app/tools/selection_options.c
      	* app/tools/tools.c
      	* app/tools/transform_options.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpitemfactory.c
      	* app/widgets/gimpselectioneditor.c
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: use the new config system
      	instead of the old gimprc stuff.
      
      	* etc/gimprc.in
      	* etc/gimprc_user.in: adapted to the new gimprc format. Will update
      	the man-page later...
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/transform_tools_cmds.c
      	* libgimp/gimpgimprc_pdb.c: regenerated.
      073e533a
  22. 28 Apr, 2002 1 commit
    • Sven Neumann's avatar
      app/tools/gimpairbrushtool.c app/tools/gimpblendtool.c · 05581ddf
      Sven Neumann authored
      2002-04-28  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/paint_options.c
      	* app/tools/selection_options.c
      	* app/tools/transform_options.c: in preparation of a more generic tool
      	options framework: use the options value, not the default value when
      	setting up the tool options UI. Doesn't make any difference since both
      	are initialized to the same value, but reduces usage of the ugly foo_d
      	variables.
      
      	* app/tools/gimpmagnifytool.c: don't change the resize_windows_on_zoom
      	gimprc value in response to changes in the tool options. Only use it
      	as default value when resetting the tool options.
      05581ddf
  23. 18 Mar, 2002 1 commit
    • Sven Neumann's avatar
      app/widgets/Makefile.am use gimp_mkenums to create widgets-enums.c, added · b4768836
      Sven Neumann authored
      2002-03-18  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-enums.[ch]: use gimp_mkenums to create
      	widgets-enums.c, added it to CVS since it contains translatable
      	messages now.
      
      	* app/widgets/gimpenummenu.[ch]: added new functions
      	gimp_enum_radio_box_new() and gimp_enum_radio_frame_new() that create
      	groups of radio buttons out of enum types.
      
      	* app/core/core-enums.[ch]: registered more enums.
      
      	* app/paint/gimpdodgeburn.h
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/transform_options.[ch]: use gimp_enum_radio_frame_new()
      	for some tool options.
      b4768836
  24. 17 Mar, 2002 1 commit
    • Sven Neumann's avatar
      define GIMP_MKENUMS for use in Makefile.am. · 26578e75
      Sven Neumann authored
      2002-03-17  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: define GIMP_MKENUMS for use in Makefile.am.
      
      	* tools/Makefile.am
      	* tools/gimp-mkenums: a modified version of glib-mkenums that parses
      	literal descriptions for enum values out of the header file.
      
      	* app/base/Makefile.am
      	* app/base/base-enums.h: added descriptions for the InterpolationType.
      
      	* app/base/base-enums.c: added to CVS although it is generated since
      	translatable messages are extracted from this file and translators
      	shouldn't need to build stuff.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpenummenu.[ch]: new widget to create a GtkMenu or a
      	GtkOptionMenu directly from a registered enum.
      
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/tools/transform_options.c: use gimp_enum_option_menu_new() for
      	the Interpolation menus.
      26578e75
  25. 12 Feb, 2002 2 commits
    • Sven Neumann's avatar
      renamed GimpInterpolationType values to something sane and unexported it · 04c995fb
      Sven Neumann authored
      2002-02-12  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base-enums.h: renamed GimpInterpolationType values to
      	something sane and unexported it from the PDB since it was never
      	used in any PDB calls.
      
      	* app/gimprc.c
      	* app/config/gimpcoreconfig.c
      	* app/core/gimpcoreconfig.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimplayer.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/paint-funcs/paint-funcs.c
      	* app/pdb/transform_tools_cmds.c
      	* app/tools/transform_options.c
      	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.
      
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      04c995fb
    • Michael Natterer's avatar
      Made the interpolation type configurable in the scale and transform · 733d6335
      Michael Natterer authored
      2002-02-12  Michael Natterer  <mitch@gimp.org>
      
      	Made the interpolation type configurable in the scale and
      	transform options dialogs (#69251):
      
      	* app/base/base-config.[ch]
      	* app/config/gimpbaseconfig.[ch]: removed interpolation_type here...
      
      	* app/core/gimpcoreconfig.[ch]
      	* app/config/gimpcoreconfig.[ch]: ...and added it here.
      
      	* app/gimprc.c
      	* app/gui/preferences-dialog.c: changed accordingly.
      
      	* app/paint-funcs/paint-funcs.[ch]: scale_region: take an
      	interpolation_type parameter.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-scale.[ch]
      	* app/core/gimplayer.[ch]: pass interpolation_type parameters to all
      	scale and transform functions.
      
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.
      
      	* app/gui/resize-dialog.[ch]
      	* app/tools/transform_options.[ch]: added an interpolation_type menu.
      
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      733d6335
  26. 03 Dec, 2001 1 commit
    • Michael Natterer's avatar
      use the passed Gimp pointer instead of using "the_gimp". · 403a38e2
      Michael Natterer authored
      2001-12-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/devices.c: use the passed Gimp pointer instead of
      	using "the_gimp".
      
      	* app/base/temp-buf.c: indentation.
      
      	* app/gui/preferences-dialog.c: prefs_toggle_callback(): fixed
      	segfault when trying to find the prefs_dlg widget from a menu
      	item callback (Fixes #65757).
      
      	* app/gui/offset-dialog.[ch]: fixed public prototype, include
      	the header in the .c file.
      
      	* app/gui/menus.c: some menu cleanup: moved all functions which
      	operate on the active layer/drawable to <Image>/Layer. Renamed
      	"Layers" to "Layer".
      
      	* app/display/gimpdisplayshell.c: changed menu update function
      	accordingly.
      
      	* app/gui/image-commands.[ch]
      	* app/gui/layers-commands.[ch]: moved stuff from image-commands.*
      	to layers-commads.*-
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/paint_options.c
      	* app/tools/transform_options.c
      	* plug-ins/common/align_layers.c
      	* plug-ins/common/autocrop.c
      	* plug-ins/common/autostretch_hsv.c
      	* plug-ins/common/c_astretch.c
      	* plug-ins/common/color_enhance.c
      	* plug-ins/common/guillotine.c
      	* plug-ins/common/normalize.c
      	* plug-ins/common/rotate.c
      	* plug-ins/common/threshold_alpha.c
      	* plug-ins/common/zealouscrop.c
      	* plug-ins/rcm/rcm.c
      	* plug-ins/fp/fp.c: register under <Image>/Layer, some cosmetic
      	fixes.
      403a38e2
  27. 29 Nov, 2001 1 commit
    • Michael Natterer's avatar
      replaced the QMask radio buttons ba a single check button. Still needs · bf6e5a4b
      Michael Natterer authored
      2001-11-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]: replaced the QMask radio
      	buttons ba a single check button. Still needs some tuning.
      
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-qmask.[ch]: changed accordingly.
      
      	* app/tools/gimptool.[ch]: added "gboolean handle_empty_image" to
      	the GimpTool structure.
      
      	* app/tools/gimpmovetool.c: set it to TRUE.
      
      	* app/tools/gimpfuzzyselecttool.c: don't gimp_[set|unset]_busy()
      	while calculating the selection but set the busy cursor on the
      	display manually (we have the pointer grabbed anyway).
      
      	* app/display/gimpdisplayshell-callbacks.c: don't check for
      	GIMP_IS_MODE_TOOL(active_tool) but look at
      	active_tool->handle_empty_image. Removed the checks for
      	GIMP_IS_FUZZY_SELECT_TOOL(active_tool) because fuzzy_select
      	doesn't set GIMP busy while it's active any more.
      
      	* app/tools/transform_options.[ch]
      	* app/tools/gimptransformtool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c: added widgets for the transform tools'
      	constraints (one more #51108 issue fixed).
      
      	* app/tools/gimperasertool.c: cosmetic.
      
      	* app/widgets/gimpdockbook.c: don't hardcode GtkNotebook's
      	tab_border to 0 but add a style property for it...
      
      	* themes/Default/gtkrc: ...and set it to 0 here.
      bf6e5a4b
  28. 26 Nov, 2001 1 commit
    • Michael Natterer's avatar
      added Rebecca Walter (bex). · 54c1b2d1
      Michael Natterer authored
      2001-11-26  Michael Natterer  <mitch@gimp.org>
      
      	* tools/authorsgen/contributors: added Rebecca Walter (bex).
      
      	* AUTHORS
      	* app/gui/authors.h: regenerated.
      
      	* app/widgets/widgets-types.h: added GimpPreviewSize enum.
      
      	* app/gimprc.c
      	* app/gui/menus.c
      	* app/gui/preferences-dialog.c
      	* app/widgets/gimpdockbook.c: use the new enum.
      
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpmagnifytool.c: added "(<Ctrl>)" and "(<Alt>)" to
      	some tool options strings.
      
      	* app/tools/gimpmovetool.c: some more widgets for hidden tool
      	options (#51108).
      
      	* app/tools/transform_options.c: renamed to "Tool Paradigm" stuff
      	to something more understandable.
      
      	* app/widgets/gimpdock.c: added a style property for the height
      	of the separator.
      
      	* themes/Default/gtkrc: show how to use the new property.
      
      	* app/widgets/gimpcontainerview.c
      	* app/widgets/gimpdockable.c
      	* app/widgets/gimplayerlistview.c: waste less lines when calling
      	gtk_widget_style_get().
      54c1b2d1
  29. 22 Nov, 2001 1 commit
    • Michael Natterer's avatar
      app/tools/gimpclonetool.c app/tools/gimpconvolvetool.c · 19af93ac
      Michael Natterer authored
      2001-11-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/paint_options.c
      	* app/tools/transform_options.c: removed the remaining cases of
      	we-rely-on-the-radio-buttons-being-in-the-same-order-as-the-enum
      	and use gimp_radio_group_set_active() instead.
      	Use GINT_TO_POINTER(gint) instead of (gpointer)gint all over
      	the place.
      19af93ac
  30. 20 Nov, 2001 1 commit
    • Michael Natterer's avatar
      added GimpToolRegisterFunc, GimpToolRegisterCallback and · a75c675d
      Michael Natterer authored
      2001-11-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-types.h: added GimpToolRegisterFunc,
      	GimpToolRegisterCallback and GimpToolOptionsNewFunc typedefs
      	which are used to register tools.
      
      	* app/tools/tools.c: put the register funcs in an array of
      	GimpToolRegisterFuncs. Pass a Gimp pointer *plus* a
      	GimpToolRegisterCallback (which is tool_manager_register_tool())
      	to the tools' register functions.
      
      	* app/tools/tool_manager.[ch]: added a GimpToolOptionsNewFunc to
      	the parameters of tool_manager_register_tool(). Create the tool
      	options here, not in each tool.
      
      	* app/tools/paint_options.[ch]
      	* app/tools/selection_options.[ch]
      	* app/tools/tool_options.[ch]
      	* app/tools/transform_options.[ch]: all _init() and _new()
      	functions take a GimpToolInfo pointer now. The _reset() func needs
      	to be set manually now.
      
      	* app/tools/[all_tools].[ch]: changed accordingly:
      
      	- pass GimpToolOptionsNewFuncs to the register callback.
      	- don't create the tool options in the tools' _init() function.
      	- removed all static tool options variables.
      	- get the options from the tool system in the cases i missed
      	  in my last commit.
      	- added minor hacks to get rid of the static options pointer
      	  in some pathological cases :) (i.e. the ink tool).
      a75c675d
  31. 19 Nov, 2001 1 commit
    • Michael Natterer's avatar
      forgot to commit last time. · 57044c2f
      Michael Natterer authored
      2001-11-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplay-foreach.c: forgot to commit last time.
      
      	Transform stuff cleanup:
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpdrawable-transform.[ch]: new files implementing
      	the actual transform functions cut from tools/gimptransformtool.*.
      
      	* app/core/gimpdrawable-transform-utils.[ch]: new files implementing
      	transform matrix assembly utility functions.
      
      	* app/tools/gimptransformtool.[ch]: removed the stuff here. cleanup.
      
      	* app/tools/transform_options.[ch]: removed all stuff which does
      	not belong here, e.g. the transform_tool_* functions and the
      	global "transform_options" variable. Works like all other tool
      	options now.
      
      	* app/tools/gimpfliptool.[ch]
      	* app/tools/gimpperspectivetool.[ch]
      	* app/tools/gimprotatetool.[ch]
      	* app/tools/gimpscaletool.[ch]
      	* app/tools/gimpsheartool.[ch]: massive code removal because
      	we can use core/gimpdrawable-fransform* functions now. cleanup.
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl: added new PDB group "transform_tools".
      
      	* tools/pdbgen/pdb/tools.pdb: removed the transform stuff here...
      
      	* tools/pdbgen/pdb/transform_tools.pdb: and added *much*
      	simplified versions which use the new core/gimpdrawable-transform*
      	utilities.
      
      	* app/pdb/Makefile.am
      	* app/pdb/transform_tools_cmds.c: new file.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/tools_cmds.c: regenerated.
      
      	* libgimp/Makefile.am
      	* libgimp/gimp_pdb.h
      	* libgimp/gimptransformtools_pdb.[ch]: new files.
      
      	* libgimp/gimptools_pdb.[ch]: regenerated.
      57044c2f
  32. 08 Nov, 2001 1 commit
    • Michael Natterer's avatar
      build display/ before tools/. · 02fde14c
      Michael Natterer authored
      2001-11-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am: build display/ before tools/.
      
      	* app/devices.c: devices_check_change(): added all events
      	which have a GdkDevice pointer.
      
      	* app/gimpprogress.c: include "display-types.h" instead of
      	"core-types.h".
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-bucket-fill.[ch]: new files: the bucket_fill
      	stuff taken from tools/gimpbucketfilltool.[ch].
      
      	* app/core/core-types.h: added "BucketFillMode".
      
      	* app/core/gimpimage-mask-select.[ch]: cleanup.
      
      	* app/core/gimpmarshal.list: added more marshallers for GimpTool's
      	new signal signatures.
      
      	* app/core/gimpmarshal.[ch]: regenerated.
      
      	* app/display/Makefile.am
      	* app/display/gimpdisplayshell-dnd.[ch]
      	* app/display/gimpdisplayshell-layer-select.[ch]: new files: the
      	canvas drop callbacks from gimpdisplayshell-callbacks.[ch] and
      	the stuff formerly knows as gui/layer-select.[ch].
      
      	* app/display/gimpdisplay.h: don't include "gui/gui-types.h".
      
      	* app/display/gximage.c: include "display-types.h".
      
      	* app/display/gimpdisplay-foreach.c
      	* app/display/gimpdisplayshell.[ch]: call gdsplay_delete(), don't
      	destroy the shell widget.
      
      	* app/gui/Makefile.am
      	* app/gui/layer-select.[ch]: removed.
      
      	* app/gui/gradients-commands.c: fixed "Save as POV" fprintf()s.
      
      	* app/gui/preferences-dialog.c: removed the layer_select stuff
      	because it is useless with the new preview system.
      
      	* app/gui/tool-options-dialog.c: send the correct data to the
      	close_callback.
      
      	* app/gui/tools-commands.c: changed to follow the new
      	gimp_tool_initialize() semantics (see below).
      
      	Tool & canvas event handling chainsawing:
      
      	* app/tools/tools-types.h: new struct GimpCoords which contains
      	x, y, pressure, tilt etc.
      
      	* app/display/gimpdisplayshell-callbacks.[ch]: added utility
      	functions which transparently retreive the current event's
      	GimpCoords or take it from the device directly if the event has
      	none. Pass GimpCoords _in_image_coordinates_ to all tool
      	functions.
      
      	Most important: don't pass GdkEvents and display coordinates to
      	tools any more.
      
      	* app/tools/gimptool.[ch]: changed virtual functions to take
      	GimpCoords, time and state separately instead of GdkEvents.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.[ch]
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.[ch]
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.[ch]
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.[ch]
      	* 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.[ch]
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpselectiontool.[ch]
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.[ch]
      	* app/tools/path_tool.[ch]
      	* app/tools/selection_options.c: tons and tons of changes:
      
      	- changed to use the new virtual function parameters.
      	- removed zillions of gdisplay_untransform_coords().
      	- get the active drawable's offsets manually in many cases.
      	  (questionable, but IMHO ok because it's obvious and not simply a
      	  "TRUE" passed to some function)
      	- reordered some functions to be consistent across tools.
      	- some tools had to be changed to work on image coords, not
      	  display ones (esp. crop).
      	- fixed strange rotate tool behaviour which should be backported
      	  to stable.
      	- some stuff i came across.
      	- indentation and other paranoia.
      	- rounding of coordinated may be broken in some tools.
      	- new bugs guaranteed.
      
      	* app/tools/tool_manager.[ch]: new semantic of
      	tool_manager_initialize_active() (looked at the places where it
      	was used from and put common code together). Should be a bit
      	better now :)
      
      	* app/tools/gimpblendtool.c
      	* app/tools/transform_options.c: use the new GTK+ feature that a
      	widget (toggle button) can be a frame's title for this tools' tool
      	options.
      
      	* app/widgets/widgets-types.h: stuff.
      
      	* themes/Default/gtkrc: s/GtkDialog/GimpDialog/.
      
      	* tools/pdbgen/Makefile.am: don't scan tools/gimpbucketfilltool.h
      	any more.
      
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* tools/pdbgen/pdb/tools.pdb: changed bucket_fill wrapper.
      
      	* app/pdb/tools_cmds.c: regenerated.
      02fde14c
  33. 14 Aug, 2001 1 commit
    • Michael Natterer's avatar
      an evil temp_hack which lets GimpContext managing the active display · e2daae31
      Michael Natterer authored
      2001-08-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/gdisplay.h: an evil temp_hack which lets GimpContext managing
      	the active display withoug including "gdisplay.h". Will go away as
      	soon ad context properties are registered dynamically.
      
      	* app/module_db.c: cleaned up the object code in preparation of
      	moving it to core/.
      
      	* app/path.c: connect to GimpImage's
      
      	* app/core/gimpobject.[ch]: derive it from GObject, not from
      	GtkObject any more (yeah :-)
      
      	* app/core/*.c: #include <glib-object.h> instead of <gtk/gtk.h>,
      	removed some remaining GtkObject-isms.
      
      	(left in a few #include <gtk/gtk.h> where bigger changes are needed
      	to get rid of the UI dependency).
      
      	* app/core/core-types.h: #include <gdk-pixbuf/gdk-pixbuf.h> here
      	temporarily.
      
      	* app/core/gimp.c (gimp_create_display): unref the image after
      	creating it's first display.
      
      	* app/core/gimpbrush.[ch]: disabled the parts of the code which
      	depend on GimpPaintTool.
      
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c: changed accordingly.
      
      	* app/core/gimpcontext.[ch]: evil hack (see above) to manage the
      	active display without including "gdisplay.h"
      
      	* app/core/gimpimage-mask.[ch]: pass a context to
      	gimage_mask_stroke() and get the current tool's PDB string from
      	there.
      
      	* app/core/gimpedit.c: changed accordingly.
      
      	* app/core/gimpimage.c: use gimp_image_update() instead of
      	gdisplays_update_full().
      
      	* app/gui/color-area.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/edit-commands.c
      	* app/gui/image-commands.c
      	* app/gui/toolbox.c: changed accordingly (don't use Gtk methods on
      	GObjects).
      
      	* app/gui/menus.c: fix some const warnings by explicit casting.
      
      	* app/tools/*.[ch]: ported all tools to GObject, some minor
      	cleanup while i was on it.
      
      	* app/widgets/gimpdialogfactory.[ch]: ported to GObject.
      
      	* app/widgets/gimplayerlistview.h: added FOO_GET_CLASS() macro.
      
      	* tools/pdbgen/app.pl: added a "widgets_eek" hack like "tools_eek"
      	which inserts #include "widgets/widgets-types.h" before ordinary
      	includes.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/edit_cmds.c: changed according to the stuff above.
      e2daae31
  34. 01 Aug, 2001 1 commit
    • Sven Neumann's avatar
      app/tools/gimpairbrushtool.c app/tools/gimpblendtool.c · 8590e01f
      Sven Neumann authored
      2001-08-01  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/paint_options.c
      	* app/tools/selection_options.c
      	* app/tools/transform_options.c: got rid of all remaining gtk_signal
      	wrappers.
      8590e01f
  35. 25 Jul, 2001 1 commit
    • Sven Neumann's avatar
      app/nav_window.c app/user_install.c app/pdb/color_cmds.c · f5cfbd50
      Sven Neumann authored
      2001-07-25  Sven Neumann  <sven@gimp.org>
      
      	* app/nav_window.c
      	* app/user_install.c
      	* app/pdb/color_cmds.c
      	* app/pdb/selection_cmds.c
      	* 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/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptool.c
      	* app/tools/paint_options.c
      	* app/tools/selection_options.c
      	* app/tools/tool_manager.c
      	* app/tools/transform_options.c
      	* app/widgets/gimpdnd.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/selection.pdb: use GObject functions.
      f5cfbd50
  36. 17 Jul, 2001 1 commit
    • Michael Natterer's avatar
      removed path_to_beziersel() so this file can be safely included from · b844c985
      Michael Natterer authored
      2001-07-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/path.[ch]: removed path_to_beziersel() so this file can be
      	safely included from core/.
      
      	* app/tools/gimpbezierselecttool.[ch]: added it here.
      
      	* app/core/core-types.h: added a GimpToolOptions typedef. Removes
      	deps into tools/ and will later be a core object anyway.
      
      	* app/tools/tools-types.h: removed the ToolOptions typedef here.
      
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage.c
      	* app/core/gimptoolinfo.[ch]: removed deps into tools/, misc stuff.
      
      	* app/tools/tool_manager.[ch]: some ugly temp hacks. Please ignore.
      
      	* app/widgets/gimpdialogfactory.[ch]: added a "remember_if_open" field
      	to the GimpDialogFactoryEntry so we can manage dialogs which should
      	not be re-opened on startup.
      
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs.c: register & create all editor dialog with the
      	"global_dialog_factory".
      
      	* app/gui/tool-options-dialog.c
      	* app/tools/*: s/ToolOptions/GimpToolOptions/
      b844c985