2.5
authorTon Roosendaal <ton@blender.org>
Tue, 16 Dec 2008 12:28:00 +0000 (12:28 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 16 Dec 2008 12:28:00 +0000 (12:28 +0000)
commit6fe19cfc85a75f0ec6bb46a70fc9c849108b41ca
tree58cb50e504afb8e2cdbe22491544079eeadf297e
parentf518fa8ea76a39078ca43eb06fbfaf5aa9ac31dc
2.5

Work on getting notifiers in shape.

- Most important: local (to own region or area) redraw notifiers
  have been depricated. This is not a good or correct notifier anyway.
  Notifiers should be signals to other areas.

- Instead use these 2 functions:
    ED_area_tag_redraw(area);
    ED_region_tag_redraw(region);
  It seems to me good convention to keep the area/region redraw tag
  itself protected everywhere, for future improvements.

- Also added a basic WM function that checks overlapping regions,
  and flushes redraws to underlying regions. This makes menus and
  buttons allow to only send local region redraws.
  (Brought back two "swapbuffer indicators" to test this.

- Todo: area 'action zone' redraws, and fixing other notifiers...
  sending data pointers in a notifier seems to be bad idea.
16 files changed:
source/blender/editors/include/ED_screen.h
source/blender/editors/include/UI_view2d.h
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_regions.c
source/blender/editors/interface/view2d.c
source/blender/editors/interface/view2d_ops.c
source/blender/editors/screen/area.c
source/blender/editors/screen/screen_edit.c
source/blender/editors/space_buttons/space_buttons.c
source/blender/editors/space_time/ed_markers.c
source/blender/editors/space_time/space_time.c
source/blender/editors/space_time/time_header.c
source/blender/editors/space_view3d/space_view3d.c
source/blender/windowmanager/WM_types.h
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/intern/wm_operators.c