Commit Graph

64 Commits

Author SHA1 Message Date
Sven Neumann 8ec1d65a4a removed trailing whitespace
svn path=/trunk/; revision=26852
2008-09-04 08:37:32 +00:00
Manish Singh fa365e1471 Add PF_OPTION. Fixes bug #523142.
2008-05-14  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Add PF_OPTION. Fixes bug #523142.

svn path=/trunk/; revision=25664
2008-05-14 09:52:14 +00:00
Sven Neumann 266129b39f strip mnemonics from parameter names before passing them to
2008-04-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py (_query.make_params): strip 
mnemonics
	from parameter names before passing them to 
gimp.install_procedure().


svn path=/trunk/; revision=25489
2008-04-14 18:07:37 +00:00
Sven Neumann 2c594fbc33 fixed logic that decides if a dialog should be shown or not.
2007-12-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py (_run): fixed logic that decides if 
a
	dialog should be shown or not.


svn path=/trunk/; revision=24300
2007-12-08 17:29:06 +00:00
Sven Neumann f98b0de0d6 added an ID attribute and a delete method to the Gimp.Display object.
2007-05-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/pygimp-display.c: added an ID attribute and a
	delete method to the Gimp.Display object.

	* plug-ins/pygimp/gimpshelf.py (_display_id): use the ID 
attribute.

	* plug-ins/pygimp/gimpfu.py: enabled support for PF_DISPLAY.


svn path=/trunk/; revision=22605
2007-05-24 20:12:50 +00:00
Manish Singh 083f18555d remove parameter definition special casing that was based on menu and
2007-05-10  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: remove parameter definition special
        casing that was based on menu and plugin types. Instead expect the
        script to specify all its parameters in its register call, and hide
        the UI elements for the parameters we are already passed in
        interactive mode. For compatibilty, this is only turned on when you
        specify the "menu" named argument in the register call, or if you
pass
        an empty label. This should fix bug #104639.

        * plug-ins/pygimp/plug-ins/clothify.py
        * plug-ins/pygimp/plug-ins/colorxhtml.py
        * plug-ins/pygimp/plug-ins/foggify.py
        * plug-ins/pygimp/plug-ins/py-slice.py
        * plug-ins/pygimp/plug-ins/shadow_bevel.py
        * plug-ins/pygimp/plug-ins/whirlpinch.py: update to register image
        * and
        drawable parameters explicitly.

svn path=/trunk/; revision=22467
2007-05-10 17:07:48 +00:00
Sven Neumann 9d91f3c5b7 don't add the radiobuttons into a GtkFrame.
2007-05-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: don't add the radiobuttons into a
	GtkFrame.

	* plug-ins/pygimp/plug-ins/sphere.py: added a PF_RADIO parameter
	as an example and for testing purposes.


svn path=/trunk/; revision=22442
2007-05-06 20:06:20 +00:00
Sven Neumann 4af6da98e1 support mnemonics in parameter labels.
2007-03-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: support mnemonics in parameter labels.

	* plug-ins/pygimp/plug-ins/foggify.py
	* plug-ins/pygimp/plug-ins/colorxhtml.py
	* plug-ins/pygimp/plug-ins/shadow_bevel.py
	* plug-ins/pygimp/plug-ins/palette-offset.py
	* plug-ins/pygimp/plug-ins/palette-sort.py: added mnemonics.


svn path=/trunk/; revision=22074
2007-03-08 15:17:54 +00:00
Simon Budig 3240f87208 added PF_VECTORS type.
2006-11-16  Simon Budig  <simon@gimp.org>

	* plug-ins/pygimp/gimpfu.py: added PF_VECTORS type.

	* plug-ins/pygimp/gimpui.py
	* plug-ins/pygimp/gimpui.override: add code for the vectors combo box

	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpmodule.c
	* plug-ins/pygimp/pygimp-api.h: changed accordingly, untabbified.

	* plug-ins/pygimp/pygimp.h: untabbified.
2006-11-16 21:23:50 +00:00
Manish Singh a8855ae632 Don't use Python 2.4 specific functions, nor deprecated sys module
2006-10-07  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Don't use Python 2.4 specific functions,
        nor deprecated sys module attributes. Fixes bug #360411.
2006-10-07 21:07:04 +00:00
Sven Neumann e7403a1bf8 string change 2006-09-29 15:20:43 +00:00
Sven Neumann e727c63aa7 put the stack trace into a scrolled window 2006-09-29 15:16:31 +00:00
Sven Neumann 17812eac9b show a dialog for execution errors.
2006-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: show a dialog for execution errors.
2006-09-29 14:43:30 +00:00
Sven Neumann 8ae9aa43fe plug-ins/pygimp/plug-ins/clothify.py need to call gettext.install here,
2006-09-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/clothify.py
	* plug-ins/pygimp/plug-ins/gimpcons.py: need to call gettext.install
	here, otherwise we can't use _() in the register() call.

	* plug-ins/pygimp/gimpfu.py: don't call gettext.install() for the
	plug-in. Translate the blurb used as a user hint.
