diff options
author | Ton Roosendaal <ton@blender.org> | 2005-10-20 18:41:10 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-10-20 18:41:10 +0400 |
commit | 7a7dadc107452063db1aa4a47ce9899211c17b1c (patch) | |
tree | 683da314cfc31b41899e6a2c73bfa326d726115c /source/blender/src/header_nla.c | |
parent | 89597ed362052510ffe4c6c6db39fcccf41721c0 (diff) |
New option; "Lock Time to Other Windows" for Ipo, Action, NLA and Time
windows. If set (in View pulldown), it synchronizes the horizontal scale of
the current window with the other Windows with this option set. That way
you always have these windows showing an identical part of the time you
work on.
Also added because Action Window now displays its content relative to
NLA strips.
Diffstat (limited to 'source/blender/src/header_nla.c')
-rw-r--r-- | source/blender/src/header_nla.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/src/header_nla.c b/source/blender/src/header_nla.c index d0139b82992..ef4949bcfef 100644 --- a/source/blender/src/header_nla.c +++ b/source/blender/src/header_nla.c @@ -83,6 +83,7 @@ void do_nla_buttons(unsigned short event) v2d->cur.ymax= 5; // at least stuff is visiable then? test_view2d(G.v2d, curarea->winx, curarea->winy); + view2d_do_locks(curarea, V2D_LOCK_COPY); addqueue (curarea->win, REDRAW, 1); break; } @@ -110,6 +111,11 @@ static void do_nla_viewmenu(void *arg, int event) case 4: /* Maximize Window */ /* using event B_FULL */ break; + case 5: + G.v2d->flag ^= V2D_VIEWLOCK; + if(G.v2d->flag & V2D_VIEWLOCK) + view2d_do_locks(curarea, 0); + break; } } @@ -136,7 +142,9 @@ static uiBlock *nla_viewmenu(void *arg_unused) uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "View All|Home", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 3, ""); - + uiDefIconTextBut(block, BUTM, 1, (G.v2d->flag & V2D_VIEWLOCK)?ICON_CHECKBOX_HLT:ICON_CHECKBOX_DEHLT, + "Lock Time to Other Windows|", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 5, ""); + if(!curarea->full) uiDefIconTextBut(block, BUTM, B_FULL, ICON_BLANK1, "Maximize Window|Ctrl UpArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 4, ""); else uiDefIconTextBut(block, BUTM, B_FULL, ICON_BLANK1, "Tile Window|Ctrl DownArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 4, ""); |