Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_sequencer.py
| Show All 10 Lines | |||||
| ) | ) | ||||
| from bl_ui.properties_grease_pencil_common import ( | from bl_ui.properties_grease_pencil_common import ( | ||||
| AnnotationDataPanel, | AnnotationDataPanel, | ||||
| AnnotationOnionSkin, | AnnotationOnionSkin, | ||||
| ) | ) | ||||
| from bl_ui.space_toolsystem_common import ( | from bl_ui.space_toolsystem_common import ( | ||||
| ToolActivePanelHelper, | ToolActivePanelHelper, | ||||
| ) | ) | ||||
| from bl_ui.space_time import TIME_HT_editor_buttons | |||||
| from rna_prop_ui import PropertyPanel | from rna_prop_ui import PropertyPanel | ||||
| def _space_view_types(st): | def _space_view_types(st): | ||||
| view_type = st.view_type | view_type = st.view_type | ||||
| return ( | return ( | ||||
| view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}, | view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}, | ||||
| view_type == 'PREVIEW', | view_type == 'PREVIEW', | ||||
| ▲ Show 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | |||||
| ) | ) | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.prop(st, "show_overlays", text="", icon='OVERLAY') | row.prop(st, "show_overlays", text="", icon='OVERLAY') | ||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| sub.popover(panel="SEQUENCER_PT_overlay", text="") | sub.popover(panel="SEQUENCER_PT_overlay", text="") | ||||
| sub.active = st.show_overlays | sub.active = st.show_overlays | ||||
| class SEQUENCER_HT_footer(Header): | |||||
| bl_space_type = 'SEQUENCE_EDITOR' | |||||
| bl_region_type = 'FOOTER' | |||||
| def draw(self, context): | |||||
| TIME_HT_editor_buttons.draw_header(context, self.layout) | |||||
| class SEQUENCER_MT_editor_menus(Menu): | class SEQUENCER_MT_editor_menus(Menu): | ||||
| bl_idname = "SEQUENCER_MT_editor_menus" | bl_idname = "SEQUENCER_MT_editor_menus" | ||||
| bl_label = "" | bl_label = "" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| st = context.space_data | st = context.space_data | ||||
| ▲ Show 20 Lines • Show All 1,984 Lines • ▼ Show 20 Lines | |||||
| col = layout.column(heading="Current Frame", align=True) | col = layout.column(heading="Current Frame", align=True) | ||||
| col.prop(sequencer_tool_settings, "use_snap_current_frame_to_strips", text="Snap to Strips") | col.prop(sequencer_tool_settings, "use_snap_current_frame_to_strips", text="Snap to Strips") | ||||
| classes = ( | classes = ( | ||||
| SEQUENCER_MT_change, | SEQUENCER_MT_change, | ||||
| SEQUENCER_HT_tool_header, | SEQUENCER_HT_tool_header, | ||||
| SEQUENCER_HT_header, | SEQUENCER_HT_header, | ||||
| SEQUENCER_HT_footer, | |||||
| SEQUENCER_MT_editor_menus, | SEQUENCER_MT_editor_menus, | ||||
| SEQUENCER_MT_range, | SEQUENCER_MT_range, | ||||
| SEQUENCER_MT_view, | SEQUENCER_MT_view, | ||||
| SEQUENCER_MT_view_cache, | SEQUENCER_MT_view_cache, | ||||
| SEQUENCER_MT_preview_zoom, | SEQUENCER_MT_preview_zoom, | ||||
| SEQUENCER_MT_proxy, | SEQUENCER_MT_proxy, | ||||
| SEQUENCER_MT_select_handle, | SEQUENCER_MT_select_handle, | ||||
| SEQUENCER_MT_select_channel, | SEQUENCER_MT_select_channel, | ||||
| ▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines | |||||