app: add layer mode flags to mark blend and compositing modes immutable

set all legacy modes to completely immutable and the LAB modes'
blend mode to immutable. Change GimpLayer setters and the UI
accordingly. Remove the LAB color spaces from the GUI, they can
only be used with the LAB blend modes anyway and not changed.
This commit is contained in:
Michael Natterer
2017-02-13 22:12:39 +01:00
parent 9b636ff798
commit cb733efe34
7 changed files with 231 additions and 82 deletions

View File

@ -170,8 +170,11 @@ typedef enum /*< pdb-skip, skip >*/
typedef enum /*< pdb-skip, skip >*/
{
GIMP_LAYER_MODE_FLAG_LEGACY = 1 << 0,
GIMP_LAYER_MODE_FLAG_WANTS_LINEAR_DATA = 1 << 1
GIMP_LAYER_MODE_FLAG_LEGACY = 1 << 0,
GIMP_LAYER_MODE_FLAG_WANTS_LINEAR_DATA = 1 << 1,
GIMP_LAYER_MODE_FLAG_BLEND_SPACE_IMMUTABLE = 1 << 2,
GIMP_LAYER_MODE_FLAG_COMPOSITE_SPACE_IMMUTABLE = 1 << 3,
GIMP_LAYER_MODE_FLAG_COMPOSITE_MODE_IMMUTABLE = 1 << 4,
} GimpLayerModeFlags;