Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_clip.py
| Show All 15 Lines | |||||
| # | # | ||||
| # ##### END GPL LICENSE BLOCK ##### | # ##### END GPL LICENSE BLOCK ##### | ||||
| # <pep8-80 compliant> | # <pep8-80 compliant> | ||||
| import bpy | import bpy | ||||
| from bpy.types import Panel, Header, Menu, UIList | from bpy.types import Panel, Header, Menu, UIList | ||||
| from bpy.app.translations import pgettext_iface as iface_ | from bpy.app.translations import pgettext_iface as iface_ | ||||
| from bl_ui.properties_grease_pencil_common import GreasePencilPanel | |||||
| class CLIP_UL_tracking_objects(UIList): | class CLIP_UL_tracking_objects(UIList): | ||||
| def draw_item(self, context, layout, data, item, icon, | def draw_item(self, context, layout, data, item, icon, | ||||
| active_data, active_propname, index): | active_data, active_propname, index): | ||||
| # assert(isinstance(item, bpy.types.MovieTrackingObject) | # assert(isinstance(item, bpy.types.MovieTrackingObject) | ||||
| tobj = item | tobj = item | ||||
| if self.layout_type in {'DEFAULT', 'COMPACT'}: | if self.layout_type in {'DEFAULT', 'COMPACT'}: | ||||
| layout.prop(tobj, "name", text="", emboss=False, | layout.prop(tobj, "name", text="", emboss=False, | ||||
| ▲ Show 20 Lines • Show All 1,002 Lines • ▼ Show 20 Lines | |||||
| class CLIP_PT_tools_mask(MASK_PT_tools, Panel): | class CLIP_PT_tools_mask(MASK_PT_tools, Panel): | ||||
| bl_space_type = 'CLIP_EDITOR' | bl_space_type = 'CLIP_EDITOR' | ||||
| bl_region_type = 'TOOLS' | bl_region_type = 'TOOLS' | ||||
| # --- end mask --- | # --- end mask --- | ||||
| class CLIP_PT_tools_grease_pencil(Panel): | class CLIP_PT_tools_grease_pencil(GreasePencilPanel, Panel): | ||||
| bl_space_type = 'CLIP_EDITOR' | bl_space_type = 'CLIP_EDITOR' | ||||
| bl_region_type = 'TOOLS' | bl_region_type = 'TOOLS' | ||||
| bl_label = "Grease Pencil" | |||||
| bl_category = "Grease Pencil" | bl_category = "Grease Pencil" | ||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| col = layout.column(align=True) | |||||
| row = col.row(align=True) | |||||
| row.operator("gpencil.draw", text="Draw").mode = 'DRAW' | |||||
| row.operator("gpencil.draw", text="Line").mode = 'DRAW_STRAIGHT' | |||||
| row = col.row(align=True) | |||||
| row.operator("gpencil.draw", text="Poly").mode = 'DRAW_POLY' | |||||
| row.operator("gpencil.draw", text="Erase").mode = 'ERASER' | |||||
| row = col.row(align=True) | |||||
| row.prop(context.tool_settings, "use_grease_pencil_sessions") | |||||
| class CLIP_PT_footage(CLIP_PT_clip_view_panel, Panel): | class CLIP_PT_footage(CLIP_PT_clip_view_panel, Panel): | ||||
| bl_space_type = 'CLIP_EDITOR' | bl_space_type = 'CLIP_EDITOR' | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| bl_label = "Footage Settings" | bl_label = "Footage Settings" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| ▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines | |||||