Commit 8a651f34 authored by William Skaggs's avatar William Skaggs

Bill Skaggs <weskaggs@primate.ucdavis.edu>

	* tools/pdbgen/pdb/gradient.pdb: added gradient-is-editable

	* tools/pdbgen/pdb/brush.pdb
	* tools/pdbgen/pdb/palette.pdb: changed mitch_misc to bill_misc
	where correct.

	* app/pdb/brush_cmds.c
	* app/pdb/palette_cmds.c
	* libgimp/gimpbrush_pdb.c
	* libgimp/gimppalette_pdb.c: regenerated.
parent b9a8adfd
2004-12-31 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* tools/pdbgen/pdb/gradient.pdb: added gradient-is-editable
* tools/pdbgen/pdb/brush.pdb
* tools/pdbgen/pdb/palette.pdb: changed mitch_misc to bill_misc
where correct.
* app/pdb/brush_cmds.c
* app/pdb/palette_cmds.c
* libgimp/gimpbrush_pdb.c
* libgimp/gimppalette_pdb.c: regenerated.
2004-12-31 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/paint/gimpbrushcore.c: make previously committed change
......
......@@ -284,8 +284,8 @@ static ProcRecord brush_is_generated_proc =
"gimp_brush_is_generated",
"Tests if generated",
"Returns True if this brush is parametric, False for other types",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -498,8 +498,8 @@ static ProcRecord brush_is_editable_proc =
"gimp_brush_is_editable",
"Tests if brush can be edited",
"Returns True if you have permission to change the brush",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -845,8 +845,8 @@ static ProcRecord brush_set_spacing_proc =
"gimp_brush_set_spacing",
"Set the brush spacing.",
"This procedure modifies the spacing setting for the specified brush. The value should be a integer between 0 and 1000.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -911,8 +911,8 @@ static ProcRecord brush_get_shape_proc =
"gimp_brush_get_shape",
"Get the shape of a generated brush.",
"This procedure gets the shape value for a generated brush. If called for any other type of brush, it does not succeed. The current possibilities are Circle (GIMP_BRUSH_GENERATED_CIRCLE), Square (GIMP_BRUSH_GENERATED_SQUARE), and Diamond (GIMP_BRUSH_GENERATED_DIAMOND). Other shapes are likely to be added in the future.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -977,8 +977,8 @@ static ProcRecord brush_get_radius_proc =
"gimp_brush_get_radius",
"Get the radius of a generated brush.",
"This procedure gets the radius value for a generated brush. If called for any other type of brush, it does not succeed.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -1043,8 +1043,8 @@ static ProcRecord brush_get_spikes_proc =
"gimp_brush_get_spikes",
"Get the number of spikes for a generated brush.",
"This procedure gets the number of spikes for a generated brush. If called for any other type of brush, it does not succeed.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -1109,8 +1109,8 @@ static ProcRecord brush_get_hardness_proc =
"gimp_brush_get_hardness",
"Get the hardness of a generated brush.",
"This procedure gets the hardness of a generated brush. The hardness of a brush is the amount its intensity fades at the outside edge. If called for any other type of brush, the function does not succeed.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -1175,8 +1175,8 @@ static ProcRecord brush_get_aspect_ratio_proc =
"gimp_brush_get_aspect_ratio",
"Get the aspect ratio of a generated brush.",
"This procedure gets the aspect ratio of a generated brush. If called for any other type of brush, it does not succeed.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -1241,8 +1241,8 @@ static ProcRecord brush_get_angle_proc =
"gimp_brush_get_angle",
"Get the rotation angle of a generated brush.",
"This procedure gets the angle of rotation for a generated brush. If called for any other type of brush, it does not succeed.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -1318,8 +1318,8 @@ static ProcRecord brush_set_shape_proc =
"gimp_brush_set_shape",
"Set the shape of a generated brush.",
"This procedure sets the shape value for a generated brush. If called for any other type of brush, it does not succeed. The current possibilities are Circle (GIMP_BRUSH_GENERATED_CIRCLE), Square (GIMP_BRUSH_GENERATED_SQUARE), and Diamond (GIMP_BRUSH_GENERATED_DIAMOND). Other shapes are likely to be added in the future.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -1395,8 +1395,8 @@ static ProcRecord brush_set_radius_proc =
"gimp_brush_set_radius",
"Set the radius of a generated brush.",
"This procedure sets the radius for a generated brush. If called for any other type of brush, it does not succeed.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -1472,8 +1472,8 @@ static ProcRecord brush_set_spikes_proc =
"gimp_brush_set_spikes",
"Set the number of spikes for a generated brush.",
"This procedure sets the number of spikes for a generated brush. If called for any other type of brush, it does not succeed.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -1549,8 +1549,8 @@ static ProcRecord brush_set_hardness_proc =
"gimp_brush_set_hardness",
"Set the hardness of a generated brush.",
"This procedure sets the hardness for a generated brush. If called for any other type of brush, it does not succeed.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -1626,8 +1626,8 @@ static ProcRecord brush_set_aspect_ratio_proc =
"gimp_brush_set_aspect_ratio",
"Set the aspect ratio of a generated brush.",
"This procedure sets the aspect ratio for a generated brush. If called for any other type of brush, it does not succeed.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......@@ -1703,8 +1703,8 @@ static ProcRecord brush_set_angle_proc =
"gimp_brush_set_angle",
"Set the rotation angle of a generated brush.",
"This procedure sets the rotation angle for a generated brush. If called for any other type of brush, it does not succeed.",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......
......@@ -409,8 +409,8 @@ static ProcRecord palette_is_editable_proc =
"gimp_palette_is_editable",
"Tests if palette can be edited",
"Returns True if you have permission to change the palette",
"Michael Natterer <mitch@gimp.org>",
"Michael Natterer",
"Bill Skaggs <weskaggs@primate.ucdavis.edu",
"Bill Skaggs",
"2004",
NULL,
GIMP_INTERNAL,
......
2004-12-31 Sven Neumann <sven@gimp.org>
* libgimp/libgimp-sections.txt
* libgimp/tmpl/gimpgradient.sgml: added gimp_brush_is_editable.
2004-12-31 Sven Neumann <sven@gimp.org>
* libgimp/libgimp-sections.txt
......
......@@ -428,6 +428,7 @@ gimp_gradient_new
gimp_gradient_duplicate
gimp_gradient_rename
gimp_gradient_delete
gimp_gradient_is_editable
gimp_gradient_get_uniform_samples
gimp_gradient_get_custom_samples
gimp_gradient_segment_get_left_color
......
......@@ -51,6 +51,15 @@ Functions operating on a single gradient.
@Returns:
<!-- ##### FUNCTION gimp_gradient_is_editable ##### -->
<para>
</para>
@name:
@Returns:
<!-- ##### FUNCTION gimp_gradient_get_uniform_samples ##### -->
<para>
......
......@@ -101,7 +101,7 @@ gimp_brush_duplicate (const gchar *name)
*
* Returns: True if the brush is generated.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gboolean
gimp_brush_is_generated (const gchar *name)
......@@ -199,7 +199,7 @@ gimp_brush_delete (const gchar *name)
*
* Returns: True if the brush can be edited.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gboolean
gimp_brush_is_editable (const gchar *name)
......@@ -399,7 +399,7 @@ gimp_brush_get_spacing (const gchar *name,
*
* Returns: TRUE on success.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gboolean
gimp_brush_set_spacing (const gchar *name,
......@@ -437,7 +437,7 @@ gimp_brush_set_spacing (const gchar *name,
*
* Returns: An enumerated value representing the brush shape.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gint
gimp_brush_get_shape (const gchar *name)
......@@ -470,7 +470,7 @@ gimp_brush_get_shape (const gchar *name)
*
* Returns: The radius of the brush in pixels.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gdouble
gimp_brush_get_radius (const gchar *name)
......@@ -503,7 +503,7 @@ gimp_brush_get_radius (const gchar *name)
*
* Returns: The number of spikes on the brush.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gint
gimp_brush_get_spikes (const gchar *name)
......@@ -537,7 +537,7 @@ gimp_brush_get_spikes (const gchar *name)
*
* Returns: The hardness of the brush.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gdouble
gimp_brush_get_hardness (const gchar *name)
......@@ -570,7 +570,7 @@ gimp_brush_get_hardness (const gchar *name)
*
* Returns: The aspect ratio of the brush.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gdouble
gimp_brush_get_aspect_ratio (const gchar *name)
......@@ -603,7 +603,7 @@ gimp_brush_get_aspect_ratio (const gchar *name)
*
* Returns: The rotation angle of the brush.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gdouble
gimp_brush_get_angle (const gchar *name)
......@@ -641,7 +641,7 @@ gimp_brush_get_angle (const gchar *name)
*
* Returns: The brush shape actually assigned.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gint
gimp_brush_set_shape (const gchar *name,
......@@ -677,7 +677,7 @@ gimp_brush_set_shape (const gchar *name,
*
* Returns: The brush radius actually assigned.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gdouble
gimp_brush_set_radius (const gchar *name,
......@@ -713,7 +713,7 @@ gimp_brush_set_radius (const gchar *name,
*
* Returns: The number of spikes actually assigned.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gint
gimp_brush_set_spikes (const gchar *name,
......@@ -749,7 +749,7 @@ gimp_brush_set_spikes (const gchar *name,
*
* Returns: The brush hardness actually assigned.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gdouble
gimp_brush_set_hardness (const gchar *name,
......@@ -785,7 +785,7 @@ gimp_brush_set_hardness (const gchar *name,
*
* Returns: The brush aspect ratio actually assigned.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gdouble
gimp_brush_set_aspect_ratio (const gchar *name,
......@@ -821,7 +821,7 @@ gimp_brush_set_aspect_ratio (const gchar *name,
*
* Returns: The brush rotation angle actually assigned.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gdouble
gimp_brush_set_angle (const gchar *name,
......
......@@ -165,7 +165,7 @@ gimp_palette_delete (const gchar *name)
*
* Returns: True if the palette can be edited.
*
* Since: GIMP 2.2
* Since: GIMP 2.4
*/
gboolean
gimp_palette_is_editable (const gchar *name)
......
......@@ -24,6 +24,13 @@ sub mitch_misc {
$since = '2.2';
}
sub bill_misc {
$author = 'Bill Skaggs <weskaggs@primate.ucdavis.edu';
$copyright = 'Bill Skaggs';
$date = '2004';
$since = '2.4';
}
sub brush_arg () {{
name => 'name',
type => 'string',
......@@ -113,7 +120,7 @@ sub brush_is_generated {
$blurb = "Tests if generated";
$help = "Returns True if this brush is parametric, False for other types";
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg
......@@ -146,7 +153,7 @@ sub brush_is_editable {
$blurb = "Tests if brush can be edited";
$help = "Returns True if you have permission to change the brush";
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg
......@@ -400,7 +407,7 @@ Square (GIMP_BRUSH_GENERATED_SQUARE), and Diamond
added in the future.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg
......@@ -434,7 +441,7 @@ This procedure gets the radius value for a generated brush. If
called for any other type of brush, it does not succeed.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg
......@@ -468,7 +475,7 @@ This procedure gets the number of spikes for a generated brush.
If called for any other type of brush, it does not succeed.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg
......@@ -504,7 +511,7 @@ outside edge. If called for any other type of brush, the function
does not succeed.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg
......@@ -538,7 +545,7 @@ This procedure gets the aspect ratio of a generated brush.
If called for any other type of brush, it does not succeed.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg
......@@ -572,7 +579,7 @@ This procedure gets the angle of rotation for a generated brush.
If called for any other type of brush, it does not succeed.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg
......@@ -606,7 +613,7 @@ This procedure modifies the spacing setting for the specified brush.
The value should be a integer between 0 and 1000.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg,
......@@ -642,7 +649,7 @@ Square (GIMP_BRUSH_GENERATED_SQUARE), and Diamond
added in the future.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg,
......@@ -681,7 +688,7 @@ This procedure sets the radius for a generated brush. If
called for any other type of brush, it does not succeed.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg,
......@@ -720,7 +727,7 @@ This procedure sets the number of spikes for a generated brush. If
called for any other type of brush, it does not succeed.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg,
......@@ -759,7 +766,7 @@ This procedure sets the hardness for a generated brush. If
called for any other type of brush, it does not succeed.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg,
......@@ -798,7 +805,7 @@ This procedure sets the aspect ratio for a generated brush. If
called for any other type of brush, it does not succeed.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg,
......@@ -837,7 +844,7 @@ This procedure sets the rotation angle for a generated brush. If
called for any other type of brush, it does not succeed.
HELP
&mitch_misc;
&bill_misc;
@inargs = (
&brush_arg,
......
......@@ -15,6 +15,13 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
sub bill_misc {
$author = 'Bill Skaggs <weskaggs@primate.ucdavis.edu';
$copyright = 'Bill Skaggs';
$date = '2004';
$since = '2.4';
}
sub shlomi_misc {
$author = $copyright = 'Shlomi Fish';
$date = '2003';
......@@ -317,6 +324,39 @@ CODE
);
}
sub gradient_is_editable {
$blurb = "Tests if gradient can be edited";
$help = "Returns True if you have permission to change the gradient";
&bill_misc;
@inargs = (
&gradient_arg
);
@outargs = (
{ name => 'editable', type => 'boolean',
desc => "True if the gradient can be edited",
alias => 'GIMP_DATA (gradient)->writable',
no_declare => 1 }
);
%invoke = (
vars => [ 'GimpGradient *gradient = NULL' ],
code => <<'CODE'
{
gradient = (GimpGradient *)
gimp_container_get_child_by_name (gimp->gradient_factory->container, name);
if (gradient)
success = TRUE;
else
success = FALSE;
}
CODE
);
}
sub gradient_rename {
$blurb = "Rename a gradient";
$help = "This procedure renames a gradient";
......
......@@ -17,6 +17,13 @@
# "Perlized" from C source by Manish Singh <yosh@gimp.org>
sub bill_misc {
$author = 'Bill Skaggs <weskaggs@primate.ucdavis.edu';
$copyright = 'Bill Skaggs';
$date = '2004';
$since = '2.4';
}
sub mitch_misc {
$author = 'Michael Natterer <mitch@gimp.org>';
$copyright = 'Michael Natterer';
......@@ -80,7 +87,7 @@ sub palette_is_editable {
$blurb = "Tests if palette can be edited";
$help = "Returns True if you have permission to change the palette";
&mitch_misc;
&bill_misc;
@inargs = (
&palette_arg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment