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-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-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-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-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-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 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 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-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 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-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 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-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-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 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-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 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 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-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 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 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 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 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 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 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 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 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