Michael Natterer
a4223766f2
all,libgimp*: move GimpConvolveType and GimpInkBlobType to libgimpbase
...
and make GimpConvolveType's values sane.
2014-04-29 22:44:58 +02:00
Michael Natterer
f7d71e2eda
pdb: don't scan headers that don't contain PDB-exported enums
2014-04-29 21:08:34 +02:00
Michael Natterer
22c222291d
libgimpbase,*: clean up enum values in gimpbaseenums.h
...
GIMP_ADD_foo_MASK -> GIMP_ADD_MASK_foo
GIMP_foo_MODE -> GIMP_BLEND_foo
GIMP_foo_CLONE -> GIMP_CLONE_foo
GIMP_foo -> GIMP_DODGE_BURN_TYPE_foo
GIMP_foo -> GIMP_TRANSFER_foo
Add compat values for the old names and compat code to script-fu
and pygimp.
2014-04-29 20:58:30 +02:00
Michael Natterer
bcce8c95ec
Bug 729158 - Internal inconsistent state with gimp_image_get_selection...
...
+ gimp_channel_copy
Make gimp-channel-copy always return a GimpChannel, and fail the
prodecure if the input channel is not of image size.
2014-04-29 09:16:19 +02:00
Michael Natterer
2ff414d799
app,libgimp,pdb: remove enum GimpConvolutionType from the public API
...
It was exported accidentially and never used for anything.
2014-04-27 23:05:12 +02:00
Michael Natterer
8ce94d23b9
libgimpbase: move GIMP_REPEAT_TRUNCATE to the end of the enum
...
New values must go to the end to avoid ABI break.
2014-04-24 23:08:33 +02:00
Michael Natterer
0a9dc8b297
libgimpbase: exclude GIMP_INTERPOLATION_LANCZOS from the PDB again
...
An unmentioned fix in the previous commit to this file made it visible
to the PDB.
2014-04-24 23:04:52 +02:00
João S. O. Bueno
ad4862c60b
Adds new blending mode 'Truncate blend'
...
Bring repeat behavior on par with GEGL and Cairo,
and sane ways of creating square or circular gradient
shapes.
2014-04-24 12:18:26 -03:00
Michael Natterer
36ca865aaa
pdb: use boolean not int32 for booleans in the apply lens compat wrapper
2014-04-14 13:05:28 +02:00
Michael Natterer
260a4a51b1
plug-ins, pdb: remove the lens-apply plug-in and add a compat procedure
2014-04-13 21:18:35 +02:00
Michael Natterer
60f23afde2
app: add a small infrastructure to validate known parasites
...
when they are added to items, images or globally, from the PDF or an
XCF file. None of the validation functions does anything currently,
they simply return TRUE.
2014-03-22 00:18:48 +01:00
Michael Natterer
fea22c345c
Bug 706361 - Printer queue dosn't show the filename of the printing image
...
Change the gimp-image-get-name procedure to return the same string
as shown in the image title, and mention in its API docs that this
string is meant for annotating UI elements only.
2014-03-15 17:53:10 +01:00
Michael Natterer
e7ff0589cb
app: shuffle precision enum values around to make room for U64
...
and add code to handle the old values from XCF files < version 7.
2014-03-09 01:46:08 +01:00
Michael Natterer
3c918353fb
app: add double precision support, for completeness
...
and because it makes us look utterly cool.
2014-03-09 00:43:55 +01:00
Michael Natterer
4d6640ff79
Bug 721249 - pdb.gimp_context_set_brush_size() dont't work
...
Port selection/path stroking to using the PDB-controllable
paint options that live in GimpPDBContext.
Change gimp_item_stroke()'s "use_default_values" boolean which was
introduced at a time where we had no better way by a GimpPaintOptions
parameter. If a non-NULL paint_options is passed (when called from the
PDB), use it for stroking; if NULL is passed, use the actual paint
tool options from the GUI (when called from the menus or the stroke
dialog). In the PDB wrappers, get the right paint options object from
the PDB context associated with the calling plug-in.
2014-02-06 23:26:53 +01:00
Michael Natterer
9fe869236b
Bug 721249 - pdb.gimp_context_set_brush_size() dont't work
...
Don't reset the brush size before each PDB paint stroke.
2014-02-03 23:05:56 +01:00
Michael Natterer
a96a0d0bed
pdb: add translation context to the newly added PDB functions
2014-01-13 01:27:37 +01:00
Michael Natterer
b4462e9e19
app,libgimp,pdb: add a "drawable_color" PDB group
...
Which contains all the API from the "color" group, but with a
gimp_drawable namespace and with support for high bit depths. The
group is actually a copy of "color" with cruft removed and some API
ported to using float instead of integer API.
Deprecated all "color" functions that already have a ported version in
"drawable_color".
This is unfinished WIP, some functions in "drawable_color" still have
the old API.
2014-01-12 23:12:21 +01:00
João S. O. Bueno
9c4995d7b0
Adds a hue-saturation PDB call with the 'overlap' parameter. Fixes #634008
2014-01-06 00:43:07 -02:00
Michael Natterer
ef85845372
app: add gimp_paint_options_set_default_brush_size()
...
and use it globally instead of two different methods, one of which was
forgotten to be ported to the new aspect ratio range where 0.0 means
1:1. Add a FIXME comment in paint_tools.pdb where I think setting the
default size is a bug, see #721249 .
2014-01-04 15:48:34 +01:00
Michael Natterer
2ea1c6e9a1
plug-ins, pdb: remove the apply-canvas plug-in and add a compat procedure
2014-01-01 19:21:00 +01:00
Michael Natterer
29d95f4c39
pdb: fix gimp_layer_new_from_drawable() PDB wrapper
...
We must always call gimp_item_convert() even if the source drawable is
in the same image, or we might end up with a layer of wrong pixel
format. This was probably broken for years.
2013-11-19 21:39:13 +01:00
Téo Mazars
c41c2452c5
app,pdb: add a compatibility wrapper for contrast-stretch-hsv
...
... and remove the old plugin
2013-11-16 16:50:49 +01:00
Téo Mazars
120e9ccf39
app,pdb: add a compatibility wrapper to contrast-stretch
...
... and remove the old plug-in
2013-11-15 19:12:56 +01:00
Hartmut Kuhse
21bed1e2fb
Completely rewrite metadata handling using gexiv2
...
Based on original patches from Hartmut Kuhse and modified
by Michael Natterer. Changes include:
- remove libexif dependency and add a hard dependency on gexiv2
- typedef GExiv2Metadata to GimpMetadata to avoid having to
include gexiv2 globally
- add basic GimpMetadata handling functions to libgimpbase
- add image and image file specific metadata functions to libgimp,
including the exif orientation image rotate dialog
- port plug-ins to use the new APIs
- port file-tiff-save's UI to GtkBuilder
- add new plug-in "metadata" to view the image's metadata
- keep metadata around as GimpImage member in the core
- update the image's metadata on image size, resolution and precision
changes
- obsolete the old metadata parasites
- migrate the old parasites to new GimpMetadata object on XCF load
2013-10-27 01:02:17 +02:00
Téo Mazars
f3d40dceec
plug-ins,pdb: Add a compatibility wrapper for lens-distortion
...
... and remove the old plug-in
2013-10-11 08:48:09 +02:00
Téo Mazars
786b21ee10
app,pdb: Sort compatibility wrappers in alphabetical order
2013-10-11 08:03:51 +02:00
Jehan
008a40b877
pdbgen: fix trailing whitespaces in generated C doc in empty lines.
2013-10-05 19:48:39 +13:00
Jehan
1351226c80
pdb: gimp-image-new's doc updated.
...
Add the precision that indexed images must be set a colormap after
creation, otherwise colors won't be right.
2013-10-05 01:47:05 +13:00
Téo Mazars
e1fe2e35cb
plug-ins,pdb: Add a compatibility wrapper for edge-laplace
...
... and remove the old plug-in
2013-10-01 17:10:31 +02:00
Jehan
cca6772714
Bug 709048 - improvement of gimp-layer-add-mask procedure's doc.
...
The documentation was missing information about GIMP_ADD_CHANNEL_MASK
mask type, also about possible failure cases, and had an unclosed
bracket typo.
Also make nicer output and list formatting with the new pdb paragraph
feature.
2013-10-01 01:02:49 +13:00
Michael Natterer
4f3d29e95d
tools: remove some doc newlines in context.pdb
2013-09-27 18:55:01 +02:00
Jehan
9563a614f2
Bug 708033 - Add paragraph support for the long description in pdbgen
...
Single newlines in procedure descriptions are still considered normal
spaces. But 2 newlines are transformed into 1 newline. 3 newlines into
2 newlines. And so on.
This allows for a start of nicer output in the procedure browser or C
file comments (and consequently in generated html doc).
2013-09-27 18:39:21 +02:00
Téo Mazars
8e25b5407d
plug-ins,pdb: Add a compatibility wrapper for noise-hsv
...
... and remove the old plugin
2013-09-26 19:31:13 +02:00
Michael Natterer
39bcc5883d
pdb: use if defined $proc->{outargs} not if exists $proc->{outargs}
...
in app.pl and lib.pl because pdbgen copies this stuff round so
generically that it always exists. Fixes a ton of perl warnings.
2013-09-26 14:09:08 +02:00
Téo Mazars
5063aada1d
plug-ins,pdb: Add compatibility wrappers for mosaic
...
and remove the old plug-in
2013-09-23 15:52:08 +02:00
Michael Natterer
125cf2a2a3
app: use the image instead of the projection for accessing a pickable
2013-09-13 23:29:06 +02:00
Jehan
8fe1f65374
pdb: clean out \n from procedure descriptions in previous commit a7f1129
.
...
If we want better output for long description, this will have to be implemented
in the pdbgen.
2013-09-14 02:58:39 +12:00
Jehan
a7f11290a4
pdb: update several channel creation function's descriptions.
...
More informative, detailed description or better wording.
Also adds some newlines for better rendering.
2013-09-14 02:19:46 +12:00
Jehan
ee8827d645
pdb: minor glitch in gimp-image-set-active-channel's description.
...
s/previous active channel or channel/previous active channel or layer/
2013-09-13 22:21:55 +12:00
Michael Natterer
3582625ce0
app: remove the over from the plug_in_plasma() compat wrapper
...
because gimp_drawable_apply_operation() supports src ops now.
2013-09-13 09:43:19 +02:00
Téo Mazars
a481065f2e
pdb: Use svg:src in plasma's compatibility wrapper
...
instead of svg:src-over
2013-09-13 02:12:02 +02:00
Téo Mazars
6fefd5af0c
plugins: Add compat wrappers for plasma.c
...
... and remove the old plugin.
2013-09-13 01:30:29 +02:00
Michael Natterer
c32c1208b0
app: return a GError when flattening the image failed
2013-08-09 21:35:36 +02:00
Téo Mazars
145c9a86d5
plugins: Add compat wrappers for channel-mixer
...
And remove the old plugin
2013-08-06 21:45:16 +02:00
Téo Mazars
2b58fb4e69
plugins: Add compat wrappers for antialias
...
And remove the old plugin
2013-08-04 09:09:41 +02:00
Téo Mazars
fc6c605cd5
plugins: Effectively fix wrong names in compatibility wrappers
...
plugin_compat_cmds.c is a generated file
2013-07-30 07:26:50 +02:00
Téo Mazars
b0645cf559
plugins: add pdb compat wrappers for tile-seamless
...
and remove the old plugin
2013-07-28 19:15:25 +02:00
Téo Mazars
409fa79ec2
plugins: follow alien-map's parameter name change
2013-07-20 01:08:39 +02:00
Téo Mazars
95c235f81f
plugins: Add compat wrappers for alien-map
...
And remove the old plugin
2013-07-19 22:32:10 +02:00
Téo Mazars
ec6720c897
plugins: add compatibility wrappers to motion-blur
...
and remove the old plugin.
2013-07-05 20:09:13 +02:00
Jehan
ba9fbde288
Bug 679083: proper documentation for plug-in-autocrop-layer
...
The current documentation have users think the argument layer is going
to be cropped, whereas it actually only serves as a base for determining
cropping extents. The active layer is the one to be cropped.
Slightly more complete documentation explaining this.
2013-07-05 23:20:56 +09:00
Michael Natterer
f56f6d1255
app: follow the GEGL invert -> invert-linear vs. invert-gamma change
...
and invert masks using invert-linear and other drawables using
invert-gamma. drawable_invert_cmd_callback() still always uses
invert-gamma even though it can be used on layer masks.
2013-06-24 00:45:04 +02:00
Michael Natterer
caf73f5f35
Add support for both gamma-corrected and linear for all bit depths
...
- Add new enum GimpComponentType which contains u8, u16, u32 etc.
- Change GimpPrecision to be u8-linear, u8-gamma, u16-linear etc.
- Add all the needed formats to gimp-babl.c
- Bump the XCF version to 5 and make sure version 4 with the old
GimpPrecision enum values is loaded correctly
This change blows up the precision enums in "New Image" and
Image->Precision so we can test all this stuff. It is undecided what
format will be user-visible options in 2.10.
2013-06-23 16:51:24 +02:00
Alexandre Prokoudine
5290963912
Really fix the incorect blurb in PDB.
...
It still said "specified specified".
2013-06-22 11:18:47 +04:00
Michael Natterer
571350270b
app: return 0.0..1.0 from gimp_histogram_get_mean(), median(), std_dev()
...
Display the float values in the histogram dockable and add a compat
hack to the gimp_histogram() PDB wrapper.
2013-06-12 02:01:24 +02:00
Michael Natterer
a7f42de4c0
app: turn GimpHistorgram into a GimpObject, no other changes
2013-06-11 21:23:32 +02:00
Michael Natterer
0ced7458cc
Revert "pdb: Mark unused args as dead"
...
This reverts commit d2cac94a49
and commit 7241a35b93
.
gimp-drawable-foreground-extract will be revived before 2.10, the
warnings are a nice reminder :)
2013-06-10 11:25:16 +02:00
Mukund Sivaraman
d2cac94a49
pdb: Mark unused args as dead
2013-06-10 14:41:21 +05:30
Michael Natterer
64887fe06c
Bug 701594 - gimp-image-select-item does not recognize path transformations
...
pdb: Need to gimp_vectors_freeze()/thaw() around stroke modifications
so the vector's preview and the cached GimpBezierDesc are invalidated.
2013-06-04 16:48:41 +02:00
Michael Natterer
7d544e25fe
plug-ins, pdb: remove plugin waves and add a PDB compat procedure
2013-06-01 16:04:43 +02:00
Michael Natterer
3b68ae0f3c
app, pdb, libgimp: Remove all traces of the supersampling recursion level
...
from all transform APIs. This is no longer used since we use GEGL to
transform, the value was only passed around and never used.
2013-05-31 01:15:32 +02:00
Michael Natterer
52dc7fb800
plug-ins, pdb: remove plug-in whirl-pinch and add a PDB compat procedure
2013-05-30 17:52:11 +02:00
Michael Natterer
894d7568ac
plug-ins, pdb: remove plug-in noise-spread and add a PDB compat procedure
2013-05-29 19:54:42 +02:00
Michael Natterer
a77d9223df
plug-ins, pdb: remove shift plug-in and add a PDB compat procedure for it
2013-05-27 02:34:04 +02:00
Michael Natterer
fc38bc300e
plug-ins: remove plug-in cubism and add a PDB compat proc for it
2013-05-19 22:38:03 +02:00
Michael Natterer
b8dace7a75
plug-ins: remove plug-in red-eye-removal and add a PDB compat proc for it
2013-05-19 21:11:03 +02:00
Michael Natterer
cf3d234f88
Bug 672487 - Impeove API docs of gimp_image_get_channels()
...
Point out that the image's components are not "channels".
2013-05-10 22:11:14 +02:00
Miroslav Talasek
02505451b1
libgimpbase: enum GimpForegroundExtractMode: add GIMP_FOREGROUND_EXTRACT_MATTING
2013-05-07 23:00:57 +02:00
Michael Natterer
e21e3bce5c
plug-ins, pdb: remove plug-in noise-randomize
...
and implement its procedures as compat wrappers around GEGL ops.
2013-03-08 17:06:53 +01:00
Ville Skyttä
6b0d1038cc
Bug 692641 - Various spelling fixes
2013-01-27 18:59:02 +01:00
Nicolas Robidoux
dc19ead94f
Add the Nohalo sampler (previously called Lohalo, which now does something different
2012-12-31 15:27:07 -05:00
Mukund Sivaraman
914f04dcac
pdbgen: Word-wrap return description
...
Also add punctuation where missing.
2012-12-05 08:46:25 +05:30
Sven Neumann
9b2e301c87
pdbgen: programmatically add hint about using g_strfreev()
...
Add the note about the need to free the returned string array
to the generated libgimp code. This way it will show up in the
libgimp documentation but not in the general PDB API.
2012-12-04 21:07:34 +01:00
Sven Neumann
c8209ddb4c
Revert "pdb: update documentation for all pdb functions whose return can be freed with g_strfreev()."
...
Such comment should not be included in the general PDB
documentation as it is specific to the C bindings and can
be easily added by the pdbgen infrastructure.
This reverts commit c9888f2222
.
2012-12-04 21:07:34 +01:00
Jehan
c9888f2222
pdb: update documentation for all pdb functions whose return can be freed with g_strfreev().
2012-12-04 00:16:08 +09:00
Michael Natterer
e61b1f7603
pdb: return NULL terminated stringarrays from libgimp PDB wrappers
...
so they can be freed with g_strfreev().
2012-11-27 20:50:21 +01:00
Jehan
d8456b5d47
pdb - update documentation comments the right way.
...
PDB functions must be updated from *.pdb files as *_pdb.c files are
generated by make.
2012-11-28 00:57:23 +09:00
Michael Natterer
07f77e5ec8
pdb: allow file procedures to register themselves for handling URIs
...
and store the flag in pluginrc. There are no URIs passed to procedures
yet and no procedure registers as such, this is just preparation.
2012-11-17 16:01:52 +01:00
Michael Natterer
fe19ad9706
Bug 683694 - Spelling errors
...
Reworded all places that used to say "allows to".
2012-11-11 15:50:25 +01:00
Michael Natterer
a7223bbd2d
Bug 352823 - Changing image mode discards text layer information
...
For conversions that have no dither options (like RGB -> GRAY or u8 ->
u16), always preserve text editability, for conversions that have
dither options (like RGB -> INDEXED or u16 -> u8), give the user the
choice whether to enable dithering.
2012-11-10 18:56:44 +01:00
Michael Natterer
d4933b3052
Bug 674160 - Redesign of "Lock panel"
...
Apply and heavily modify patch from remyDev which adds "lock position"
to GimpItem, similar to "lock content". Lock position disables all
sorts of translation and transform, from the GUI and the PDB.
Cleaned up some aspects of the lock content code as well because a
second instance of similar code always shows what went wrong the first
time.
2012-11-09 11:17:25 +01:00
Michael Natterer
5732088b0c
pdb: replace gimppdb-utils' "writable" boolean by a bitmask
...
called GimpPDBItemModify that currently has one member
GIMP_PDB_ITEM_CONTENT, in order to be prepared for adding
the "lock position" feature from bug 674160.
2012-11-08 20:46:18 +01:00
Michael Natterer
0ca03e8827
app: add a "Convert Precision" dialog for choosing dithering options
...
Does absolutely nothing yet.
2012-09-23 23:47:28 +02:00
Michael Natterer
6452a95125
Remove plug-in crop-auto and add compat PDB wrappers to replace it
2012-09-22 20:59:17 +02:00
Michael Natterer
303e554ab1
app: remove "gboolean active_layer_only" from gimp_image_crop()
...
Also a very historic API, it doesn't belong there. Instead, simply
call gimp_item_resize() in GimpCropTool.
2012-09-22 15:08:05 +02:00
Kevin Cozens
a2e037fb00
Corrected spelling errors spotted by Ari Pollak (Mostly fixes bug #683694 )
...
Still need to address the "allows to" grammatical error.
2012-09-10 12:22:12 -04:00
Michael Natterer
1f9965879b
pdb: add missing breaks in switch() so we don't always pattern-fill
...
Same as 439c5a7814
, just missed
the other function.
2012-08-04 03:13:52 +02:00
Michael Natterer
e620eb8cef
Bug 678732 - gimp-image-insert-layer inserts into a wrong place...
...
Fix the docs, the function does what it's supposed to do. Passing
"0, -1" actually means "insert where the ui would insert" and is
supposed to be used when e.g. scripts create layers.
2012-08-04 02:18:15 +02:00
Michael Natterer
01dffdc276
Bug 680531 - Function gimp-context-get-brush-size takes size argument...
...
The context getters need PDB @outargs, not @inargs. This "API change"
is OK in stable because the API was totally unusable before this fix.
2012-07-26 16:26:14 +02:00
Michael Natterer
220b28677b
Bug 676566 - Window title becomes "Untitled" after exporting without saving
...
Fix this and other issues more globally by moving the logic that
formats the image's display name into the GimpImage object, and return
the properly formatted name, e.g. "Foo.xcf", or "[Foo] (imported)"
from gimp_image_get_display_name().
Also add gimp_image_get_display_path() which returns the full path
instead. Use the two functions for formatting the image title, and
apply various other fixes that make sure the UI always uses the same
string to identify the image.
Call gimp_object_name_changed() whenever the save/export status
changes, so the image's cached display name and path get cleared.
2012-07-17 22:52:49 +02:00
Michael Natterer
fbb2afdf1d
app: rename gimpimage-convert.[ch] to gimpimage-convert-type.[ch]
2012-06-26 14:38:33 +02:00
Michael Natterer
a3f12f7180
pdb: minor formatting fix in generated PDB wrappers
2012-05-28 19:55:28 +02:00
Michael Natterer
513e3b6a78
app: disable the foreground select tool properly: #if 0 everything
...
so it's not in the way of further cruft removal.
2012-05-21 03:09:08 +02:00
Michael Natterer
439c5a7814
pdb: add missing breaks in switch() so we don't always pattern-fill
2012-05-17 21:56:45 +02:00
Michael Natterer
3867731b03
pdb: same fix as for XCF loading below
2012-05-11 14:30:38 +02:00
Michael Natterer
7101ee191a
app: move all GEGL operations to new directory app/operations/
2012-05-10 21:22:44 +02:00
Michael Natterer
20f3cba2b6
app: rename gimp_image_base_type() to gimp_image_get_base_type()
2012-05-07 21:57:33 +02:00
Michael Natterer
f1a771439a
Replace the semi-flatten plug-in by a GEGL operation
2012-05-04 23:56:10 +02:00
Michael Natterer
f24445efbc
Replace the threshold-slpha plug-in by a GEGL operation
2012-05-04 17:59:36 +02:00
Michael Natterer
7610e299ae
Use GimpValueArray and GimpParamSpecValueArray
...
instead of the deprecated stuff from GLib.
2012-05-04 00:51:50 +02:00
Michael Natterer
3ad73b3658
libgimpcolor: add GdkPixbuf <-> GeglBuffer utility functions
...
and update tons of includes in libgimp and app.
2012-05-03 03:37:20 +02:00
Michael Natterer
86f53a3ceb
libgimp: make pdbgen generate GIMP_DEPRECATED stuff
...
instead of GIMP_DISABLE_DEPRECATED.
2012-05-03 01:12:25 +02:00
Michael Natterer
ee31359587
app: move gimp_image_convert_precision() to its own file
...
gimpimage-convert.c is big enough already
2012-05-02 17:51:21 +02:00
Michael Natterer
fa0faf4254
app: replace the polar-coords plug-in by gegl:polar-coordinates
2012-05-02 17:51:19 +02:00
Michael Natterer
1badcb7ce9
app: add GIMP_PRECISION_U32 and all its formats
2012-05-02 17:51:19 +02:00
Michael Natterer
c57b4f0fa3
app: port by color select and fuzzy select to float
...
so it works nicely on all precisions, disable HSV color matching for
now, need to decide what to do with it.
2012-05-02 17:51:18 +02:00
Michael Natterer
926f746b66
app: add gimp_babl_compat_u8_format() instead of having this code 5 times
2012-05-02 17:51:18 +02:00
Michael Natterer
2e7944cad0
app: add GIMP_PRECISION_HALF for 16 bit floating point
...
and use babl_format_get_palette() to simplify some code.
2012-05-02 17:51:18 +02:00
Michael Natterer
92b4c66777
pdb: export gimp-image-get-precision
2012-05-02 17:51:17 +02:00
Michael Natterer
8918fd338b
pdb/libgimp: export gimp-image-new-with-precision
...
And switch on precision awareness of a plug-in in the core when
possible, instead of in the libgimp wrappers.
2012-05-02 17:51:17 +02:00
Michael Natterer
3e4edc1aea
pdb/libgimp: export enum GimpPrecision and gimp-image-convert-precision
2012-05-02 17:51:17 +02:00
Michael Natterer
2857c1c031
pdb: don't allow to convert non-u8 images to indexed
2012-05-02 17:51:16 +02:00
Michael Natterer
f851bf0930
pdb: use compat formats for drawable-get-pixel and drawable-set-pixel
...
unless the plug-in is precision-aware.
2012-05-02 17:51:16 +02:00
Michael Natterer
e15702cbe5
app: create gimp-babl-compat.[ch] for gimp_babl_format_get_image_type()
...
and remove gimp_drawable_type().
2012-05-02 17:51:15 +02:00
Michael Natterer
21dfb8bd9f
app/libgimp: enable plug-ins on high precision images
...
Add gimp_plugin_enable_precision() in libgimp which switches the
plug-in to deal with the drawables' real precision, call it from the
libgimp GeglBuffer and Babl format APIs. If it's not enabled, let the
core's plug-in convert the tiles to legacy formats when sending them
over the wire.
2012-05-02 17:51:14 +02:00
Michael Natterer
5e18004bff
app: get rid of base-utils.[ch] and move its functions to gimp-utils.[ch]
2012-05-02 17:51:13 +02:00
Michael Natterer
1bbd3d40a8
app: make the GimpTempBuf struct private and add accessors
2012-05-02 17:51:12 +02:00
Michael Natterer
3a46cfbbc6
app/pdb: allow some more stuff on indexed by simply removing the restriction
2012-05-02 17:51:12 +02:00
Michael Natterer
c07325a005
app: add "precision" argument to gimp_image_new()
2012-05-02 17:51:09 +02:00
Michael Natterer
16635e5f0a
app: gimp_drawable_preview_bytes() -> gimp_drawable_get_preview_format()
2012-05-02 17:51:08 +02:00
Michael Natterer
85bd6b0dd9
app: pass a format, not bpp, to gimp_viewable_get_dummy_pixbuf()
...
and add tons of <gegl.h> includes.
2012-05-02 17:51:08 +02:00
Michael Natterer
3ea0e3f090
app: return double not int from GimpPickable::get_opacity_at()
...
and fix GimpLayer's impl to honor the mask also for layers without
alpha.
2012-05-02 17:51:07 +02:00
Michael Natterer
95cb77edc9
app: change gimp_image_get_format() to take a base_type and a with_alpha boolean
...
which kills almost all remaining use of GimpImageType.
2012-05-02 17:51:03 +02:00
Michael Natterer
872bfabc9b
app: don't use gimp_drawable_type() in more places
...
that talk to the outside world.
2012-05-02 17:51:02 +02:00
Michael Natterer
7eb8b0b925
app: remove base-enums.[ch]
...
and move its remaining content to core-enums, move the siox enum to
base-types.h.
2012-05-02 17:51:01 +02:00
Michael Natterer
bdf6b48138
app: move GimpTempBuf from base/ to core/
...
and forget about include policy in base/, it's scheduled for removal
anyway.
2012-05-02 17:51:01 +02:00
Michael Natterer
dccb909009
app: make GimpTempBuf reference counted
...
and remove the "take_ownership" parameter from
gimp_temp_buf_create_buffer(), simply always ref the buf.
2012-05-02 17:51:00 +02:00
Michael Natterer
d5d8e36d21
app: gimp_-namespace all GimpTempBuf functions
2012-05-02 17:51:00 +02:00
Michael Natterer
42a5f01be3
app: rename TempBuf to GimpTempBuf
2012-05-02 17:51:00 +02:00
Michael Natterer
7441a1f6f7
app: turn the TempBuf's "bytes" into "format" and port everything to it
2012-05-02 17:50:59 +02:00
Michael Natterer
baa5ceb1e7
app: remove image_type API from GimpBuffer
2012-05-02 17:50:57 +02:00
Michael Natterer
3c4f9d55ed
app: use the new functions added with the last commit
2012-05-02 17:50:57 +02:00
Michael Natterer
2b18645fb5
app: use gimp_drawable_get_base_type() instead of GIMP_IMAGE_TYPE_BASE_TYPE()
2012-05-02 17:50:57 +02:00
Michael Natterer
c14738806e
app: use gimp_image_get_layer_format() instead of dealing with image_type
2012-05-02 17:50:57 +02:00
Michael Natterer
9b70f4e7fc
app: move some enums from base-enums.h to core-enums.h
2012-05-02 17:50:54 +02:00
Øyvind Kolås
6efd812d08
app: s/GIMP_GEGL_RECT/GEGL_RECTANGLE/
...
Defining GeglRectangle inline is so useful that it has been added to
GEGL.
2012-05-02 17:50:52 +02:00
Michael Natterer
95b1c0617b
Replace the value-invert plug-in by its GEGL counterpart
2012-05-02 17:50:52 +02:00
Michael Natterer
609e2d8cda
Replace the color-to-alpha plug-in by GEGL filter dialog
2012-05-02 17:50:49 +02:00
Michael Natterer
70fc975e45
pdb: add support for omitting the "gimp-" prefix from the procedure name
...
if the procedure's group is "plug_in_compat". Add new procedure
plug-in-pixelize2.
2012-05-02 17:50:47 +02:00
Michael Natterer
2d81a16bdf
app: remove "bytes" from GimpBuffer and add a format API
...
and change all users accordingly.
2012-05-02 17:50:47 +02:00
Michael Natterer
f248324fd3
app: remove the lagacy hue-saturation cruft
...
it's unclear whether the operation is correct, but that can be sorted
out on master and merged.
2012-05-02 17:50:40 +02:00
Øyvind Kolås
76546f7e7c
rename lanczos to lohalo
...
GEGL had a broken lanczos implementation, the lohalo implementation is better
anyways (at least when passed a proper scale matrix).
2012-05-02 17:50:38 +02:00
Michael Natterer
52e40bce42
pdb: port drawable pixel access API to GEGL
2012-05-02 17:50:38 +02:00
Michael Natterer
2c0fde88f2
app: remove the legacy color-balance cruft
2012-05-02 17:50:38 +02:00
Michael Natterer
1f7cf2dd6b
pdb: add new group plug-in-compat for compat procedures of removed plug-ins
...
For now contains a pixelize implementation, but it's still called
gimp-plug-in-pixelize, not plug-in-pixelize.
2012-05-02 17:50:37 +02:00
Michael Natterer
be853cd239
app: remove "gboolean linear" from all apply_operation APIs
...
thes were all unused and we want to get rid of that anyway.
2012-05-02 17:46:13 +02:00
Michael Natterer
8d5471502e
app: move GimpHistogram from base/ to core/
2012-05-02 17:46:13 +02:00
Michael Natterer
cde58408fa
app: remove the legacy levels cruft
2012-05-02 17:46:12 +02:00
Michael Natterer
a34b19774b
app: remove the legacy curves cruft
...
and move PDB parameter collection into GimpCurvesConfig convenience
constructors.
2012-05-02 17:46:11 +02:00
Michael Natterer
99ae46b4ed
app: turn the drawable's shadow tiles into a shadow buffer
2012-05-02 17:46:10 +02:00
Michael Natterer
765c2cfea2
app: replace GimpDraable's type by a Babl format
...
and change gimp_drawable_new() and all gimp_layer_new() variants to
take formats instead of types.
2012-05-02 17:46:06 +02:00
Michael Natterer
e01189ca77
app: remove checks from stuff that now works on indexed layers
2012-05-02 17:46:04 +02:00
Michael Natterer
1780cfc1e7
app: remove the !seed_fill case from gimp_drawable_bucket_fill()
...
We use gimp_edit_fill() for that now. Also remove bucket fill's
_full() variant because it's unused now.
2012-05-02 17:46:01 +02:00
Michael Natterer
3ec245a991
app: add opacity and paint_mode to gimp_edit_fill[_full]()
...
and use it instead of bucket-fill in the non-seed-fill case.
2012-05-02 17:46:01 +02:00
Michael Natterer
88388467cc
app: move the layer mask show, edit, apply API from GimpLayerMask to GimpLayer
...
because it would require really evil hacks to honor these properties
in the gegl projection if they were on the mask, and because they
actually belong to the layer.
2012-05-02 17:45:56 +02:00
Michael Natterer
15957cb3c4
app: remove the legacy brightness-contrast code and use GEGL instead
...
it's reasonably fast now.
2012-05-02 17:45:53 +02:00
Michael Natterer
5d1474c17e
app: use GEGL to extract an image's component into a channel
...
Add gimp_image_get_component_format() for that purpose.
2012-05-02 17:45:53 +02:00
Michael Natterer
7c3a796dfc
app: added GimpPickable::get_buffer()
...
Add cached buffers to GimpProjection and GimpImageMap, and use
the new API where possible.
2012-05-02 17:45:50 +02:00
Michael Natterer
63bd108afb
app: always use GEGL to invert drawables
...
and remove the now useless gimpdrawable-invert.[ch].
2012-05-02 17:45:46 +02:00
Michael Natterer
6d3a8fe73d
app: rename gimp_drawable_apply_operation_with_config()
...
to gimp_drawable_apply_operation_by_name() and allow to pass
a NULL config.
2012-05-02 17:45:46 +02:00
Michael Natterer
0623c7f365
app: remove the pointless core wrappers for the below simplified color stuff
...
Instead, provide gimp_drawable_apply_operation_with_config() and call
that from the PDB wrappers directly.
2012-05-02 17:45:45 +02:00
Mikael Magnusson
0025f9f354
fix typo "equalizee"
2012-04-12 01:28:30 +02:00
Michael Natterer
f2f1eab753
app: add "ERROR" to the values of enum GimpPdbErrorCode
...
so they are now GIMP_PDB_ERROR_FOO instead of just GIMP_PDB_FOO,
because it was just too confusing wrt enum GimpPdbStatusType.
2012-03-05 19:36:59 +01:00
Michael Natterer
b952f80be0
Bug 658477 - add PDB support for more paint and ink options
...
Apply heavily modified patch from Es Swartz which adds PDB API for
brush size, angle and aspect ratio, as well as a full interface for
ink. Changed to patch to add all procedures to the "context" group
instead of creating new PDB groups, properly use the new
GimpPDBContext APIs for paint options, and did some general cleanup.
(Warning, completely untested).
2012-03-01 12:58:26 +01:00
Massimo Valentini
39368a410d
plugged memory leaks
2012-02-07 17:32:02 +01:00
Michael Natterer
44752a0f09
pdbgen: make it work with a read-only srcdir
...
Pass srcdir *and* builddir to all pdbgen scripts, and generate all
temp files in $builddir. They get copied for $srcdir only if they have
actually changed, which should never happen on distcheck.
2011-11-06 17:33:20 +01:00
Michael Natterer
d1346d5eb4
pdb: distribute enums.pl
...
It's in git, so it should also be in the tarball. Fixed distcheck
after we have maintainer mode on by default (also in tarballs).
2011-11-01 17:49:00 +01:00
Michael Natterer
634cf6d620
pdb: add gimp-dynamics-refresh and gimp-dynamics-get-list
2011-10-31 22:22:19 +01:00
Michael Natterer
6ee7b22153
pdb: use the newly added GimpPDBContext paint options for painting
...
so all paint context settings take part in the push/pop logic.
2011-10-31 22:08:53 +01:00
Michael Natterer
01344f811d
pdb: add dynamics accessors to the context procedures
2011-10-31 21:08:12 +01:00
Michael Natterer
94d2ee7bcb
pdb: restore the ability to reset the dither matrix to default
2011-10-08 20:28:38 +02:00
Michael Natterer
02038d5dd3
pdb: set_dither_matrix(): check that the matrix array has the right size
...
Fixes a way to easily crash GIMP.
2011-10-08 16:40:44 +02:00
Mukund Sivaraman
42756159b5
pdb: Mark more pdb args as dead, and regen code
2011-10-08 19:25:32 +05:30
Mukund Sivaraman
61660b33d0
pdb: Mark various pdb args as dead, and regen code
2011-10-08 19:13:03 +05:30
Mukund Sivaraman
6469290439
pdb: Add functionality to drop codegen for dead args
2011-10-08 19:02:09 +05:30
Michael Natterer
e071bfa3b6
Bug 656716 - Have a procedure to get a layer from its name
...
Add gimp_image_get_[layer|channel|vectors]_by_name().
2011-09-24 16:35:59 +02:00
Martin Nordholts
b74c7d0ff6
Bug 656471 - GIMP crashes when File > Properties
2011-08-13 23:03:31 +02:00
Eric Grivel
da37e9ff3e
Bug 596410 - gimp-image-get-filename returns NULL for imported files
...
Make gimp_image_get_uri() and gimp_image_get_filename() behave as in
the GIMP 2.6 days. Add new functions gimp_image_get_xcf_uri(),
gimp_image_get_exported_uri() and gimp_image_get_imported_uri().
2011-08-12 21:15:16 +02:00
Martin Nordholts
0f58d779c1
pdb: Untabify image.pdb
2011-08-12 20:18:45 +02:00
Michael Natterer
856c89a845
libgimp: add guards that #error out if individual files are included
2011-04-28 19:59:52 +02:00
Michael Natterer
cc47b2a600
libgimpwidgets/color: move the cairo color utility functions to libgimpcolor
...
Add CAIRO_CFLAGS to a lot of Makefiles to make this possible, and
because they pull in cairo via the libgimp headers.
2011-04-28 15:50:39 +02:00
Kevin Cozens
139fb874a3
Fixed grammatical error in help text for gimp-context-set-feather-radius
2011-04-16 15:00:29 -04:00
Kevin Cozens
bf1eca22a6
Added PDB procedure gimp-context-set-defaults to reset context settings
2011-04-07 22:43:37 -04:00
Kevin Cozens
0d617dabea
Fixed a typo (prodecure -> procedure)
2011-04-07 22:43:37 -04:00
Michael Natterer
9424d42d36
pdb: apply recent fixes to the deprecated transform procedures
...
Don't transform the tiles of group layers, use the item transform API
instead. Go the same code path if there is no selection.
2011-03-25 22:35:46 +01:00
Michael Natterer
1a359a138d
pdb: don't recommend deprecated replacement procedures for deprecated procedures
2011-03-25 22:03:14 +01:00
Michael Natterer
4d7dbe233d
pdb: do the same optimization as in the transform tool in the commit below
2011-03-25 21:57:56 +01:00
Alexia Death
ce606d9561
app: Fix a dynamics leak from new pdb fix
2011-03-19 22:48:17 +02:00
Alexia Death
5d5430e110
app: Fix pdb size and dynamics brush stuff
...
[ Mikael: deduplicated brush size setting and fixed some whitespace ]
2011-03-19 18:39:02 +01:00
Michael Natterer
bb80dfdc8e
Revert "app: Fix pdb properly this time"
...
This reverts commit 1a8edd7d1d
.
2011-03-19 16:42:53 +01:00
Alexia Death
1a8edd7d1d
app: Fix pdb properly this time
2011-03-19 17:12:14 +02:00
Michael Natterer
e24795f167
Bug 600554 - Implement layer group transforms
...
Same fix for the PDB: if the item to transform is a group layer, call
gimp_item_transform()/rotate()/... directly instead of going through
the wrong cut/transform/paste code path.
2011-03-17 22:00:38 +01:00
Michael Natterer
bb6436cb44
libgimp: deprecate and rename the global pararasite functions
...
just as it was done for items and images. Remove the "parasite" PDB
group completely.
2011-03-08 14:31:04 +01:00
Michael Natterer
7fae2b2d40
libgimp: rename the "misc" pdb group to "gimp"
...
So we finally have a proper place for PDB procedures that don't act on
an object like image, item, ...
2011-03-08 13:58:56 +01:00
Michael Natterer
95e498e0c0
libgimp: rename gimp_pdb.h to gimp_pdb_headers.h
2011-03-08 13:42:05 +01:00
Michael Natterer
87646e9ace
libgimp: deprecate and rename the image parasite functions
...
in exactly the way the drawable functios were turned into item ones.
2011-03-08 13:19:21 +01:00
Michael Natterer
5b09e61c46
app: move all GimpTemplate members to private
2011-03-02 10:16:43 +01:00
Kevin Cozens
b890cd39af
Correction to help text for the gimp-insert-layer-* PDB procedures.
2011-03-01 16:22:33 -05:00
Michael Natterer
7faaf4df41
libgimp: rename the newly added item parasite functions
...
gimp-item-find-parasite -> gimp-item-get-parasite
gimp-item-list-parasites -> gimp-item-get-parasite-list
Also changed the signature of gimp-item-get-parasite-list's C wrapper
in libgimp to be sane.
2011-03-01 22:19:48 +01:00
Michael Natterer
4f59bb3431
Bug 581338 - Layer size does not change using the pdb 'gimp-text-layer-resize'
...
Fix the fix: use box-unit, not unit, for the box extents.
2011-02-28 00:41:48 +01:00
Michael Natterer
02477f5563
Bug 625167 - Problem exporting floating selections from within layer groups
...
Add "gboolean merge_active_group" to gimp_image_merge_visible_layers()
and pass FALSE from the PDB wrapper so plug-in invoked layer merging
always acts on the toplevel container as it did in 2.6. Do the same
when opening an image as layer.
Also, added a "Merge within active group only" toggle to the merge
layers dialog and pass it down to the core, but default to TRUE here
so.
2011-02-14 09:45:59 +01:00
Michael Natterer
cb615737d3
app: save-before-committing!
2011-02-13 21:33:26 +01:00
Michael Natterer
40be8ad089
Bug 581338 - Layer size does not change using the pdb 'gimp-text-layer-resize'
...
Set the text box mode to "fixed", and convert the passed in pixels to
the text layer's unit when setting the text box' width and height.
Spotted by Massimo.
2011-02-13 21:27:34 +01:00
Michael Natterer
a604a12eb5
libgimp: fix the docs of gimp_vectors_to_selection()
2011-02-13 18:31:14 +01:00
Michael Natterer
92b6d70448
libgimp: remove the layer/channel/vectors raise/lower/position procedures
...
and add them to the list of compat_procs instead.
2011-02-13 18:29:08 +01:00
Michael Natterer
6818dae23e
libgimp: remove the drawable and vectors parasite PDB functions completely
...
and simply add them to the list of "compat_procs" which have a
replacement with identical signature. Move the libgimp C functions to
non-generated files.
2011-02-13 17:48:39 +01:00
Michael Natterer
b4c9987de6
libgimp: move the item parasite functions to the parasites files
...
and rename them yet again to be gimp_item_foo_parasite() instead of
gimp_item_parasite_foo() because the latter is just a misnaming (they
are not GimpItemParasites, they are GimpParasites attached to
GimpItems, just as layers are attached to images).
2011-02-13 17:28:30 +01:00
Michael Natterer
aa667f790e
app: rename gimp_image_select_fuzzy() to gimp_image_select_contiguous_color()
...
and update all documentation accordingly. Also reorder the
gimp_image_select procedures.
2011-02-13 17:13:28 +01:00
Michael Natterer
014cc2140e
libgimp: document which context setting affects what prodecures
2011-02-12 15:20:46 +01:00
Michael Natterer
b33076bea5
libgimp: document which context settings affect the new transform API
2011-02-11 21:15:31 +01:00
Michael Natterer
f4af9b549e
Globally switch to saying "window_id" instead of just "window"
...
when dealing with native window handles. Also get rid of using
GdkNativeWindow and simply consistently use guint32 all over the
place. This is more obvious and consistent and keeps the diff to the
gtk3-port branch smaller.
2011-02-06 12:07:55 +01:00
Michael Natterer
1931cca5ab
libgimp: deprecate the entire old gimp_foo_select() API
...
It's now completely replaced by the new gimp_image_select_foo() functions.
2011-02-06 11:20:07 +01:00
Michael Natterer
bc5e0a79ab
libgimp: remove "select-transparent" parameters from the new selection API
...
and use the sample-transparent setting from GimpPDBContext instead.
2011-02-06 11:20:07 +01:00
Michael Natterer
d3a291d2df
pdb: add "sample-transparent" as GimpPDBContext property
...
and add PDB API to get/set it.
2011-02-06 11:20:07 +01:00
Michael Natterer
c15488d10a
libgimp: remove "threshold" parameters from the new selection API
...
and use the sample-threshold setting from GimpPDBContext instead.
2011-02-06 11:20:07 +01:00
Michael Natterer
2e16d932ec
pdb: add "sample-threshold" as GimpPDBContext property
...
and add PDB API to get/set it.
2011-02-06 11:20:07 +01:00
Michael Natterer
90419e0672
app: add "gboolean push_undo" to gimp_item_parasite_attach/detach()
...
and use this API instead of manually fiddling with the item's
GimpParasiteList.
2011-01-30 20:40:43 +01:00
Michael Natterer
1205a6aedd
pdb: add "sample-criterion" as property to the PDB context
...
See commit below
2011-01-27 21:26:16 +01:00
Michael Natterer
bb6083a1eb
pdb: add "sample-merged" as property to the PDB context
...
- add API to get/set the new state
- remove sample-merged parameters from the new gimp_image_select_foo() API
- update procedure documentation
2011-01-27 21:26:16 +01:00
Martin Nordholts
480d6e0cf2
app: Add and use gimp_image_get_uri()
2011-01-26 08:19:39 +01:00
Michael Natterer
47eaecdc9d
libgimp: deprecate a bunch of old selection API
...
namely ellipse_select(), free_select(), rect_select() and
round_rect_select() because they are fully replaced by the new
gimp_image_select_foo() functions. Will deprecate the rest as soon as
I have figured how to put the parameter overkill of the remaining
functions into context properties.
2011-01-25 19:28:30 +01:00
Michael Natterer
9703bed2ef
libgimp: reorder the parameters of the new and unused gimp-image-select API
...
Make the common "image" and "operation" parameters come first.
2011-01-24 14:53:42 +01:00
Alexia Death
d2563a69fd
app: Cleanup in preparation of merge
2010-11-04 20:27:11 +02:00
Alexia Death
dfd5470a2e
Merge remote branch 'origin/master' into soc-2010-cage-2
2010-11-04 20:00:36 +02:00
Alexia Death
27c77e6a5e
Merge branch 'master' into soc-2010-cage-2
2010-11-04 00:41:45 +02:00
Michael Natterer
29d63afbb7
pdb: remove gimp-item-to-selection again
2010-10-30 22:19:22 +02:00
Michael Natterer
457a46a04c
pdb: add new selection API which has less parameters than the old one
...
and uses the new context properties instead. This is work in progress
and subject to change. Don't use it in plug-ins/scripts yet!
2010-10-30 22:06:20 +02:00
Michael Natterer
108c6f4e41
pdb: preemtively update context docs for upcoming selection API changes
2010-10-30 21:58:00 +02:00
Michael Natterer
f46122b862
app: add lots of accessors to GimpPalette
...
and use them all over the place instead of directly accessing the struct.
2010-10-27 14:36:44 +02:00
Mukund Sivaraman
675a9c3950
Decrement sample size just like in the gradients_sample_uniform case
2010-10-15 22:27:01 +05:30
Michael Natterer
2e9b6625e8
pdb: document that the context's inteprolation defaults to the gimprc value
2010-10-05 21:12:04 +02:00
Martin Nordholts
cc7755f876
Port stuff to gimp_item_is_text_layer()
...
Port stuff to gimp_item_is_text_layer() instead of
gimp_drawable_is_text_layer(). Nevermind the previous commit, it
should never have been pushed...
2010-10-05 07:39:00 +02:00
Alexia Death
74e5864fa6
Merge branch 'master' into soc-2010-cage-2
2010-09-26 23:08:15 +03:00
Michael Natterer
aa55a98249
pdb: #include "gimpgrouplayer.h" in layers-cmds.c
2010-09-16 20:36:14 +02:00
Michael Natterer
54001221d7
pdb: deprecate gimp_layer_scale_full() and gimp_image_scale_full()
...
Make gimp_layer_scale() and gimp_image_scale() honor GimpPDBContext's
interpolation property and update the documentation accordingly.
2010-09-16 20:33:56 +02:00
Michael Natterer
d64bf1ee14
pdb: deprecate the entire drawable transform API
2010-09-16 00:50:28 +02:00
Michael Natterer
4d3b52ec6c
pdb: return the resulting floating selection in the item transform API
...
This was actually documented to be the return value of all transform
procedures since 1.2, but it was always broken and returned the
passed-in drawable. Therefore it's only fixed for the new item API,
the old procedures keep their semantics (and will all be deprecated
anyway).
2010-09-16 00:36:03 +02:00
Michael Natterer
c6e93e4f5a
pdb: generate nicer gtk-doc comments (no doc contents changed)
2010-09-15 22:07:36 +02:00
Michael Natterer
bbc44c9a6b
pdb: remove obsolete includes
2010-09-15 22:02:53 +02:00
Michael Natterer
38b9b4117e
pdb: deprecate gimp-drawable-is-text-layer and add gimp-item-is-text-layer
2010-09-15 21:51:53 +02:00
Michael Natterer
c56f0568c5
pdb: remove deprecated drawable procedures
...
and do the same stuff as for vectors procedures below.
2010-09-15 21:43:03 +02:00
Michael Natterer
548d2e041d
pdb: clean up gimp-layer-group-new
...
There is no need to wrap it with a function with identical
signature. Also move it next to the other layer-new functions.
2010-09-15 21:18:47 +02:00
Michael Natterer
97b35ab332
pdb: remove deprecated vectors procedures
...
that have a replacement with identical signature. Register them as
compat aliases with the PDB instead. Implement the libgimp API
manually, calling the new item functions.
2010-09-15 21:13:22 +02:00
Barak Itkin
2f62347bf6
pdb: Add a more detailed description to the gimp_image_insert functions
2010-09-15 00:02:28 +02:00
Barak Itkin
805a971d99
pdb: add the procedure gimp_layer_group_new
2010-09-14 22:41:56 +02:00
Michael Natterer
a885824f70
pdb: add barak_pdb_misc() instead of replicating the author information
2010-09-14 14:38:35 +02:00
Michael Natterer
e8f4d4b449
pdb: add transform API for items
...
Works for all item types, and has much less functions and parameters
than the drawable transform API because it uses the new context
states. Untested and not finished!
2010-09-08 02:48:37 +02:00
Michael Natterer
8b38bde642
app: remove the "auto_center" params from gimpdrawable-transform.[ch]
...
Instead, add utility functions that calculate the centers for rotate
and flip and use them where we used to pass "auto_center". This looks
pretty much poinless, but a commit will follow that makes it look
better...
2010-09-07 23:43:18 +02:00
Michael Natterer
095ae5cc9b
app: move mask_bounds() and mask_intersect() from GimpDrawable to GimpItem
...
There is nothing drawable-specific in there, and having them on
GimpItem enables some simplifications, esp. in upcoming PDB
wrappers. None of these refactorings is in this commit though.
2010-09-07 21:30:46 +02:00
Michael Natterer
23aaf69779
pdb: add a lot of state for a new item-based transform API
...
interpolation, transform-direction, transform-resize, transform-recursion
2010-09-07 02:33:13 +02:00
Sven Neumann
2cbf8a7c96
pdb: mention gimp_edit_fill() in the gimp_drawable_fill() docs
...
The gimp_drawable_fill() already mentioned the bucket fill tool.
However the procedure that the developer is most likely looking
for is gimp_edit_fill(), so mention that as well.
2010-09-06 23:19:00 +02:00
Sven Neumann
9486971f07
pdb: the new gimp-image-insert procedures should accept no parent
...
Allow to pass -1 as parent parameter to the newly added
gimp-image-insert procedures by adding the 'none_ok' flag.
2010-09-06 22:54:53 +02:00
Michael Natterer
0aec9a2b83
tools: fix quoting
2010-09-06 13:46:35 +02:00
Michael Natterer
d0e55640ec
pdb: deprecate gimp_image_add_layer,channel,vectors()
2010-09-06 00:15:40 +02:00
Michael Natterer
9e0dccec73
pdb: update docs to mention the new insert procs instead of the add ones
2010-09-06 00:03:29 +02:00
Michael Natterer
a547c5d200
pdb: add gimp_image_insert_layer,channel,vectors()
...
which all take "parent" parameters and allow to insert items in a
tree. We don't have channel or vectors trees (yet) but API symmetry is
more important here than a currently useless parameter.
2010-09-05 23:56:35 +02:00
Michael Natterer
8ab4fbcf28
pdb: add context procedures for the new antialias and feather properties
2010-09-05 23:13:42 +02:00
Michael Natterer
e7475c1d52
pdb: add new procedure gimp-item-to-selection
...
and deprecate all old to-selection APIs. The new procedure uses the
newly added GimpPDBContext properties, so it only has an "operation"
parameter.
2010-09-05 22:38:07 +02:00
Michael Natterer
1e4b3a53b3
tools: insert #include "gimppdbcontext.h" at the right place if needed
2010-09-04 22:31:58 +02:00
Alexia Death
d98bd748e7
Merge branch 'master' into soc-2010-cage-2
2010-09-01 11:21:58 +03:00
Michael Natterer
ab852d7409
pdb: add proper error messages for gimp_image_reorder_item()
2010-08-31 17:07:27 +02:00
Michael Natterer
b24de26791
libgimp: add gimp_image_reorder_item() for arbitrary reordering in a tree
2010-08-31 11:16:41 +02:00
Michael Natterer
4e2289f736
libgimp: add API to access item groups
...
A layer tree can be traversed completely now. Tree manipulating
functions still missing.
2010-08-28 18:49:15 +02:00
Michael Natterer
0d35e8de6d
libgimp: add item based API for positions (raise, lower etc.)
...
and deprecate the resp. functions for layers, channels and vectors.
2010-08-27 16:11:06 +02:00
Alexia Death
aee148a486
Merge branch 'master' into soc-2010-cage-2
2010-08-26 21:50:55 +03:00
Barak Itkin
716a3ac446
pdbgen: Add README_NEW_PDB_PROC to Makefile.am
2010-08-11 19:24:59 +03:00
Barak Itkin
88ddd0b9c6
pdbgen: Add documentation on adding new PDB procedures
2010-08-11 19:09:07 +03:00
Michael Muré
5d483a9517
add an enum for cage mode
2010-08-08 13:24:50 +02:00
Michael Natterer
3184c440b3
app: introduce GimpItem::to_selection()
...
Which replaces all the deparate functions to turn layers, channels,
layer masks and vectors into selections. Use the new virtual function
all over the place instead of calling the functions in
gimpchannel-select.c manually.
2010-07-20 23:09:19 +02:00
Michael Natterer
19c01bc12a
tools: fix generated docs of gimp_enums_init()
2010-07-14 19:05:50 +02:00
Michael Natterer
e3f0a6a0d4
tools: generate "Deprecated:" sections according to gtk-doc standards
...
So the comment about replacement functions appears in the red warning
box in the generated HTML.
2010-07-12 23:11:56 +02:00
Michael Natterer
2e81453c75
pdb: some doc fixes
2010-07-09 14:24:31 +02:00
Michael Natterer
3c2dcf2df5
pdb: deprecate drawable API that got replaced by item API
2010-07-09 11:25:35 +02:00
Michael Natterer
7314d3fe4f
pdb: deprecate the drawable and vectors parasite APIs
2010-07-09 10:36:17 +02:00
Michael Natterer
d0c80bae12
pdb: add parasite API for items
2010-07-09 10:19:30 +02:00
Michael Natterer
0fdf7c6e28
pdb: deprecate vectors API that is now in item
2010-07-09 10:10:55 +02:00
Michael Natterer
20c3dc0df9
pdb: remove drawable's and vector's "lock-content" API
...
because it's new in 2.8 and doesn't need to be deprecated.
2010-07-09 09:46:31 +02:00
Michael Natterer
1bca2d8eb0
pdb: don't talk about "pixels" in items docs
2010-07-09 09:45:30 +02:00
Michael Natterer
2d6f808ff8
pdb: add a new PDB group "item" and move lots of functions to it
...
The item groups has all the duplicated functionality from drawable
and vectors (name, visible, linked etc).
Hijack the unused GIMP_PDB_REGION and turn it into GIMP_PDB_ITEM;
change all protocol aware files accordingly and bump the protocol
version number. Change script-fu to handle the new type.
2010-07-09 09:34:44 +02:00
Michael Natterer
d303d8c7c1
Revert "pdb: Added a procedure to check how many processors GIMP is configured to use."
...
This reverts commit b22880c32f
.
Adding this procedure was a misunderstanding on IRC.
2010-07-09 02:30:10 +02:00
Barak Itkin
b22880c32f
pdb: Added a procedure to check how many processors GIMP is configured to use.
...
Added the procedure get_number_of_processors to gimprc.pdb and regenerated the
other files using pdbgen.
2010-07-09 02:50:13 +03:00
Michael Natterer
14b19ecce8
app: add attached-to checks to all raise and lower functions
2010-07-08 21:08:18 +02:00
Michael Natterer
4097d3c300
app: add check that items passed through the PDB belong to the right image
...
Add "image" parameter to gimp_pdb_item_is_attached() and if non-NULL,
make sure the item is attached to that image, and not only attached to
any image. Change wrappers to pass an image where it makes sense.
2010-07-08 21:02:58 +02:00
Michael Natterer
314a6ab926
app: merge the layer, channel and vectors repositioning APIs
...
into an API based on GimpItem.
2010-07-08 18:08:13 +02:00
Michael Natterer
3a2cd14382
tools: add pdbgen support for generating gtk-doc SECTION comments
...
Add the new $doc_title, $doc_short_desc and $doc_long_desc strings to
all .pdb files.
2010-07-07 11:43:10 +02:00
Michael Natterer
9dd373d86e
Bug 620604 - Description of "histogram" procedure is slightly inaccurate
...
Fix totally broken value ranges of integer PDB parameters. Magically,
the bug was affecting only exactly the two cases mentioned in above
bug report.
* tools/pdbgen/pdb.pl (arg_parse): return <, <=, > and >= literally
instead of applying a mapping that was originally meant for
generated C code that would e.g. transform "0 <= int32 < 10" into
"if (value < 0 || value >= 10) fail". This inversion of all
operators is now wrong because PDB parameters have been turned into
GParamSpecs which always need inclusive ranges as min and max
values.
* tools/pdbgen/pdbgen.pl (arrayexpand): generated array length type
specs must be "0 <= int32", not "0 < int32".
* tools/pdbgen/app.pl: when generating integer param specs, check if
the value range is specified in terms of < instead of <=, and
add/subtract 1, resuting in the inclusive range needed for integer
GParamSpecs.
* app/pdb/color-cmds.c: regenerated, fixing the two broken ranges
mentioned in the bug report.
2010-06-05 19:26:06 +02:00
Michael Natterer
2e08321691
tools: remove redundant type "int32" from some array length params
...
because they are int32 be default in the absence of an explicit type.
2010-06-05 18:28:50 +02:00
Barak Itkin
3f66808584
Added a function to export the Pango markup of a text layer
...
This is required for the PDF export plugin.
2010-06-01 21:21:40 +02:00
Michael Natterer
d445361f17
Revert "Adds layer_group_get_layers call: minimal layer group support to the PDB"
...
This reverts commit cc60d331f7
.
2010-05-01 14:36:20 +02:00
João S. O. Bueno
cc60d331f7
Adds layer_group_get_layers call: minimal layer group support to the PDB
2010-04-27 23:34:43 -03:00
Michael Natterer
caad58d203
app: add a GimpContext parameter to GimpDataLoadFunc
2010-04-11 13:12:41 +02:00
Michael Natterer
4fcf34699f
app: flip context and name parameters in GimpDataNewFunc
2010-04-10 19:55:42 +02:00
Michael Natterer
430b0e5517
app: add a GimpContext parameter to all functions which create GimpData
...
and pass a context whereever needed. Fix up gimp_tool_preset_new()
to actually make a copy of the context's active tool's options.
2010-04-05 13:26:31 +02:00
Michael Natterer
6650693d29
app: move gimp_image_pick_layer() to its own file
...
and add a (still unused) text layer picking function.
2010-03-07 01:55:31 +01:00
Michael Natterer
6e49a0fa5d
Move gimp_edit_paste_as_new() to gimp_image_new_from_buffer()
...
because it better fits there, and it's never actually been a "paste"
from the implementation point of view.
2010-02-09 22:32:49 +01:00
Michael Natterer
88de69464e
Move "layers", "channels" and "vectors" to GimpImagePrivate
2010-02-03 23:00:31 +01:00
Michael Natterer
0b2c804e9d
Move "disp_count" and "instance_count" to GimpImagePrivate
...
and add the neccessary API to access and modify them.
2010-02-03 21:22:00 +01:00
Michael Natterer
335597ce7d
Bug 604508 - gimp-layer-new-from-visible should work from updated projection
...
Call gimp_pickable_flush(projection) before creating a new layer from it.
2009-12-14 14:01:37 +01:00
Michael Natterer
22767ca7b8
Seal GimpData completely and add the missing accessors
2009-10-31 18:48:38 +01:00