View2D: Cleanup of presets and fixed errors in various views
authorJoshua Leung <aligorith@gmail.com>
Wed, 17 Dec 2008 10:25:02 +0000 (10:25 +0000)
committerJoshua Leung <aligorith@gmail.com>
Wed, 17 Dec 2008 10:25:02 +0000 (10:25 +0000)
commit616edcca1222c25b53c13d4da4c3af4f7a0f349a
tree7a98f01066c645fcb080e8a381f58d36bd7db585
parentc1379f6613d327a7604700007afd52e36f48080a
View2D: Cleanup of presets and fixed errors in various views

Now, preset view configurations are only to be used if they define all (scrollers not included) relevant settings for the view they are set for. This should be less confusing than in the previous situation with V2D_COMMONVIEW_TIMELINE stuff.

One implication of this though, is that all Animation Editors (for example), will have to define their own version of the relatively commonly shared info. However, given the great diversity in the range of settings each have, this should not be too much of an issue.

Also, added a 'standard' view config for main 'window' regions. At this stage, it is recommended that this view config should be used only as a placeholder template on which a set of custom settings could be based. I've put it into use for the buttons window/scripts window/info window so far.
16 files changed:
source/blender/blenloader/intern/readfile.c
source/blender/editors/include/UI_view2d.h
source/blender/editors/interface/view2d.c
source/blender/editors/space_action/space_action.c
source/blender/editors/space_buttons/space_buttons.c
source/blender/editors/space_file/space_file.c
source/blender/editors/space_image/space_image.c
source/blender/editors/space_info/space_info.c
source/blender/editors/space_ipo/space_ipo.c
source/blender/editors/space_nla/space_nla.c
source/blender/editors/space_node/space_node.c
source/blender/editors/space_script/space_script.c
source/blender/editors/space_sequencer/space_sequencer.c
source/blender/editors/space_sound/space_sound.c
source/blender/editors/space_text/space_text.c
source/blender/editors/space_time/space_time.c