Commit Graph

23212 Commits

Author SHA1 Message Date
Lars-Peter Clausen 4e2bc38d15 Add new documenation based on the pygobject documentation system.
2008-08-18  Lars-Peter Clausen  <lars@metafoo.de>

	Add new documenation based on the pygobject documentation system.

	* configure.in
	* plug-ins/pygimp/Makefile.am
	* plug-ins/pygimp/doc/Makefile.am
	* plug-ins/pygimp/doc/html
	* plug-ins/pygimp/doc/html/style.css
	* plug-ins/pygimp/doc/xsl
	* plug-ins/pygimp/doc/xsl/ref-html-style.xsl
	* plug-ins/pygimp/doc/xsl/fixxref.py.in
	* plug-ins/pygimp/doc/xsl/html.xsl
	* plug-ins/pygimp/doc/xsl/devhelp.xsl
	* plug-ins/pygimp/doc/xsl/pdf-style.xsl
	* plug-ins/pygimp/doc/xsl/common.xsl
	* plug-ins/pygimp/doc/xsl/pdf.xsl
	* plug-ins/pygimp/doc/Makefile.am
	* plug-ins/pygimp/doc/reference
	* plug-ins/pygimp/doc/reference/pygimp-classes.xml
	* plug-ins/pygimp/doc/reference/pygimp-pixel-fetcher.xml
	* plug-ins/pygimp/doc/reference/entities.docbook
	* plug-ins/pygimp/doc/reference/pygimp-drawable.xml
	* plug-ins/pygimp/doc/reference/pygimp.xml
	* plug-ins/pygimp/doc/reference/pygimp-image.xml
	* plug-ins/pygimp/doc/reference/pygimp-pixel-rgn.xml
	* plug-ins/pygimp/doc/reference/entities.docbook.in
	* plug-ins/pygimp/doc/reference/pygimp-channel.xml
	* plug-ins/pygimp/doc/reference/pygimp-parasite.xml
	* plug-ins/pygimp/doc/reference/pygimp-ref.xml
	* plug-ins/pygimp/doc/reference/pygimp-layer.xml


svn path=/branches/soc-2008-python/; revision=26644
2008-08-18 15:13:47 +00:00
Lars-Peter Clausen e0ea2fb2e7 Refactored the interactive mode code. Moved all widget code to a new
2008-07-29  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpfu.py: Refactored the interactive mode code. Moved all
	widget code to a new subclass of gimp.Dialog.
	Added support to specifiy a custom layout for plugins.
	* plug-ins/pygimp/plug-ins/sphere.py: Added testcode for the new layout
	parameter of register.


svn path=/branches/soc-2008-python/; revision=26336
2008-07-29 19:33:35 +00:00
Lars-Peter Clausen abf1a8ba05 Let ZoomPreview.get_drawable and AspectPreview.get_drawable return the
2008-07-25  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.override: Let ZoomPreview.get_drawable and
	AspectPreview.get_drawable return the PyGimpDrawable which was passed to
	their constructors.


svn path=/branches/soc-2008-python/; revision=26305
2008-07-25 14:13:05 +00:00
Lars-Peter Clausen ac10f3950a Only try set the objects data after the object has been created.
2008-07-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.override:
		(_wrap_gimp_dialog_new, _wrap_gimp_proc_view): Only try set the objects
	data after the object has been created.


svn path=/branches/soc-2008-python/; revision=26297
2008-07-23 23:18:31 +00:00
Lars-Peter Clausen 8b1b5015ea Initialise self->drawable in lay_init and chn_init
2008-07-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-drawable.c: Initialise self->drawable in lay_init
	and chn_init

svn path=/branches/soc-2008-python/; revision=26296
2008-07-23 22:19:58 +00:00
Lars-Peter Clausen ee727921bb Wrapped GimpAspectpreview, GimpDrawablePreview and GimpZoomPrewview
2008-07-23  Lars-Peter Clausen  <lars@metafoo.de>

    * plug-ins/pygimp/gimpui.override: Wrapped GimpAspectpreview, 
    GimpDrawablePreview and GimpZoomPrewview constructors  


