Added the new Timeline Window, copied from Tuhopuu, coded by Matt Ebb.
authorTon Roosendaal <ton@blender.org>
Thu, 5 May 2005 17:19:21 +0000 (17:19 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 5 May 2005 17:19:21 +0000 (17:19 +0000)
commitf0a4ce98f904fa9577e80c9bcd2b80da6847e365
tree289c594f3d43762a106be9f4b3a3e384dbcacc55
parent22f65bce76b70a09467469c9a06c51d9acf76fa6
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!
35 files changed:
source/blender/blenkernel/BKE_global.h
source/blender/blenkernel/intern/ipo.c
source/blender/blenkernel/intern/scene.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/include/BIF_resources.h
source/blender/include/BIF_spacetypes.h
source/blender/include/BSE_drawipo.h
source/blender/include/BSE_headerbuttons.h
source/blender/include/BSE_time.h [new file with mode: 0644]
source/blender/include/blendef.h
source/blender/include/mydevice.h
source/blender/include/transform.h
source/blender/makesdna/DNA_scene_types.h
source/blender/makesdna/DNA_screen_types.h
source/blender/makesdna/DNA_space_types.h
source/blender/makesdna/DNA_userdef_types.h
source/blender/src/SConscript
source/blender/src/blenderbuttons.c
source/blender/src/buttons_object.c
source/blender/src/buttons_scene.c
source/blender/src/drawipo.c
source/blender/src/drawtime.c [new file with mode: 0644]
source/blender/src/editipo.c
source/blender/src/editmesh_add.c
source/blender/src/editmesh_lib.c
source/blender/src/editscreen.c
source/blender/src/edittime.c [new file with mode: 0644]
source/blender/src/header_time.c [new file with mode: 0644]
source/blender/src/headerbuttons.c
source/blender/src/resources.c
source/blender/src/space.c
source/blender/src/spacetypes.c
source/blender/src/toolbox.c
source/blender/src/usiblender.c