diff options
author | Matt Ebb <matt@mke3.net> | 2004-01-17 08:51:06 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2004-01-17 08:51:06 +0300 |
commit | aefe45e9b1683dd8736b5e249f7e53f62b20155c (patch) | |
tree | 2f7a50915abe77f8281deae5b2cd5582de75af7c /source/blender/src/header_sound.c | |
parent | f3c5206b717a9b2d6b78344e92277f6f58f24229 (diff) |
* Fixed some non-working toolbox entries (Thanks William Reynish for the report)
* Added animation playback menu items to IPO, Sequencer, Sound menus
* Added hotkey descriptions to more items in the 3D View menus
Diffstat (limited to 'source/blender/src/header_sound.c')
-rw-r--r-- | source/blender/src/header_sound.c | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/source/blender/src/header_sound.c b/source/blender/src/header_sound.c index ec59c8cd4c6..93cbcc51019 100644 --- a/source/blender/src/header_sound.c +++ b/source/blender/src/header_sound.c @@ -174,14 +174,21 @@ void do_sound_buttons(unsigned short event) } } - static void do_sound_viewmenu(void *arg, int event) { + extern int play_anim(int mode); + switch(event) { - case 0: /* View All */ + case 1: /* Play Back Animation */ + play_anim(0); + break; + case 2: /* Play Back Animation in All */ + play_anim(1); + break; + case 3: /* View All */ do_sound_buttons(B_SOUNDHOME); break; - case 1: /* Maximize Window */ + case 4: /* Maximize Window */ /* using event B_FULL */ break; } @@ -197,12 +204,19 @@ static uiBlock *sound_viewmenu(void *arg_unused) UI_EMBOSSP, UI_HELV, curarea->headwin); uiBlockSetButmFunc(block, do_sound_viewmenu, NULL); - uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "View All|Home", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 0, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Play Back Animation|Alt A", 0, yco-=20, + menuwidth, 19, NULL, 0.0, 0.0, 1, 1, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Play Back Animation in 3D View|Alt Shift A", 0, yco-=20, + menuwidth, 19, NULL, 0.0, 0.0, 1, 2, ""); + + 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, ""); 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, 1, ""); + 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, 1, ""); + uiDefIconTextBut(block, BUTM, B_FULL, ICON_BLANK1, "Tile Window|Ctrl DownArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 4, ""); if(curarea->headertype==HEADERTOP) { uiBlockSetDirection(block, UI_DOWN); |