svn path=/branches/soc-2008-python/; revision=26295
2008-07-23 19:15:42 +00:00
Lars-Peter Clausen 67426eb82c Fixed usage of GimpDrawable
2008-07-23  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-drawable.c: Fixed usage of GimpDrawable 


svn path=/branches/soc-2008-python/; revision=26294
2008-07-23 15:40:12 +00:00
Lars-Peter Clausen de085845a0 Corrected wrong dates
svn path=/branches/soc-2008-python/; revision=26054
2008-07-04 00:35:28 +00:00
Lars-Peter Clausen b6ffc2d7a7 plug-ins/pygimp/pygimp-tile.c plug-ins/pygimp/pygimp-drawable.c
2008-08-30  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-tile.c
	* plug-ins/pygimp/pygimp-drawable.c
	* plug-ins/pygimp/pygimp-vectors.c
	* plug-ins/pygimp/gimpmodile.c: Fixed some potential crashes


svn path=/branches/soc-2008-python/; revision=26053
2008-07-04 00:31:21 +00:00
Lars-Peter Clausen bccac74ec1 Fixed typo Fixed wrong function and type pointers in _PyGimp_Functions.
2008-08-30  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/tools.py: Fixed typo
	* plug-ins/pygimp/gimpmodule.c: Fixed wrong function and type pointers
	in _PyGimp_Functions.
	* plug-ins/pygimp/pygimp-colors.c:
	* plug-ins/pygimp/pygimp-image.c:
	* plug-ins/pygimp/gimpui.defs:
	Fixed compiler warnings


svn path=/branches/soc-2008-python/; revision=26024
2008-06-30 18:04:02 +00:00
Lars-Peter Clausen 4fc6e4b270 Fix typo pixel propertys now return a tuple of gimp.Color. Fixed gradient
2008-08-16  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-pdb.c: Fix typo
	* plug-ins/pygimp/__init__.py: pixel propertys now return a tuple of
	gimp.Color. Fixed gradient range index issues.
	* plug-ins/pygimp/Makefile: Added tools.py
	* plug-ins/pygimp/tools.py: New module that provides functions for
	paint and select tools

svn path=/branches/soc-2008-python/; revision=26010
2008-06-28 16:24:58 +00:00
Lars-Peter Clausen dddd5160c8 plug-ins/pygimp/gimpmodule.c plug-ins/pygimp/pygimp.h Set more descriptive
2008-08-16  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpmodule.c
	* plug-ins/pygimp/pygimp.h
	* plug-ins/pygimp/pygimp-pdb.c: Set more descriptive exceptions when a 
	pdb call fails.
	* plug-ins/pygimp/gimpui.defs: Readded some defintions that got lost during
	* the regeneration.
	* plug-ins/pygimp/testui.py: Test for the readded defintions.


svn path=/branches/soc-2008-python/; revision=25961
2008-06-16 19:41:25 +00:00
Lars-Peter Clausen 2bedf4688c Added checks to (pygimp_{image,drawable,layer,channel,vectores}_new) to
2008-06-15  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-image.c:
	* plug-ins/pygimp/pygimp-drawable.c:
	* plug-ins/pygimp/pygimp-vectors.c:
	Added checks to (pygimp_{image,drawable,layer,channel,vectores}_new) to
	ensure that a python object only gets created when the object id is
	valid, otherwise return None.
	* plug-ins/pygimp/pygimp-display:
	(disp_repr): Changed repr string to match the rest of pygimp.
	(pygimp_display_new): Check if a display id is valid.

