2.5: Headers

* Fix header menu spacing bug, and make it consistent for all headers.
* For consistency, always put menus first in the header, then any enums
  to switch the type of data displayed.
* Node editor header ported to python layout. Still quite a few
  operators missing to make the menus complete.
* RNA wrapped node editor, and added use_nodes property to material
  and scene.
This commit is contained in:
2009-08-19 00:55:30 +00:00
parent e21c1dde81
commit 184ac26dd0
32 changed files with 510 additions and 747 deletions

View File

@@ -13,13 +13,14 @@ class TIME_HT_header(bpy.types.Header):
tools = context.tool_settings
screen = context.screen
layout.template_header()
row = layout.row(align=True)
row.template_header()
if context.area.show_menus:
row = layout.row()
row.itemM("TIME_MT_view")
row.itemM("TIME_MT_frame")
row.itemM("TIME_MT_playback")
sub = row.row(align=True)
sub.itemM("TIME_MT_view")
sub.itemM("TIME_MT_frame")
sub.itemM("TIME_MT_playback")
layout.itemR(scene, "use_preview_range", text="PR", toggle=True)