mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 04:51:44 +00:00
bbc13c5199
2003-01-07 Michael Natterer <mitch@gimp.org> * libgimpwidgets/gimphelpui.[ch]: removed gimp_help_init() and gimp_help_free(). Added _gimp_help_init() instead. * libgimpwidgets/gimpwidgets.def: changed accordingly. * libgimpwidgets/gimpwidgets.c (gimp_widgets_init): call _gimp_help_init() so it doesn't need to be done in all plug-ins manually. * libgimp/gimpcompat.h: added gimp_help_init() and gimp_help_free() here as COMPAT_CRUFT. * app/gui/gui.c * plug-ins/FractalExplorer/Dialogs.c * plug-ins/Lighting/lighting_ui.c * plug-ins/MapObject/mapobject_ui.c * plug-ins/common/AlienMap.c * plug-ins/common/AlienMap2.c * plug-ins/common/CML_explorer.c * plug-ins/common/blur.c * plug-ins/common/curve_bend.c * plug-ins/common/gtm.c * plug-ins/common/illusion.c * plug-ins/common/jigsaw.c * plug-ins/common/plasma.c * plug-ins/common/polar.c * plug-ins/common/ps.c * plug-ins/common/randomize.c * plug-ins/common/sinus.c * plug-ins/common/snoise.c * plug-ins/common/sparkle.c * plug-ins/common/uniteditor.c * plug-ins/common/warp.c * plug-ins/common/wind.c * plug-ins/gap/gap_arr_dialog.c * plug-ins/gap/gap_mov_dialog.c * plug-ins/gap/gap_navigator_dialog.c * plug-ins/gdyntext/gdyntext_ui.c * plug-ins/gfig/gfig.c * plug-ins/gflare/gflare.c * plug-ins/gimpressionist/gimpressionist.c * plug-ins/maze/maze_face.c * plug-ins/print/gimp_main_window.c * plug-ins/sel2path/sel2path.c: removed the calls to gimp_help_init() and gimp_help_free(). Fixed bug #81017: * libgimpbase/gimpprotocol.[ch]: added "guint8 show_tool_tips" to the GPConfig message. Increased the protocol version number. * app/plug-in/plug-in.c: pass the value of gui_config->show_tool_tips. * libgimp/gimp.[ch]: added gimp_show_tool_tips() to get the value which was passed in the GPConfig message. * libgimp/gimpui.c (gimp_ui_init): disable the tooltips if show_tool_tips is FALSE. * plug-ins/MapObject/mapobject_main.[ch] * plug-ins/MapObject/mapobject_ui.c * plug-ins/common/jigsaw.c * plug-ins/gap/gap_navigator_dialog.c * plug-ins/gfig/gfig.c: removed all plug-in specific GUI for enabling/disabling tooltips.
224 lines
5.6 KiB
C
224 lines
5.6 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GIMP_PROTOCOL_H__
|
|
#define __GIMP_PROTOCOL_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
/* Increment every time the protocol changes
|
|
*/
|
|
#define GP_VERSION 0x000D
|
|
|
|
|
|
enum
|
|
{
|
|
GP_QUIT,
|
|
GP_CONFIG,
|
|
GP_TILE_REQ,
|
|
GP_TILE_ACK,
|
|
GP_TILE_DATA,
|
|
GP_PROC_RUN,
|
|
GP_PROC_RETURN,
|
|
GP_TEMP_PROC_RUN,
|
|
GP_TEMP_PROC_RETURN,
|
|
GP_PROC_INSTALL,
|
|
GP_PROC_UNINSTALL,
|
|
GP_EXTENSION_ACK,
|
|
GP_HAS_INIT
|
|
};
|
|
|
|
|
|
typedef struct _GPConfig GPConfig;
|
|
typedef struct _GPTileReq GPTileReq;
|
|
typedef struct _GPTileAck GPTileAck;
|
|
typedef struct _GPTileData GPTileData;
|
|
typedef struct _GPParam GPParam;
|
|
typedef struct _GPParamDef GPParamDef;
|
|
typedef struct _GPProcRun GPProcRun;
|
|
typedef struct _GPProcReturn GPProcReturn;
|
|
typedef struct _GPProcInstall GPProcInstall;
|
|
typedef struct _GPProcUninstall GPProcUninstall;
|
|
|
|
|
|
struct _GPConfig
|
|
{
|
|
guint32 version;
|
|
guint32 tile_width;
|
|
guint32 tile_height;
|
|
gint32 shm_ID;
|
|
gdouble gamma;
|
|
gint8 install_cmap;
|
|
gint8 show_tool_tips;
|
|
gint32 min_colors;
|
|
gint32 gdisp_ID;
|
|
};
|
|
|
|
struct _GPTileReq
|
|
{
|
|
gint32 drawable_ID;
|
|
guint32 tile_num;
|
|
guint32 shadow;
|
|
};
|
|
|
|
struct _GPTileData
|
|
{
|
|
gint32 drawable_ID;
|
|
guint32 tile_num;
|
|
guint32 shadow;
|
|
guint32 bpp;
|
|
guint32 width;
|
|
guint32 height;
|
|
guint32 use_shm;
|
|
guchar *data;
|
|
};
|
|
|
|
struct _GPParam
|
|
{
|
|
guint32 type;
|
|
|
|
union
|
|
{
|
|
gint32 d_int32;
|
|
gint16 d_int16;
|
|
gint8 d_int8;
|
|
gdouble d_float;
|
|
gchar *d_string;
|
|
gint32 *d_int32array;
|
|
gint16 *d_int16array;
|
|
gint8 *d_int8array;
|
|
gdouble *d_floatarray;
|
|
gchar **d_stringarray;
|
|
GimpRGB d_color;
|
|
struct
|
|
{
|
|
gint32 x;
|
|
gint32 y;
|
|
gint32 width;
|
|
gint32 height;
|
|
} d_region;
|
|
gint32 d_display;
|
|
gint32 d_image;
|
|
gint32 d_layer;
|
|
gint32 d_channel;
|
|
gint32 d_drawable;
|
|
gint32 d_selection;
|
|
gint32 d_boundary;
|
|
gint32 d_path;
|
|
struct
|
|
{
|
|
gchar *name;
|
|
guint32 flags;
|
|
guint32 size;
|
|
gpointer data;
|
|
} d_parasite;
|
|
gint32 d_status;
|
|
} data;
|
|
};
|
|
|
|
struct _GPParamDef
|
|
{
|
|
guint32 type;
|
|
gchar *name;
|
|
gchar *description;
|
|
};
|
|
|
|
struct _GPProcRun
|
|
{
|
|
gchar *name;
|
|
guint32 nparams;
|
|
GPParam *params;
|
|
};
|
|
|
|
struct _GPProcReturn
|
|
{
|
|
gchar *name;
|
|
guint32 nparams;
|
|
GPParam *params;
|
|
};
|
|
|
|
struct _GPProcInstall
|
|
{
|
|
gchar *name;
|
|
gchar *blurb;
|
|
gchar *help;
|
|
gchar *author;
|
|
gchar *copyright;
|
|
gchar *date;
|
|
gchar *menu_path;
|
|
gchar *image_types;
|
|
guint32 type;
|
|
guint32 nparams;
|
|
guint32 nreturn_vals;
|
|
GPParamDef *params;
|
|
GPParamDef *return_vals;
|
|
};
|
|
|
|
struct _GPProcUninstall
|
|
{
|
|
gchar *name;
|
|
};
|
|
|
|
|
|
void gp_init (void);
|
|
|
|
gboolean gp_quit_write (GIOChannel *channel,
|
|
gpointer user_data);
|
|
gboolean gp_config_write (GIOChannel *channel,
|
|
GPConfig *config,
|
|
gpointer user_data);
|
|
gboolean gp_tile_req_write (GIOChannel *channel,
|
|
GPTileReq *tile_req,
|
|
gpointer user_data);
|
|
gboolean gp_tile_ack_write (GIOChannel *channel,
|
|
gpointer user_data);
|
|
gboolean gp_tile_data_write (GIOChannel *channel,
|
|
GPTileData *tile_data,
|
|
gpointer user_data);
|
|
gboolean gp_proc_run_write (GIOChannel *channel,
|
|
GPProcRun *proc_run,
|
|
gpointer user_data);
|
|
gboolean gp_proc_return_write (GIOChannel *channel,
|
|
GPProcReturn *proc_return,
|
|
gpointer user_data);
|
|
gboolean gp_temp_proc_run_write (GIOChannel *channel,
|
|
GPProcRun *proc_run,
|
|
gpointer user_data);
|
|
gboolean gp_temp_proc_return_write (GIOChannel *channel,
|
|
GPProcReturn *proc_return,
|
|
gpointer user_data);
|
|
gboolean gp_proc_install_write (GIOChannel *channel,
|
|
GPProcInstall *proc_install,
|
|
gpointer user_data);
|
|
gboolean gp_proc_uninstall_write (GIOChannel *channel,
|
|
GPProcUninstall *proc_uninstall,
|
|
gpointer user_data);
|
|
gboolean gp_extension_ack_write (GIOChannel *channel,
|
|
gpointer user_data);
|
|
gboolean gp_has_init_write (GIOChannel *channel,
|
|
gpointer user_data);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_PROTOCOL_H__ */
|