Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_nla.py
| Show All 13 Lines | class NLA_HT_header(Header): | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| st = context.space_data | st = context.space_data | ||||
| layout.template_header() | layout.template_header() | ||||
| NLA_MT_editor_menus.draw_collapsible(context, layout) | NLA_MT_editor_menus.draw_collapsible(context, layout) | ||||
| layout.separator_spacer() | layout.separator_spacer() | ||||
| layout.prop(st, "auto_snap", text="", icon_only=True) | |||||
| layout.separator_spacer() | |||||
| dopesheet_filter(layout, context) | dopesheet_filter(layout, context) | ||||
| layout.popover( | layout.popover( | ||||
| panel="NLA_PT_filters", | panel="NLA_PT_filters", | ||||
| text="", | text="", | ||||
| icon='FILTER', | icon='FILTER', | ||||
| ) | ) | ||||
| layout.prop(st, "auto_snap", text="") | |||||
| class NLA_PT_filters(DopesheetFilterPopoverBase, Panel): | class NLA_PT_filters(DopesheetFilterPopoverBase, Panel): | ||||
| bl_space_type = 'NLA_EDITOR' | bl_space_type = 'NLA_EDITOR' | ||||
| bl_region_type = 'HEADER' | bl_region_type = 'HEADER' | ||||
| bl_label = "Filters" | bl_label = "Filters" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines | |||||