Blender Git Commit Log
Git Commits -> Revision b4d46e5
Revision b4d46e5 by Brecht Van Lommel (master) May 15, 2009, 11:19 (GMT) |
UI: Layout Engine * Buttons are now created first, and after that the layout is computed. This means the layout engine now works at button level, and makes it easier to write templates. Otherwise you had to store all info and create the buttons later. * Added interface_templates.c as a separate file to put templates in. These can contain regular buttons, and can be put in a Free layout, which means you can specify manual coordinates, but still get nested correct inside other layouts. * API was changed to allow better nesting. Previously items were added in the last added layout specifier, i.e. one level up in the layout hierarchy. This doesn't work well in always, so now when creating things like rows or columns it always returns a layout which you have to add the items in. All py scripts were updated to follow this. * Computing the layout now goes in two passes, first estimating the required width/height of all nested layouts, and then in the second pass using the results of that to decide on the actual locations. * Enum and array buttons now follow the direction of the layout, i.e. they are vertical or horizontal depending if they are in a column or row. * Color properties now get a color picker, and only get the additional RGB sliders with Expand=True. * File/directory string properties now get a button next to them for opening the file browse, though this is not implemented yet. * Layout items can now be aligned, set align=True when creating a column, row, etc. * Buttons now get a minimum width of one icon (avoids squashing icon buttons). * Moved some more space variables into Style. |
Commit Details:
Full Hash: b4d46e5dedfa88951558a4f941d987a171594a0a
SVN Revision: 20212
Parent Commit: 2df9462
Lines Changed: +2081, -1854
1 Added Path:
/source/blender/editors/interface/interface_templates.c (+248, -0) (View)
49 Modified Paths:
/release/ui/buttons_data_camera.py (+25, -27) (Diff)
/release/ui/buttons_data_empty.py (+1, -2) (Diff)
/release/ui/buttons_data_lamp.py (+70, -81) (Diff)
/release/ui/buttons_data_lattice.py (+13, -13) (Diff)
/release/ui/buttons_data_modifier.py (+17, -19) (Diff)
/release/ui/buttons_material.py (+83, -100) (Diff)
/release/ui/buttons_objects.py (+35, -37) (Diff)
/release/ui/buttons_scene.py (+62, -68) (Diff)
/release/ui/buttons_world.py (+57, -57) (Diff)
/release/ui/space_text.py (+42, -41) (Diff)
/source/blender/editors/animation/keyframing.c (+1, -1) (Diff)
/source/blender/editors/armature/editarmature.c (+2, -2) (Diff)
/source/blender/editors/armature/poselib.c (+2, -2) (Diff)
/source/blender/editors/curve/curve_ops.c (+1, -1) (Diff)
/source/blender/editors/curve/editcurve.c (+3, -3) (Diff)
/source/blender/editors/include/ED_screen.h (+2, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+23, -23) (Diff)
/source/blender/editors/interface/interface.c (+73, -62) (Diff)
/source/blender/editors/interface/interface_anim.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_api.c (+17, -7) (Diff)
/source/blender/editors/interface/interface_handlers.c (+8, -8) (Diff)
/source/blender/editors/interface/interface_intern.h (+14, -5) (Diff)
/source/blender/editors/interface/interface_layout.c (+1019, -1157) (Diff)
/source/blender/editors/interface/interface_panel.c (+25, -21) (Diff)
/source/blender/editors/interface/interface_regions.c (+45, -59) (Diff)
/source/blender/editors/interface/interface_style.c (+2, -0) (Diff)
/source/blender/editors/interface/interface_utils.c (+11, -18) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+1, -1) (Diff)
/source/blender/editors/object/object_edit.c (+3, -3) (Diff)
/source/blender/editors/physics/editparticle.c (+1, -1) (Diff)
/source/blender/editors/screen/area.c (+128, -0) (Diff)
/source/blender/editors/screen/screen_ops.c (+2, -2) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+8, -8) (Diff)
/source/blender/editors/space_image/image_header.c (+1, -1) (Diff)
/source/blender/editors/space_image/image_ops.c (+1, -1) (Diff)
/source/blender/editors/space_text/space_text.c (+2, -2) (Diff)
/source/blender/editors/space_text/text_header.c (+6, -6) (Diff)
/source/blender/editors/space_text/text_ops.c (+3, -3) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_snap.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -1) (Diff)
/source/blender/editors/uvedit/uvedit_unwrap_ops.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_context.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_material.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+4, -0) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+4, -0) (Diff)
/source/blender/python/intern/bpy_ui.c (+3, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+3, -3) (Diff)
/release/ui/buttons_data_empty.py (+1, -2) (Diff)
/release/ui/buttons_data_lamp.py (+70, -81) (Diff)
/release/ui/buttons_data_lattice.py (+13, -13) (Diff)
/release/ui/buttons_data_modifier.py (+17, -19) (Diff)
/release/ui/buttons_material.py (+83, -100) (Diff)
/release/ui/buttons_objects.py (+35, -37) (Diff)
/release/ui/buttons_scene.py (+62, -68) (Diff)
/release/ui/buttons_world.py (+57, -57) (Diff)
/release/ui/space_text.py (+42, -41) (Diff)
/source/blender/editors/animation/keyframing.c (+1, -1) (Diff)
/source/blender/editors/armature/editarmature.c (+2, -2) (Diff)
/source/blender/editors/armature/poselib.c (+2, -2) (Diff)
/source/blender/editors/curve/curve_ops.c (+1, -1) (Diff)
/source/blender/editors/curve/editcurve.c (+3, -3) (Diff)
/source/blender/editors/include/ED_screen.h (+2, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+23, -23) (Diff)
/source/blender/editors/interface/interface.c (+73, -62) (Diff)
/source/blender/editors/interface/interface_anim.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_api.c (+17, -7) (Diff)
/source/blender/editors/interface/interface_handlers.c (+8, -8) (Diff)
/source/blender/editors/interface/interface_intern.h (+14, -5) (Diff)
/source/blender/editors/interface/interface_layout.c (+1019, -1157) (Diff)
/source/blender/editors/interface/interface_panel.c (+25, -21) (Diff)
/source/blender/editors/interface/interface_regions.c (+45, -59) (Diff)
/source/blender/editors/interface/interface_style.c (+2, -0) (Diff)
/source/blender/editors/interface/interface_utils.c (+11, -18) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+1, -1) (Diff)
/source/blender/editors/object/object_edit.c (+3, -3) (Diff)
/source/blender/editors/physics/editparticle.c (+1, -1) (Diff)
/source/blender/editors/screen/area.c (+128, -0) (Diff)
/source/blender/editors/screen/screen_ops.c (+2, -2) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+8, -8) (Diff)
/source/blender/editors/space_image/image_header.c (+1, -1) (Diff)
/source/blender/editors/space_image/image_ops.c (+1, -1) (Diff)
/source/blender/editors/space_text/space_text.c (+2, -2) (Diff)
/source/blender/editors/space_text/text_header.c (+6, -6) (Diff)
/source/blender/editors/space_text/text_ops.c (+3, -3) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_snap.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -1) (Diff)
/source/blender/editors/uvedit/uvedit_unwrap_ops.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_context.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_material.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+4, -0) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+4, -0) (Diff)
/source/blender/python/intern/bpy_ui.c (+3, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+3, -3) (Diff)