Blender Git Loki

Git Commits -> Revision b80049a

Revision b80049a by Diego Borghetti (master)
January 19, 2008, 17:54 (GMT)
New "Gesture Manager" system.

This is a first implementation of the "gesture manager" system,
the idea is put the WM in a automatic draw mode so we can
implement different "Gesture types" to draw different class
of data (lasso, bound box, etc).

The gesture data is passed through the data field of the notifiers,
i think that we can change this to something like:
WM_gesture_init(C, data); /* put the data in the context. */

while() {
/* send WM_NOTE_GESTURE_CHANGED to update screen */
}

/* send event and free the data in the context. */
WM_gesture_end(C);

Also i add a new operator and event to test the gesture manager.
The new operator is the "border select" function, just press BKEY
in the window and LMB or ESCKEY to exit.
In the case of LMB you can see a print in the console about the
BORDERSELECT event.

All this still need a lot of work, comment are welcome.

Commit Details:

Full Hash: b80049a139752fc9074d4d8a74019ccdef36936d
SVN Revision: 13296
Parent Commit: d7223cb
Lines Changed: +340, -27

2 Added Paths:

/source/blender/windowmanager/intern/wm_gesture.c (+95, -0) (View)
/source/blender/windowmanager/wm_gesture_types.h (+38, -0) (View)

12 Modified Paths:

/source/blender/editors/include/ED_screen.h (+2, -1) (Diff)
/source/blender/editors/screen/screen_edit.c (+40, -10) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm.c (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+22, -9) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+105, -1) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+3, -3) (Diff)
/source/blender/windowmanager/WM_api.h (+9, -2) (Diff)
/source/blender/windowmanager/wm_event_system.h (+1, -0) (Diff)
/source/blender/windowmanager/wm_event_types.h (+4, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+17, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021