Update tabs for non-mesh object types

This adds appropriate tabs, panels, etc for curves, surfaces, metaballs, text, and armatures. This brings it in line with the changes in rB0972c422c3ac4ed725414baa47838f833b3f4c90
This commit is contained in:
Jonathan Williamson 2014-02-02 11:31:24 -06:00
parent 0972c422c3
commit c1bdf69805

@ -438,15 +438,15 @@ class VIEW3D_PT_tools_add_curve_edit(View3DPanel, Panel):
col.operator("curve.primitive_nurbs_circle_add", text="Nurbs Circle", icon="CURVE_NCIRCLE") col.operator("curve.primitive_nurbs_circle_add", text="Nurbs Circle", icon="CURVE_NCIRCLE")
col.operator("curve.primitive_nurbs_path_add", text="Nurbs Path" , icon="CURVE_PATH") col.operator("curve.primitive_nurbs_path_add", text="Nurbs Path" , icon="CURVE_PATH")
class VIEW3D_PT_tools_curveedit(View3DPanel, Panel): class VIEW3D_PT_tools_transform_curve(View3DPanel, Panel):
bl_category = "Tools"
bl_context = "curve_edit" bl_context = "curve_edit"
bl_label = "Curve Tools" bl_label = "Transform"
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
col = layout.column(align=True) col = layout.column(align=True)
col.label(text="Transform:")
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")
@ -455,6 +455,14 @@ class VIEW3D_PT_tools_curveedit(View3DPanel, Panel):
col.operator("transform.tilt", text="Tilt") col.operator("transform.tilt", text="Tilt")
col.operator("transform.transform", text="Scale Feather").mode = 'CURVE_SHRINKFATTEN' col.operator("transform.transform", text="Scale Feather").mode = 'CURVE_SHRINKFATTEN'
class VIEW3D_PT_tools_curveedit(View3DPanel, Panel):
bl_category = "Tools"
bl_context = "curve_edit"
bl_label = "Curve Tools"
def draw(self, context):
layout = self.layout
col = layout.column(align=True) col = layout.column(align=True)
col.label(text="Curve:") col.label(text="Curve:")
col.operator("curve.duplicate_move", text="Duplicate") col.operator("curve.duplicate_move", text="Duplicate")
@ -488,20 +496,27 @@ class VIEW3D_PT_tools_curveedit(View3DPanel, Panel):
# ********** default tools for editmode_surface **************** # ********** default tools for editmode_surface ****************
class VIEW3D_PT_tools_transform_surface(View3DPanel, Panel):
class VIEW3D_PT_tools_surfaceedit(View3DPanel, Panel): bl_category = "Tools"
bl_context = "surface_edit" bl_context = "surface_edit"
bl_label = "Surface Tools" bl_label = "Transform"
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
col = layout.column(align=True) col = layout.column(align=True)
col.label(text="Transform:")
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")
class VIEW3D_PT_tools_surfaceedit(View3DPanel, Panel):
bl_category = "Tools"
bl_context = "surface_edit"
bl_label = "Surface Tools"
def draw(self, context):
layout = self.layout
col = layout.column(align=True) col = layout.column(align=True)
col.label(text="Curve:") col.label(text="Curve:")
col.operator("curve.duplicate_move", text="Duplicate") col.operator("curve.duplicate_move", text="Duplicate")
@ -522,6 +537,7 @@ class VIEW3D_PT_tools_surfaceedit(View3DPanel, Panel):
class VIEW3D_PT_tools_textedit(View3DPanel, Panel): class VIEW3D_PT_tools_textedit(View3DPanel, Panel):
bl_category = "Tools"
bl_context = "text_edit" bl_context = "text_edit"
bl_label = "Text Tools" bl_label = "Text Tools"
@ -587,6 +603,7 @@ class VIEW3D_PT_tools_armatureedit_options(View3DPanel, Panel):
class VIEW3D_PT_tools_mballedit(View3DPanel, Panel): class VIEW3D_PT_tools_mballedit(View3DPanel, Panel):
bl_category = "Tools"
bl_context = "mball_edit" bl_context = "mball_edit"
bl_label = "Meta Tools" bl_label = "Meta Tools"
@ -607,6 +624,7 @@ class VIEW3D_PT_tools_mballedit(View3DPanel, Panel):
class VIEW3D_PT_tools_latticeedit(View3DPanel, Panel): class VIEW3D_PT_tools_latticeedit(View3DPanel, Panel):
bl_category = "Tools"
bl_context = "lattice_edit" bl_context = "lattice_edit"
bl_label = "Lattice Tools" bl_label = "Lattice Tools"
@ -631,6 +649,7 @@ class VIEW3D_PT_tools_latticeedit(View3DPanel, Panel):
class VIEW3D_PT_tools_posemode(View3DPanel, Panel): class VIEW3D_PT_tools_posemode(View3DPanel, Panel):
bl_category = "Tools"
bl_context = "posemode" bl_context = "posemode"
bl_label = "Pose Tools" bl_label = "Pose Tools"
@ -673,6 +692,7 @@ class VIEW3D_PT_tools_posemode(View3DPanel, Panel):
class VIEW3D_PT_tools_posemode_options(View3DPanel, Panel): class VIEW3D_PT_tools_posemode_options(View3DPanel, Panel):
bl_category = "Options"
bl_context = "posemode" bl_context = "posemode"
bl_label = "Pose Options" bl_label = "Pose Options"