2006-09-20 11:33:47 +00:00
Sven Neumann 8662b2e716 do not use gimp.locale_directory as the fallback but just use None 2006-09-19 15:00:07 +00:00
Sven Neumann a09db726e6 allow to pass a (domain, path) tuple as value for the domain argument of
2006-09-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: allow to pass a (domain, path) tuple
	as value for the domain argument of the register() call. Document
	the domain argument.
2006-09-19 14:53:41 +00:00
Manish Singh a7402fdcbd plug-ins/pygimp/gimpfu.py let the gettext module
2006-09-16  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py
        * plug-ins/pygimp/plug-ins/gtkcons.py: let the gettext module

        * po-python/POTFILES.in
        * plug-ins/pygimp/gimpui.py: Mark a couple strings for translation
        here.
2006-09-17 02:58:17 +00:00
Sven Neumann 6ee3d9c47e added domain_register method.
2006-09-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpmodule.c: added domain_register method.

	* plug-ins/pygimp/gimpfu.py: define N_(). Added an optional
	"domain" parameter to the register() method. Register the domain
	with GIMP and initialize gettext if it is specified.

	* plug-ins/pygimp/plug-ins/gimpcons.py: use N_() to mark menu
	label and blurb for translation. Specify the translation domain.

	* plug-ins/pygimp/plug-ins/gtkcons.py: use gettext API for modules.
2006-09-15 11:48:36 +00:00
Sven Neumann 336dfacac0 translate strings in the gimp20-python textdomain.
2006-09-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: translate strings in the gimp20-python
	textdomain.

	* plug-ins/pygimp/plug-ins/gtkcons.py: fixed a translation mark.
2006-09-15 09:56:09 +00:00
Sven Neumann b7e2ab2d2b marged strings for translation.
2006-09-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: marged strings for translation.
2006-09-14 06:59:46 +00:00
Sven Neumann d00d79fd62 document the new menu registration syntax.
2006-09-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: document the new menu registration
syntax.
2006-09-05 23:27:25 +00:00
Sven Neumann 31b3de0788 plug-ins/pygimp/gimpui.defs wrap the new GimpHintBox widget.
2006-09-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override: wrap the new GimpHintBox
widget.

	* plug-ins/pygimp/gimpfu.py: use it to display the blurb.

	* plug-ins/pygimp/plug-ins/py-slice.py: added missing verb in
blurb.
2006-09-05 23:11:12 +00:00
Sven Neumann cbbc80c24e check if the menupath starts with <Image> instead of checking that it does
2006-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: check if the menupath starts with
	<Image> instead of checking that it does not start with <Toolbox>.
	Makes the scripts in <Palettes> work to some extent.
2006-08-18 09:33:58 +00:00
Sven Neumann 8b5b80a375 derive the menu from the label before adding to _registered_plugins_.
2006-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py (register): derive the menu from the
	label before adding to _registered_plugins_.

	* plug-ins/pygimp/Makefile.am: moved clothify.py to test-scripts,
	it doubles the functionality of script-fu-clothify.
