Files
gimp/app/actions/tools-commands.h
Ell 282108ec91 app: add GimpToolButton
Add a new GimpToolButton class, used for tool-buttons in the
toolbox, instead of implementing them directly in GimpToolPalette.
Each GimpToolButton is associated with a GimpToolItem, which can be
either an individual tool or a group.

When a tool button is associated with a group, it displays the
group's active tool, with an arrow at the corner.  Clicking the
button selects the active tool, while clicking-and-holding, or
right-clicking, shows a menu of all the tools in the group.
Alternatively, the active tool can be changed using the scroll
wheel.
2020-01-30 02:52:43 +02:00

121 lines
6.9 KiB
C

/* GIMP - The GNU 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 3 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, see <https://www.gnu.org/licenses/>.
*/
#ifndef __TOOLS_COMMANDS_H__
#define __TOOLS_COMMANDS_H__
void tools_select_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_select_cmd_block_initialize (void);
void tools_select_cmd_unblock_initialize (void);
void tools_color_average_radius_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_paintbrush_size_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_paintbrush_angle_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_paintbrush_aspect_ratio_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_paintbrush_spacing_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_paintbrush_hardness_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_paintbrush_force_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_ink_blob_size_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_ink_blob_aspect_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_ink_blob_angle_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_airbrush_rate_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_airbrush_flow_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_mybrush_radius_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_mybrush_hardness_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_fg_select_brush_size_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_transform_preview_opacity_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_warp_effect_size_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_warp_effect_hardness_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_opacity_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_size_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_aspect_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_angle_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_spacing_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_hardness_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_force_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_object_1_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
void tools_object_2_cmd_callback (GimpAction *action,
GVariant *value,
gpointer data);
#endif /* __TOOLS_COMMANDS_H__ */