2006-01-12 08:50:44 +08:00
|
|
|
/* parasitelist.h: Copyright 1998 Jay Cox <jaycox@gimp.org>
|
1998-10-30 18:21:33 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1998-10-30 18:21:33 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1998-10-30 18:21:33 +08:00
|
|
|
* (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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1998-10-30 18:21:33 +08:00
|
|
|
*/
|
2000-09-29 20:00:00 +08:00
|
|
|
|
2001-07-05 06:59:25 +08:00
|
|
|
#ifndef __GIMP_PARASITE_LIST_H__
|
|
|
|
#define __GIMP_PARASITE_LIST_H__
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2000-09-29 20:00:00 +08:00
|
|
|
|
removed the gimp_busy boolean, check whether user_installation is needed
2001-07-10 Michael Natterer <mitch@gimp.org>
* app/app_procs.[ch]: removed the gimp_busy boolean, check whether
user_installation is needed here, not in user_install.c, parse
gtkrc an friends only if(!no_interface), create the Gimp object
before parsing gimp's rc files an pas it to the parse functions,
many other cleanups.
* app/appenums.h: added MessageHandlerType and StackTraceMode.
* app/appenv.h: removed MessageHandlerType, declare all global
variables from main.c (no more hidden global stuff please).
* app/errors.[ch]: added the fatal message func here (from main.c),
removed the StackTraceMode enum.
* app/gimprc.[ch]: renamed functions to gimprc_*(), pass a Gimp
pointer to some functions.
* app/gimpunit.c
* app/unitrc.h: ok, this is ugly: renamed all functions to
_gimp_unit_*() and made them public. The unit list is part
of the Gimp object now, so pass a Gimp* to all functions.
* app/libgimp_glue.[ch]: added EEKy wrappers for all gimp_unit_*()
functions which are used by widgets.
* app/main.c: cleaned up the global variables, removed the fatal
message handler, call app_init() directly, not via the
user_install stuff, misc. cleanups.
* app/user_install.[ch]: removed the check if user_installation is
needed (done by app_procs.c now).
* app/core/gimp.[ch]: added the user_unit list and the "busy"
boolean. Moved gimp_[set|unset]_busy() here. Added
gimp_initialize() which is called after unitrc and gimprc are
parsed.
* app/batch.c
* app/colormaps.c
* app/devices.c
* app/disp_callbacks.c
* app/gdisplay_ops.c
* app/gimphelp.c
* app/module_db.c
* app/nav_window.c
* app/plug_in.c
* app/core/gimpcontext.c
* app/core/gimpdatafiles.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage.c
* app/core/gimpparasite.c
* app/core/gimpparasitelist.h
* app/gui/file-open-dialog.c
* app/gui/gui.[ch]
* app/gui/info-dialog.c
* app/gui/info-window.c
* app/gui/preferences-dialog.c
* app/gui/session.c
* app/gui/tips-dialog.c
* app/gui/toolbox.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimptransformtool.c
* app/tools/tool_manager.c
* app/widgets/gimpcolorpanel.c
* app/widgets/gimpcursor.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* app/xcf/xcf.c
* tools/pdbgen/Makefile.am
* tools/pdbgen/app.pl
* tools/pdbgen/enums.pl
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/message.pdb
* tools/pdbgen/pdb/unit.pdb
* app/pdb/image_cmds.c
* app/pdb/message_cmds.c
* app/pdb/unit_cmds.c: changed accordingly, minor cleanups.
2001-07-11 03:16:16 +08:00
|
|
|
#include "gimpobject.h"
|
2000-05-27 06:28:40 +08:00
|
|
|
|
|
|
|
|
2001-08-11 22:39:19 +08:00
|
|
|
#define GIMP_TYPE_PARASITE_LIST (gimp_parasite_list_get_type ())
|
|
|
|
#define GIMP_PARASITE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_PARASITE_LIST, GimpParasiteList))
|
|
|
|
#define GIMP_PARASITE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PARASITE_LIST, GimpParasiteListClass))
|
|
|
|
#define GIMP_IS_PARASITE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_PARASITE_LIST))
|
|
|
|
#define GIMP_IS_PARASITE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PARASITE_LIST))
|
|
|
|
#define GIMP_PARASITE_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_PARASITE_LIST, GimpParasiteListClass))
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2001-01-10 08:36:54 +08:00
|
|
|
|
2001-07-05 06:59:25 +08:00
|
|
|
typedef struct _GimpParasiteListClass GimpParasiteListClass;
|
2001-01-10 08:36:54 +08:00
|
|
|
|
2001-07-05 06:59:25 +08:00
|
|
|
struct _GimpParasiteList
|
2000-12-28 10:01:16 +08:00
|
|
|
{
|
|
|
|
GimpObject object;
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2000-12-28 10:01:16 +08:00
|
|
|
GHashTable *table;
|
|
|
|
};
|
|
|
|
|
2001-07-05 06:59:25 +08:00
|
|
|
struct _GimpParasiteListClass
|
2000-12-28 10:01:16 +08:00
|
|
|
{
|
|
|
|
GimpObjectClass parent_class;
|
|
|
|
|
2001-07-05 06:59:25 +08:00
|
|
|
void (* add) (GimpParasiteList *list,
|
2006-04-12 20:49:29 +08:00
|
|
|
GimpParasite *parasite);
|
2001-07-05 06:59:25 +08:00
|
|
|
void (* remove) (GimpParasiteList *list,
|
2006-04-12 20:49:29 +08:00
|
|
|
GimpParasite *parasite);
|
2001-01-10 08:36:54 +08:00
|
|
|
};
|
1998-10-30 18:21:33 +08:00
|
|
|
|
|
|
|
|
2006-04-02 23:37:25 +08:00
|
|
|
GType gimp_parasite_list_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GimpParasiteList * gimp_parasite_list_new (void);
|
|
|
|
GimpParasiteList * gimp_parasite_list_copy (const GimpParasiteList *list);
|
|
|
|
void gimp_parasite_list_add (GimpParasiteList *list,
|
|
|
|
const GimpParasite *parasite);
|
|
|
|
void gimp_parasite_list_remove (GimpParasiteList *list,
|
|
|
|
const gchar *name);
|
|
|
|
gint gimp_parasite_list_length (GimpParasiteList *list);
|
|
|
|
gint gimp_parasite_list_persistent_length (GimpParasiteList *list);
|
|
|
|
void gimp_parasite_list_foreach (GimpParasiteList *list,
|
|
|
|
GHFunc function,
|
|
|
|
gpointer user_data);
|
|
|
|
const GimpParasite * gimp_parasite_list_find (GimpParasiteList *list,
|
|
|
|
const gchar *name);
|
2000-12-28 10:01:16 +08:00
|
|
|
|
2000-05-27 06:28:40 +08:00
|
|
|
|
2001-07-05 06:59:25 +08:00
|
|
|
#endif /* __GIMP_PARASITE_LIST_H__ */
|