2006-08-18 08:53:17 +00:00
Sven Neumann f96049ae6e added an optional menu parameter to the register call to simplify menu
2006-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: added an optional menu parameter to
	the register call to simplify menu registration. Also restored
	menupath specific mangling of the procedure arguments.

	* plug-ins/pygimp/plug-ins/*.py: use the menu parameter instead
	of defining a function to call on query.

	* plug-ins/pygimp/plug-ins/sphere.py: do it old-style here for
	testing.
2006-08-17 14:52:13 +00:00
Sven Neumann 7728c808e5 allow '-' in procedure and parameter names.
2006-08-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: allow '-' in procedure and
parameter
	names.

	* plug-ins/pygimp/plug-ins/*.py: use canonical procedure and
	parameter names.
2006-08-16 20:48:45 +00:00
Sven Neumann a994fb3471 wrap gimp_window_set_transient() into a method of GimpDialog.
2006-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpui.defs: wrap gimp_window_set_transient()
	into a method of GimpDialog.

	* plug-ins/pygimp/gimpfu.py: call dialog.set_transient().
2006-08-11 09:00:24 +00:00
Sven Neumann 0b74a671fc pack the main vbox expanding so that the progress bar sticks to the bottom
2006-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c: pack the main vbox
	expanding so that the progress bar sticks to the bottom of the
	dialog.

	* plug-ins/pygimp/gimpfu.py: moved blurb label to the top, use
	italic style for it. Add a progress bar unconditionally and use a
	GimpProgressBar for it. Commented out the progress label until it
	is actually used.
2006-08-11 08:36:45 +00:00
Manish Singh 963b670f0f make the FileSelector class work again.
2006-07-20  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpui.py: make the FileSelector class work
        again.

        * plug-ins/pygimp/gimpfu.py: add PF_FILENAME and PF_DIRNAME to
        match script-fu. Also, if the default value for PF_FILE ends in '/',
        it goes PF_DIRNAME mode.
2006-07-20 07:40:52 +00:00
Manish Singh cbd3a1930d This is the start of wrapping much more of the GIMP API in Python. It's
2006-07-19  Manish Singh  <yosh@gimp.org>

        This is the start of wrapping much more of the GIMP API in Python.
        It's not complete yet, some things are broken.

        * plug-ins/pygimp/gimpcolormodule.c
        * plug-ins/pygimp/pygimpcolor.h
        * plug-ins/pygimp/pygimpcolor-api.h
        * plug-ins/pygimp/pygimp-colors.c: wrapped GimpHSV, GimpHSL, and
        GimpCMYK. Fleshed out a bit more of GimpRGB as well. Made the API
        exportable to other modules.

        * plug-ins/pygimp/pygimp-rgb.c: removed, subsumed into
        pygimp-colors.c.

        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/pygimp-drawable.c
        * plug-ins/pygimp/pygimp-pdb.c: PDB calls receive and create
        gimpcolor.RGB objects now.

        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/pygimp-api.h: export pygimp_drawable_new.

        * plug-ins/pygimp/gimpcolor-types.defs
        * plug-ins/pygimp/gimpenums-types.defs
        * plug-ins/pygimp/gimpui.defs
        * plug-ins/pygimp/gimpui.override
        * plug-ins/pygimp/gimpuimodule.c: new module for GIMP UI widget
        bindings.

        * plug-ins/pygimp/gimpui.py
        * plug-ins/pygimp/gimpfu.py: use some of the new widgets.

        * plug-ins/pygimp/Makefile.am: hook all the above into the build
        system.

        * plug-ins/pygimp/plug-ins/palette-sort.py: use new color API.
2006-07-20 04:53:47 +00:00
Manish Singh 587763d394 Other code places should allow menu paths to be None too.
2006-05-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Other code places should allow
        menu paths to be None too.
2006-05-30 08:47:44 +00:00
Manish Singh 48de9ef030 Allow menu paths to be None.
2006-05-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Allow menu paths to be None.
2006-05-30 08:39:31 +00:00
Carol Spears ec2a115e4e plug-ins/pygimp/gimpfu.py: removed the snake image from the gimp-python dialogs. 2006-02-15 21:51:01 +00:00
Carol Spears 9010e5dadd removed code that limited plug-in registration.
* plug-ins/pygimp/gimpfu.py: removed code that limited plug-in registration.
2005-09-30 17:10:08 +00:00
Manish Singh 920226a7db ypto 2005-06-05 19:29:29 +00:00
Manish Singh 62749bb931 plug-ins/pygimp/gimpfu.py plug-ins/pygimp/gimpenums.py use old pygtk enum
2005-06-05  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py
        * plug-ins/pygimp/gimpenums.py
        * plug-ins/pygimp/gimpenumsmodule.c: use old pygtk enum API so we
        still work with older pygtk versions.
2005-06-05 19:28:46 +00:00
Manish Singh e8c7a7a497 plug-ins/pygimp/pygimp-api.h export our API to other modules in a saner
2005-06-03  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-api.h
        * plug-ins/pygimp/gimpmodule.c: export our API to other modules
        in a saner fashion. Also add checks_get_shades method.

        * plug-ins/pygimp/procbrowser.c: Use new export API.

        * plug-ins/pygimp/pygimp-drawable.c (drw_mask_intersect):
        use Py_BuildValue to build the tuple.

        * plug-ins/pygimp/pygimp-image.c (img_repr): capitalization fix.

        * plug-ins/pygimp/pygimp-rgb.c
        * plug-ins/pygimp/pygimpcolor.h
        * plug-ins/pygimp/gimpcolormodule.c: beginnings of a wrapper to
        libgimpcolor.

        * plug-ins/pygimp/gimpfu.py
        * plug-ins/pygimp/gimpenums.py
        * plug-ins/pygimp/gimpenumsmodule.c: use gimp enum API to find out
        our enums.

        * plug-ins/pygimp/Makefile.am: hook in all of the above.
2005-06-04 00:17:06 +00:00
Sven Neumann d19d603adb special case percentage < 0 and pulse progress.
2005-05-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py (progress_update): special case
	percentage < 0 and pulse progress.
2005-05-03 21:29:28 +00:00
Manish Singh 54f867839e initialize button variable before using it in PF_BUTTON code. Fixes bug
2005-03-09  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: initialize button variable before using
        it in PF_BUTTON code. Fixes bug #169793. Thanks to Joao S. O. Bueno
        Calligaris.
2005-03-10 03:04:25 +00:00
Manish Singh ca0fcce171 Update or add missing copyright and GPL comments.
2005-03-05  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/*: Update or add missing copyright and GPL comments.
2005-03-05 08:48:45 +00:00
Manish Singh 872c501ee6 Make a compatibility wrapper for PyBool_FromLong for pre-2.3 versions of
2005-03-03  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp.h: Make a compatibility wrapper for
        PyBool_FromLong for pre-2.3 versions of python.

        * plug-ins/pygimp/gimpfu.py
        * plug-ins/pygimp/gimpui.py: Update to use some more modern python
        features.

        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/pygimp-display.c
        * plug-ins/pygimp/pygimp-drawable.c
        * plug-ins/pygimp/pygimp-image.c
        * plug-ins/pygimp/pygimp-parasite.c
        * plug-ins/pygimp/pygimp-pdb.c
        * plug-ins/pygimp/pygimp-tile.c: Throw exceptions on failures for
        libgimp wrappers (fixes bug #160136), and make the exception strings
        a lot more descriptive to aid debugging. Also return proper Bools when
        appropriate. Some new API wrapped as well. Still a work in progress.

        * plug-ins/pygimp/gimpplugin.py
        * plug-ins/pygimp/gimpshelf.py
        * plug-ins/pygimp/plug-ins/clothify.py
        * plug-ins/pygimp/plug-ins/foggify.py
        * plug-ins/pygimp/plug-ins/sphere.py: Add some whitespace to make
        things more readable.
2005-03-03 08:43:55 +00:00
William Skaggs 3bfe3cf98d Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/pygimp/gimpfu.py: display PF_RADIO options vertically
	instead of horizontally, as suggested by Joao S. O. Bueno Calligaris.
	Fixes bug #160546.
2004-12-13 19:40:52 +00:00
Manish Singh e995d8d6e7 plug-ins/pygimp/Makefile.am New pygimp logo, by Carol Spears.
2004-11-22  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/Makefile.am
        * plug-ins/pygimp/pygimp-logo.png: New pygimp logo, by Carol Spears.

        * plug-ins/pygimp/gimpfu.py: Use new external logo file, some layout
        tweaks.
2004-11-23 02:35:54 +00:00
Manish Singh 007d7549b4 plug-ins/common/gimpfu.py Add a palette selector (bug #155325). Patch by
2004-11-16  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/gimpfu.py
        * plug-ins/common/gimpui.py: Add a palette selector (bug #155325).
        Patch by Joao S. O. Bueno.
2004-11-17 03:02:54 +00:00
Manish Singh f499a2aacd Fix -fu slider behavior (bug #155103). Patch by Joao S. O. Bueno.
2004-11-16  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/gimpfu.py: Fix -fu slider behavior (bug #155103).
        Patch by Joao S. O. Bueno.
2004-11-17 02:58:50 +00:00
Manish Singh 6387c6a38f applied slightly tweaked patch from Joao S. O. Bueno, which adds a
2004-09-29  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/gimpfu.py: applied slightly tweaked patch
        from Joao S. O. Bueno, which adds a mutliline text field (PF_TEXT) and
        untabbifies things. Closes bug #153921.

        * plug-ins/pygimp/plug-ins/gimpplugin.py
        * plug-ins/pygimp/plug-ins/gimpshelf.py
        * plug-ins/pygimp/plug-ins/gimpui.py: Untabbify.
2004-09-29 23:09:30 +00:00
Kevin Turner 4e6bb34252 plug-ins/pygimp/gimpfu.py (register): clean up errors in parameter checking.
Fixes "TypeError: cannot concatenate 'str' and 'int' objects"
2004-09-22 22:08:50 +00:00
Manish Singh 2c82c9fca0 plug-ins/pygimp/gimpfu.py Hacked up support for the new progress
2004-09-01  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py
        * plug-ins/pygimp/gimpmodule.c: Hacked up support for the new
        progress interface. Emphasis on hacked.

        * plug-ins/pygimp/gimpmodule.c: Wrapped gimp_extension_enable(). Minor
        cleanups.

        * plug-ins/pygimp/pygimp-image.c
        * plug-ins/pygimp/pygimp-tile.c: Minor cleanups.
2004-09-01 07:57:15 +00:00
Manish Singh a63a2e86d6 Actually return values from the run function. Fixes #141338.
2004-05-19  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Actually return values from the run
        function. Fixes #141338.
2004-05-20 02:33:59 +00:00
Manish Singh db856068bb Disable PF_*ARRAY for now. Addresses #122049.
2004-03-02  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Disable PF_*ARRAY for now. Addresses
        #122049.
2004-03-02 18:25:29 +00:00