Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_topbar.py
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| layout.operator("preferences.app_template_install", | layout.operator("preferences.app_template_install", | ||||
| text="Install Application Template...") | text="Install Application Template...") | ||||
| layout.separator() | layout.separator() | ||||
| layout.menu("TOPBAR_MT_blender_system") | layout.menu("TOPBAR_MT_blender_system") | ||||
| class TOPBAR_MT_file_cleanup(Menu): | |||||
| bl_label = "Clean Up" | |||||
| def draw(self, _context): | |||||
| layout = self.layout | |||||
| layout.separator() | |||||
| op_props = layout.operator("outliner.orphans_purge", text="Unused Data-Blocks") | |||||
| op_props.do_local_ids = True | |||||
| op_props.do_linked_ids = True | |||||
| op_props.do_recursive = False | |||||
| op_props = layout.operator("outliner.orphans_purge", text="Recursive Unused Data-Blocks") | |||||
| op_props.do_local_ids = True | |||||
| op_props.do_linked_ids = True | |||||
| op_props.do_recursive = True | |||||
| layout.separator() | |||||
| op_props = layout.operator("outliner.orphans_purge", text="Unused Linked Data-Blocks") | |||||
| op_props.do_local_ids = False | |||||
| op_props.do_linked_ids = True | |||||
| op_props.do_recursive = False | |||||
| op_props = layout.operator("outliner.orphans_purge", text="Recursive Unused Linked Data-Blocks") | |||||
| op_props.do_local_ids = False | |||||
| op_props.do_linked_ids = True | |||||
| op_props.do_recursive = True | |||||
| layout.separator() | |||||
| op_props = layout.operator("outliner.orphans_purge", text="Unused Local Data-Blocks") | |||||
| op_props.do_local_ids = True | |||||
| op_props.do_linked_ids = False | |||||
| op_props.do_recursive = False | |||||
| op_props = layout.operator("outliner.orphans_purge", text="Recursive Unused Local Data-Blocks") | |||||
| op_props.do_local_ids = True | |||||
| op_props.do_linked_ids = False | |||||
| op_props.do_recursive = True | |||||
| class TOPBAR_MT_file(Menu): | class TOPBAR_MT_file(Menu): | ||||
| bl_label = "File" | bl_label = "File" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.operator_context = 'INVOKE_AREA' | layout.operator_context = 'INVOKE_AREA' | ||||
| layout.menu("TOPBAR_MT_file_new", text="New", text_ctxt=i18n_contexts.id_windowmanager, icon='FILE_NEW') | layout.menu("TOPBAR_MT_file_new", text="New", text_ctxt=i18n_contexts.id_windowmanager, icon='FILE_NEW') | ||||
| Show All 22 Lines | |||||
| layout.separator() | layout.separator() | ||||
| layout.menu("TOPBAR_MT_file_import", icon='IMPORT') | layout.menu("TOPBAR_MT_file_import", icon='IMPORT') | ||||
| layout.menu("TOPBAR_MT_file_export", icon='EXPORT') | layout.menu("TOPBAR_MT_file_export", icon='EXPORT') | ||||
| layout.separator() | layout.separator() | ||||
| layout.menu("TOPBAR_MT_file_external_data") | layout.menu("TOPBAR_MT_file_external_data") | ||||
| layout.menu("TOPBAR_MT_file_cleanup") | layout.operator("outliner.orphans_cleanup", text="Clean Up...") | ||||
| layout.separator() | layout.separator() | ||||
| layout.menu("TOPBAR_MT_file_defaults") | layout.menu("TOPBAR_MT_file_defaults") | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("wm.quit_blender", text="Quit", icon='QUIT') | layout.operator("wm.quit_blender", text="Quit", icon='QUIT') | ||||
| ▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
| TOPBAR_MT_file, | TOPBAR_MT_file, | ||||
| TOPBAR_MT_file_new, | TOPBAR_MT_file_new, | ||||
| TOPBAR_MT_file_recover, | TOPBAR_MT_file_recover, | ||||
| TOPBAR_MT_file_defaults, | TOPBAR_MT_file_defaults, | ||||
| TOPBAR_MT_templates_more, | TOPBAR_MT_templates_more, | ||||
| TOPBAR_MT_file_import, | TOPBAR_MT_file_import, | ||||
| TOPBAR_MT_file_export, | TOPBAR_MT_file_export, | ||||
| TOPBAR_MT_file_external_data, | TOPBAR_MT_file_external_data, | ||||
| TOPBAR_MT_file_cleanup, | |||||
| TOPBAR_MT_file_previews, | TOPBAR_MT_file_previews, | ||||
| TOPBAR_MT_edit, | TOPBAR_MT_edit, | ||||
| TOPBAR_MT_render, | TOPBAR_MT_render, | ||||
| TOPBAR_MT_window, | TOPBAR_MT_window, | ||||
| TOPBAR_MT_help, | TOPBAR_MT_help, | ||||
| TOPBAR_PT_tool_fallback, | TOPBAR_PT_tool_fallback, | ||||
| TOPBAR_PT_tool_settings_extra, | TOPBAR_PT_tool_settings_extra, | ||||
| TOPBAR_PT_gpencil_layers, | TOPBAR_PT_gpencil_layers, | ||||
| Show All 9 Lines | |||||