UI: various changes
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 15 Jan 2009 04:13:38 +0000 (04:13 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 15 Jan 2009 04:13:38 +0000 (04:13 +0000)
commitf08032e8f967e5c5893116fc24c82a18da7bdf79
tree2613d1df53164faebf39e5b54b7c8c968d0e255c
parentad50055610298cff793cdde1c01e1bc126398395
UI: various changes

* View2D to region now returns ints instead of shorts.
* Use "Numpad" instead of "Pad" in automatic keymap menu info.
* Menus can now use buttons other than BUTM and SEPR, in
  particular TOG and ROW are now supported instead of flipping
  bits manually.
* Added a simpler uiDefMenu* api for making menus now, and it
  only supports Operator and RNA buttons at the moment, will be
  used in next commit. Not sure how this will evolve .. makes
  menu code look cleaner anyways.
* Ensure that interface code doesn't crash when getting unknown
  Operators and RNA properties, and display their buttons grayed
  out in that case.
14 files changed:
source/blender/editors/gpencil/gpencil.c
source/blender/editors/include/UI_interface.h
source/blender/editors/include/UI_resources.h
source/blender/editors/include/UI_view2d.h
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_draw.c
source/blender/editors/interface/interface_regions.c
source/blender/editors/interface/view2d.c
source/blender/editors/space_sequencer/sequencer_draw.c
source/blender/editors/space_time/time_header.c
source/blender/editors/transform/transform.c
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm_keymap.c
source/blender/windowmanager/intern/wm_operators.c