svn path=/branches/soc-2008-python/; revision=25958
2008-06-15 14:23:33 +00:00
Lars-Peter Clausen f03966b507 Moved execution into global namespace. Fixes import statements inside of
2008-06-15  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/plug-ins/python-fu-eval.py: Moved execution into
	global namespace. Fixes import statements inside of evaled code.
	* plug-ins/pygimp/testui.py: Cleaned use of import statements.
	* plug-ins/pygimp/testui: Redirect stderr to stdout

svn path=/branches/soc-2008-python/; revision=25957
2008-06-15 12:19:40 +00:00
Lars-Peter Clausen bdd0f80678 missed changelog last commit
svn path=/branches/soc-2008-python/; revision=25952
2008-06-15 01:54:05 +00:00
Lars-Peter Clausen e1a84e95ff Regenerated file Fixed or added the following wrapper functions:
2008-06-15  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.defs: Regenerated file
	* plug-ins/pygimp/gimpui.defs:
		Fixed or added the following wrapper functions:
		gimp_browser_add_search_types
	gimp_preview_transform
	gimp_preview_untransform
	gimp_int_store_lookup_by_value
	gimp_memsize_entry_new
	gimp_memsize_entry_set_value
	gimp_color_area_get_color
	gimp_color_hex_entry_get_color
	gimp_color_notebook_get_color
	gimp_color_selection_get_color
	gimp_color_selection_get_old_color
	gimp_enum_store_new
	* libgimpwidgets/gimpbrowser.c  (gimp_browser_add_search_types):
	Fixed usage of gimp_int_combo_box_append
	* libgimwidgets/gimppatheditor.c: Changed constructor to use properties
	* plug-ins/pygimp/testui{.py}: Added a script that calls every wrapped
	method to ensure that it does not crash and accepts the expected
	arguments.
	* plug-ins/pygimp/gimpmodule.c:
	* plug-ins/pygimp/pygimp-api.h:
	* plug-ins/pygimp/pygimp.h:
	Moved PyGimpPixelRgn into the API struct

svn path=/branches/soc-2008-python/; revision=25951
2008-06-15 01:50:53 +00:00
Lars-Peter Clausen b252c298e8 Fixed gradient range issues. Regenerated file plug-ins/pygimp/gimpui.defs
2008-06-11  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/__init__.py: Fixed gradient range issues.
	* plug-ins/pygimp/gimpenums-types.defs: Regenerated file
	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override
	Added wrappers for the following functions that are not autogenerated.
	gimp_int_combo_box_set_sensitivity
	gimp_int_combo_box_append
	gimp_int_combo_box_prepend
	gimp_page_selector_get_selected_pages
	gimp_preview_get_position
	gimp_preview_get_size
	gimp_zoom_model_get_fraction
	gimp_drawable_preview_get_drawable
	gimp_zoom_preview_get_drawable
	gimp_drawable_preview_draw_region

svn path=/branches/soc-2008-python/; revision=25928
2008-06-11 20:42:31 +00:00
Lars-Peter Clausen acb5c34c8c Fixed some compiler warnings plug-ins/pygimp/pygimp-colors.c
2008-06-09  Lars-Peter Clausen <lars@metafoo.de>
	Fixed some compiler warnings
	* plug-ins/pygimp/pygimp-colors.c
	* plug-ins/pygimp/pygimp-pdb.c

svn path=/branches/soc-2008-python/; revision=25906
2008-06-09 19:38:24 +00:00
Lars-Peter Clausen 51f3fb3bc8 Added wrapper for GimpColorProfileStore and GimpColorProfileCombobox
2008-06-09  Lars-Peter Clausen <lars@metafoo.de>
    Added wrapper for GimpColorProfileStore and GimpColorProfileCombobox
    * plug-ins/pygimp/gimpui.defs
    * plug-ins/pygimp/gimpui.override

svn path=/branches/soc-2008-python/; revision=25905
2008-06-09 19:24:17 +00:00
Lars-Peter Clausen d9d1a1905d Added wrapper for gradients Added context submodule which provides a
2008-06-09  Lars-Peter Clausen <lars@metafoo.de>

	* plug-ins/pygimp/__init.py__: Added wrapper for gradients
	* plug-ins/pygimp/context.py: Added context submodule which provides a
	  wrapper around all gimp_context_[get|set]* functions.

