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:
authorArystanbek Dyussenov <arystan.d@gmail.com>2010-09-04 22:49:07 +0400
committerArystanbek Dyussenov <arystan.d@gmail.com>2010-09-04 22:49:07 +0400
commit90b464d3728d9ed8ec26fdf59058d236b99dbcd9 (patch)
treee88cab4fb1358e962b19f658064ca8c9f8d29f5b /release/scripts/ui/space_time.py
parent08d02dd04d836976b25793bb1d4c6a86b3f924c7 (diff)
parentb0b787ef38f9947b3176642556f5282eb3518f69 (diff)
COLLADA branch: merge from trunk -r 28015:31610.soc-2009-chingachgook
Diffstat (limited to 'release/scripts/ui/space_time.py')
-rw-r--r--release/scripts/ui/space_time.py88
1 files changed, 50 insertions, 38 deletions
diff --git a/release/scripts/ui/space_time.py b/release/scripts/ui/space_time.py
index 7417b9659b2..168e6f63c55 100644
--- a/release/scripts/ui/space_time.py
+++ b/release/scripts/ui/space_time.py
@@ -39,15 +39,15 @@ class TIME_HT_header(bpy.types.Header):
sub.menu("TIME_MT_frame")
sub.menu("TIME_MT_playback")
- layout.prop(scene, "use_preview_range", text="PR")
+ layout.prop(scene, "use_preview_range", text="", toggle=True)
row = layout.row(align=True)
if not scene.use_preview_range:
row.prop(scene, "frame_start", text="Start")
row.prop(scene, "frame_end", text="End")
else:
- row.prop(scene, "preview_range_frame_start", text="Start")
- row.prop(scene, "preview_range_frame_end", text="End")
+ row.prop(scene, "frame_preview_start", text="Start")
+ row.prop(scene, "frame_preview_end", text="End")
layout.prop(scene, "frame_current", text="")
@@ -56,7 +56,7 @@ class TIME_HT_header(bpy.types.Header):
row = layout.row(align=True)
row.operator("screen.frame_jump", text="", icon='REW').end = False
row.operator("screen.keyframe_jump", text="", icon='PREV_KEYFRAME').next = False
- if not screen.animation_playing:
+ if not screen.is_animation_playing:
row.operator("screen.animation_play", text="", icon='PLAY_REVERSE').reverse = True
row.operator("screen.animation_play", text="", icon='PLAY')
else:
@@ -67,17 +67,17 @@ class TIME_HT_header(bpy.types.Header):
row.operator("screen.frame_jump", text="", icon='FF').end = True
row = layout.row(align=True)
- row.prop(tools, "use_auto_keying", text="", toggle=True, icon='REC')
- if screen.animation_playing and tools.use_auto_keying:
+ row.prop(tools, "use_keyframe_insert_auto", text="", toggle=True)
+ if screen.is_animation_playing and tools.use_keyframe_insert_auto:
subsub = row.row()
- subsub.prop(tools, "record_with_nla", toggle=True)
+ subsub.prop(tools, "use_record_with_nla", toggle=True)
layout.prop(scene, "sync_mode", text="")
layout.separator()
row = layout.row(align=True)
- row.prop_object(scene, "active_keying_set", scene, "all_keying_sets", text="")
+ row.prop_search(scene.keying_sets_all, "active", scene, "keying_sets_all", text="")
row.operator("anim.keyframe_insert", text="", icon='KEY_HLT')
row.operator("anim.keyframe_delete", text="", icon='KEY_DEHLT')
@@ -95,14 +95,38 @@ class TIME_MT_view(bpy.types.Menu):
layout.separator()
- layout.prop(st, "show_cframe_indicator")
- layout.prop(st, "only_selected")
+ layout.prop(st, "show_frame_indicator")
+ layout.prop(st, "show_only_selected")
+
+ layout.separator()
+
+ layout.menu("TIME_MT_cache")
layout.separator()
layout.operator("marker.camera_bind")
+class TIME_MT_cache(bpy.types.Menu):
+ bl_label = "Cache"
+
+ def draw(self, context):
+ layout = self.layout
+
+ st = context.space_data
+
+ layout.prop(st, "show_cache")
+
+ layout.separator()
+
+ col = layout.column()
+ col.enabled = st.show_cache
+ col.prop(st, "cache_softbody")
+ col.prop(st, "cache_particles")
+ col.prop(st, "cache_cloth")
+ col.prop(st, "cache_smoke")
+
+
class TIME_MT_frame(bpy.types.Menu):
bl_label = "Frame"
@@ -117,7 +141,7 @@ class TIME_MT_frame(bpy.types.Menu):
# it was ok for riscos... ok TODO, operator
for marker in context.scene.timeline_markers:
- if marker.selected:
+ if marker.select:
layout.separator()
layout.prop(marker, "name", text="", icon='MARKER_HLT')
break
@@ -142,20 +166,20 @@ class TIME_MT_playback(bpy.types.Menu):
st = context.space_data
scene = context.scene
- layout.prop(st, "play_top_left")
- layout.prop(st, "play_all_3d")
- layout.prop(st, "play_anim")
- layout.prop(st, "play_buttons")
- layout.prop(st, "play_image")
- layout.prop(st, "play_sequencer")
- layout.prop(st, "play_nodes")
+ layout.prop(st, "use_play_top_left_3d_editor")
+ layout.prop(st, "use_play_3d_editors")
+ layout.prop(st, "use_play_animation_editors")
+ layout.prop(st, "use_play_properties_editors")
+ layout.prop(st, "use_play_image_editors")
+ layout.prop(st, "use_play_sequence_editors")
+ layout.prop(st, "use_play_node_editors")
layout.separator()
- layout.prop(scene, "frame_drop", text="Frame Dropping")
- layout.prop(scene, "sync_audio", text="AV-sync", icon='SPEAKER')
- layout.prop(scene, "mute_audio")
- layout.prop(scene, "scrub_audio")
+ layout.prop(scene, "use_frame_drop", text="Frame Dropping")
+ layout.prop(scene, "use_audio_sync", text="AV-sync", icon='SPEAKER')
+ layout.prop(scene, "use_audio")
+ layout.prop(scene, "use_audio_scrub")
class TIME_MT_autokey(bpy.types.Menu):
@@ -165,27 +189,15 @@ class TIME_MT_autokey(bpy.types.Menu):
layout = self.layout
tools = context.tool_settings
- layout.prop_enum(tools, "autokey_mode", 'ADD_REPLACE_KEYS')
- layout.prop_enum(tools, "autokey_mode", 'REPLACE_KEYS')
-
-classes = [
- TIME_HT_header,
- TIME_MT_view,
- TIME_MT_frame,
- TIME_MT_autokey,
- TIME_MT_playback]
-
+ layout.prop_enum(tools, "auto_keying_mode", 'ADD_REPLACE_KEYS')
+ layout.prop_enum(tools, "auto_keying_mode", 'REPLACE_KEYS')
def register():
- register = bpy.types.register
- for cls in classes:
- register(cls)
+ pass
def unregister():
- unregister = bpy.types.unregister
- for cls in classes:
- unregister(cls)
+ pass
if __name__ == "__main__":
register()