Blender Git Loki
Git Commits -> Revision f518fa8
Revision f518fa8 by Joshua Leung (master) December 16, 2008, 11:24 (GMT) |
View2D: Presets for Initialising Views Improved the View2D API so that initialising View2D data in init() callbacks (called on new regions and also on resizing regions) for regions is easier. Added a few preset view configurations for use when initialising new views. Views with the V2D_IS_INITIALISED flag set will not be reinitialised in the init() callbacks. Currently, some of these configurations will set/override all settings (like V2D_COMMONVIEW_LIST and V2D_COMMONVIEW_HEADER), while other ones serve a more supplimentary role (i.e. V2D_COMMONVIEW_TIMELINE only sets the x-axis settings, relying on the region to have already set the relevant y-axis settings). The future of such supplimentary configurations is yet to be seen, as I'm currently not sure whether they will cause the code to become too confusing, as you'd have to keep track of which settings belong/are set where. So far, only a few areas have been ported to use this. Tomorrow I'll check on a few more. As this commit touches a lot of files, hopefully there aren't any critical bugs I've missed here. |
Commit Details:
Full Hash: f518fa8ea76a39078ca43eb06fbfaf5aa9ac31dc
SVN Revision: 17888
Parent Commit: 998e682
Lines Changed: +170, -135
20 Modified Paths:
/source/blender/blenloader/intern/readfile.c (+11, -2) (Diff)
/source/blender/editors/include/UI_view2d.h (+5, -4) (Diff)
/source/blender/editors/interface/view2d.c (+101, -42) (Diff)
/source/blender/editors/interface/view2d_ops.c (+1, -1) (Diff)
/source/blender/editors/space_action/space_action.c (+8, -19) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+3, -3) (Diff)
/source/blender/editors/space_file/space_file.c (+2, -5) (Diff)
/source/blender/editors/space_image/space_image.c (+2, -3) (Diff)
/source/blender/editors/space_info/space_info.c (+2, -3) (Diff)
/source/blender/editors/space_ipo/space_ipo.c (+3, -4) (Diff)
/source/blender/editors/space_nla/space_nla.c (+5, -6) (Diff)
/source/blender/editors/space_node/space_node.c (+2, -3) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+2, -4) (Diff)
/source/blender/editors/space_script/space_script.c (+2, -3) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+2, -3) (Diff)
/source/blender/editors/space_sound/space_sound.c (+3, -3) (Diff)
/source/blender/editors/space_text/space_text.c (+2, -3) (Diff)
/source/blender/editors/space_time/space_time.c (+12, -21) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+1, -2) (Diff)
/source/blender/makesdna/DNA_view2d_types.h (+1, -1) (Diff)
/source/blender/editors/include/UI_view2d.h (+5, -4) (Diff)
/source/blender/editors/interface/view2d.c (+101, -42) (Diff)
/source/blender/editors/interface/view2d_ops.c (+1, -1) (Diff)
/source/blender/editors/space_action/space_action.c (+8, -19) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+3, -3) (Diff)
/source/blender/editors/space_file/space_file.c (+2, -5) (Diff)
/source/blender/editors/space_image/space_image.c (+2, -3) (Diff)
/source/blender/editors/space_info/space_info.c (+2, -3) (Diff)
/source/blender/editors/space_ipo/space_ipo.c (+3, -4) (Diff)
/source/blender/editors/space_nla/space_nla.c (+5, -6) (Diff)
/source/blender/editors/space_node/space_node.c (+2, -3) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+2, -4) (Diff)
/source/blender/editors/space_script/space_script.c (+2, -3) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+2, -3) (Diff)
/source/blender/editors/space_sound/space_sound.c (+3, -3) (Diff)
/source/blender/editors/space_text/space_text.c (+2, -3) (Diff)
/source/blender/editors/space_time/space_time.c (+12, -21) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+1, -2) (Diff)
/source/blender/makesdna/DNA_view2d_types.h (+1, -1) (Diff)