svn path=/branches/soc-2008-python/; revision=25903
2008-06-09 17:26:55 +00:00
Lars-Peter Clausen a7f80d0313 Added wrapper for GimpNumberPairEntry plug-ins/pygimp/gimpui.defs
2008-06-03  Lars-Peter Clausen <lars@metafoo.de>

	Added wrapper for GimpNumberPairEntry
	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.overridel

svn path=/branches/soc-2008-python/; revision=25883
2008-06-03 00:13:12 +00:00
Lars-Peter Clausen 975b6bd67e Added wrapper for Pal
2008-06-01  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/__init__.py: Added wrapper for Pal

svn path=/branches/soc-2008-python/; revision=25875
2008-06-01 12:50:18 +00:00
Lars-Peter Clausen 37d06df1bb Added wrapper objects for Brushes and Palettes Forgot that one in last
2008-05-29  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/__init__.py: Added wrapper objects for Brushes and Palettes
	* plug-ins/pygimp/gimpthumb.py: Forgot that one in last commit

svn path=/branches/soc-2008-python/; revision=25857
2008-05-29 12:29:17 +00:00
Lars-Peter Clausen 8c423d93b0 Move gimpenums, gimpshelf, gimpui, gimpcolor to the gimp package and
2008-05-29  Lars-Peter Clausen  <lars@metafoo.de>
    Move gimpenums, gimpshelf, gimpui, gimpcolor to the gimp package and remove
    the leading gimp. So they are now accessed as gimp.enums.
    The old modules import everything from the new ones.

    * plug-ins/pygimp/gimpcolor.py
    * plug-ins/pygimp/gimpshelf.py
    * plug-ins/pygimp/gimpui.py
    * plug-ins/pygimp/gimpenums.py
    * plug-ins/pygimp/gimpthumb.py
    * plug-ins/pygimp/enums.py
    * plug-ins/pygimp/ui.py
    * plug-ins/pygimp/shelf.py
    * plug-ins/pygimp/gimpfu.py
    * plug-ins/pygimp/gimpthumbmodule.c
    * plug-ins/pygimp/gimpenumsmodule.c
    * plug-ins/pygimp/pygimpcolor-api.h
    * plug-ins/pygimp/gimpuimodule.c
    * plug-ins/pygimp/gimpcolormodule.c
    * plug-ins/pygimp/pygimp-pdb.c
    * plug-ins/pygimp/Makefile.am

svn path=/branches/soc-2008-python/; revision=25854
2008-05-29 12:07:32 +00:00
Lars-Peter Clausen 1674446049 Convert PDB_* enums to int when assigned to PB_* constants
2008-05-27  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpfu.py: Convert PDB_* enums to int when assigned
	to PB_* constants

svn path=/branches/soc-2008-python/; revision=25822
2008-05-26 22:06:30 +00:00
Lars-Peter Clausen ac5cd6e228 Use GEnum objects rather then integer values for enums Added docstrings
2008-05-26  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpenumsmodule.c: Use GEnum objects rather then
	integer values for enums
	* plug-ins/pygimp/ pygimp-pdb.c:
	Added docstrings for the properties of a GimpPDBFunction object.
	(pygimp_pdb_function_new): Set the docstring of a GimpPDBFunction
	object to proc_help.
	When gimpenums is available set the type of the arguments to a
	GimpPDBArgType enum instead of a integer value.
	(pdb_getattro): Fix a bug where a pdb object returned a list of all pdb
	functions instead of the actual value for all properties starting with
	a underscore.

