Added single column UI layouts
authorWilliam Reynish <william@reynish.com>
Thu, 12 Nov 2009 12:35:37 +0000 (12:35 +0000)
committerWilliam Reynish <william@reynish.com>
Thu, 12 Nov 2009 12:35:37 +0000 (12:35 +0000)
commit9596b369bd32e9d5553d467cf61495fade1d6031
treee3d0606f8b7f87220745e4d57e5fb28cd11763df
parent1df65750749df6c17aa35bfe8a8bb6086c62a987
Added single column UI layouts

This changes the layout when the properties window gets too narrow to render the contents properly.

Currently implemented for render, scene, world, object and materials, but the rest can be done easily.
Here's a video for demonstration:

http://www.reynish.com/files/blender25/properties_resize.mov

It automatically detects the window width and then skips the indicators that tells the layout to go to the next column. It requires very minimal changes to the UI scripts so we don't have to maintain two versions of the layouts.
release/scripts/ui/properties_material.py
release/scripts/ui/properties_object.py
release/scripts/ui/properties_render.py
release/scripts/ui/properties_scene.py
release/scripts/ui/properties_world.py
source/blender/makesrna/intern/rna_userdef.c