mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00

Though we mostly removed floating layers/masks (formerly floating selections) in many interactions, at least for default behaviors for basic pastes, there are still advanced usage attached to this concept and some advanced users are willing to have easier access to such items. For this reason, this commit: - adds edit-paste-float and edit-paste-float-in-place for pasting the contents of the clipboard as floating data with default positionning algorithm or in-place respectively; - renames select-float to select-cut-float which does a cut and paste as float in one action; - adds select-copy-float which does a copy and paste as float in one action; - reorganize a bit the `Edit > Paste as` submenu with sections for the floating data variants; - add a "Float" submenu in "Select" root menu, containing the 2 variant actions select-cut-float and select-copy-float.
73 lines
3.9 KiB
C
73 lines
3.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 __SELECT_COMMANDS_H__
|
|
#define __SELECT_COMMANDS_H__
|
|
|
|
|
|
void select_all_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_none_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_invert_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_cut_float_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_copy_float_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_feather_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_sharpen_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_shrink_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_grow_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_border_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_flood_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_save_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
|
|
void select_fill_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_fill_last_vals_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_stroke_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
void select_stroke_last_vals_cmd_callback (GimpAction *action,
|
|
GVariant *value,
|
|
gpointer data);
|
|
|
|
|
|
#endif /* __SELECT_COMMANDS_H__ */
|