More change to the gesture manager.
authorDiego Borghetti <bdiego@gmail.com>
Sat, 19 Jan 2008 21:54:33 +0000 (21:54 +0000)
committerDiego Borghetti <bdiego@gmail.com>
Sat, 19 Jan 2008 21:54:33 +0000 (21:54 +0000)
commit0db1aed7e1f8eeaba3e1e94f8b8add4932b194f6
treeed3db204ac3c7f588bd8159121eb46b4ea66139a
parentb80049a139752fc9074d4d8a74019ccdef36936d
More change to the gesture manager.

After check this a little more I make some changes to the
API and now work on the following form:
WM_gesture_init(C, type);

while() {
/* handler event, etc */
/* if something change. */
if(need_update) {
/* update the gesture data and notify about it. */
WM_gesture_update(C, data);
WM_event_add_notifier (.. WM_NOTE_GESTURE_CHANGE ..);
}
}
WM_gesture_end(C, type);

Another of the change is that now the gesture data is a link list
in the window struct, so we can have multiples "gestures" (but
of different type) at the same time.

Also take care that the "gesture data" is reusable, that mean that
only alloc it 1 time and use in all the place, that is
why don't support multiple gesture of the same type, but of course
that can be change.
source/blender/editors/screen/screen_edit.c
source/blender/makesdna/DNA_windowmanager_types.h
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm_gesture.c
source/blender/windowmanager/intern/wm_operators.c
source/blender/windowmanager/intern/wm_window.c
source/blender/windowmanager/wm_gesture_types.h