diff options
author | Ton Roosendaal <ton@blender.org> | 2005-05-05 21:19:21 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-05-05 21:19:21 +0400 |
commit | f0a4ce98f904fa9577e80c9bcd2b80da6847e365 (patch) | |
tree | 289c594f3d43762a106be9f4b3a3e384dbcacc55 /source/blender/src/headerbuttons.c | |
parent | 22f65bce76b70a09467469c9a06c51d9acf76fa6 (diff) |
Added the new Timeline Window, copied from Tuhopuu, coded by Matt Ebb.
Main change is that it's an own Space type now, not part of the Audio
window... the audio window should restrict to own options. This way
functionality is nicely separated.
Since it's the first time I added a new space (since long!) I've made an
extensive tutorial as well. You can find that here:
http://www.blender3d.org/cms/Adding_new_Space_Window.557.0.html
Notes for using timewindow;
- Add time markers with MKey
- CTRL+M gives option to name Marker
- Markers cannot be moved yet...
- Pageup-Pagedown keys moves current frame to next-prev Marker
- Xkey removes Markers
- If an object has Ipos or an Action, it draws key lines
- CTRL+Pageup-Pagedown moves current frame to next-prev Key
- Press S or E to set start/end frame for playback
Notes about the implementation in Tuhopuu:
- Add new Marker now selects new, deselects others
- Selecting Marker didn't work like elsewhere in Blender, on click it
should deselect all, except the indicated Marker. Not when holding SHIFT
of course
- Not exported functions are static now
- Removed unused defines (MARKER_NONE NEXT_AVAIL)
- Drawing order was confusing, doing too many matrix calls
- Removed not needed scrollbar, added new function to draw time values.
(Has advantage the MMB scroll works not confusing on a scrollbar)
- Added proper support for 'frame mapping'
- The string button (name Marker) had a bug (checked str[64] while str
was only 64 long)
- String button itself didn't allow "OK on enter"
- Made frame buttons in header larger, the arrows overlapped
- Removed support for negative frame values, that won't work so simple!
Diffstat (limited to 'source/blender/src/headerbuttons.c')
-rw-r--r-- | source/blender/src/headerbuttons.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c index cad0570fa8a..7d2f15dc459 100644 --- a/source/blender/src/headerbuttons.c +++ b/source/blender/src/headerbuttons.c @@ -202,7 +202,8 @@ char *windowtype_pup(void) strcat(string, "|UV/Image Editor %x6"); //117 strcat(string, "|Video Sequence Editor %x8"); //143 - strcat(string, "|Audio Timeline %x11"); //163 + strcat(string, "|Timeline %x15"); //163 + strcat(string, "|Audio Window %x11"); //163 strcat(string, "|Text Editor %x9"); //179 strcat(string, "|%l"); //192 @@ -2100,7 +2101,8 @@ void do_headerbuttons(short event) else if(event<600) do_file_buttons(event); else if(event<650) do_seq_buttons(event); else if(event<700) do_sound_buttons(event); - else if(event<800) do_action_buttons(event); + else if(event<750) do_action_buttons(event); + else if(event<800) do_time_buttons(curarea, event); else if(event<900) do_nla_buttons(event); } |