Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_dopesheet.py
| Show All 10 Lines | from bl_ui.properties_grease_pencil_common import ( | ||||
| GreasePencilLayerMasksPanel, | GreasePencilLayerMasksPanel, | ||||
| GreasePencilLayerTransformPanel, | GreasePencilLayerTransformPanel, | ||||
| GreasePencilLayerAdjustmentsPanel, | GreasePencilLayerAdjustmentsPanel, | ||||
| GreasePencilLayerRelationsPanel, | GreasePencilLayerRelationsPanel, | ||||
| GreasePencilLayerDisplayPanel, | GreasePencilLayerDisplayPanel, | ||||
| ) | ) | ||||
| from rna_prop_ui import PropertyPanel | from rna_prop_ui import PropertyPanel | ||||
| from bl_ui.space_time import TIME_HT_editor_buttons | |||||
| ####################################### | ####################################### | ||||
| # DopeSheet Filtering - Header Buttons | # DopeSheet Filtering - Header Buttons | ||||
| # used for DopeSheet, NLA, and Graph Editors | # used for DopeSheet, NLA, and Graph Editors | ||||
| def dopesheet_filter(layout, context): | def dopesheet_filter(layout, context): | ||||
| ▲ Show 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| TIME_MT_editor_menus.draw_collapsible(context, layout) | TIME_MT_editor_menus.draw_collapsible(context, layout) | ||||
| TIME_HT_editor_buttons.draw_header(context, layout) | TIME_HT_editor_buttons.draw_header(context, layout) | ||||
| else: | else: | ||||
| layout.prop(st, "ui_mode", text="") | layout.prop(st, "ui_mode", text="") | ||||
| DOPESHEET_MT_editor_menus.draw_collapsible(context, layout) | DOPESHEET_MT_editor_menus.draw_collapsible(context, layout) | ||||
| DOPESHEET_HT_editor_buttons.draw_header(context, layout) | DOPESHEET_HT_editor_buttons.draw_header(context, layout) | ||||
| class DOPESHEET_HT_footer(Header): | |||||
| bl_space_type = 'DOPESHEET_EDITOR' | |||||
| bl_region_type = 'FOOTER' | |||||
| def draw(self, context): | |||||
| TIME_HT_editor_buttons.draw_header(context, self.layout) | |||||
| # Header for "normal" dopesheet editor modes (e.g. Dope Sheet, Action, Shape Keys, etc.) | # Header for "normal" dopesheet editor modes (e.g. Dope Sheet, Action, Shape Keys, etc.) | ||||
| class DOPESHEET_HT_editor_buttons: | class DOPESHEET_HT_editor_buttons: | ||||
| @staticmethod | @staticmethod | ||||
| def draw_header(context, layout): | def draw_header(context, layout): | ||||
| st = context.space_data | st = context.space_data | ||||
| tool_settings = context.tool_settings | tool_settings = context.tool_settings | ||||
| ▲ Show 20 Lines • Show All 583 Lines • ▼ Show 20 Lines | |||||
| class DOPESHEET_PT_gpencil_layer_display(LayersDopeSheetPanel, GreasePencilLayerDisplayPanel, Panel): | class DOPESHEET_PT_gpencil_layer_display(LayersDopeSheetPanel, GreasePencilLayerDisplayPanel, Panel): | ||||
| bl_label = "Display" | bl_label = "Display" | ||||
| bl_parent_id = 'DOPESHEET_PT_gpencil_mode' | bl_parent_id = 'DOPESHEET_PT_gpencil_mode' | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| classes = ( | classes = ( | ||||
| DOPESHEET_HT_header, | DOPESHEET_HT_header, | ||||
| DOPESHEET_HT_footer, | |||||
| DOPESHEET_MT_editor_menus, | DOPESHEET_MT_editor_menus, | ||||
| DOPESHEET_MT_view, | DOPESHEET_MT_view, | ||||
| DOPESHEET_MT_select, | DOPESHEET_MT_select, | ||||
| DOPESHEET_MT_marker, | DOPESHEET_MT_marker, | ||||
| DOPESHEET_MT_channel, | DOPESHEET_MT_channel, | ||||
| DOPESHEET_MT_key, | DOPESHEET_MT_key, | ||||
| DOPESHEET_MT_key_transform, | DOPESHEET_MT_key_transform, | ||||
| DOPESHEET_MT_gpencil_channel, | DOPESHEET_MT_gpencil_channel, | ||||
| Show All 21 Lines | |||||