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:
authorJoshua Leung <aligorith@gmail.com>2009-06-22 08:39:35 +0400
committerJoshua Leung <aligorith@gmail.com>2009-06-22 08:39:35 +0400
commitaa267976b86f90423204e11a30eec4e0def0f296 (patch)
treee1b09c017eef0191473b9aa1e59fd08ffe705f43 /release/ui/space_buttons.py
parentf1fb09a493b79e6320a651a035203dff98c3b580 (diff)
parent1efffc1f564af0597512699890d7be9f41a6aee2 (diff)
NLA SoC: Merge from 2.5
21043 to 21072 (NOTE TO SELF: Campbell made a commit in 2.5 before this merge finished)
Diffstat (limited to 'release/ui/space_buttons.py')
-rw-r--r--release/ui/space_buttons.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/release/ui/space_buttons.py b/release/ui/space_buttons.py
new file mode 100644
index 00000000000..76863046470
--- /dev/null
+++ b/release/ui/space_buttons.py
@@ -0,0 +1,36 @@
+
+import bpy
+
+class Buttons_HT_header(bpy.types.Header):
+ __space_type__ = "BUTTONS_WINDOW"
+ __idname__ = "BUTTONS_HT_header"
+
+ def draw(self, context):
+ layout = self.layout
+
+ so = context.space_data
+ scene = context.scene
+
+ layout.template_header(context)
+
+ if context.area.show_menus:
+ row = layout.row(align=True)
+ row.itemM(context, "Buttons_MT_view", text="View")
+
+ row = layout.row()
+ row.itemR(so, "buttons_context", expand=True, text="")
+ row.itemR(scene, "current_frame")
+
+class Buttons_MT_view(bpy.types.Menu):
+ __space_type__ = "BUTTONS_WINDOW"
+ __label__ = "View"
+
+ def draw(self, context):
+ layout = self.layout
+ so = context.space_data
+
+ col = layout.column()
+ col.itemR(so, "panel_alignment", expand=True)
+
+bpy.types.register(Buttons_HT_header)
+bpy.types.register(Buttons_MT_view) \ No newline at end of file