Use tabs for image editor.
authorAntony Riakiotakis <kalast@gmail.com>
Thu, 13 Feb 2014 17:49:26 +0000 (19:49 +0200)
committerAntony Riakiotakis <kalast@gmail.com>
Wed, 19 Feb 2014 15:22:01 +0000 (17:22 +0200)
commiteb7485389b8ae29c0f56c942e800722fe25ebebe
tree0c4f71c85a75647f1a7d1ca084a1cd4295f88288
parent6b1a4fc66ef4e3197601318ce4c36db2c8359b98
Use tabs for image editor.

For initial discussion see T38371

This commit organized panels for image editor to new tab categories dependent
on the image editor mode:

View Mode:
Tools - contains UV tools (currently only transform and UV Sculpting)
Scopes - contains scopes
Grease Pencil - contains Grease Pencil operators

Paint Mode:
Tools - contains brush options
Scopes - as above
Grease Pencil - as above

Mask Mode
Mask - contains mask tools
Scopes - as above
Grease Pencil - as above

Grease Pencil panel/tab now includes operators, not view options which have been
moved to the UI region on the right.
To make this work better, image editor toolbar now is of type TOOLS instead
of PREVIEW as was the case previously. A nice version patch makes sure all
works predictably, but opening newer files with older blender executables
could backfire.

This commit does not address which UV Tools will be included in the
Tools tab for the view mode, but does include some basic tools (transform)
and provides a class to inherit from to avoid conflicts with UV Sculpting.

Reviewers: brecht, dingto, sergey

Differential Revision: https://developer.blender.org/D315
release/scripts/startup/bl_ui/__init__.py
release/scripts/startup/bl_ui/properties_grease_pencil_common.py [new file with mode: 0644]
release/scripts/startup/bl_ui/space_clip.py
release/scripts/startup/bl_ui/space_image.py
source/blender/blenkernel/BKE_blender.h
source/blender/blenloader/intern/versioning_260.c
source/blender/editors/space_image/image_buttons.c
source/blender/editors/space_image/image_intern.h
source/blender/editors/space_image/space_image.c