=== Better support for user defined modal keymaps ===
authorMartin Poirier <theeth@yahoo.com>
Sun, 15 Nov 2009 19:25:34 +0000 (19:25 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sun, 15 Nov 2009 19:25:34 +0000 (19:25 +0000)
commit11cfdfa2643bb380fc0596c737650643ce4a45be
tree6fd1c93b66c88222229c015449a9dae744006048
parent6ea605797c04ae2299d886c1bada06fe838c2be5
=== Better support for user defined modal keymaps ===

Fixing/Missing RNA properties:
- "virtual" property for "ANY" modifier for keymapitem
- modal property for keymap
- Look up modal_items in usermaps too

Lazy init usermaps needs to init modal_items too.

New function to initialize a user keymap (fill in modal_item and poll pointers).

Operator modal keymaps now look up if there's a user defined keymap that overwrites it.

Full Event UI buttons now show "Any" when modifier is set to that (instead of listing all of them).

Note: Having the modifiers as boolean still doesn't express the full breath of values possible for them. There is commented code in this commit to represent them as enum, which would solve this, but make the keymap editor more cryptic.
release/scripts/ui/space_userpref.py
source/blender/makesrna/intern/rna_wm.c
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/intern/wm_keymap.c