diff options
author | Lukas Steiblys <imbusy@imbusy.org> | 2009-10-02 02:29:15 +0400 |
---|---|---|
committer | Lukas Steiblys <imbusy@imbusy.org> | 2009-10-02 02:29:15 +0400 |
commit | 0677398a649b6b8c293df3ce3c6668f0a3be3bc8 (patch) | |
tree | 9d510a5bd23559bf4fae670ed04d7e5d6c12578c /release/scripts/ui/space_outliner.py | |
parent | 59248e9f62006ba05e3098e4d213f3dcb23fe711 (diff) | |
parent | bc942eceacb638735dc4f4f68252c4c207147a70 (diff) |
merge from 23153 to 23595soc-2009-imbusy
Diffstat (limited to 'release/scripts/ui/space_outliner.py')
-rw-r--r-- | release/scripts/ui/space_outliner.py | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/release/scripts/ui/space_outliner.py b/release/scripts/ui/space_outliner.py new file mode 100644 index 00000000000..522b620e29d --- /dev/null +++ b/release/scripts/ui/space_outliner.py @@ -0,0 +1,52 @@ + +import bpy + +class OUTLINER_HT_header(bpy.types.Header): + __space_type__ = 'OUTLINER' + + def draw(self, context): + so = context.space_data + sce = context.scene + layout = self.layout + + row = layout.row(align=True) + row.template_header() + + if context.area.show_menus: + sub = row.row(align=True) + sub.itemM("OUTLINER_MT_view") + + row = layout.row() + row.itemR(so, "display_mode", text="") + + if so.display_mode == 'DATABLOCKS': + row = layout.row(align=True) + row.itemO("anim.keyingset_add_new", text="", icon=31) + # row.itemR(sce, "active_keyingset", text="KS: ") + # ks = sce.keyingsets[sce.active_keyingset - 1] + # row.itemR(ks, "name", text="") + ## row.itemR(sce, "keyingsets") + + row = layout.row() + row.itemO("outliner.keyingset_add_selected", text="", icon=31) + row.itemO("outliner.keyingset_remove_selected", text="", icon=32) + + row.itemO("anim.insert_keyframe", text="", icon=514) + row.itemO("anim.delete_keyframe", text="", icon=513) + + +class OUTLINER_MT_view(bpy.types.Menu): + __space_type__ = 'OUTLINER' + __label__ = "View" + + def draw(self, context): + layout = self.layout + so = context.space_data + + col = layout.column() + col.itemR(so, "show_restriction_columns") + #layout.itemO("text.new") + +bpy.types.register(OUTLINER_HT_header) +bpy.types.register(OUTLINER_MT_view) + |