Blender Git Loki
Git Commits -> Revision a019f1d
Revision a019f1d by Brecht Van Lommel (master) June 11, 2008, 10:10 (GMT) |
2.5 Branch ========== * Changed wmOperatorType, removing init/exit callbacks and adding cancel callback, removed default storage in favor of properties. Defined return values for exec/invoke/modal/cancel. * Don't allocate operator on the stack, and removed operator copy for handlers. Now it frees based on return values from callbacks, and just keeps a wmOperator on the heap. Also it now registers after the operator is fully finished, to get the correct final properties. * Changed OP_get_* functions to return 1 if the property is found and 0 otherwise, gives more readable code in my opinion. Added OP_verify_* functions to quickly check if the property is available and set if it's not, that's common for exec/invoke. * Removed WM_operatortypelist_append in favor of WM_operatortype_append which takes a function pointer instead of a list, avoids macro's and duplicating code. * Fix a crash where the handler would still be used while it was freed by the operator. * Spacetypes now have operatortypes() and keymap() callbacks to abstract them a bit more. * Renamed C->curarea to C->area for consistency. Removed View3D/View2D/ SpaceIpo from bContext, seems bad to keep these. * Set context variables like window/screen/area/region to NULL again when leaving that context, instead of leaving the pointers there. * Added if(G.f & G_DEBUG) for many of the prints, makes output a bit cleaner and easier to debug. * Fixed priority of the editors/interface module in scons, would otherwise give link errors. * Added start of generic view2d api. * Added space_time with some basic drawing and a single operator to change the frame. |
Commit Details:
Full Hash: a019f1d3d6a6f8bd17d4683e9a948a84a0ba9925
SVN Revision: 15196
Parent Commit: 161d60d
Lines Changed: +1590, -448
7 Added Paths:
/source/blender/editors/include/BIF_view2d.h (+63, -0) (View)
/source/blender/editors/interface/view2d.c (+252, -0) (View)
/source/blender/editors/space_time/Makefile (+52, -0)
/source/blender/editors/space_time/SConscript (+9, -0) (View)
/source/blender/editors/space_time/space_time.c (+263, -0) (View)
/source/blender/editors/space_time/time_intern.h (+41, -0) (View)
/source/blender/editors/space_time/time_ops.c (+185, -0) (View)
/source/blender/editors/interface/view2d.c (+252, -0) (View)
/source/blender/editors/space_time/Makefile (+52, -0)
/source/blender/editors/space_time/SConscript (+9, -0) (View)
/source/blender/editors/space_time/space_time.c (+263, -0) (View)
/source/blender/editors/space_time/time_intern.h (+41, -0) (View)
/source/blender/editors/space_time/time_ops.c (+185, -0) (View)
24 Modified Paths:
/source/blender/blenkernel/BKE_global.h (+2, -14) (Diff)
/source/blender/blenkernel/BKE_screen.h (+20, -10) (Diff)
/source/blender/blenkernel/intern/screen.c (+5, -0) (Diff)
/source/blender/editors/include/ED_area.h (+2, -7) (Diff)
/source/blender/editors/include/ED_screen.h (+3, -1) (Diff)
/source/blender/editors/interface/SConscript (+2, -2) (Diff)
/source/blender/editors/Makefile (+1, -1) (Diff)
/source/blender/editors/SConscript (+1, -0) (Diff)
/source/blender/editors/screen/area.c (+1, -2) (Diff)
/source/blender/editors/screen/screen_edit.c (+291, -203) (Diff)
/source/blender/editors/screen/screen_ops.c (+7, -25) (Diff)
/source/blender/editors/screen/spacetypes.c (+35, -5) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+11, -5) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+23, -17) (Diff)
/source/blender/windowmanager/intern/wm.c (+18, -13) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+101, -39) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_gesture.c (+0, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+157, -71) (Diff)
/source/blender/windowmanager/intern/wm_subwindow.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+23, -21) (Diff)
/source/blender/windowmanager/wm.h (+2, -1) (Diff)
/source/blender/windowmanager/WM_api.h (+16, -6) (Diff)
/source/blender/windowmanager/wm_subwindow.h (+2, -2) (Diff)
/source/blender/blenkernel/BKE_screen.h (+20, -10) (Diff)
/source/blender/blenkernel/intern/screen.c (+5, -0) (Diff)
/source/blender/editors/include/ED_area.h (+2, -7) (Diff)
/source/blender/editors/include/ED_screen.h (+3, -1) (Diff)
/source/blender/editors/interface/SConscript (+2, -2) (Diff)
/source/blender/editors/Makefile (+1, -1) (Diff)
/source/blender/editors/SConscript (+1, -0) (Diff)
/source/blender/editors/screen/area.c (+1, -2) (Diff)
/source/blender/editors/screen/screen_edit.c (+291, -203) (Diff)
/source/blender/editors/screen/screen_ops.c (+7, -25) (Diff)
/source/blender/editors/screen/spacetypes.c (+35, -5) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+11, -5) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+23, -17) (Diff)
/source/blender/windowmanager/intern/wm.c (+18, -13) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+101, -39) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_gesture.c (+0, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+157, -71) (Diff)
/source/blender/windowmanager/intern/wm_subwindow.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+23, -21) (Diff)
/source/blender/windowmanager/wm.h (+2, -1) (Diff)
/source/blender/windowmanager/WM_api.h (+16, -6) (Diff)
/source/blender/windowmanager/wm_subwindow.h (+2, -2) (Diff)