Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_info.py
| # SPDX-License-Identifier: GPL-2.0-or-later | # SPDX-License-Identifier: GPL-2.0-or-later | ||||
| from bpy.types import Header, Menu | from bpy.types import Header, Menu | ||||
| from bpy.app.translations import contexts as i18n_contexts | |||||
| class INFO_HT_header(Header): | class INFO_HT_header(Header): | ||||
| bl_space_type = 'INFO' | bl_space_type = 'INFO' | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.template_header() | layout.template_header() | ||||
| ▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | def draw(self, _context): | ||||
| # layout.separator() | # layout.separator() | ||||
| layout.operator("info.report_delete", text="Delete") | layout.operator("info.report_delete", text="Delete") | ||||
| layout.operator("info.report_copy", text="Copy") | layout.operator("info.report_copy", text="Copy") | ||||
| class INFO_MT_area(Menu): | class INFO_MT_area(Menu): | ||||
| bl_label = "Area" | bl_label = "Area" | ||||
| bl_translation_context = i18n_contexts.id_windowmanager | |||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| if context.space_data.type == 'VIEW_3D': | if context.space_data.type == 'VIEW_3D': | ||||
| layout.operator("screen.region_quadview") | layout.operator("screen.region_quadview") | ||||
| layout.separator() | layout.separator() | ||||
| Show All 39 Lines | |||||