Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_sequencer.py
| Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | class SEQUENCER_MT_editor_menus(Menu): | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| st = context.space_data | st = context.space_data | ||||
| layout.menu("SEQUENCER_MT_view") | layout.menu("SEQUENCER_MT_view") | ||||
| if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}: | if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}: | ||||
| layout.menu("SEQUENCER_MT_select") | layout.menu("SEQUENCER_MT_select") | ||||
| if st.show_markers: | |||||
| layout.menu("SEQUENCER_MT_marker") | layout.menu("SEQUENCER_MT_marker") | ||||
| layout.menu("SEQUENCER_MT_add") | layout.menu("SEQUENCER_MT_add") | ||||
| layout.menu("SEQUENCER_MT_strip") | layout.menu("SEQUENCER_MT_strip") | ||||
| class SEQUENCER_MT_view_toggle(Menu): | class SEQUENCER_MT_view_toggle(Menu): | ||||
| bl_label = "View Type" | bl_label = "View Type" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| ▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.operator_context = 'INVOKE_REGION_WIN' | layout.operator_context = 'INVOKE_REGION_WIN' | ||||
| layout.operator("sequencer.refresh_all", icon='FILE_REFRESH', text="Refresh All") | layout.operator("sequencer.refresh_all", icon='FILE_REFRESH', text="Refresh All") | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator_context = 'INVOKE_DEFAULT' | layout.operator_context = 'INVOKE_DEFAULT' | ||||
| layout.prop(st, "show_seconds") | layout.prop(st, "show_seconds") | ||||
| layout.prop(st, "show_strip_offset") | layout.prop(st, "show_strip_offset") | ||||
| layout.prop(st, "show_marker_lines") | layout.separator() | ||||
| layout.prop(st, "show_markers") | |||||
| if is_preview: | if is_preview: | ||||
| layout.separator() | layout.separator() | ||||
| if st.display_mode == 'IMAGE': | if st.display_mode == 'IMAGE': | ||||
| layout.prop(ed, "show_overlay", text="Show Frame Overlay") | layout.prop(ed, "show_overlay", text="Show Frame Overlay") | ||||
| layout.prop(st, "show_safe_areas", text="Show Safe Areas") | layout.prop(st, "show_safe_areas", text="Show Safe Areas") | ||||
| layout.prop(st, "show_metadata", text="Show Metadata") | layout.prop(st, "show_metadata", text="Show Metadata") | ||||
| layout.prop(st, "show_annotation", text="Show Annotations") | layout.prop(st, "show_annotation", text="Show Annotations") | ||||
| ▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines | |||||