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

@@ -201,9 +201,9 @@ static void graph_edit_expomenu(bContext *C, uiLayout *layout, void *arg_unused)
static void graph_editmenu(bContext *C, uiLayout *layout, void *arg_unused)
{
uiItemMenuF(layout, "Transform", 0, graph_edit_transformmenu);
uiItemMenuF(layout, "Snap", 0, graph_edit_snapmenu);
uiItemMenuF(layout, "Mirror", 0, graph_edit_mirrormenu);
uiItemMenuF(layout, "Transform", 0, graph_edit_transformmenu, NULL);
uiItemMenuF(layout, "Snap", 0, graph_edit_snapmenu, NULL);
uiItemMenuF(layout, "Mirror", 0, graph_edit_mirrormenu, NULL);
uiItemS(layout);
@@ -217,9 +217,9 @@ static void graph_editmenu(bContext *C, uiLayout *layout, void *arg_unused)
uiItemS(layout);
uiItemMenuF(layout, "Handle Type", 0, graph_edit_handlesmenu);
uiItemMenuF(layout, "Interpolation Mode", 0, graph_edit_ipomenu);
uiItemMenuF(layout, "Extrapolation Mode", 0, graph_edit_expomenu);
uiItemMenuF(layout, "Handle Type", 0, graph_edit_handlesmenu, NULL);
uiItemMenuF(layout, "Interpolation Mode", 0, graph_edit_ipomenu, NULL);
uiItemMenuF(layout, "Extrapolation Mode", 0, graph_edit_expomenu, NULL);
uiItemS(layout);