Blender Git Loki
Git Commits -> Revision 54c4ed4
Revision 54c4ed4 by Ton Roosendaal (master) December 10, 2008, 13:56 (GMT) |
2.5 Cleanup in area/region management - more intelligence in area management for adding handlers and setting data correct. Space/Region type callbacks only have to do own things. - added option for adding default handlers to areas/regions. (flag in type definition) - ensured that region-types store the minsizes for regions. - added boundbox check for handlers; note that it accepts pointer to boundbox, because handlers don't get reset on area-resizing or view changes. Example: view2d handlers use mask rect. - handlers get now added on correct context levels (example frame change also worked in header) - removed ->refresh() callback. Context refreshing is Listener. - the ->init() is being called on all WM level actions, also after a file read, moving areas, re-opening areas etc. - fixed bug: crash on exit was caused by cleaning up Screen too late. - UI_view2d_size_update() removed from draw callback, is init() - regions now store (winx, winy) subwindow size. |
Commit Details:
Full Hash: 54c4ed469ad632b06e444ff577f35effca952e38
SVN Revision: 17776
Parent Commit: 1fdb9da
Lines Changed: +222, -227
16 Modified Paths:
/source/blender/blenkernel/BKE_screen.h (+18, -10) (Diff)
/source/blender/blenloader/intern/readfile.c (+0, -1) (Diff)
/source/blender/editors/include/ED_screen.h (+5, -2) (Diff)
/source/blender/editors/interface/interface_regions.c (+6, -0) (Diff)
/source/blender/editors/screen/area.c (+74, -44) (Diff)
/source/blender/editors/screen/screen_edit.c (+3, -9) (Diff)
/source/blender/editors/screen/spacetypes.c (+10, -10) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+13, -30) (Diff)
/source/blender/editors/space_time/space_time.c (+24, -48) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+1, -14) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+4, -4) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+53, -41) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+1, -6) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+2, -5) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)
/source/blender/windowmanager/wm_event_system.h (+5, -3) (Diff)
/source/blender/blenloader/intern/readfile.c (+0, -1) (Diff)
/source/blender/editors/include/ED_screen.h (+5, -2) (Diff)
/source/blender/editors/interface/interface_regions.c (+6, -0) (Diff)
/source/blender/editors/screen/area.c (+74, -44) (Diff)
/source/blender/editors/screen/screen_edit.c (+3, -9) (Diff)
/source/blender/editors/screen/spacetypes.c (+10, -10) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+13, -30) (Diff)
/source/blender/editors/space_time/space_time.c (+24, -48) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+1, -14) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+4, -4) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+53, -41) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+1, -6) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+2, -5) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)
/source/blender/windowmanager/wm_event_system.h (+5, -3) (Diff)