home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / fileops.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-17  |  1.9 KB  |  58 lines

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; either version 2 of the License, or
  7.  * (at your option) any later version.
  8.  *
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  */
  18.  
  19. #ifndef __FILEOPS_H__
  20. #define __FILEOPS_H__
  21.  
  22. #ifdef G_OS_WIN32
  23. #include <process.h>        /* For _getpid() */
  24. #endif
  25.  
  26. #include "plug_in.h"
  27.  
  28.  
  29. void file_ops_pre_init               (void);
  30. void file_ops_post_init              (void);
  31.  
  32. void file_open_callback              (GtkWidget   *widget,
  33.                       gpointer     data);
  34.  
  35. void file_save_callback              (GtkWidget   *widget,
  36.                       gpointer     data);
  37. void file_save_as_callback           (GtkWidget   *widget,
  38.                       gpointer     data);
  39.  
  40. void file_revert_callback            (GtkWidget   *widget,
  41.                       gpointer     data);
  42.  
  43. void file_open_by_extension_callback (GtkWidget   *widget,
  44.                       gpointer     data);
  45. void file_save_by_extension_callback (GtkWidget   *widget,
  46.                       gpointer     data);
  47.  
  48. gint file_open                       (gchar       *filename,
  49.                       gchar       *raw_filename);
  50.  
  51. PlugInProcDef * file_proc_find       (GSList      *procs,
  52.                       gchar       *filename);
  53.  
  54. extern GSList *load_procs;
  55. extern GSList *save_procs;
  56.  
  57. #endif /* __FILEOPS_H__ */
  58.