2.5
authorTon Roosendaal <ton@blender.org>
Tue, 9 Dec 2008 15:59:43 +0000 (15:59 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 9 Dec 2008 15:59:43 +0000 (15:59 +0000)
commitb205ec4f18b704edc63f914cefc2d16b2784803a
tree11eff09eb1eeebf2e18e8fde759b1b673f00948c
parentb9e04c67dce1e808c06f67ec3ae43e763f67d46b
2.5

Area Manager: revised how an area subdivision gets managed. Originally
the 'spacedata' would store regiondata too, but this already became
impractical (like having view2d data in region is useful). So I left
that part how it is. See new diagram:

http://wiki.blender.org/index.php/BlenderDev/Blender2.5/AreaManager

This means that regions in an Area define location/size or constraints
for how they get arranged. The "RegionType" which is linked to this
defines its functionality.

For fun, test, and code validation: two temporary hotkeys added.
SKEY: splits current region horizontally
SHIFT+S: splits vertically

Note - in outliner - that "context" sticks to the Area as whole, the region
here only defines view. That's the purpose. :) For two outliners with different
context you open 2 areas.
Also note that dragging screen-edges shows the region-alignment type (split
with percentage).
source/blender/editors/include/ED_screen.h
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface_ops.c
source/blender/editors/screen/area.c
source/blender/editors/screen/screen_ops.c
source/blender/editors/screen/spacetypes.c
source/blender/editors/space_outliner/space_outliner.c
source/blender/editors/space_time/space_time.c
source/blender/editors/space_view3d/space_view3d.c
source/blender/makesdna/DNA_space_types.h