1997-11-24 22:05:25 +00:00
/* The GIMP -- an image manipulation program
2000-02-17 11:44:27 +00:00
* Copyright ( C ) 1995 - 2000 Spencer Kimball and Peter Mattis
1997-11-24 22:05:25 +00:00
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 2 of the License , or
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , write to the Free Software
1998-04-13 05:44:11 +00:00
* Foundation , Inc . , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA .
1997-11-24 22:05:25 +00:00
*/
1999-03-28 06:55:29 +00:00
/* NOTE: This file is autogenerated by pdbgen.pl. */
2000-12-29 15:22:01 +00:00
# include "config.h"
2001-08-17 14:27:31 +00:00
# include <glib-object.h>
2000-12-29 15:22:01 +00:00
2001-05-21 13:58:46 +00:00
# include "libgimpbase/gimpbasetypes.h"
2001-08-17 14:27:31 +00:00
# include "pdb-types.h"
1999-03-28 06:55:29 +00:00
# include "procedural_db.h"
2001-05-09 02:32:03 +00:00
# include "core/gimpimage.h"
1999-03-28 06:55:29 +00:00
# include "undo.h"
Lots of ii8n stuff here and some additions to the de.po. Applied
Wed Oct 14 17:46:15 EDT 1998 Adrian Likins <adrian@gimp.org>
* app/*, po/de.po, de/POTFILES.in, libgimp/gimpintl.h:
Lots of ii8n stuff here and some additions to the de.po.
Applied gimp-egger-981005-1 ,gimp-egger-981006-1,
gimp-egger-981007-1, gimp-egger-981008-1,
gimp-egger-981009-1.patch, gimp-egger-981010-1.patch
* plug-in/guillotine/guillotine.c: added the coordinates
of the split images from the original image to the title.
ie foo.jpg (0,0) for the image in the topleft.
* plug-in/script-fu/scripts/neon-logo.scm,
perspective-shadow.scm, predator.scm,rendermap.scm,
ripply-anim.scm, select_to_image.scm,swirltile.scm,
xach-effect.scm: updated scripts to use new script-fu stuff
wooo boy! a big un!
in testing this, it looks like some of the po files are busted.
but the code stuff seems okay.
-adrian
1998-10-14 23:23:52 +00:00
1999-03-28 06:55:29 +00:00
static ProcRecord undo_push_group_start_proc ;
static ProcRecord undo_push_group_end_proc ;
1997-11-24 22:05:25 +00:00
1999-03-28 06:55:29 +00:00
void
2001-07-04 19:31:35 +00:00
register_undo_procs ( Gimp * gimp )
1999-03-28 06:55:29 +00:00
{
2001-07-04 19:31:35 +00:00
procedural_db_register ( gimp , & undo_push_group_start_proc ) ;
procedural_db_register ( gimp , & undo_push_group_end_proc ) ;
1999-03-28 06:55:29 +00:00
}
1997-11-24 22:05:25 +00:00
static Argument *
2001-07-04 19:31:35 +00:00
undo_push_group_start_invoker ( Gimp * gimp ,
Argument * args )
1997-11-24 22:05:25 +00:00
{
1999-03-28 06:55:29 +00:00
gboolean success = TRUE ;
GimpImage * gimage ;
1997-11-24 22:05:25 +00:00
2001-07-11 12:39:49 +00:00
gimage = gimp_image_get_by_ID ( gimp , args [ 0 ] . value . pdb_int ) ;
2002-08-29 17:21:21 +00:00
if ( ! GIMP_IS_IMAGE ( gimage ) )
1999-03-28 06:55:29 +00:00
success = FALSE ;
1997-11-24 22:05:25 +00:00
if ( success )
2002-02-23 17:29:19 +00:00
undo_push_group_start ( gimage , MISC_UNDO_GROUP ) ;
1997-11-24 22:05:25 +00:00
return procedural_db_return_args ( & undo_push_group_start_proc , success ) ;
}
1999-03-28 06:55:29 +00:00
static ProcArg undo_push_group_start_inargs [ ] =
1997-11-24 22:05:25 +00:00
{
1999-03-28 06:55:29 +00:00
{
2001-05-21 13:58:46 +00:00
GIMP_PDB_IMAGE ,
1997-11-24 22:05:25 +00:00
" image " ,
1998-12-16 00:37:09 +00:00
" The ID of the image in which to pop an undo group "
1997-11-24 22:05:25 +00:00
}
} ;
1999-03-28 06:55:29 +00:00
static ProcRecord undo_push_group_start_proc =
1997-11-24 22:05:25 +00:00
{
" gimp_undo_push_group_start " ,
1999-03-28 06:55:29 +00:00
" Starts a group undo. " ,
" This function is used to start a group undo--necessary for logically combining two or more undo operations into a single operation. This call must be used in conjunction with a 'gimp-undo-push-group-end' call. " ,
1998-12-16 00:37:09 +00:00
" Spencer Kimball & Peter Mattis " ,
" Spencer Kimball & Peter Mattis " ,
1997-11-24 22:05:25 +00:00
" 1997 " ,
2001-05-21 13:58:46 +00:00
GIMP_INTERNAL ,
1997-11-24 22:05:25 +00:00
1 ,
1999-03-28 06:55:29 +00:00
undo_push_group_start_inargs ,
1997-11-24 22:05:25 +00:00
0 ,
NULL ,
1999-03-28 06:55:29 +00:00
{ { undo_push_group_start_invoker } }
1997-11-24 22:05:25 +00:00
} ;
static Argument *
2001-07-04 19:31:35 +00:00
undo_push_group_end_invoker ( Gimp * gimp ,
Argument * args )
1997-11-24 22:05:25 +00:00
{
1999-03-28 06:55:29 +00:00
gboolean success = TRUE ;
GimpImage * gimage ;
1997-11-24 22:05:25 +00:00
2001-07-11 12:39:49 +00:00
gimage = gimp_image_get_by_ID ( gimp , args [ 0 ] . value . pdb_int ) ;
2002-08-29 17:21:21 +00:00
if ( ! GIMP_IS_IMAGE ( gimage ) )
1999-03-28 06:55:29 +00:00
success = FALSE ;
1997-11-24 22:05:25 +00:00
if ( success )
undo_push_group_end ( gimage ) ;
return procedural_db_return_args ( & undo_push_group_end_proc , success ) ;
}
1999-03-28 06:55:29 +00:00
static ProcArg undo_push_group_end_inargs [ ] =
1997-11-24 22:05:25 +00:00
{
1999-03-28 06:55:29 +00:00
{
2001-05-21 13:58:46 +00:00
GIMP_PDB_IMAGE ,
1997-11-24 22:05:25 +00:00
" image " ,
1998-12-16 00:37:09 +00:00
" The ID of the image in which to pop an undo group "
1997-11-24 22:05:25 +00:00
}
} ;
1999-03-28 06:55:29 +00:00
static ProcRecord undo_push_group_end_proc =
1997-11-24 22:05:25 +00:00
{
" gimp_undo_push_group_end " ,
1999-03-28 06:55:29 +00:00
" Finish a group undo. " ,
" This function must be called once for each gimp-undo-push-group call that is made. " ,
1998-12-16 00:37:09 +00:00
" Spencer Kimball & Peter Mattis " ,
" Spencer Kimball & Peter Mattis " ,
1997-11-24 22:05:25 +00:00
" 1997 " ,
2001-05-21 13:58:46 +00:00
GIMP_INTERNAL ,
1997-11-24 22:05:25 +00:00
1 ,
1999-03-28 06:55:29 +00:00
undo_push_group_end_inargs ,
1997-11-24 22:05:25 +00:00
0 ,
NULL ,
1999-03-28 06:55:29 +00:00
{ { undo_push_group_end_invoker } }
1997-11-24 22:05:25 +00:00
} ;