Blender Git Commit Log
Git Commits -> Revision 113997a
Revision 113997a by Bastien Montagne (master) August 29, 2013, 12:55 (GMT) |
Last uiList patch (for now!): filtering and reordering of shown elements. Thanks to Brecht for the reviews. :) This commit adds a show/hide extension below each uiList, containing by default an option to filter and/or reorder items by name (and to reverse those filtering and reordering). Each derived uiList class in Python can define more specific filtering by implementing callbacks: the draw_filter() function to draw options in UI, and the filter_items() function to effectively filter/reorder items. Note: the advanced options for vgroups shown as "proof od concept" in patches do not go in trunk for now, we have to find a better way to get those vgroups info for UI code, we can't afford to loop over each vertex here! And doc (release notes and uiList example) is still to be updated, will do this in next days. |
Commit Details:
Full Hash: 113997a03c9b1ecc7ec6460f24781d54fd9efb57
SVN Revision: 59631
Parent Commit: 034d5a9
Lines Changed: +716, -91
9 Modified Paths:
/release/scripts/startup/bl_ui/__init__.py (+56, -1) (Diff)
/source/blender/blenkernel/BKE_screen.h (+10, -2) (Diff)
/source/blender/blenkernel/intern/screen.c (+13, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+3, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+10, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+45, -5) (Diff)
/source/blender/editors/interface/interface_templates.c (+314, -59) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+31, -0) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+234, -22) (Diff)
/source/blender/blenkernel/BKE_screen.h (+10, -2) (Diff)
/source/blender/blenkernel/intern/screen.c (+13, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+3, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+10, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+45, -5) (Diff)
/source/blender/editors/interface/interface_templates.c (+314, -59) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+31, -0) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+234, -22) (Diff)