~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to app/plug-in/plug-in-proc-def.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* The GIMP -- an image manipulation program
 
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 
3
 *
 
4
 * plug-in-proc-def.h
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef __PLUG_IN_PROC_DEF_H__
 
22
#define __PLUG_IN_PROC_DEF_H__
 
23
 
 
24
#include <time.h>      /* time_t */
 
25
 
 
26
#include <gdk-pixbuf/gdk-pixbuf.h>
 
27
 
 
28
#include "pdb/procedural_db.h"  /* ProcRecord */
 
29
 
 
30
 
 
31
struct _PlugInProcDef
 
32
{
 
33
  /*  common members  */
 
34
  gchar           *prog;
 
35
  gchar           *menu_label;
 
36
  GList           *menu_paths;
 
37
  GimpIconType     icon_type;
 
38
  gint             icon_data_length;
 
39
  gchar           *icon_data;
 
40
  gchar           *image_types;
 
41
  PlugInImageType  image_types_val;
 
42
  time_t           mtime;
 
43
  gboolean         installed_during_init;
 
44
  ProcRecord       db_info;
 
45
 
 
46
  /*  file proc specific members  */
 
47
  gchar           *extensions;
 
48
  gchar           *prefixes;
 
49
  gchar           *magics;
 
50
  gchar           *mime_type;
 
51
  GSList          *extensions_list;
 
52
  GSList          *prefixes_list;
 
53
  GSList          *magics_list;
 
54
  gchar           *thumb_loader;
 
55
};
 
56
 
 
57
 
 
58
PlugInProcDef    * plug_in_proc_def_new          (void);
 
59
void               plug_in_proc_def_free         (PlugInProcDef       *proc_def);
 
60
 
 
61
const ProcRecord * plug_in_proc_def_get_proc     (const PlugInProcDef *proc_def);
 
62
const gchar      * plug_in_proc_def_get_progname (const PlugInProcDef *proc_def);
 
63
gchar            * plug_in_proc_def_get_label    (const PlugInProcDef *proc_def,
 
64
                                                  const gchar         *locale_domain);
 
65
const gchar      * plug_in_proc_def_get_stock_id (const PlugInProcDef *proc_def);
 
66
GdkPixbuf        * plug_in_proc_def_get_pixbuf   (const PlugInProcDef *proc_def);
 
67
gchar            * plug_in_proc_def_get_help_id  (const PlugInProcDef *proc_def,
 
68
                                                  const gchar         *help_domain);
 
69
gboolean          plug_in_proc_def_get_sensitive (const PlugInProcDef *proc_def,
 
70
                                                  GimpImageType        image_type);
 
71
 
 
72
 
 
73
#endif /* __PLUG_IN_PROC_DEF_H__ */