1
/* GIMP - The GNU Image Manipulation Program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
* gimppluginprocedure.h
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.
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.
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.
21
#ifndef __GIMP_PLUG_IN_PROCEDURE_H__
22
#define __GIMP_PLUG_IN_PROCEDURE_H__
24
#include <time.h> /* time_t */
26
#include <gdk-pixbuf/gdk-pixbuf.h>
28
#include "pdb/gimpprocedure.h"
31
#define GIMP_TYPE_PLUG_IN_PROCEDURE (gimp_plug_in_procedure_get_type ())
32
#define GIMP_PLUG_IN_PROCEDURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_PLUG_IN_PROCEDURE, GimpPlugInProcedure))
33
#define GIMP_PLUG_IN_PROCEDURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PLUG_IN_PROCEDURE, GimpPlugInProcedureClass))
34
#define GIMP_IS_PLUG_IN_PROCEDURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_PLUG_IN_PROCEDURE))
35
#define GIMP_IS_PLUG_IN_PROCEDURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PLUG_IN_PROCEDURE))
36
#define GIMP_PLUG_IN_PROCEDURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_PLUG_IN_PROCEDURE, GimpPlugInProcedureClass))
39
typedef struct _GimpPlugInProcedureClass GimpPlugInProcedureClass;
41
struct _GimpPlugInProcedure
43
GimpProcedure parent_instance;
52
GimpIconType icon_type;
53
gint icon_data_length;
56
GimpPlugInImageType image_types_val;
58
gboolean installed_during_init;
60
/* file proc specific members */
66
GSList *extensions_list;
67
GSList *prefixes_list;
72
struct _GimpPlugInProcedureClass
74
GimpProcedureClass parent_class;
76
/* virtual functions */
77
const gchar * (* get_progname) (const GimpPlugInProcedure *procedure);
80
void (* menu_path_added) (GimpPlugInProcedure *procedure,
81
const gchar *menu_path);
85
GType gimp_plug_in_procedure_get_type (void) G_GNUC_CONST;
87
GimpProcedure * gimp_plug_in_procedure_new (GimpPDBProcType proc_type,
90
GimpPlugInProcedure * gimp_plug_in_procedure_find (GSList *list,
91
const gchar *proc_name);
93
const gchar * gimp_plug_in_procedure_get_progname (const GimpPlugInProcedure *proc);
95
void gimp_plug_in_procedure_set_locale_domain (GimpPlugInProcedure *proc,
96
const gchar *locale_domain);
97
const gchar * gimp_plug_in_procedure_get_locale_domain (const GimpPlugInProcedure *proc);
99
void gimp_plug_in_procedure_set_help_domain (GimpPlugInProcedure *proc,
100
const gchar *help_domain);
101
const gchar * gimp_plug_in_procedure_get_help_domain (const GimpPlugInProcedure *proc);
103
gboolean gimp_plug_in_procedure_add_menu_path (GimpPlugInProcedure *proc,
104
const gchar *menu_path,
107
const gchar * gimp_plug_in_procedure_get_label (GimpPlugInProcedure *proc);
108
const gchar * gimp_plug_in_procedure_get_blurb (const GimpPlugInProcedure *proc);
110
void gimp_plug_in_procedure_set_icon (GimpPlugInProcedure *proc,
114
const gchar * gimp_plug_in_procedure_get_stock_id (const GimpPlugInProcedure *proc);
115
GdkPixbuf * gimp_plug_in_procedure_get_pixbuf (const GimpPlugInProcedure *proc);
117
gchar * gimp_plug_in_procedure_get_help_id (const GimpPlugInProcedure *proc);
119
gboolean gimp_plug_in_procedure_get_sensitive (const GimpPlugInProcedure *proc,
120
GimpImageType image_type);
122
void gimp_plug_in_procedure_set_image_types (GimpPlugInProcedure *proc,
123
const gchar *image_types);
124
void gimp_plug_in_procedure_set_file_proc (GimpPlugInProcedure *proc,
125
const gchar *extensions,
126
const gchar *prefixes,
127
const gchar *magics);
128
void gimp_plug_in_procedure_set_mime_type (GimpPlugInProcedure *proc,
129
const gchar *mime_ype);
130
void gimp_plug_in_procedure_set_thumb_loader(GimpPlugInProcedure *proc,
131
const gchar *thumbnailer);
134
#endif /* __GIMP_PLUG_IN_PROCEDURE_H__ */