mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 12:02:32 +00:00
1870b5d5c9
2005-03-04 Michael Natterer <mitch@gimp.org> * app/tools/gimptoolcontrol.[ch]: in the spirit of the fix for bug #165618 below, allow tools to specify up to two "object actions" (actions which select brushes, patterns, ...). * app/tools/gimpblendtool.c * app/tools/gimpbucketfilltool.c * app/tools/gimpclonetool.c * app/tools/gimppainttool.c * app/tools/gimptexttool.c: set actions where appropriate. * app/actions/actions.c (action_select_object): allow objects to be selected by index. * app/actions/context-actions.c: added actions which select objects by index. Not really used but the same actions can be used to generically pass any GimpActionSelectType enum value to the action callbacks. * app/actions/tools-actions.c * app/actions/tools-commands.[ch]: added actions and callbacks for the new generic tool objects. Also fixed and cleaned up the new generic tool value code.
77 lines
3.9 KiB
C
77 lines
3.9 KiB
C
/* 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.
|
|
*/
|
|
|
|
#ifndef __TOOLS_COMMANDS_H__
|
|
#define __TOOLS_COMMANDS_H__
|
|
|
|
|
|
void tools_select_cmd_callback (GtkAction *action,
|
|
const gchar *value,
|
|
gpointer data);
|
|
void tools_toggle_visibility_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
|
|
void tools_raise_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void tools_raise_to_top_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void tools_lower_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
void tools_lower_to_bottom_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
|
|
void tools_reset_cmd_callback (GtkAction *action,
|
|
gpointer data);
|
|
|
|
void tools_color_average_radius_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
|
|
void tools_ink_blob_size_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
void tools_ink_blob_aspect_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
void tools_ink_blob_angle_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
|
|
void tools_value_1_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
void tools_value_2_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
void tools_value_3_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
void tools_value_4_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
|
|
void tools_object_1_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
void tools_object_2_cmd_callback (GtkAction *action,
|
|
gint value,
|
|
gpointer data);
|
|
|
|
|
|
#endif /* __TOOLS_COMMANDS_H__ */
|