Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
| class VIEW3D_PT_tools_transform(View3DPanel, Panel): | class VIEW3D_PT_tools_transform(View3DPanel, Panel): | ||||
| bl_category = "Tools" | bl_category = "Tools" | ||||
| bl_context = "objectmode" | bl_context = "objectmode" | ||||
| bl_label = "Transform" | bl_label = "Transform" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| # XXX testing only | |||||
| layout.template_ID_preview(context.window, "screen", new="screen.new", unlink="screen.delete", rows=2, cols=6) | |||||
| layout.template_search_preview(context.window, "screen", context.blend_data, "screens", new="screen.new", unlink="screen.delete", rows=2, cols=6) | |||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.operator("transform.translate") | col.operator("transform.translate") | ||||
| col.operator("transform.rotate") | col.operator("transform.rotate") | ||||
| col.operator("transform.resize", text="Scale") | col.operator("transform.resize", text="Scale") | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.operator("transform.mirror", text="Mirror") | col.operator("transform.mirror", text="Mirror") | ||||
| ▲ Show 20 Lines • Show All 2,004 Lines • Show Last 20 Lines | |||||