svn path=/branches/soc-2008-python/; revision=25821
2008-05-26 21:51:54 +00:00
Lars-Peter Clausen 29e78de25e Changed the 'gimp' module to folder with a __init__.py so that it is able
2008-05-28  Lars-Peter Clausen  <lars@metafoo.de>

	Changed the 'gimp' module to folder with a __init__.py so that it is
	able to contain submodules. Renamed the C based 'gimp' module to '_gimp'.
	__init__.py imports all symbols from _gimp.

	* plug-ins/pygimp/Makefile.am
	* plug-ins/pygimp/makefile.msc
	* plug-ins/pygimp/gimpmodule.c
	* plug-ins/pygimp/__init__.py

svn path=/branches/soc-2008-python/; revision=25818
2008-05-26 20:20:17 +00:00
Sven Neumann 3d48dcc119 note that we need intltool 0.35.5 or newer.
2008-05-24  Sven Neumann  <sven@gimp.org>

	* HACKING: note that we need intltool 0.35.5 or newer.


svn path=/trunk/; revision=25785
2008-05-24 08:58:28 +00:00
Martin Nordholts 5b0834f81f Also Remove the Polygon Select Tool action from here.
2008-05-24  Martin Nordholts  <martinn@svn.gnome.org>

	* menus/image-menu.xml.in: Also Remove the Polygon Select Tool
	action from here.

svn path=/trunk/; revision=25784
2008-05-24 08:53:31 +00:00
Martin Nordholts d228bf7398 Kill the Polygon Select Tool. The Free Select Tool now provides a superset
2008-05-24  Martin Nordholts  <martinn@svn.gnome.org>

	Kill the Polygon Select Tool. The Free Select Tool now provides a
	superset of the old Polygon Select Tool functionality. We still
	keep the tool icons etc around though, they might come in useful
	in the future.

	* app/tools/gimppolygonselecttool.[ch]: Removed.

	* app/tools/Makefile.am: Removed gimppolygonselecttool.[ch].

	* app/tools/gimp-tools.c (gimp_tools_init): Don't register the
	Polygon Select Tool.

	* app/widgets/gimphelp-ids.h: Remove
	GIMP_HELP_TOOL_POLYGON_SELECT.

svn path=/trunk/; revision=25783
2008-05-24 07:21:55 +00:00
Martin Nordholts 43dec1b186 Draw handles within HANDLE_SIZE * 7 distance from cursor instead of only
2008-05-23  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimpfreeselecttool.c
	(gimp_free_select_tool_draw): Draw handles within HANDLE_SIZE * 7
	distance from cursor instead of only showing the hovered handle.
	(gimp_free_select_tool_oper_update): Remember last coordinates
	given here, so we can do above calculations.

