uiLists enhacements: dragresize and better GRID layout.
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 27 Aug 2013 15:27:41 +0000 (15:27 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 27 Aug 2013 15:27:41 +0000 (15:27 +0000)
commit6b51c274149d854f57f2f1865578942a87e78869
treefa73ee4d1547729da976226a0d7723f2c73c2ab0
parent07aaf4a90a906f5e1f7681db6f1067e286ffe568
uiLists enhacements: dragresize and better GRID layout.

Many thanks to Brecht for the review!

* You can now drag-resize uiLists (in default or grid layouts).
** Note about "default" size: when you drag below minimal size of the uiList, it will automatically reset to automatic sizing (i.e. size between rows and maxrows, depending on the number of items to show). This often means (e.g. in Materials list with many mat slots) that the list will grow again to maxrows!

* Grid uiLists now have a customizable number of columns (previously it was a fixed value of 9), and they will respect the rows/maxrows settings as well (i.e. show a scrollbar when needed), instead of growing indefinitly!
source/blender/blenkernel/intern/screen.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_layout.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/space_node/drawnode.c
source/blender/editors/space_node/node_buttons.c
source/blender/makesdna/DNA_screen_types.h
source/blender/makesrna/intern/rna_ui_api.c
source/blenderplayer/bad_level_call_stubs/stubs.c