Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_image.py
| Show All 23 Lines | |||||
| ) | ) | ||||
| from bl_ui.properties_grease_pencil_common import ( | from bl_ui.properties_grease_pencil_common import ( | ||||
| AnnotationDataPanel, | AnnotationDataPanel, | ||||
| ) | ) | ||||
| from bl_ui.space_toolsystem_common import ( | from bl_ui.space_toolsystem_common import ( | ||||
| ToolActivePanelHelper, | ToolActivePanelHelper, | ||||
| ) | ) | ||||
| from bpy.app.translations import pgettext_iface as iface_ | from bpy.app.translations import ( | ||||
| contexts as i18n_contexts, | |||||
| pgettext_iface as iface_, | |||||
| ) | |||||
mont29: Style (see the other imports above), will fix while committing. | |||||
| class ImagePaintPanel: | class ImagePaintPanel: | ||||
| bl_space_type = 'IMAGE_EDITOR' | bl_space_type = 'IMAGE_EDITOR' | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| class BrushButtonsPanel(UnifiedPaintPanel): | class BrushButtonsPanel(UnifiedPaintPanel): | ||||
| bl_space_type = 'IMAGE_EDITOR' | bl_space_type = 'IMAGE_EDITOR' | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| ▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | class IMAGE_MT_image(Menu): | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| sima = context.space_data | sima = context.space_data | ||||
| ima = sima.image | ima = sima.image | ||||
| show_render = sima.show_render | show_render = sima.show_render | ||||
| layout.operator("image.new", text="New") | layout.operator("image.new", text="New", | ||||
| text_ctxt=i18n_contexts.id_image) | |||||
| layout.operator("image.open", text="Open...", icon='FILE_FOLDER') | layout.operator("image.open", text="Open...", icon='FILE_FOLDER') | ||||
| layout.operator("image.read_viewlayers") | layout.operator("image.read_viewlayers") | ||||
| if ima: | if ima: | ||||
| layout.separator() | layout.separator() | ||||
| if not show_render: | if not show_render: | ||||
| ▲ Show 20 Lines • Show All 1,530 Lines • Show Last 20 Lines | |||||
Style (see the other imports above), will fix while committing.