Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_outliner.py
| Context not available. | |||||
| if space.display_mode not in {'DATABLOCKS', 'USER_PREFERENCES', 'KEYMAPS'}: | if space.display_mode not in {'DATABLOCKS', 'USER_PREFERENCES', 'KEYMAPS'}: | ||||
| layout.prop(space, "use_sort_alpha") | layout.prop(space, "use_sort_alpha") | ||||
| layout.prop(space, "show_restrict_columns") | layout.prop(space, "show_restrict_columns") | ||||
| if space.display_mode not in {'ORPHANED_DATABLOCKS', 'LIBRARIES', 'SEQUENCE'}: | |||||
| layout.separator() | |||||
| layout.menu("OUTLINER_MT_showtypes") | |||||
| layout.separator() | layout.separator() | ||||
| layout.operator("outliner.show_active") | layout.operator("outliner.show_active") | ||||
| Context not available. | |||||
| layout.operator("screen.screen_full_area").use_hide_panels = True | layout.operator("screen.screen_full_area").use_hide_panels = True | ||||
| class OUTLINER_MT_showtypes(Menu): | |||||
| bl_label = "Show By Type..." | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| space = context.space_data | |||||
| layout.operator("outliner.tree_show_types_all") | |||||
| layout.separator() | |||||
| #layout.prop(space, "show_types_group_object") | |||||
| layout.menu("OUTLINER_MT_showtypes_object") | |||||
| layout.separator() | |||||
| layout.prop(space, "show_types_group_obdata") | |||||
| layout.menu("OUTLINER_MT_showtypes_obdata") | |||||
| layout.separator() | |||||
| layout.prop(space, "show_types_group_material") | |||||
| layout.menu("OUTLINER_MT_showtypes_material") | |||||
| layout.separator() | |||||
| layout.prop(space, "show_types_group_render") | |||||
| layout.menu("OUTLINER_MT_showtypes_render") | |||||
| layout.separator() | |||||
| layout.prop(space, "show_types_animdata") | |||||
| layout.prop(space, "show_types_gpdata") | |||||
| class OUTLINER_MT_showtypes_object(Menu): | |||||
| bl_label = "Object Types..." | |||||
| @classmethod | |||||
| def poll(self, context): | |||||
| return context.space_data.show_types_group_object | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| space = context.space_data | |||||
| layout.prop(space, "show_types_meshes") | |||||
| layout.prop(space, "show_types_curves") | |||||
| layout.prop(space, "show_types_surfaces") | |||||
| layout.prop(space, "show_types_metaballs") | |||||
| layout.prop(space, "show_types_armatures") | |||||
| layout.prop(space, "show_types_lattices") | |||||
| layout.prop(space, "show_types_empties") | |||||
| layout.prop(space, "show_types_speakers") | |||||
| layout.prop(space, "show_types_cameras") | |||||
| layout.prop(space, "show_types_lamps") | |||||
| class OUTLINER_MT_showtypes_obdata(Menu): | |||||
| bl_label = "Object Data Types..." | |||||
| @classmethod | |||||
| def poll(self, context): | |||||
| return context.space_data.show_types_group_obdata | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| space = context.space_data | |||||
| layout.prop(space, "show_types_obdata") | |||||
| layout.prop(space, "show_types_modifiers") | |||||
| layout.prop(space, "show_types_constraints") | |||||
| layout.prop(space, "show_types_shapekeys") | |||||
| layout.prop(space, "show_types_vertexgroups") | |||||
| layout.prop(space, "show_types_bones") | |||||
| layout.prop(space, "show_types_bonegroups") | |||||
| layout.prop(space, "show_types_dupligroups") | |||||
| class OUTLINER_MT_showtypes_material(Menu): | |||||
| bl_label = "Material Data Types..." | |||||
| @classmethod | |||||
| def poll(self, context): | |||||
| return context.space_data.show_types_group_material | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| space = context.space_data | |||||
| layout.prop(space, "show_types_materials") | |||||
| layout.prop(space, "show_types_textures") | |||||
| layout.prop(space, "show_types_images") | |||||
| class OUTLINER_MT_showtypes_render(Menu): | |||||
| bl_label = "RenderSettings Types..." | |||||
| @classmethod | |||||
| def poll(self, context): | |||||
| return context.space_data.show_types_group_render | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| space = context.space_data | |||||
| layout.prop(space, "show_types_renderlayers") | |||||
| layout.prop(space, "show_types_renderpasses") | |||||
| class OUTLINER_MT_search(Menu): | class OUTLINER_MT_search(Menu): | ||||
| bl_label = "Search" | bl_label = "Search" | ||||
| Context not available. | |||||