svn path=/trunk/; revision=25782
2008-05-23 21:46:13 +00:00
Michael Natterer 598da617b0 Stop including single headers from gtk+ to be prepared for the upcoming
2008-05-23  Michael Natterer  <mitch@gimp.org>

	Stop including single headers from gtk+ to be prepared
	for the upcoming GTK_DISABLE_SINGLE_INCLUDES:

	* configure.in: add -DGTK_DISABLE_SINGLE_INCLUDES to CPPFLAGS.

	* app/display/gimpcanvas.h
	* app/display/gimpscalecombobox.h
	* app/display/gimpstatusbar.h
	* app/widgets/*.h
	* libgimp/gimpprogressbar.h
	* libgimp/gimpselectbutton.h
	* libgimpwidgets/*.h
	* libgimpwidgets/gimpstock.c
	* plug-ins/uri/gimpmountoperation.h: remove inclusion of parent
	classes and single files from gtk+.

	* app/widgets/gtkwrapbox.h
	* libgimp/gimpbrushmenu.c
	* libgimp/gimpfontmenu.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimppalettemenu.c
	* libgimp/gimppatternmenu.c
	* libgimp/gimpselectbutton.c: #include <gtk/gtk.h>

	* plug-ins/common/poppler.c: undef GTK_DISABLE_SINGLE_INCLUDES
	when including <poppler.h>.


svn path=/trunk/; revision=25781
2008-05-23 20:38:52 +00:00
Alexandre Prokoudine 19a6177f74 updated Russian translation
svn path=/trunk/; revision=25780
2008-05-23 16:39:06 +00:00
Sven Neumann a8bbbd004e updated German translation.
2008-05-23  Sven Neumann  <sven@gimp.org>

	* de.po: updated German translation.

svn path=/trunk/; revision=25779
2008-05-23 14:33:03 +00:00
Sven Neumann 35738aa952 string change.
2008-05-23  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpimagemaptool-settings.c: string change.

svn path=/trunk/; revision=25778
2008-05-23 14:21:32 +00:00
Sven Neumann 5aa59b3ba0 app/core/gimpchannel-select.c app/core/gimpdrawable-bucket-fill.c
2008-05-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimpchannel-select.c
	* app/core/gimpdrawable-bucket-fill.c
	* app/core/gimpdrawable-transform.c
	* app/core/gimpimage-crop.c
	* app/dialogs/image-scale-dialog.c
	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpforegroundselecttool.c
	* app/tools/gimpfreeselecttool.c
	* app/tools/gimpfuzzyselecttool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimpperspectivetool.c
	* app/tools/gimppolygonselecttool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpsheartool.c
	* libgimpwidgets/gimpcolorprofilestore.c
	* plug-ins/gfig/gfig-dialog.c: use C_() instead of Q_() for
	translations with context.

svn path=/trunk/; revision=25777
2008-05-23 14:09:55 +00:00
Sven Neumann e5f0bd3b3b set XGETTEXT_KEYWORDS for use of msgctxtid.
2008-05-23  Sven Neumann  <sven@gimp.org>

	* Makefile.in.in: set XGETTEXT_KEYWORDS for use of msgctxtid.

svn path=/trunk/; revision=25776
2008-05-23 14:02:33 +00:00
Sven Neumann 73e717eb34 require glib-gettextize 2.16.
2008-05-23  Sven Neumann  <sven@gimp.org>

	* autogen.sh (GLIB_REQUIRED_VERSION): require glib-gettextize 2.16.

	* libgimp/libgimp-intl.h
	* plug-ins/pygimp/pygimp-intl.h: synced with gi18n-lib.h from glib
	2.16. This adds support for the C_() macro.

	* plug-ins/script-fu/script-fu-intl.h: just include gi18n.h instead
	of duplicating things from this header.

svn path=/trunk/; revision=25775
2008-05-23 13:36:31 +00:00
Sven Neumann e5667f73e8 added ChangeLog entry for Kevin taken from the SVN log
svn path=/trunk/; revision=25774
2008-05-23 09:48:36 +00:00
Michael Natterer 99a338132b left-align the labels in the new dynamics matrix. Add some code for RTL
2008-05-23  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppaintoptions-gui.c: left-align the labels in the
	new dynamics matrix. Add some code for RTL layout that doesn't
	work properly yet.


svn path=/trunk/; revision=25772
2008-05-23 08:09:51 +00:00
Kevin Cozens f8ac996bbe Added extra check to stop "(let x 5)" syntax from causing seg fault in
2008-05-22  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Added extra check to stop
	"(let x 5)" syntax from causing seg fault in Linux. See bug #508020.
	Removed some excess whitespace.

svn path=/trunk/; revision=25770
2008-05-22 22:08:18 +00:00
Michael Natterer bbbc6375e7 move generating the random axis to the right place.
2008-05-22  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpbrushcore.c (gimp_brush_core_interpolate): move
	generating the random axis to the right place.


svn path=/trunk/; revision=25766
2008-05-22 20:17:49 +00:00
Michael Natterer d66828c883 replace the pressure-expanded, velocity-expanded and random-expanded
2008-05-22  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimppaintoptions.[ch]: replace the pressure-expanded,
	velocity-expanded and random-expanded properties by a single
	dynamics-expanded property.

	* app/tools/gimppaintoptions-gui.c: pack the toggle matrix into an
	expander, some cleanup.


svn path=/trunk/; revision=25765
2008-05-22 19:06:51 +00:00
Michael Natterer 791638fb15 revert accidential change of all occurences of "hardness" to "pressure" in
2008-05-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppaintoptions-gui.c: revert accidential change of
	all occurences of "hardness" to "pressure" in strings and function
	names.


svn path=/trunk/; revision=25764
2008-05-22 18:54:16 +00:00
Michael Natterer c03253684a factor out a utility function that creates a dynamics check button.
2008-05-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppaintoptions-gui.c: factor out a utility function
	that creates a dynamics check button.


svn path=/trunk/; revision=25763
2008-05-22 18:38:18 +00:00
Michael Natterer 3bcf7ff632 first version of a matrix of toggles for the dynamics parameters instead
2008-05-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppaintoptions-gui.c: first version of a matrix of
	toggles for the dynamics parameters instead of three expanders.


svn path=/trunk/; revision=25762
2008-05-22 18:28:39 +00:00
Martin Nordholts 91cf64359d Base a start of a new segment on the pending point, and enable 15 degree
2008-05-22  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimpfreeselecttool.c: Base a start of a new segment on
	the pending point, and enable 15 degree constraints on the pending
	point when Ctrl is being held down.

svn path=/trunk/; revision=25761
2008-05-22 18:05:10 +00:00
Martin Nordholts 74e037bf80 app/core/gimpcurve-load.c (gimp_curve_load) Remove unused variables.
2008-05-22  Martin Nordholts  <martinn@svn.gnome.org>

	* app/core/gimpcurve-load.c (gimp_curve_load)
	* app/paint/gimppaintbrush.c (_gimp_paintbrush_motion): Remove
	unused variables.

svn path=/trunk/; revision=25760
2008-05-22 17:00:24 +00:00
Martin Nordholts cb13929f5c app/tools/gimpfreeselecttool.[ch] Fix that some
2008-05-22  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimpfreeselecttool.[ch]
	* app/tools/gimpforegroundselecttool.c: Fix that some
	gimp_free_select_tool_-functions had the wrong name.

svn path=/trunk/; revision=25759
2008-05-22 16:58:21 +00:00
Michael Natterer fe70064f00 Applied slightly modified and fixed patch from Alexia Death which adds a
2008-05-22  Michael Natterer  <mitch@gimp.org>

	Applied slightly modified and fixed patch from Alexia Death which
	adds a "random" axis to the paint dynamics and fixes some issues
	in the previous paint dynamics commits. Fixes bug #529431.

	* app/core/core-types.h: add a "random" axis to GimpCoords.

	* app/display/gimpdisplayshell-coords.c: set it to a random value.

	* app/display/gimpdisplayshell-callbacks.c: on button_press,
	use the dynamics from the last motion event to avoid blotches
	at the beginning of paint strokes.

	* app/paint/gimppaintoptions.[ch]: add random properties the same
	way we do pressure and velocity. Add get_dynamic_size(),
	get_dynamic_color() and get_dynamic_hardness() functions which
	look at all dynamic parameters of the passed coords.

	* app/tools/gimppaintoptions-gui.c: add gui for the random options.

	* app/paint/gimpbrushcore.[ch]: remove calc_brush_scale() and use
	gimp_paint_options_get_dynamic_size_instead().
	Add "dynamic_hardness" parameters to paste_canvas(),
	replace_canvas() and get_brush_mask().

	* app/paint/gimpairbrushoptions.c
	* app/paint/gimpclone.c
	* app/paint/gimpconvolve.c
	* app/paint/gimpdodgeburn.c
	* app/paint/gimperaser.c
	* app/paint/gimpheal.c
	* app/paint/gimppaintbrush.c
	* app/paint/gimpsmudge.c: calculate the dynamic hardness and pass
	it to above brush core functions. Use the get_dynamic_color() to
	calculate the gradient color.


svn path=/trunk/; revision=25758
2008-05-22 16:38:57 +00:00