2.5
authorTon Roosendaal <ton@blender.org>
Thu, 2 Jul 2009 18:12:46 +0000 (18:12 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 2 Jul 2009 18:12:46 +0000 (18:12 +0000)
commit5a0896e1a3c7f17abd37e3d818585fde8e80ff6d
tree6a53f54cceb0909e255f286e95a356653b2afcad
parentaefa7b626a5e623b5f98979a5cc849b7c21563cc
2.5

Cleanup of scroller drawing in 2D windows.

Before:
http://download.blender.org/institute/rt11.jpg
After:
http://download.blender.org/institute/rt12.jpg

Will add 'zoom' widget circles later, as mockupped here:
http://www.reynish.com/files/blender25/fcurve_scrollbar.png

Also note the scale values are inside scroller; drawing it
on top conflicts with current frame item and markers.

Currently scroller disappear entirely when view is total.

For Joshua:
To make sliders behave nicely, the boundbox (v2d->tot) has to
be refreshed on each change. I've added it in graph drawing
now, but it could be notifier based I guess... not sure what
the correct anim api call would be. Can discuss tomorrow!

On todo:
Layout config hints so people can make scroller positions swap.
13 files changed:
source/blender/blenfont/BLF_api.h
source/blender/blenfont/intern/blf.c
source/blender/editors/animation/anim_draw.c
source/blender/editors/include/UI_view2d.h
source/blender/editors/interface/interface_intern.h
source/blender/editors/interface/interface_panel.c
source/blender/editors/interface/interface_widgets.c
source/blender/editors/interface/view2d.c
source/blender/editors/interface/view2d_ops.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_graph/graph_intern.h
source/blender/editors/space_graph/space_graph.c
source/blender/makesdna/DNA_view2d_types.h