gimp/app/internal_procs.c

307 lines
12 KiB
C
Raw Normal View History

1997-11-25 06:05:25 +08:00
/* The GIMP -- an image manipulation program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (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
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1997-11-25 06:05:25 +08:00
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "appenv.h"
#include "app_procs.h"
1997-11-25 06:05:25 +08:00
#include "gimage_cmds.h"
#include "gimage_mask_cmds.h"
#include "layer_cmds.h"
#include "internal_procs.h"
#include "procedural_db.h"
#include "libgimp/gimpintl.h"
1997-11-25 06:05:25 +08:00
gave parasite undo a MISC_UNDO class for now so it compiles * app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now so it compiles * app/tools_cmds.c: fix crop invoker to give correct args to crop_image * app/color_cmds.c: s/GRAY/GRAY_LUT/g; * app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs, brush_select_dialog, s/active_dialogs/brush_active_dialogs/ * app/gimage_cmds.[ch] * app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate function from gimage_cmds to channel_ops, export offset and duplicate * app/gimpbrushlist.[ch]: removed PDB procs * app/gradient.[ch]: removed PDB procs, * app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients, grad_active_dialogs, gradient_select_dialog * app/gradient_select.c: removed PDB procs, s/active_dialogs/grad_active_dialogs/ * app/patterns.[ch]: removed PDB procs * app/pattern_select.[ch]: removed PDB procs, s/active_dialogs/pattern_active_dialogs/ * app/procedural_db.c: removed PDB procs and supporting functions * app/procedrual_db.h: fiddled with enums * app/channel_cmds.[ch] * app/drawable_cmds.[ch] * app/parasite_cmds.[ch]: pdbgenned now, removed header files * app/gimpparasite.c: minor cleanup * app/internal_procs.c: use pdbgen stuff * app/tools_cmds.c * app/text_tool_cmds.c: updated from pdbgen * app/brushes_cmds.c * app/brush_select_cmds.c * app/gradient_cmds.c * app/gradient_select_cmds.c * app/patterns_cmds.c * app/pattern_select_cmds.c * app/procedural_db_cmds.c: new pdbgen files * app/Makefile.am: file shuffle (see above) -Yosh
1999-04-24 04:54:02 +08:00
void register_gdisplay_procs (void);
void register_edit_procs (void);
void register_floating_sel_procs (void);
void register_undo_procs (void);
void register_convert_procs (void);
void register_paths_procs (void);
void register_palette_procs (void);
void register_unit_procs (void);
void register_text_tool_procs (void);
void register_color_procs (void);
void register_misc_procs (void);
void register_tools_procs (void);
void register_gimprc_procs (void);
void register_channel_procs (void);
void register_channel_ops_procs (void);
void register_gradient_procs (void);
void register_gradient_select_procs (void);
void register_brushes_procs (void);
void register_brush_select_procs (void);
void register_patterns_procs (void);
void register_pattern_select_procs (void);
void register_parasite_procs (void);
void register_drawable_procs (void);
void register_procedural_db_procs (void);
1997-11-25 06:05:25 +08:00
void
gave parasite undo a MISC_UNDO class for now so it compiles * app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now so it compiles * app/tools_cmds.c: fix crop invoker to give correct args to crop_image * app/color_cmds.c: s/GRAY/GRAY_LUT/g; * app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs, brush_select_dialog, s/active_dialogs/brush_active_dialogs/ * app/gimage_cmds.[ch] * app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate function from gimage_cmds to channel_ops, export offset and duplicate * app/gimpbrushlist.[ch]: removed PDB procs * app/gradient.[ch]: removed PDB procs, * app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients, grad_active_dialogs, gradient_select_dialog * app/gradient_select.c: removed PDB procs, s/active_dialogs/grad_active_dialogs/ * app/patterns.[ch]: removed PDB procs * app/pattern_select.[ch]: removed PDB procs, s/active_dialogs/pattern_active_dialogs/ * app/procedural_db.c: removed PDB procs and supporting functions * app/procedrual_db.h: fiddled with enums * app/channel_cmds.[ch] * app/drawable_cmds.[ch] * app/parasite_cmds.[ch]: pdbgenned now, removed header files * app/gimpparasite.c: minor cleanup * app/internal_procs.c: use pdbgen stuff * app/tools_cmds.c * app/text_tool_cmds.c: updated from pdbgen * app/brushes_cmds.c * app/brush_select_cmds.c * app/gradient_cmds.c * app/gradient_select_cmds.c * app/patterns_cmds.c * app/pattern_select_cmds.c * app/procedural_db_cmds.c: new pdbgen files * app/Makefile.am: file shuffle (see above) -Yosh
1999-04-24 04:54:02 +08:00
internal_procs_init (void)
1997-11-25 06:05:25 +08:00
{
gfloat pcount = 0;
/* grep -c procedural_db_register internal_procs.c */
gfloat total_pcount = 264;
app_init_update_status(_("Internal Procedures"), _("Tool procedures"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Tool procedures */
register_tools_procs ();
pcount += 21;
register_text_tool_procs ();
pcount += 6;
app_init_update_status(NULL, _("GDisplay procedures"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* GDisplay procedures */
register_gdisplay_procs ();
pcount += 3;
app_init_update_status(NULL, _("Edit procedures"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Edit procedures */
register_edit_procs ();
pcount += 6;
app_init_update_status(NULL, _("GImage procedures"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* GImage procedures */
procedural_db_register (&gimage_list_images_proc); pcount++;
procedural_db_register (&gimage_new_proc); pcount++;
procedural_db_register (&gimage_resize_proc); pcount++;
procedural_db_register (&gimage_scale_proc); pcount++;
procedural_db_register (&gimage_delete_proc); pcount++;
procedural_db_register (&gimage_free_shadow_proc); pcount++;
procedural_db_register (&gimage_get_layers_proc); pcount++;
procedural_db_register (&gimage_get_channels_proc); pcount++;
procedural_db_register (&gimage_get_active_layer_proc); pcount++;
procedural_db_register (&gimage_get_active_channel_proc); pcount++;
procedural_db_register (&gimage_get_selection_proc); pcount++;
procedural_db_register (&gimage_get_component_active_proc); pcount++;
procedural_db_register (&gimage_get_component_visible_proc); pcount++;
procedural_db_register (&gimage_set_active_layer_proc); pcount++;
procedural_db_register (&gimage_set_active_channel_proc); pcount++;
procedural_db_register (&gimage_unset_active_channel_proc); pcount++;
procedural_db_register (&gimage_set_component_active_proc); pcount++;
procedural_db_register (&gimage_set_component_visible_proc); pcount++;
procedural_db_register (&gimage_pick_correlate_layer_proc); pcount++;
procedural_db_register (&gimage_raise_layer_proc); pcount++;
procedural_db_register (&gimage_lower_layer_proc); pcount++;
procedural_db_register (&gimage_raise_layer_to_top_proc); pcount++;
procedural_db_register (&gimage_lower_layer_to_bottom_proc); pcount++;
procedural_db_register (&gimage_merge_visible_layers_proc); pcount++;
procedural_db_register (&gimage_merge_down_proc); pcount++;
procedural_db_register (&gimage_flatten_proc); pcount++;
procedural_db_register (&gimage_add_layer_proc); pcount++;
procedural_db_register (&gimage_remove_layer_proc); pcount++;
procedural_db_register (&gimage_add_layer_mask_proc); pcount++;
procedural_db_register (&gimage_remove_layer_mask_proc); pcount++;
procedural_db_register (&gimage_raise_channel_proc); pcount++;
procedural_db_register (&gimage_lower_channel_proc); pcount++;
procedural_db_register (&gimage_add_channel_proc); pcount++;
procedural_db_register (&gimage_remove_channel_proc); pcount++;
procedural_db_register (&gimage_active_drawable_proc); pcount++;
procedural_db_register (&gimage_base_type_proc); pcount++;
procedural_db_register (&gimage_get_filename_proc); pcount++;
procedural_db_register (&gimage_set_filename_proc); pcount++;
procedural_db_register (&gimage_get_resolution_proc); pcount++;
procedural_db_register (&gimage_set_resolution_proc); pcount++;
This implements the rest of the unit system (unitrc loading and saving and 1999-03-16 Michael Natterer <mitschel@cs.tu-berlin.de> This implements the rest of the unit system (unitrc loading and saving and full PDB interface) * Makefile.am * gimp.1 * user_install * user_install.bat * unitrc: new file (default unit database) and some documentation * app/Makefile.am * app/gimpunit.c * app/gimpunit_cmds.h * app/unitrc.h: new files enabling the unit database and PDB access to the unit system * app/app_procs.c: parse and save unitrc * app/gimprc.[ch]: enable unit parsing. New function init_parse_buffers() to enable unitrc to be loaded before gimprc * app/gimage_cmds.[ch]: new PDB procedures which set/return an image's unit * app/install.c: mention unitrc installation * app/xcf.c: new xcf property for user defined units. An image's unit is saved as either an integer ID (built in units) or as a full unit definition without any ID * libgimp/Makefile.am: moved gimpunit.o from libgimpi.a to libgimp.a * libgimp/gimp.h * libgimp/gimpimage.c: get/set an image's unit with PDB calls * libgimp/gimpunit.h: this file is now the header for both app/gimpunit.c and libgimp/gimpunit.c * libgimp/gimpunit.c: does the unit calls as PDB calls now * libgimp/gimpunitmenu.[ch]: enable user unit functionality and a unit selection dialog * libgimp/gimpsizeentry.c: disble hilighting on focus_in_event and minor bugfixes * plug-ins/tiff/tiff.c: set image unit to "mm" if tiff unit is "cm", save "cm" if image unit is metric
1999-03-17 04:14:07 +08:00
procedural_db_register (&gimage_get_unit_proc); pcount++;
procedural_db_register (&gimage_set_unit_proc); pcount++;
procedural_db_register (&gimage_width_proc); pcount++;
procedural_db_register (&gimage_height_proc); pcount++;
procedural_db_register (&gimage_get_cmap_proc); pcount++;
procedural_db_register (&gimage_set_cmap_proc); pcount++;
procedural_db_register (&gimage_enable_undo_proc); pcount++;
procedural_db_register (&gimage_disable_undo_proc); pcount++;
procedural_db_register (&gimage_clean_all_proc); pcount++;
procedural_db_register (&gimage_floating_sel_proc); pcount++;
procedural_db_register (&gimage_floating_sel_attached_to_proc); pcount++;
procedural_db_register (&gimp_image_add_hguide_proc); pcount++;
procedural_db_register (&gimp_image_add_vguide_proc); pcount++;
procedural_db_register (&gimp_image_delete_guide_proc); pcount++;
procedural_db_register (&gimp_image_findnext_guide_proc); pcount++;
procedural_db_register (&gimp_image_get_guide_orientation_proc); pcount++;
procedural_db_register (&gimp_image_get_guide_position_proc); pcount++;
procedural_db_register (&gimp_image_find_parasite_proc); pcount++;
1999-02-14 02:19:44 +08:00
procedural_db_register (&gimp_image_parasite_list_proc); pcount++;
procedural_db_register (&gimp_image_attach_parasite_proc); pcount++;
procedural_db_register (&gimp_image_detach_parasite_proc); pcount++;
procedural_db_register (&gimp_image_get_layer_by_tattoo_proc); pcount++;
procedural_db_register (&gimp_image_get_channel_by_tattoo_proc); pcount++;
app_init_update_status(NULL, _("GImage mask procedures"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* GImage mask procedures */
procedural_db_register (&gimage_mask_bounds_proc); pcount++;
procedural_db_register (&gimage_mask_value_proc); pcount++;
procedural_db_register (&gimage_mask_is_empty_proc); pcount++;
procedural_db_register (&gimage_mask_translate_proc); pcount++;
procedural_db_register (&gimage_mask_float_proc); pcount++;
procedural_db_register (&gimage_mask_clear_proc); pcount++;
procedural_db_register (&gimage_mask_invert_proc); pcount++;
procedural_db_register (&gimage_mask_sharpen_proc); pcount++;
procedural_db_register (&gimage_mask_all_proc); pcount++;
procedural_db_register (&gimage_mask_none_proc); pcount++;
procedural_db_register (&gimage_mask_feather_proc); pcount++;
procedural_db_register (&gimage_mask_border_proc); pcount++;
procedural_db_register (&gimage_mask_grow_proc); pcount++;
procedural_db_register (&gimage_mask_shrink_proc); pcount++;
procedural_db_register (&gimage_mask_layer_alpha_proc); pcount++;
procedural_db_register (&gimage_mask_load_proc); pcount++;
procedural_db_register (&gimage_mask_save_proc); pcount++;
app_init_update_status(NULL, _("Layer procedures"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Layer procedures */
procedural_db_register (&layer_new_proc); pcount++;
procedural_db_register (&layer_copy_proc); pcount++;
procedural_db_register (&layer_create_mask_proc); pcount++;
procedural_db_register (&layer_scale_proc); pcount++;
procedural_db_register (&layer_resize_proc); pcount++;
procedural_db_register (&layer_delete_proc); pcount++;
procedural_db_register (&layer_translate_proc); pcount++;
procedural_db_register (&layer_add_alpha_proc); pcount++;
procedural_db_register (&layer_get_name_proc); pcount++;
procedural_db_register (&layer_set_name_proc); pcount++;
procedural_db_register (&layer_get_visible_proc); pcount++;
procedural_db_register (&layer_set_visible_proc); pcount++;
procedural_db_register (&layer_get_preserve_trans_proc); pcount++;
procedural_db_register (&layer_set_preserve_trans_proc); pcount++;
procedural_db_register (&layer_get_apply_mask_proc); pcount++;
procedural_db_register (&layer_set_apply_mask_proc); pcount++;
procedural_db_register (&layer_get_show_mask_proc); pcount++;
procedural_db_register (&layer_set_show_mask_proc); pcount++;
procedural_db_register (&layer_get_edit_mask_proc); pcount++;
procedural_db_register (&layer_set_edit_mask_proc); pcount++;
procedural_db_register (&layer_get_opacity_proc); pcount++;
procedural_db_register (&layer_set_opacity_proc); pcount++;
procedural_db_register (&layer_get_mode_proc); pcount++;
procedural_db_register (&layer_set_mode_proc); pcount++;
procedural_db_register (&layer_set_offsets_proc); pcount++;
procedural_db_register (&layer_mask_proc); pcount++;
procedural_db_register (&layer_is_floating_sel_proc); pcount++;
Modified Files: ChangeLog app/Makefile.am app/channel.c app/channel.h Modified Files: ChangeLog app/Makefile.am app/channel.c app/channel.h app/channel_cmds.c app/channel_cmds.h app/drawable_cmds.c app/gimage_cmds.c app/gimpdrawable.c app/gimpdrawable.h app/gimpdrawableP.h app/gimpimage.c app/gimpimage.h app/gimpimageP.h app/internal_procs.c app/layer.c app/layer.h app/layer_cmds.c app/layer_cmds.h app/parasite_cmds.c app/perspective_tool.c app/plug_in.c app/procedural_db.c app/rotate_tool.c app/scale_tool.c app/shear_tool.c app/transform_core.c app/transform_core.h docs/parasites.txt libgimp/Makefile.am libgimp/gimp.c libgimp/gimp.h libgimp/gimpdrawable.c libgimp/gimpimage.c libgimp/gimpprotocol.c libgimp/gimpprotocol.h plug-ins/gif/gif.c plug-ins/script-fu/script-fu.c plug-ins/tiff/tiff.c Added Files: libgimp/gimpmatrix.c libgimp/gimpmatrix.h libgimp/parasite.c libgimp/parasite.h libgimp/parasiteF.h libgimp/parasiteP.h Removed Files: app/parasite.c app/parasite.h app/parasiteF.h app/parasiteP.h libgimp/gimpparasite.c libgimp/gimpparasite.h Tue Oct 13 19:24:03 1998 Jay Cox (jaycox@earthlink.net) * app/parasite.c * app/parasite.h * app/parasiteF.h * app/parasiteP.h : use a single name field instead of seperate creator/type fields. moved to libgimp/parasite* * libgimp/Makefile.am * libgimp/gimp.c * libgimp/gimp.h * libgimp/gimpdrawable.c * libgimp/gimpimage.c * libgimp/gimpprotocol.c * libgimp/gimpprotocol.h * app/Makefile.am * app/channel.c * app/channel.h * app/channel_cmds.c * app/channel_cmds.h * app/drawable_cmds.c * app/gimage_cmds.c * app/gimpdrawable.c * app/gimpdrawable.h * app/gimpdrawableP.h * app/gimpimage.c * app/gimpimage.h * app/gimpimageP.h * app/internal_procs.c * app/layer.c * app/layer.h * app/layer_cmds.c * app/layer_cmds.h * app/parasite_cmds.c * app/plug_in.c * app/procedural_db.c: Add tattoos to layers and drawables. Use new style parasites. * libgimp/gimpmatrix.c * libgimp/gimpmatrix.h: new files for matrix math. * app/perspective_tool.c * app/rotate_tool.c * app/scale_tool.c * app/shear_tool.c * app/transform_core.c * app/transform_core.h: use GimpMatrix instead of the old matrix code from transform_core. * ligimp/gimpparasite*: removed. now useing the same source for plug-ins and the core. * plug-ins/script-fu/script-fu.c * plug-ins/tiff/tiff.c * plug-ins/gif/gif.c: updated to use new style parasites.
1998-10-14 10:54:02 +08:00
procedural_db_register (&layer_get_tattoo_proc); pcount++;
procedural_db_register (&layer_get_linked_proc); pcount++;
procedural_db_register (&layer_set_linked_proc); pcount++;
app_init_update_status(NULL, _("Channel procedures"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Channel procedures */
gave parasite undo a MISC_UNDO class for now so it compiles * app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now so it compiles * app/tools_cmds.c: fix crop invoker to give correct args to crop_image * app/color_cmds.c: s/GRAY/GRAY_LUT/g; * app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs, brush_select_dialog, s/active_dialogs/brush_active_dialogs/ * app/gimage_cmds.[ch] * app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate function from gimage_cmds to channel_ops, export offset and duplicate * app/gimpbrushlist.[ch]: removed PDB procs * app/gradient.[ch]: removed PDB procs, * app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients, grad_active_dialogs, gradient_select_dialog * app/gradient_select.c: removed PDB procs, s/active_dialogs/grad_active_dialogs/ * app/patterns.[ch]: removed PDB procs * app/pattern_select.[ch]: removed PDB procs, s/active_dialogs/pattern_active_dialogs/ * app/procedural_db.c: removed PDB procs and supporting functions * app/procedrual_db.h: fiddled with enums * app/channel_cmds.[ch] * app/drawable_cmds.[ch] * app/parasite_cmds.[ch]: pdbgenned now, removed header files * app/gimpparasite.c: minor cleanup * app/internal_procs.c: use pdbgen stuff * app/tools_cmds.c * app/text_tool_cmds.c: updated from pdbgen * app/brushes_cmds.c * app/brush_select_cmds.c * app/gradient_cmds.c * app/gradient_select_cmds.c * app/patterns_cmds.c * app/pattern_select_cmds.c * app/procedural_db_cmds.c: new pdbgen files * app/Makefile.am: file shuffle (see above) -Yosh
1999-04-24 04:54:02 +08:00
register_channel_procs ();
pcount += 14;
app_init_update_status(NULL, _("Drawable procedures"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Drawable procedures */
gave parasite undo a MISC_UNDO class for now so it compiles * app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now so it compiles * app/tools_cmds.c: fix crop invoker to give correct args to crop_image * app/color_cmds.c: s/GRAY/GRAY_LUT/g; * app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs, brush_select_dialog, s/active_dialogs/brush_active_dialogs/ * app/gimage_cmds.[ch] * app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate function from gimage_cmds to channel_ops, export offset and duplicate * app/gimpbrushlist.[ch]: removed PDB procs * app/gradient.[ch]: removed PDB procs, * app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients, grad_active_dialogs, gradient_select_dialog * app/gradient_select.c: removed PDB procs, s/active_dialogs/grad_active_dialogs/ * app/patterns.[ch]: removed PDB procs * app/pattern_select.[ch]: removed PDB procs, s/active_dialogs/pattern_active_dialogs/ * app/procedural_db.c: removed PDB procs and supporting functions * app/procedrual_db.h: fiddled with enums * app/channel_cmds.[ch] * app/drawable_cmds.[ch] * app/parasite_cmds.[ch]: pdbgenned now, removed header files * app/gimpparasite.c: minor cleanup * app/internal_procs.c: use pdbgen stuff * app/tools_cmds.c * app/text_tool_cmds.c: updated from pdbgen * app/brushes_cmds.c * app/brush_select_cmds.c * app/gradient_cmds.c * app/gradient_select_cmds.c * app/patterns_cmds.c * app/pattern_select_cmds.c * app/procedural_db_cmds.c: new pdbgen files * app/Makefile.am: file shuffle (see above) -Yosh
1999-04-24 04:54:02 +08:00
register_drawable_procs ();
pcount += 25;
app_init_update_status(NULL, _("Floating selections"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Floating Selections */
register_floating_sel_procs ();
pcount += 6;
app_init_update_status(NULL, _("Undo"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Undo */
register_undo_procs ();
pcount += 2;
app_init_update_status(NULL, _("Palette"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Palette */
register_palette_procs ();
pcount += 7;
app_init_update_status(NULL, _("Interface procedures"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Interface procs */
gave parasite undo a MISC_UNDO class for now so it compiles * app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now so it compiles * app/tools_cmds.c: fix crop invoker to give correct args to crop_image * app/color_cmds.c: s/GRAY/GRAY_LUT/g; * app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs, brush_select_dialog, s/active_dialogs/brush_active_dialogs/ * app/gimage_cmds.[ch] * app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate function from gimage_cmds to channel_ops, export offset and duplicate * app/gimpbrushlist.[ch]: removed PDB procs * app/gradient.[ch]: removed PDB procs, * app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients, grad_active_dialogs, gradient_select_dialog * app/gradient_select.c: removed PDB procs, s/active_dialogs/grad_active_dialogs/ * app/patterns.[ch]: removed PDB procs * app/pattern_select.[ch]: removed PDB procs, s/active_dialogs/pattern_active_dialogs/ * app/procedural_db.c: removed PDB procs and supporting functions * app/procedrual_db.h: fiddled with enums * app/channel_cmds.[ch] * app/drawable_cmds.[ch] * app/parasite_cmds.[ch]: pdbgenned now, removed header files * app/gimpparasite.c: minor cleanup * app/internal_procs.c: use pdbgen stuff * app/tools_cmds.c * app/text_tool_cmds.c: updated from pdbgen * app/brushes_cmds.c * app/brush_select_cmds.c * app/gradient_cmds.c * app/gradient_select_cmds.c * app/patterns_cmds.c * app/pattern_select_cmds.c * app/procedural_db_cmds.c: new pdbgen files * app/Makefile.am: file shuffle (see above) -Yosh
1999-04-24 04:54:02 +08:00
register_brushes_procs ();
register_brush_select_procs ();
register_patterns_procs ();
register_pattern_select_procs ();
pcount += 20;
register_gradient_procs ();
register_gradient_select_procs ();
pcount += 9;
app_init_update_status(NULL, _("Image procedures"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
register_color_procs ();
pcount += 12;
register_convert_procs ();
pcount += 4;
app_init_update_status(NULL, _("Channel ops"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Channel Ops procedures */
gave parasite undo a MISC_UNDO class for now so it compiles * app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now so it compiles * app/tools_cmds.c: fix crop invoker to give correct args to crop_image * app/color_cmds.c: s/GRAY/GRAY_LUT/g; * app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs, brush_select_dialog, s/active_dialogs/brush_active_dialogs/ * app/gimage_cmds.[ch] * app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate function from gimage_cmds to channel_ops, export offset and duplicate * app/gimpbrushlist.[ch]: removed PDB procs * app/gradient.[ch]: removed PDB procs, * app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients, grad_active_dialogs, gradient_select_dialog * app/gradient_select.c: removed PDB procs, s/active_dialogs/grad_active_dialogs/ * app/patterns.[ch]: removed PDB procs * app/pattern_select.[ch]: removed PDB procs, s/active_dialogs/pattern_active_dialogs/ * app/procedural_db.c: removed PDB procs and supporting functions * app/procedrual_db.h: fiddled with enums * app/channel_cmds.[ch] * app/drawable_cmds.[ch] * app/parasite_cmds.[ch]: pdbgenned now, removed header files * app/gimpparasite.c: minor cleanup * app/internal_procs.c: use pdbgen stuff * app/tools_cmds.c * app/text_tool_cmds.c: updated from pdbgen * app/brushes_cmds.c * app/brush_select_cmds.c * app/gradient_cmds.c * app/gradient_select_cmds.c * app/patterns_cmds.c * app/pattern_select_cmds.c * app/procedural_db_cmds.c: new pdbgen files * app/Makefile.am: file shuffle (see above) -Yosh
1999-04-24 04:54:02 +08:00
register_channel_ops_procs ();
pcount += 2;
1997-11-25 06:05:25 +08:00
app_init_update_status(NULL, _("gimprc ops"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
/* Gimprc procedures */
register_gimprc_procs ();
pcount += 2;
app_init_update_status(NULL, _("parasites"),
pcount/total_pcount);
/* parasite procedures */
gave parasite undo a MISC_UNDO class for now so it compiles * app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now so it compiles * app/tools_cmds.c: fix crop invoker to give correct args to crop_image * app/color_cmds.c: s/GRAY/GRAY_LUT/g; * app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs, brush_select_dialog, s/active_dialogs/brush_active_dialogs/ * app/gimage_cmds.[ch] * app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate function from gimage_cmds to channel_ops, export offset and duplicate * app/gimpbrushlist.[ch]: removed PDB procs * app/gradient.[ch]: removed PDB procs, * app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients, grad_active_dialogs, gradient_select_dialog * app/gradient_select.c: removed PDB procs, s/active_dialogs/grad_active_dialogs/ * app/patterns.[ch]: removed PDB procs * app/pattern_select.[ch]: removed PDB procs, s/active_dialogs/pattern_active_dialogs/ * app/procedural_db.c: removed PDB procs and supporting functions * app/procedrual_db.h: fiddled with enums * app/channel_cmds.[ch] * app/drawable_cmds.[ch] * app/parasite_cmds.[ch]: pdbgenned now, removed header files * app/gimpparasite.c: minor cleanup * app/internal_procs.c: use pdbgen stuff * app/tools_cmds.c * app/text_tool_cmds.c: updated from pdbgen * app/brushes_cmds.c * app/brush_select_cmds.c * app/gradient_cmds.c * app/gradient_select_cmds.c * app/patterns_cmds.c * app/pattern_select_cmds.c * app/procedural_db_cmds.c: new pdbgen files * app/Makefile.am: file shuffle (see above) -Yosh
1999-04-24 04:54:02 +08:00
register_parasite_procs ();
pcount += 5;
/* paths procedures */
register_paths_procs ();
pcount += 6;
app_init_update_status(NULL, _("Procedural database"),
pcount/total_pcount);
1997-11-25 06:05:25 +08:00
This implements the rest of the unit system (unitrc loading and saving and 1999-03-16 Michael Natterer <mitschel@cs.tu-berlin.de> This implements the rest of the unit system (unitrc loading and saving and full PDB interface) * Makefile.am * gimp.1 * user_install * user_install.bat * unitrc: new file (default unit database) and some documentation * app/Makefile.am * app/gimpunit.c * app/gimpunit_cmds.h * app/unitrc.h: new files enabling the unit database and PDB access to the unit system * app/app_procs.c: parse and save unitrc * app/gimprc.[ch]: enable unit parsing. New function init_parse_buffers() to enable unitrc to be loaded before gimprc * app/gimage_cmds.[ch]: new PDB procedures which set/return an image's unit * app/install.c: mention unitrc installation * app/xcf.c: new xcf property for user defined units. An image's unit is saved as either an integer ID (built in units) or as a full unit definition without any ID * libgimp/Makefile.am: moved gimpunit.o from libgimpi.a to libgimp.a * libgimp/gimp.h * libgimp/gimpimage.c: get/set an image's unit with PDB calls * libgimp/gimpunit.h: this file is now the header for both app/gimpunit.c and libgimp/gimpunit.c * libgimp/gimpunit.c: does the unit calls as PDB calls now * libgimp/gimpunitmenu.[ch]: enable user unit functionality and a unit selection dialog * libgimp/gimpsizeentry.c: disble hilighting on focus_in_event and minor bugfixes * plug-ins/tiff/tiff.c: set image unit to "mm" if tiff unit is "cm", save "cm" if image unit is metric
1999-03-17 04:14:07 +08:00
/* Unit Procedures */
register_unit_procs ();
pcount += 11;
This implements the rest of the unit system (unitrc loading and saving and 1999-03-16 Michael Natterer <mitschel@cs.tu-berlin.de> This implements the rest of the unit system (unitrc loading and saving and full PDB interface) * Makefile.am * gimp.1 * user_install * user_install.bat * unitrc: new file (default unit database) and some documentation * app/Makefile.am * app/gimpunit.c * app/gimpunit_cmds.h * app/unitrc.h: new files enabling the unit database and PDB access to the unit system * app/app_procs.c: parse and save unitrc * app/gimprc.[ch]: enable unit parsing. New function init_parse_buffers() to enable unitrc to be loaded before gimprc * app/gimage_cmds.[ch]: new PDB procedures which set/return an image's unit * app/install.c: mention unitrc installation * app/xcf.c: new xcf property for user defined units. An image's unit is saved as either an integer ID (built in units) or as a full unit definition without any ID * libgimp/Makefile.am: moved gimpunit.o from libgimpi.a to libgimp.a * libgimp/gimp.h * libgimp/gimpimage.c: get/set an image's unit with PDB calls * libgimp/gimpunit.h: this file is now the header for both app/gimpunit.c and libgimp/gimpunit.c * libgimp/gimpunit.c: does the unit calls as PDB calls now * libgimp/gimpunitmenu.[ch]: enable user unit functionality and a unit selection dialog * libgimp/gimpsizeentry.c: disble hilighting on focus_in_event and minor bugfixes * plug-ins/tiff/tiff.c: set image unit to "mm" if tiff unit is "cm", save "cm" if image unit is metric
1999-03-17 04:14:07 +08:00
1997-11-25 06:05:25 +08:00
/* Procedural Database */
gave parasite undo a MISC_UNDO class for now so it compiles * app/gimpdrawable.c: gave parasite undo a MISC_UNDO class for now so it compiles * app/tools_cmds.c: fix crop invoker to give correct args to crop_image * app/color_cmds.c: s/GRAY/GRAY_LUT/g; * app/brush_select.[ch]: removed PDB procs, export brush_active_dialogs, brush_select_dialog, s/active_dialogs/brush_active_dialogs/ * app/gimage_cmds.[ch] * app/channel_ops.[ch]: removed channel ops PDB procs, moved duplicate function from gimage_cmds to channel_ops, export offset and duplicate * app/gimpbrushlist.[ch]: removed PDB procs * app/gradient.[ch]: removed PDB procs, * app/gradient_header.h: exported G_SAMPLE, GradSelect, num_gradients, grad_active_dialogs, gradient_select_dialog * app/gradient_select.c: removed PDB procs, s/active_dialogs/grad_active_dialogs/ * app/patterns.[ch]: removed PDB procs * app/pattern_select.[ch]: removed PDB procs, s/active_dialogs/pattern_active_dialogs/ * app/procedural_db.c: removed PDB procs and supporting functions * app/procedrual_db.h: fiddled with enums * app/channel_cmds.[ch] * app/drawable_cmds.[ch] * app/parasite_cmds.[ch]: pdbgenned now, removed header files * app/gimpparasite.c: minor cleanup * app/internal_procs.c: use pdbgen stuff * app/tools_cmds.c * app/text_tool_cmds.c: updated from pdbgen * app/brushes_cmds.c * app/brush_select_cmds.c * app/gradient_cmds.c * app/gradient_select_cmds.c * app/patterns_cmds.c * app/pattern_select_cmds.c * app/procedural_db_cmds.c: new pdbgen files * app/Makefile.am: file shuffle (see above) -Yosh
1999-04-24 04:54:02 +08:00
register_procedural_db_procs ();
pcount += 8;
register_misc_procs ();
1997-11-25 06:05:25 +08:00
}