Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2009-05-28 09:09:25 +0400
committerMatt Ebb <matt@mke3.net>2009-05-28 09:09:25 +0400
commit970f9f3ee2d2eb1cf9fa87327a590d7e1fde50f2 (patch)
treebc262e9ffd8ebe7cd8309f514cb263b92afbf9b8 /release
parenta804ae7b3f9a6c220bed51b91f7fdb0f3347e3e4 (diff)
* Wrapped outliner space in RNA, and added a python ui file for the header.
Brecht, would you be able to have a look at this if you have time - I can't figure out how to trigger the python file to register the header instead of what's in outliner_header.c.
Diffstat (limited to 'release')
-rw-r--r--release/ui/space_outliner.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/release/ui/space_outliner.py b/release/ui/space_outliner.py
new file mode 100644
index 00000000000..12690ff819f
--- /dev/null
+++ b/release/ui/space_outliner.py
@@ -0,0 +1,37 @@
+
+import bpy
+
+class OUTLINER_HT_header(bpy.types.Header):
+ __space_type__ = "OUTLINER"
+ __idname__ = "OUTLINER_HT_header"
+
+ def draw(self, context):
+ so = context.space_data
+ layout = self.layout
+
+ layout.template_header(context)
+
+ if context.area.show_menus:
+ row = layout.row(align=True)
+ row.itemM(context, "OUTLINER_MT_view")
+
+ row = layout.row(align=True)
+ row.itemR(so, "display_mode")
+
+
+class OUTLINER_MT_view(bpy.types.Menu):
+ __space_type__ = "OUTLINER"
+ __label__ = "View"
+
+ def draw(self, context):
+ layout = self.layout
+ so = context.space_data
+
+ layout.column()
+ row.itemR(so, "show_restriction_columns")
+ #layout.itemO("TEXT_OT_new")
+
+
+bpy.types.register(OUTLINER_HT_header)
+bpy.types.register(OUTLINER_MT_view)
+