1997-11-25 06:05:25 +08:00
/* The GIMP -- an image manipulation program
1999-03-28 14:55:29 +08:00
* Copyright ( C ) 1995 - 1999 Spencer Kimball and Peter Mattis
1997-11-25 06:05:25 +08: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 13:44:11 +08:00
* Foundation , Inc . , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA .
1997-11-25 06:05:25 +08:00
*/
1999-03-28 14:55:29 +08:00
/* NOTE: This file is autogenerated by pdbgen.pl. */
# include "procedural_db.h"
# 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-15 07:23:52 +08:00
1999-03-28 14:55:29 +08:00
static ProcRecord undo_push_group_start_proc ;
static ProcRecord undo_push_group_end_proc ;
1997-11-25 06:05:25 +08:00
1999-03-28 14:55:29 +08:00
void
register_undo_procs ( void )
{
procedural_db_register ( & undo_push_group_start_proc ) ;
procedural_db_register ( & undo_push_group_end_proc ) ;
}
1997-11-25 06:05:25 +08:00
static Argument *
undo_push_group_start_invoker ( Argument * args )
{
1999-03-28 14:55:29 +08:00
gboolean success = TRUE ;
GimpImage * gimage ;
1997-11-25 06:05:25 +08:00
1999-03-28 14:55:29 +08:00
gimage = pdb_id_to_image ( args [ 0 ] . value . pdb_int ) ;
if ( gimage = = NULL )
success = FALSE ;
1997-11-25 06:05:25 +08:00
if ( success )
undo_push_group_start ( gimage , MISC_UNDO ) ;
return procedural_db_return_args ( & undo_push_group_start_proc , success ) ;
}
1999-03-28 14:55:29 +08:00
static ProcArg undo_push_group_start_inargs [ ] =
1997-11-25 06:05:25 +08:00
{
1999-03-28 14:55:29 +08:00
{
PDB_IMAGE ,
1997-11-25 06:05:25 +08:00
" image " ,
1998-12-16 08:37:09 +08:00
" The ID of the image in which to pop an undo group "
1997-11-25 06:05:25 +08:00
}
} ;
1999-03-28 14:55:29 +08:00
static ProcRecord undo_push_group_start_proc =
1997-11-25 06:05:25 +08:00
{
" gimp_undo_push_group_start " ,
1999-03-28 14:55:29 +08: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 08:37:09 +08:00
" Spencer Kimball & Peter Mattis " ,
" Spencer Kimball & Peter Mattis " ,
1997-11-25 06:05:25 +08:00
" 1997 " ,
PDB_INTERNAL ,
1 ,
1999-03-28 14:55:29 +08:00
undo_push_group_start_inargs ,
1997-11-25 06:05:25 +08:00
0 ,
NULL ,
1999-03-28 14:55:29 +08:00
{ { undo_push_group_start_invoker } }
1997-11-25 06:05:25 +08:00
} ;
static Argument *
1999-03-28 14:55:29 +08:00
undo_push_group_end_invoker ( Argument * args )
1997-11-25 06:05:25 +08:00
{
1999-03-28 14:55:29 +08:00
gboolean success = TRUE ;
GimpImage * gimage ;
1997-11-25 06:05:25 +08:00
1999-03-28 14:55:29 +08:00
gimage = pdb_id_to_image ( args [ 0 ] . value . pdb_int ) ;
if ( gimage = = NULL )
success = FALSE ;
1997-11-25 06:05:25 +08:00
if ( success )
undo_push_group_end ( gimage ) ;
return procedural_db_return_args ( & undo_push_group_end_proc , success ) ;
}
1999-03-28 14:55:29 +08:00
static ProcArg undo_push_group_end_inargs [ ] =
1997-11-25 06:05:25 +08:00
{
1999-03-28 14:55:29 +08:00
{
PDB_IMAGE ,
1997-11-25 06:05:25 +08:00
" image " ,
1998-12-16 08:37:09 +08:00
" The ID of the image in which to pop an undo group "
1997-11-25 06:05:25 +08:00
}
} ;
1999-03-28 14:55:29 +08:00
static ProcRecord undo_push_group_end_proc =
1997-11-25 06:05:25 +08:00
{
" gimp_undo_push_group_end " ,
1999-03-28 14:55:29 +08:00
" Finish a group undo. " ,
" This function must be called once for each gimp-undo-push-group call that is made. " ,
1998-12-16 08:37:09 +08:00
" Spencer Kimball & Peter Mattis " ,
" Spencer Kimball & Peter Mattis " ,
1997-11-25 06:05:25 +08:00
" 1997 " ,
PDB_INTERNAL ,
1 ,
1999-03-28 14:55:29 +08:00
undo_push_group_end_inargs ,
1997-11-25 06:05:25 +08:00
0 ,
NULL ,
1999-03-28 14:55:29 +08:00
{ { undo_push_group_end_invoker } }
1997-11-25 06:05:25 +08:00
} ;