mirror of https://github.com/GNOME/gimp.git
app, devel-docs, libgimp, pdb: delete gimpitem-linked.[ch].
Getting rid of the last usage from these files dedicated to outdated item link concept.
This commit is contained in:
parent
26615fde92
commit
2ce84b5245
|
@ -30,7 +30,6 @@
|
||||||
#include "core/gimpdrawable-operation.h"
|
#include "core/gimpdrawable-operation.h"
|
||||||
#include "core/gimpimage.h"
|
#include "core/gimpimage.h"
|
||||||
#include "core/gimpimage-undo.h"
|
#include "core/gimpimage-undo.h"
|
||||||
#include "core/gimpitem-linked.h"
|
|
||||||
#include "core/gimpitemundo.h"
|
#include "core/gimpitemundo.h"
|
||||||
#include "core/gimplayermask.h"
|
#include "core/gimplayermask.h"
|
||||||
#include "core/gimpprogress.h"
|
#include "core/gimpprogress.h"
|
||||||
|
|
|
@ -347,8 +347,6 @@ libappcore_a_sources = \
|
||||||
gimpitem.h \
|
gimpitem.h \
|
||||||
gimpitem-exclusive.c \
|
gimpitem-exclusive.c \
|
||||||
gimpitem-exclusive.h \
|
gimpitem-exclusive.h \
|
||||||
gimpitem-linked.c \
|
|
||||||
gimpitem-linked.h \
|
|
||||||
gimpitem-preview.c \
|
gimpitem-preview.c \
|
||||||
gimpitem-preview.h \
|
gimpitem-preview.h \
|
||||||
gimpitemlist.c \
|
gimpitemlist.c \
|
||||||
|
|
|
@ -1,103 +0,0 @@
|
||||||
/* 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/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
||||||
#include <gegl.h>
|
|
||||||
|
|
||||||
#include "core-types.h"
|
|
||||||
|
|
||||||
#include "gimpcontext.h"
|
|
||||||
#include "gimpimage.h"
|
|
||||||
#include "gimpimage-item-list.h"
|
|
||||||
#include "gimpimage-undo.h"
|
|
||||||
#include "gimpitem.h"
|
|
||||||
#include "gimpitem-linked.h"
|
|
||||||
#include "gimplist.h"
|
|
||||||
#include "gimpprogress.h"
|
|
||||||
|
|
||||||
#include "gimp-intl.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* public functions */
|
|
||||||
|
|
||||||
gboolean
|
|
||||||
gimp_item_linked_is_locked (GimpItem *item)
|
|
||||||
{
|
|
||||||
GList *list;
|
|
||||||
GList *l;
|
|
||||||
gboolean locked = FALSE;
|
|
||||||
|
|
||||||
g_return_val_if_fail (GIMP_IS_ITEM (item), FALSE);
|
|
||||||
g_return_val_if_fail (gimp_item_get_linked (item) == TRUE, FALSE);
|
|
||||||
g_return_val_if_fail (gimp_item_is_attached (item), FALSE);
|
|
||||||
|
|
||||||
list = gimp_image_item_list_get_list (gimp_item_get_image (item),
|
|
||||||
GIMP_ITEM_TYPE_ALL,
|
|
||||||
GIMP_ITEM_SET_LINKED);
|
|
||||||
|
|
||||||
list = gimp_image_item_list_filter (list);
|
|
||||||
|
|
||||||
for (l = list; l && ! locked; l = g_list_next (l))
|
|
||||||
{
|
|
||||||
/* We must not use gimp_item_is_position_locked(), especially
|
|
||||||
* since a child implementation may call the current function and
|
|
||||||
* end up in infinite loop.
|
|
||||||
* We are only interested in the value of `lock_position` flag.
|
|
||||||
*/
|
|
||||||
if (gimp_item_get_lock_position (l->data))
|
|
||||||
locked = TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
g_list_free (list);
|
|
||||||
|
|
||||||
return locked;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gimp_item_linked_transform (GimpItem *item,
|
|
||||||
GimpContext *context,
|
|
||||||
const GimpMatrix3 *matrix,
|
|
||||||
GimpTransformDirection direction,
|
|
||||||
GimpInterpolationType interpolation_type,
|
|
||||||
GimpTransformResize clip_result,
|
|
||||||
GimpProgress *progress)
|
|
||||||
{
|
|
||||||
GimpImage *image;
|
|
||||||
GList *items;
|
|
||||||
|
|
||||||
g_return_if_fail (GIMP_IS_ITEM (item));
|
|
||||||
g_return_if_fail (GIMP_IS_CONTEXT (context));
|
|
||||||
g_return_if_fail (gimp_item_get_linked (item) == TRUE);
|
|
||||||
g_return_if_fail (gimp_item_is_attached (item));
|
|
||||||
g_return_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress));
|
|
||||||
|
|
||||||
image = gimp_item_get_image (item);
|
|
||||||
|
|
||||||
items = gimp_image_item_list_get_list (image,
|
|
||||||
GIMP_ITEM_TYPE_ALL,
|
|
||||||
GIMP_ITEM_SET_LINKED);
|
|
||||||
items = gimp_image_item_list_filter (items);
|
|
||||||
|
|
||||||
gimp_image_item_list_transform (image, items, context,
|
|
||||||
matrix, direction,
|
|
||||||
interpolation_type,
|
|
||||||
clip_result, progress);
|
|
||||||
|
|
||||||
g_list_free (items);
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
/* 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 __GIMP_ITEM_LINKED_H__
|
|
||||||
#define __GIMP_ITEM_LINKED_H__
|
|
||||||
|
|
||||||
|
|
||||||
gboolean gimp_item_linked_is_locked (GimpItem *item);
|
|
||||||
|
|
||||||
void gimp_item_linked_transform (GimpItem *item,
|
|
||||||
GimpContext *context,
|
|
||||||
const GimpMatrix3 *matrix,
|
|
||||||
GimpTransformDirection direction,
|
|
||||||
GimpInterpolationType interpolation_type,
|
|
||||||
GimpTransformResize clip_result,
|
|
||||||
GimpProgress *progress);
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* __GIMP_ITEM_LINKED_H__ */
|
|
|
@ -37,7 +37,6 @@
|
||||||
#include "gimpimage-undo.h"
|
#include "gimpimage-undo.h"
|
||||||
#include "gimpimage-undo-push.h"
|
#include "gimpimage-undo-push.h"
|
||||||
#include "gimpitem.h"
|
#include "gimpitem.h"
|
||||||
#include "gimpitem-linked.h"
|
|
||||||
#include "gimpitem-preview.h"
|
#include "gimpitem-preview.h"
|
||||||
#include "gimpitemtree.h"
|
#include "gimpitemtree.h"
|
||||||
#include "gimplist.h"
|
#include "gimplist.h"
|
||||||
|
@ -504,10 +503,6 @@ gimp_item_real_is_content_locked (GimpItem *item)
|
||||||
static gboolean
|
static gboolean
|
||||||
gimp_item_real_is_position_locked (GimpItem *item)
|
gimp_item_real_is_position_locked (GimpItem *item)
|
||||||
{
|
{
|
||||||
if (gimp_item_get_linked (item))
|
|
||||||
if (gimp_item_linked_is_locked (item))
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
return GET_PRIVATE (item)->lock_position;
|
return GET_PRIVATE (item)->lock_position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,6 @@ libappcore_sources = [
|
||||||
'gimpimageproxy.c',
|
'gimpimageproxy.c',
|
||||||
'gimpimageundo.c',
|
'gimpimageundo.c',
|
||||||
'gimpitem-exclusive.c',
|
'gimpitem-exclusive.c',
|
||||||
'gimpitem-linked.c',
|
|
||||||
'gimpitem-preview.c',
|
'gimpitem-preview.c',
|
||||||
'gimpitem.c',
|
'gimpitem.c',
|
||||||
'gimpitemlist.c',
|
'gimpitemlist.c',
|
||||||
|
|
|
@ -400,7 +400,6 @@ EXPORTS
|
||||||
gimp_item_get_visible
|
gimp_item_get_visible
|
||||||
gimp_item_height
|
gimp_item_height
|
||||||
gimp_item_is_text_layer
|
gimp_item_is_text_layer
|
||||||
gimp_item_linked_transform
|
|
||||||
gimp_item_offsets
|
gimp_item_offsets
|
||||||
gimp_item_rename
|
gimp_item_rename
|
||||||
gimp_item_resize
|
gimp_item_resize
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#include "core/gimpdrawable-transform.h"
|
#include "core/gimpdrawable-transform.h"
|
||||||
#include "core/gimpdrawable.h"
|
#include "core/gimpdrawable.h"
|
||||||
#include "core/gimpimage.h"
|
#include "core/gimpimage.h"
|
||||||
#include "core/gimpitem-linked.h"
|
|
||||||
#include "core/gimpitem.h"
|
#include "core/gimpitem.h"
|
||||||
#include "core/gimpparamspecs.h"
|
#include "core/gimpparamspecs.h"
|
||||||
#include "core/gimpprogress.h"
|
#include "core/gimpprogress.h"
|
||||||
|
@ -231,14 +230,6 @@ item_transform_flip_invoker (GimpProcedure *procedure,
|
||||||
else
|
else
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
}
|
}
|
||||||
else if (gimp_item_get_linked (item))
|
|
||||||
{
|
|
||||||
gimp_item_linked_transform (item, context, &matrix,
|
|
||||||
pdb_context->transform_direction,
|
|
||||||
pdb_context->interpolation,
|
|
||||||
pdb_context->transform_resize,
|
|
||||||
progress);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gimp_item_transform (item, context, &matrix,
|
gimp_item_transform (item, context, &matrix,
|
||||||
|
@ -343,14 +334,6 @@ item_transform_perspective_invoker (GimpProcedure *procedure,
|
||||||
else
|
else
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
}
|
}
|
||||||
else if (gimp_item_get_linked (item))
|
|
||||||
{
|
|
||||||
gimp_item_linked_transform (item, context, &matrix,
|
|
||||||
pdb_context->transform_direction,
|
|
||||||
pdb_context->interpolation,
|
|
||||||
pdb_context->transform_resize,
|
|
||||||
progress);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gimp_item_transform (item, context, &matrix,
|
gimp_item_transform (item, context, &matrix,
|
||||||
|
@ -532,14 +515,6 @@ item_transform_rotate_invoker (GimpProcedure *procedure,
|
||||||
else
|
else
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
}
|
}
|
||||||
else if (gimp_item_get_linked (item))
|
|
||||||
{
|
|
||||||
gimp_item_linked_transform (item, context, &matrix,
|
|
||||||
pdb_context->transform_direction,
|
|
||||||
pdb_context->interpolation,
|
|
||||||
pdb_context->transform_resize,
|
|
||||||
progress);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gimp_item_transform (item, context, &matrix,
|
gimp_item_transform (item, context, &matrix,
|
||||||
|
@ -636,14 +611,6 @@ item_transform_scale_invoker (GimpProcedure *procedure,
|
||||||
else
|
else
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
}
|
}
|
||||||
else if (gimp_item_get_linked (item))
|
|
||||||
{
|
|
||||||
gimp_item_linked_transform (item, context, &matrix,
|
|
||||||
pdb_context->transform_direction,
|
|
||||||
pdb_context->interpolation,
|
|
||||||
pdb_context->transform_resize,
|
|
||||||
progress);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gimp_item_transform (item, context, &matrix,
|
gimp_item_transform (item, context, &matrix,
|
||||||
|
@ -735,14 +702,6 @@ item_transform_shear_invoker (GimpProcedure *procedure,
|
||||||
else
|
else
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
}
|
}
|
||||||
else if (gimp_item_get_linked (item))
|
|
||||||
{
|
|
||||||
gimp_item_linked_transform (item, context, &matrix,
|
|
||||||
pdb_context->transform_direction,
|
|
||||||
pdb_context->interpolation,
|
|
||||||
pdb_context->transform_resize,
|
|
||||||
progress);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gimp_item_transform (item, context, &matrix,
|
gimp_item_transform (item, context, &matrix,
|
||||||
|
@ -845,14 +804,6 @@ item_transform_2d_invoker (GimpProcedure *procedure,
|
||||||
else
|
else
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
}
|
}
|
||||||
else if (gimp_item_get_linked (item))
|
|
||||||
{
|
|
||||||
gimp_item_linked_transform (item, context, &matrix,
|
|
||||||
pdb_context->transform_direction,
|
|
||||||
pdb_context->interpolation,
|
|
||||||
pdb_context->transform_resize,
|
|
||||||
progress);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gimp_item_transform (item, context, &matrix,
|
gimp_item_transform (item, context, &matrix,
|
||||||
|
@ -963,14 +914,6 @@ item_transform_matrix_invoker (GimpProcedure *procedure,
|
||||||
else
|
else
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
}
|
}
|
||||||
else if (gimp_item_get_linked (item))
|
|
||||||
{
|
|
||||||
gimp_item_linked_transform (item, context, &matrix,
|
|
||||||
pdb_context->transform_direction,
|
|
||||||
pdb_context->interpolation,
|
|
||||||
pdb_context->transform_resize,
|
|
||||||
progress);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gimp_item_transform (item, context, &matrix,
|
gimp_item_transform (item, context, &matrix,
|
||||||
|
@ -1170,7 +1113,8 @@ register_item_transform_procs (GimpPDB *pdb)
|
||||||
"\n"
|
"\n"
|
||||||
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then transformed as specified. The return value is the ID of the transformed floating selection.\n"
|
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then transformed as specified. The return value is the ID of the transformed floating selection.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If there is no selection or the item is not a drawable, the entire item will be transformed according to the specified mapping. Additionally, if the item has its linked flag set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be transformed the same way. The return value will be equal to the item ID supplied as input.\n"
|
"If there is no selection or the item is not a drawable, the entire item will be transformed according to the specified mapping.\n"
|
||||||
|
"The return value will be equal to the item ID supplied as input.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -1314,7 +1258,8 @@ register_item_transform_procs (GimpPDB *pdb)
|
||||||
"\n"
|
"\n"
|
||||||
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. If auto_center is set to TRUE, the rotation is around the selection's center. Otherwise, the coordinate of the center point needs to be specified. The return value is the ID of the rotated floating selection.\n"
|
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. If auto_center is set to TRUE, the rotation is around the selection's center. Otherwise, the coordinate of the center point needs to be specified. The return value is the ID of the rotated floating selection.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If there is no selection or the item is not a drawable, the entire item will be rotated around its center if auto_center is set to TRUE, otherwise the coordinate of the center point needs to be specified. Additionally, if the item has its linked flag set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be rotated around the same center point. The return value will be equal to the item ID supplied as input.\n"
|
"If there is no selection or the item is not a drawable, the entire item will be rotated around its center if auto_center is set to TRUE, otherwise the coordinate of the center point needs to be specified.\n"
|
||||||
|
"The return value will be equal to the item ID supplied as input.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -1375,7 +1320,8 @@ register_item_transform_procs (GimpPDB *pdb)
|
||||||
"\n"
|
"\n"
|
||||||
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled as specified. The return value is the ID of the scaled floating selection.\n"
|
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled as specified. The return value is the ID of the scaled floating selection.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If there is no selection or the item is not a drawable, the entire item will be scaled according to the specified coordinates. Additionally, if the item has its linked flag set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be scaled the same way. The return value will be equal to the item ID supplied as input.\n"
|
"If there is no selection or the item is not a drawable, the entire item will be scaled according to the specified coordinates.\n"
|
||||||
|
"The return value will be equal to the item ID supplied as input.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -1436,7 +1382,8 @@ register_item_transform_procs (GimpPDB *pdb)
|
||||||
"\n"
|
"\n"
|
||||||
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheared as specified. The return value is the ID of the sheared floating selection.\n"
|
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheared as specified. The return value is the ID of the sheared floating selection.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If there is no selection or the item is not a drawable, the entire item will be sheared according to the specified parameters. Additionally, if the item has its linked flag set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be sheared the same way. The return value will be equal to the item ID supplied as input.\n"
|
"If there is no selection or the item is not a drawable, the entire item will be sheared according to the specified parameters.\n"
|
||||||
|
"The return value will be equal to the item ID supplied as input.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -1488,7 +1435,8 @@ register_item_transform_procs (GimpPDB *pdb)
|
||||||
"\n"
|
"\n"
|
||||||
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then transformed as specified. The return value is the ID of the transformed floating selection.\n"
|
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then transformed as specified. The return value is the ID of the transformed floating selection.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If there is no selection or the item is not a drawable, the entire item will be transformed according to the specified parameters. Additionally, if the item has its linked flag set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be transformed the same way. The return value will be equal to the item ID supplied as input.\n"
|
"If there is no selection or the item is not a drawable, the entire item will be transformed according to the specified parameters.\n"
|
||||||
|
"The return value will be equal to the item ID supplied as input.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||||
NULL);
|
NULL);
|
||||||
|
@ -1567,7 +1515,8 @@ register_item_transform_procs (GimpPDB *pdb)
|
||||||
"\n"
|
"\n"
|
||||||
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then transformed as specified. The return value is the ID of the transformed floating selection.\n"
|
"If a selection exists and the item is a drawable, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then transformed as specified. The return value is the ID of the transformed floating selection.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"If there is no selection or the item is not a drawable, the entire item will be transformed according to the specified matrix. Additionally, if the item has its linked flag set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be transformed the same way. The return value will be equal to the item ID supplied as input.\n"
|
"If there is no selection or the item is not a drawable, the entire item will be transformed according to the specified matrix.\n"
|
||||||
|
"The return value will be equal to the item ID supplied as input.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
"This procedure is affected by the following context setters: 'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 'gimp-context-set-transform-resize'.",
|
||||||
NULL);
|
NULL);
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
#include "core/gimpimage-color-profile.h"
|
#include "core/gimpimage-color-profile.h"
|
||||||
#include "core/gimpimage-undo.h"
|
#include "core/gimpimage-undo.h"
|
||||||
#include "core/gimpimage.h"
|
#include "core/gimpimage.h"
|
||||||
#include "core/gimpitem-linked.h"
|
|
||||||
#include "core/gimplayer-new.h"
|
#include "core/gimplayer-new.h"
|
||||||
#include "core/gimplayer.h"
|
#include "core/gimplayer.h"
|
||||||
#include "core/gimplayermask.h"
|
#include "core/gimplayermask.h"
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#include "core/gimpimage-item-list.h"
|
#include "core/gimpimage-item-list.h"
|
||||||
#include "core/gimpimage-transform.h"
|
#include "core/gimpimage-transform.h"
|
||||||
#include "core/gimpimage-undo.h"
|
#include "core/gimpimage-undo.h"
|
||||||
#include "core/gimpitem-linked.h"
|
|
||||||
#include "core/gimplayer.h"
|
#include "core/gimplayer.h"
|
||||||
#include "core/gimplayermask.h"
|
#include "core/gimplayermask.h"
|
||||||
#include "core/gimpprogress.h"
|
#include "core/gimpprogress.h"
|
||||||
|
|
|
@ -11419,12 +11419,6 @@ gimp_image_undo_push_cantundo
|
||||||
gimp_item_toggle_exclusive_visible
|
gimp_item_toggle_exclusive_visible
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
<SECTION>
|
|
||||||
<FILE>gimpitem-linked</FILE>
|
|
||||||
<TITLE>GimpItem-linked</TITLE>
|
|
||||||
gimp_item_linked_transform
|
|
||||||
</SECTION>
|
|
||||||
|
|
||||||
<SECTION>
|
<SECTION>
|
||||||
<FILE>gimpitem-preview</FILE>
|
<FILE>gimpitem-preview</FILE>
|
||||||
<TITLE>GimpItem-preview</TITLE>
|
<TITLE>GimpItem-preview</TITLE>
|
||||||
|
|
|
@ -235,10 +235,7 @@ gimp_item_transform_flip (GimpItem *item,
|
||||||
*
|
*
|
||||||
* If there is no selection or the item is not a drawable, the entire
|
* If there is no selection or the item is not a drawable, the entire
|
||||||
* item will be transformed according to the specified mapping.
|
* item will be transformed according to the specified mapping.
|
||||||
* Additionally, if the item has its linked flag set to TRUE, all
|
* The return value will be equal to the item ID supplied as input.
|
||||||
* additional items contained in the image which have the linked flag
|
|
||||||
* set to TRUE will also be transformed the same way. The return value
|
|
||||||
* will be equal to the item ID supplied as input.
|
|
||||||
*
|
*
|
||||||
* This procedure is affected by the following context setters:
|
* This procedure is affected by the following context setters:
|
||||||
* gimp_context_set_interpolation(),
|
* gimp_context_set_interpolation(),
|
||||||
|
@ -379,11 +376,8 @@ gimp_item_transform_rotate_simple (GimpItem *item,
|
||||||
* If there is no selection or the item is not a drawable, the entire
|
* If there is no selection or the item is not a drawable, the entire
|
||||||
* item will be rotated around its center if auto_center is set to
|
* item will be rotated around its center if auto_center is set to
|
||||||
* TRUE, otherwise the coordinate of the center point needs to be
|
* TRUE, otherwise the coordinate of the center point needs to be
|
||||||
* specified. Additionally, if the item has its linked flag set to
|
* specified.
|
||||||
* TRUE, all additional items contained in the image which have the
|
* The return value will be equal to the item ID supplied as input.
|
||||||
* linked flag set to TRUE will also be rotated around the same center
|
|
||||||
* point. The return value will be equal to the item ID supplied as
|
|
||||||
* input.
|
|
||||||
*
|
*
|
||||||
* This procedure is affected by the following context setters:
|
* This procedure is affected by the following context setters:
|
||||||
* gimp_context_set_interpolation(),
|
* gimp_context_set_interpolation(),
|
||||||
|
@ -448,10 +442,7 @@ gimp_item_transform_rotate (GimpItem *item,
|
||||||
*
|
*
|
||||||
* If there is no selection or the item is not a drawable, the entire
|
* If there is no selection or the item is not a drawable, the entire
|
||||||
* item will be scaled according to the specified coordinates.
|
* item will be scaled according to the specified coordinates.
|
||||||
* Additionally, if the item has its linked flag set to TRUE, all
|
* The return value will be equal to the item ID supplied as input.
|
||||||
* additional items contained in the image which have the linked flag
|
|
||||||
* set to TRUE will also be scaled the same way. The return value will
|
|
||||||
* be equal to the item ID supplied as input.
|
|
||||||
*
|
*
|
||||||
* This procedure is affected by the following context setters:
|
* This procedure is affected by the following context setters:
|
||||||
* gimp_context_set_interpolation(),
|
* gimp_context_set_interpolation(),
|
||||||
|
@ -516,10 +507,7 @@ gimp_item_transform_scale (GimpItem *item,
|
||||||
*
|
*
|
||||||
* If there is no selection or the item is not a drawable, the entire
|
* If there is no selection or the item is not a drawable, the entire
|
||||||
* item will be sheared according to the specified parameters.
|
* item will be sheared according to the specified parameters.
|
||||||
* Additionally, if the item has its linked flag set to TRUE, all
|
* The return value will be equal to the item ID supplied as input.
|
||||||
* additional items contained in the image which have the linked flag
|
|
||||||
* set to TRUE will also be sheared the same way. The return value will
|
|
||||||
* be equal to the item ID supplied as input.
|
|
||||||
*
|
*
|
||||||
* This procedure is affected by the following context setters:
|
* This procedure is affected by the following context setters:
|
||||||
* gimp_context_set_interpolation(),
|
* gimp_context_set_interpolation(),
|
||||||
|
@ -586,10 +574,7 @@ gimp_item_transform_shear (GimpItem *item,
|
||||||
*
|
*
|
||||||
* If there is no selection or the item is not a drawable, the entire
|
* If there is no selection or the item is not a drawable, the entire
|
||||||
* item will be transformed according to the specified parameters.
|
* item will be transformed according to the specified parameters.
|
||||||
* Additionally, if the item has its linked flag set to TRUE, all
|
* The return value will be equal to the item ID supplied as input.
|
||||||
* additional items contained in the image which have the linked flag
|
|
||||||
* set to TRUE will also be transformed the same way. The return value
|
|
||||||
* will be equal to the item ID supplied as input.
|
|
||||||
*
|
*
|
||||||
* This procedure is affected by the following context setters:
|
* This procedure is affected by the following context setters:
|
||||||
* gimp_context_set_interpolation(),
|
* gimp_context_set_interpolation(),
|
||||||
|
@ -666,10 +651,7 @@ gimp_item_transform_2d (GimpItem *item,
|
||||||
*
|
*
|
||||||
* If there is no selection or the item is not a drawable, the entire
|
* If there is no selection or the item is not a drawable, the entire
|
||||||
* item will be transformed according to the specified matrix.
|
* item will be transformed according to the specified matrix.
|
||||||
* Additionally, if the item has its linked flag set to TRUE, all
|
* The return value will be equal to the item ID supplied as input.
|
||||||
* additional items contained in the image which have the linked flag
|
|
||||||
* set to TRUE will also be transformed the same way. The return value
|
|
||||||
* will be equal to the item ID supplied as input.
|
|
||||||
*
|
*
|
||||||
* This procedure is affected by the following context setters:
|
* This procedure is affected by the following context setters:
|
||||||
* gimp_context_set_interpolation(),
|
* gimp_context_set_interpolation(),
|
||||||
|
|
|
@ -82,14 +82,6 @@ $assemble_matrix
|
||||||
else
|
else
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
}
|
}
|
||||||
else if (gimp_item_get_linked (item))
|
|
||||||
{
|
|
||||||
gimp_item_linked_transform (item, context, &matrix,
|
|
||||||
pdb_context->transform_direction,
|
|
||||||
pdb_context->interpolation,
|
|
||||||
pdb_context->transform_resize,
|
|
||||||
progress);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gimp_item_transform (item, context, &matrix,
|
gimp_item_transform (item, context, &matrix,
|
||||||
|
@ -329,10 +321,8 @@ The return value is the ID of the transformed floating selection.
|
||||||
|
|
||||||
If there is no selection or the item is not a drawable, the entire
|
If there is no selection or the item is not a drawable, the entire
|
||||||
item will be transformed according to the specified mapping.
|
item will be transformed according to the specified mapping.
|
||||||
Additionally, if the item has its linked flag set to TRUE, all
|
|
||||||
additional items contained in the image which have the linked flag set
|
The return value will be equal to the item ID supplied as input.
|
||||||
to TRUE will also be transformed the same way. The return value will be
|
|
||||||
equal to the item ID supplied as input.
|
|
||||||
|
|
||||||
|
|
||||||
This procedure is affected by the following context setters:
|
This procedure is affected by the following context setters:
|
||||||
|
@ -514,10 +504,8 @@ floating selection.
|
||||||
If there is no selection or the item is not a drawable, the entire
|
If there is no selection or the item is not a drawable, the entire
|
||||||
item will be rotated around its center if auto_center is set to TRUE,
|
item will be rotated around its center if auto_center is set to TRUE,
|
||||||
otherwise the coordinate of the center point needs to be specified.
|
otherwise the coordinate of the center point needs to be specified.
|
||||||
Additionally, if the item has its linked flag set to TRUE, all
|
|
||||||
additional items contained in the image which have the linked flag set
|
The return value will be equal to the item ID supplied as input.
|
||||||
to TRUE will also be rotated around the same center point. The return
|
|
||||||
value will be equal to the item ID supplied as input.
|
|
||||||
|
|
||||||
|
|
||||||
This procedure is affected by the following context setters:
|
This procedure is affected by the following context setters:
|
||||||
|
@ -576,10 +564,8 @@ return value is the ID of the scaled floating selection.
|
||||||
|
|
||||||
If there is no selection or the item is not a drawable, the entire
|
If there is no selection or the item is not a drawable, the entire
|
||||||
item will be scaled according to the specified coordinates.
|
item will be scaled according to the specified coordinates.
|
||||||
Additionally, if the item has its linked flag set to TRUE, all
|
|
||||||
additional items contained in the image which have the linked flag set
|
The return value will be equal to the item ID supplied as input.
|
||||||
to TRUE will also be scaled the same way. The return value will be
|
|
||||||
equal to the item ID supplied as input.
|
|
||||||
|
|
||||||
|
|
||||||
This procedure is affected by the following context setters:
|
This procedure is affected by the following context setters:
|
||||||
|
@ -642,10 +628,8 @@ The return value is the ID of the sheared floating selection.
|
||||||
|
|
||||||
If there is no selection or the item is not a drawable, the entire
|
If there is no selection or the item is not a drawable, the entire
|
||||||
item will be sheared according to the specified parameters.
|
item will be sheared according to the specified parameters.
|
||||||
Additionally, if the item has its linked flag set to TRUE, all
|
|
||||||
additional items contained in the image which have the linked flag set
|
The return value will be equal to the item ID supplied as input.
|
||||||
to TRUE will also be sheared the same way. The return value will be
|
|
||||||
equal to the item ID supplied as input.
|
|
||||||
|
|
||||||
|
|
||||||
This procedure is affected by the following context setters:
|
This procedure is affected by the following context setters:
|
||||||
|
@ -700,10 +684,8 @@ The return value is the ID of the transformed floating selection.
|
||||||
|
|
||||||
If there is no selection or the item is not a drawable, the entire
|
If there is no selection or the item is not a drawable, the entire
|
||||||
item will be transformed according to the specified parameters.
|
item will be transformed according to the specified parameters.
|
||||||
Additionally, if the item has its linked flag set to TRUE, all
|
|
||||||
additional items contained in the image which have the linked flag set
|
The return value will be equal to the item ID supplied as input.
|
||||||
to TRUE will also be transformed the same way. The return value will
|
|
||||||
be equal to the item ID supplied as input.
|
|
||||||
|
|
||||||
|
|
||||||
This procedure is affected by the following context setters:
|
This procedure is affected by the following context setters:
|
||||||
|
@ -766,10 +748,8 @@ The return value is the ID of the transformed floating selection.
|
||||||
|
|
||||||
If there is no selection or the item is not a drawable, the entire
|
If there is no selection or the item is not a drawable, the entire
|
||||||
item will be transformed according to the specified matrix.
|
item will be transformed according to the specified matrix.
|
||||||
Additionally, if the item has its linked flag set to TRUE, all
|
|
||||||
additional items contained in the image which have the linked flag set
|
The return value will be equal to the item ID supplied as input.
|
||||||
to TRUE will also be transformed the same way. The return value will
|
|
||||||
be equal to the item ID supplied as input.
|
|
||||||
|
|
||||||
|
|
||||||
This procedure is affected by the following context setters:
|
This procedure is affected by the following context setters:
|
||||||
|
@ -827,7 +807,6 @@ CODE
|
||||||
"core/gimpdrawable.h"
|
"core/gimpdrawable.h"
|
||||||
"core/gimpdrawable-transform.h"
|
"core/gimpdrawable-transform.h"
|
||||||
"core/gimpimage.h"
|
"core/gimpimage.h"
|
||||||
"core/gimpitem-linked.h"
|
|
||||||
"core/gimpprogress.h"
|
"core/gimpprogress.h"
|
||||||
"gimppdb-utils.h"
|
"gimppdb-utils.h"
|
||||||
"gimppdbcontext.h"
|
"gimppdbcontext.h"
|
||||||
|
|
|
@ -1284,7 +1284,6 @@ CODE
|
||||||
"core/gimp.h"
|
"core/gimp.h"
|
||||||
"core/gimpimage-color-profile.h"
|
"core/gimpimage-color-profile.h"
|
||||||
"core/gimpimage-undo.h"
|
"core/gimpimage-undo.h"
|
||||||
"core/gimpitem-linked.h"
|
|
||||||
"core/gimpgrouplayer.h"
|
"core/gimpgrouplayer.h"
|
||||||
"core/gimplayer-new.h"
|
"core/gimplayer-new.h"
|
||||||
"core/gimppickable.h"
|
"core/gimppickable.h"
|
||||||
|
|
Loading…
Reference in New Issue