Blender Git Loki

Git Commits -> Revision 41ac50b

Revision 41ac50b by Ton Roosendaal (master)
November 24, 2008, 10:45 (GMT)
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)

Commit Details:

Full Hash: 41ac50b3d3ed17ead1ffd4cbba188880bb20cfea
SVN Revision: 17551
Parent Commit: af6b221
Lines Changed: +279, -54

16 Modified Paths:

/source/blender/editors/include/BIF_glutil.h (+1, -1) (Diff)
/source/blender/editors/include/ED_screen.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+1, -1) (Diff)
/source/blender/editors/screen/area.c (+27, -4) (Diff)
/source/blender/editors/screen/glutil.c (+1, -2) (Diff)
/source/blender/editors/screen/screen_edit.c (+0, -6) (Diff)
/source/blender/editors/screen/screen_ops.c (+24, -4) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+0, -4) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+17, -9) (Diff)
/source/blender/windowmanager/intern/wm_gesture.c (+65, -4) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+1, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+98, -2) (Diff)
/source/blender/windowmanager/wm.h (+1, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)
/source/blender/windowmanager/wm_event_types.h (+26, -6) (Diff)
/source/blender/windowmanager/WM_types.h (+13, -9) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021