2.5: added support for setting RNA properties in keymap item,
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 15 Dec 2008 13:10:29 +0000 (13:10 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 15 Dec 2008 13:10:29 +0000 (13:10 +0000)
commitd48f4b6012ccfc1a1da6a1a002d7c86cacbd98aa
tree17042a225366b4d6fc85e0b91534d9d1d952cf9d
parentb4aef1673369b8f0a4e8009f9aab38c7c586ef4f
2.5: added support for setting RNA properties in keymap item,
which will then be set when the operator is called, example:

kmi= WM_keymap_add_item(keymap, "ED_SCR_OT_region_split", SKEY, KM_PRESS, 0, 0);
RNA_enum_set(kmi->ptr, "dir", 'h');

kmi= WM_keymap_add_item(keymap, "ED_SCR_OT_region_split", SKEY, KM_PRESS, KM_SHIFT, 0);
RNA_enum_set(kmi->ptr, "dir", 'v');

There is a hack I had to do here, since properties are defined
as member of wmOperator, will try to fix later, committing now
so it can be used already.
source/blender/editors/screen/screen_ops.c
source/blender/makesdna/DNA_windowmanager_types.h
source/blender/makesrna/intern/rna_wm.c
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/intern/wm_keymap.c