diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-09 18:59:43 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-09 18:59:43 +0300 |
commit | b205ec4f18b704edc63f914cefc2d16b2784803a (patch) | |
tree | 11eff09eb1eeebf2e18e8fde759b1b673f00948c /source/blender/makesdna | |
parent | b9e04c67dce1e808c06f67ec3ae43e763f67d46b (diff) |
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).
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 9fd4770c977..d2bb480b109 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -61,8 +61,8 @@ struct bGPdata; typedef struct SpaceLink { struct SpaceLink *next, *prev; int spacetype; - float blockscale; - short blockhandler[8]; + float blockscale; /* XXX depricate this */ + short blockhandler[8]; /* XXX depricate this */ } SpaceLink; typedef struct SpaceInfo { @@ -81,7 +81,7 @@ typedef struct SpaceIpo { short blockhandler[8]; unsigned int rowbut, pad2; - View2D v2d; + View2D v2d; /* depricated, copied to region */ void *editipo; ListBase ipokey; @@ -110,7 +110,7 @@ typedef struct SpaceButs { short cursens, curact; short align, tabo; /* align for panels, tab is old tab */ - View2D v2d; + View2D v2d; /* depricated, copied to region */ short mainb, menunr; /* texnr and menunr have to remain shorts */ short pin, mainbo; @@ -138,7 +138,7 @@ typedef struct SpaceSeq { short blockhandler[8]; - View2D v2d; + View2D v2d; /* depricated, copied to region */ float xof, yof; /* offset for drawing the image preview */ short mainb, pad; @@ -191,7 +191,7 @@ typedef struct SpaceOops { short blockhandler[8]; - View2D v2d; + View2D v2d; /* depricated, copied to region */ ListBase oops; short pin, visiflag, flag, rt; @@ -220,7 +220,7 @@ typedef struct SpaceImage { short blockhandler[8]; - View2D v2d; + View2D v2d; /* depricated, copied to region */ struct Image *image; struct ImageUser iuser; @@ -256,7 +256,7 @@ typedef struct SpaceNla { short autosnap; /* this uses the same settings as autosnap for Action Editor */ short flag; - View2D v2d; + View2D v2d; /* depricated, copied to region */ } SpaceNla; typedef struct SpaceText { @@ -323,7 +323,7 @@ typedef struct SpaceTime { int spacetype; float blockscale; - View2D v2d; + View2D v2d; /* depricated, copied to region */ int flag, redraws; @@ -336,7 +336,7 @@ typedef struct SpaceNode { short blockhandler[8]; - View2D v2d; + View2D v2d; /* depricated, copied to region */ struct ID *id, *from; /* context, no need to save in file? well... pinning... */ short flag, menunr; /* menunr: browse id block in header */ @@ -363,7 +363,7 @@ typedef struct SpaceImaSel { short blockhandler[8]; - View2D v2d; + View2D v2d; /* depricated, copied to region */ struct FileList *files; @@ -415,10 +415,12 @@ typedef struct SpaceImaSel { } SpaceImaSel; -/* **************** SPACE ********************* */ +/* view3d Now in DNA_view3d_types.h */ + -/* view3d Now in DNA_view3d_types.h */ +/* **************** SPACE DEFINES ********************* */ + /* button defines in BIF_butspace.h */ |