blender/source
Bastien Montagne 4faef1e10c Add drag-resize to uiTemplatePreview (mat/tex/etc. preview widget).
This is done by adding a new button type, GRIP, similar to other numbuttons
(scroll, slider, ...), which here controls the preview height.

Then, we add a new DNA struct to be able to save that height in Blend files
(note I choose not to use Panel struct for this, because we would then have the
same limitation we used to have with uiLists, only one preview per panel
and no preview outside panel).

This implies a change to template_preview UI RNA/py API (each preview needs an ID),
but this is backward compatible, as by default datablock type will be used if no ID is
given (which means e.g. all material previews with no ID will have same height).

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D342
2014-04-02 13:03:11 +02:00
..
blender Add drag-resize to uiTemplatePreview (mat/tex/etc. preview widget). 2014-04-02 13:03:11 +02:00
blenderplayer Add drag-resize to uiTemplatePreview (mat/tex/etc. preview widget). 2014-04-02 13:03:11 +02:00
creator Rename "BLI_cpu.h" to "BLI_system.h" and add to it BLI_getpid() helper. 2014-04-02 11:59:43 +02:00
gameengine Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define 2014-04-01 15:22:28 +11:00
icons Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
tests CTest: disable bl_run_operators.py, fun for finding crashes, takes a long time 2014-03-27 08:30:14 +11:00
CMakeLists.txt remove WINDOWS checks in cmake, this variable isn't defined on windows and checks weren't needed. 2013-09-03 03:04:44 +00:00
SConscript Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00