1997-11-25 06:05:25 +08:00
|
|
|
#ifndef __COMMANDS_H__
|
|
|
|
#define __COMMANDS_H__
|
|
|
|
|
|
|
|
#include "gtk/gtk.h"
|
|
|
|
|
1999-07-10 19:53:42 +08:00
|
|
|
void file_new_cmd_callback (GtkWidget *, gpointer, guint);
|
1999-06-22 06:12:07 +08:00
|
|
|
void file_open_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void file_save_cmd_callback (GtkWidget *, gpointer);
|
1997-11-25 06:05:25 +08:00
|
|
|
void file_save_as_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void file_revert_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void file_pref_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void file_close_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void file_quit_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
|
1999-07-07 04:43:52 +08:00
|
|
|
void edit_cut_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_copy_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_paste_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_paste_into_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_paste_as_new_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_clear_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_fill_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_stroke_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_undo_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_redo_cmd_callback (GtkWidget *, gpointer);
|
Honest, guv, it's not a feature - it's a tightly integrated package of
Mon Sep 20 12:51:30 EDT 1999 Austin Donnelly <austin@gimp.org>
Honest, guv, it's not a feature - it's a tightly integrated
package of undo system cleanups and fixes.
NEW FILES:
* app/undo_history.c: window showing recent undo (and redo) steps
available.
* app/undo_types.h: broken out of undo.h to fix circular includes.
MODIFIED FILES:
* app/Makefile.am: compile undo_history.c
* app/channel.h: use enum for channel undo type, not just magic
numbers.
* app/layer.h: same for layer undos.
* app/commands.c: edit_show_undo_history_cmd_callback() function to
pull up undo history window.
* app/commands.h: prototype for above.
* app/gdisplay.c: make undo / redo menu items sensitive according
to whether they would do anything. Would be easy to change
the text to say what would be undone/redone, but I don't know
the GTK.
* app/gimpimage.c: new signal emitted by gimage:
UNDO_EVENT. gimp_image_undo_event() function to emit it.
* app/gimpimage.h: prototype for above.
* app/gimpimageP.h: pushing_undo_group member is now an undo_type,
not an int. Keep undo history widget here too (if created).
* app/menus.c: add "Edit/Undo history..." to image menu.
* app/undo.c: new types: enums undo_type and undo_state rather than
ints and magic numbers. All undo_pop_* and undo_free_*
functions made static. New static function
undo_type_to_name(). Issue undo event signals on various
important events (eg undo pushed, undo popped etc).
undo_push() now takes a "dirties_image" arg to say whether
image should be dirtied. Layer moves now dirty the image. A
couple of g_return_if_fails () on undo_pop and undo_redo to
assert we're not in the middle of an undo group.
undo_get_{undo,redo}_name() to peek at names of top items on
undo and redo stacks resp. undo_map_over_{undo,redo}_stack()
to run a function for each item or group on stack. Layer and
channel undos use symbolic names rather than 0 or 1. Array
mapping undo types to names.
* app/undo.h: split out undo types to undo_types.h. Prototypes
for functions described above. undo_event_t enum.
undo_history_new() prototype lives here too.
Random other fixes:
* app/gimpdrawable.c
* app/image_render.c: default labels in switches to keep egcs happy.
* app/nav_window.c: some fixes to (sort of) cope with image res !=
screen res. Still needs work to handle non-square pixels
properly.
* app/paths_dialog.c: bad idea to call gimp_image_dirty()
directly. Even though it's currently commented out.
1999-09-21 01:15:20 +08:00
|
|
|
void edit_show_undo_history_cmd_callback (GtkWidget *, gpointer);
|
1999-07-07 04:43:52 +08:00
|
|
|
void edit_named_cut_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_named_copy_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void edit_named_paste_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
|
|
|
|
void select_invert_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void select_all_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void select_none_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void select_float_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void select_sharpen_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void select_border_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void select_feather_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void select_grow_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void select_shrink_cmd_callback (GtkWidget *, gpointer);
|
1997-11-25 06:05:25 +08:00
|
|
|
void select_by_color_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void select_save_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
|
|
|
|
void view_dot_for_dot_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoomin_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoomout_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoom_16_1_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoom_8_1_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoom_4_1_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoom_2_1_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoom_1_1_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoom_1_2_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoom_1_4_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoom_1_8_callback (GtkWidget *, gpointer);
|
|
|
|
void view_zoom_1_16_callback (GtkWidget *, gpointer);
|
|
|
|
void view_window_info_cmd_callback (GtkWidget *, gpointer);
|
1999-08-13 06:21:04 +08:00
|
|
|
void view_window_nav_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void view_toggle_selection_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void view_toggle_rulers_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void view_toggle_guides_cmd_callback (GtkWidget *, gpointer);
|
1998-08-05 20:38:11 +08:00
|
|
|
void view_toggle_statusbar_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void view_snap_to_guides_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void view_new_view_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void view_shrink_wrap_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
|
|
|
|
void image_equalize_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void image_invert_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void image_desaturate_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void image_convert_rgb_cmd_callback (GtkWidget *, gpointer);
|
1997-11-25 06:05:25 +08:00
|
|
|
void image_convert_grayscale_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void image_convert_indexed_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void image_resize_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void image_scale_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
void channel_ops_duplicate_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void channel_ops_offset_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
|
|
|
|
void layers_previous_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void layers_next_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void layers_raise_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void layers_lower_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void layers_raise_to_top_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void layers_lower_to_bottom_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void layers_anchor_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void layers_merge_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void layers_flatten_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void layers_alpha_select_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void layers_mask_select_cmd_callback (GtkWidget *, gpointer);
|
1998-04-03 19:58:04 +08:00
|
|
|
void layers_add_alpha_channel_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
|
1998-03-02 03:38:25 +08:00
|
|
|
void tools_default_colors_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void tools_swap_colors_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void tools_select_cmd_callback (GtkWidget *widget,
|
|
|
|
gpointer callback_data,
|
|
|
|
guint callback_action);
|
|
|
|
|
|
|
|
void filters_repeat_cmd_callback (GtkWidget *widget,
|
|
|
|
gpointer callback_data,
|
|
|
|
guint callback_action);
|
|
|
|
|
|
|
|
void dialogs_brushes_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void dialogs_patterns_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void dialogs_palette_cmd_callback (GtkWidget *, gpointer);
|
1999-10-28 23:05:49 +08:00
|
|
|
void dialogs_gradient_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void dialogs_lc_cmd_callback (GtkWidget *, gpointer);
|
1997-11-25 06:05:25 +08:00
|
|
|
void dialogs_indexed_palette_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void dialogs_tools_options_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void dialogs_input_devices_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void dialogs_device_status_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void dialogs_error_console_cmd_callback (GtkWidget *, gpointer);
|
|
|
|
void dialogs_module_browser_cmd_callback (GtkWidget *, gpointer);
|
1999-08-31 10:00:34 +08:00
|
|
|
void dialogs_display_filters_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void about_dialog_cmd_callback (GtkWidget *, gpointer);
|
1999-09-28 01:58:10 +08:00
|
|
|
void gimp_help_cmd_callback (GtkWidget *, gpointer);
|
1999-06-22 06:12:07 +08:00
|
|
|
void tips_dialog_cmd_callback (GtkWidget *, gpointer);
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
#endif /* __COMMANDS_H__ */
|