IPO Editor - Zoom view to area

The Shift-B hotkey can now be used to access this tool.
This commit is contained in:
Joshua Leung 2008-09-12 05:54:39 +00:00
parent 3e5549213c
commit 215828455a
2 changed files with 4 additions and 1 deletions

@ -1414,7 +1414,7 @@ void ipo_buttons(void)
uiClearButLock();
/* ZOOMBORDER */
uiDefIconBut(block, BUT, B_IPOBORDER, ICON_BORDERMOVE, xco+=XIC,0,XIC,YIC, 0, 0, 0, 0, 0, "Zooms view to area");
uiDefIconBut(block, BUT, B_IPOBORDER, ICON_BORDERMOVE, xco+=XIC,0,XIC,YIC, 0, 0, 0, 0, 0, "Zooms view to area (Shift B)");
xco+=XIC/2;

@ -3103,6 +3103,9 @@ static void winqreadipospace(ScrArea *sa, void *spacedata, BWinEvent *evt)
else if (G.qual==LR_CTRLKEY) {
borderselect_markers();
}
else if (G.qual==LR_SHIFTKEY) {
do_ipo_buttons(B_IPOBORDER);
}
break;
case CKEY:
if (G.qual == LR_SHIFTKEY)