This is the result of a UX session with Aryeom. Just showing a message forbidding editing of non-rasterized text/link/vector layers is problematic, because it doesn't help people understand how to unblock their situation (if they really want to just edit directly the layer). Additionally we are now blinking the layer. A possible alternative could have been to pop a dialog up, with the same message but also with a quick-action button to allow rasterize in a click (similar to how we are popping a dialog up to revert the rasterization when clicking on a text layer with the text tool or a vector layer with the path tool). The problem is that even though the need to edit directly a non-raster layer arises from time to time, most of the time, when you use such layers, you don't intend to edit these (unlike editing text/path with matching tools, you more often wanted to edit the relevant data). Therefore it is more often than not just a mistake when you try to paint directly on such a layer. I.e. that very often, you were intending to paint on another layer, or add a new layer above your non-raster layer. Therefore a dialog popping up every time you made such a mistake would be annoying and workflow-breaking. A simple error message and some blinking leave for a fluid process.
26 lines
1 KiB
C
26 lines
1 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995-2001 Spencer Kimball, Peter Mattis and others
|
|
*
|
|
* 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/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
void gimp_tools_blink_lock_box (Gimp *gimp,
|
|
GimpItem *item);
|
|
void gimp_tools_blink_item (Gimp *gimp,
|
|
GimpItem *item);
|
|
|
|
void gimp_tools_show_tool_options (Gimp *gimp);
|