Work on gesture, some more cleaning.
authorTon Roosendaal <ton@blender.org>
Mon, 24 Nov 2008 10:45:36 +0000 (10:45 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 24 Nov 2008 10:45:36 +0000 (10:45 +0000)
commit41ac50b3d3ed17ead1ffd4cbba188880bb20cfea
treece6707375fac4224ea39e615ef7fd6de64feebe5
parentaf6b221107ab998a37bccf1e89ac96525a519b97
Work on gesture, some more cleaning.

- Added standard "tweak" gesture operator, which can be set per region, to
  generate EVT_TWEAK events. You can configure tweaks for any mouse button
  and have handlers for such events check for modifiers etc.
  It even stores tweak direction (8 directions). Might be fun to experiment
  with tweak gestures N, S, etc. :)
  In general it can be used to replace the current tweak code in 2.48
  (std_rmouse_transform).

  Test added: on screen level it now adds LMB tweaks, if tweak-South it splits
  the area. Will be removed of course.

- Added to Border operator a property to store event used to end border with.

- Moved the "AZone" triangle drawing to the right context (area). It was on
  screen level, not respecting area-redraws. Also cleaned up drawing for it,
  and moved the "swap buffers indicator" square to look nicer. Those squares
  are only for test!

- event-match function had bad code for checking for event-value. Made a
  "KM_ANY" define so keymaps can be defined ignoring event values.

- Gesture todo: lasso, "real gesture" (like blender now has)
16 files changed:
source/blender/editors/include/BIF_glutil.h
source/blender/editors/include/ED_screen.h
source/blender/editors/interface/interface_ops.c
source/blender/editors/screen/area.c
source/blender/editors/screen/glutil.c
source/blender/editors/screen/screen_edit.c
source/blender/editors/screen/screen_ops.c
source/blender/makesdna/DNA_screen_types.h
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/WM_types.h
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/intern/wm_gesture.c
source/blender/windowmanager/intern/wm_keymap.c
source/blender/windowmanager/intern/wm_operators.c
source/blender/windowmanager/wm.h
source/blender/windowmanager/wm_event_types.h