[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24679] trunk/blender/release/scripts/ui: Renamed "col2" to "wide_ui" which is more meaningful.
Thomas Dinges
dingto at gmx.de
Thu Nov 19 14:26:52 CET 2009
Revision: 24679
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24679
Author: dingto
Date: 2009-11-19 14:26:51 +0100 (Thu, 19 Nov 2009)
Log Message:
-----------
Renamed "col2" to "wide_ui" which is more meaningful.
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_data_armature.py
trunk/blender/release/scripts/ui/properties_data_bone.py
trunk/blender/release/scripts/ui/properties_data_camera.py
trunk/blender/release/scripts/ui/properties_data_curve.py
trunk/blender/release/scripts/ui/properties_data_empty.py
trunk/blender/release/scripts/ui/properties_data_lamp.py
trunk/blender/release/scripts/ui/properties_data_lattice.py
trunk/blender/release/scripts/ui/properties_data_mesh.py
trunk/blender/release/scripts/ui/properties_data_metaball.py
trunk/blender/release/scripts/ui/properties_data_modifier.py
trunk/blender/release/scripts/ui/properties_game.py
trunk/blender/release/scripts/ui/properties_material.py
trunk/blender/release/scripts/ui/properties_object.py
trunk/blender/release/scripts/ui/properties_object_constraint.py
trunk/blender/release/scripts/ui/properties_physics_cloth.py
trunk/blender/release/scripts/ui/properties_physics_common.py
trunk/blender/release/scripts/ui/properties_physics_field.py
trunk/blender/release/scripts/ui/properties_physics_fluid.py
trunk/blender/release/scripts/ui/properties_physics_smoke.py
trunk/blender/release/scripts/ui/properties_physics_softbody.py
trunk/blender/release/scripts/ui/properties_render.py
trunk/blender/release/scripts/ui/properties_scene.py
trunk/blender/release/scripts/ui/properties_texture.py
trunk/blender/release/scripts/ui/properties_world.py
trunk/blender/release/scripts/ui/space_image.py
Modified: trunk/blender/release/scripts/ui/properties_data_armature.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_armature.py 2009-11-19 13:22:10 UTC (rev 24678)
+++ trunk/blender/release/scripts/ui/properties_data_armature.py 2009-11-19 13:26:51 UTC (rev 24679)
@@ -41,9 +41,9 @@
ob = context.object
arm = context.armature
space = context.space_data
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
- if col2:
+ if wide_ui:
split = layout.split(percentage=0.65)
if ob:
split.template_ID(ob, "data")
@@ -62,7 +62,7 @@
layout = self.layout
arm = context.armature
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
layout.itemR(arm, "pose_position", expand=True)
@@ -74,7 +74,7 @@
col.itemL(text="Protected Layers:")
col.itemR(arm, "layer_protection", text="")
- if col2:
+ if wide_ui:
col = split.column()
col.itemL(text="Deform:")
col.itemR(arm, "deform_vertexgroups", text="Vertex Groups")
@@ -90,9 +90,9 @@
layout = self.layout
arm = context.armature
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
- if col2:
+ if wide_ui:
layout.row().itemR(arm, "drawtype", expand=True)
else:
layout.row().itemR(arm, "drawtype", text="")
@@ -104,7 +104,7 @@
col.itemR(arm, "draw_axes", text="Axes")
col.itemR(arm, "draw_custom_bone_shapes", text="Shapes")
- if col2:
+ if wide_ui:
col = split.column()
col.itemR(arm, "draw_group_colors", text="Colors")
col.itemR(arm, "delay_deform", text="Delay Refresh")
@@ -121,7 +121,7 @@
ob = context.object
pose = ob.pose
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
row = layout.row()
row.template_list(pose, "bone_groups", pose, "active_bone_group_index", rows=2)
@@ -143,7 +143,7 @@
col = split.column()
col.itemR(group, "color_set")
if group.color_set:
- if col2:
+ if wide_ui:
col = split.column()
col.template_triColorSet(group, "colors")
@@ -163,9 +163,9 @@
layout = self.layout
arm = context.armature
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
- if col2:
+ if wide_ui:
layout.itemR(arm, "paths_type", expand=True)
else:
layout.itemR(arm, "paths_type", text="")
@@ -184,7 +184,7 @@
sub.itemR(arm, "path_size", text="Step")
col.row().itemR(arm, "paths_location", expand=True)
- if col2:
+ if wide_ui:
col = split.column()
col.itemL(text="Display:")
col.itemR(arm, "paths_show_frame_numbers", text="Frame Numbers")
@@ -198,7 +198,7 @@
col = split.column()
col.itemO("pose.paths_calculate", text="Calculate Paths")
- if col2:
+ if wide_ui:
col = split.column()
col.itemO("pose.paths_clear", text="Clear Paths")
@@ -210,9 +210,9 @@
layout = self.layout
arm = context.armature
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
- if col2:
+ if wide_ui:
layout.itemR(arm, "ghost_type", expand=True)
else:
layout.itemR(arm, "ghost_type", text="")
@@ -230,7 +230,7 @@
sub.itemR(arm, "ghost_step", text="Range")
sub.itemR(arm, "ghost_size", text="Step")
- if col2:
+ if wide_ui:
col = split.column()
col.itemL(text="Display:")
col.itemR(arm, "ghost_only_selected", text="Selected Only")
Modified: trunk/blender/release/scripts/ui/properties_data_bone.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_bone.py 2009-11-19 13:22:10 UTC (rev 24678)
+++ trunk/blender/release/scripts/ui/properties_data_bone.py 2009-11-19 13:26:51 UTC (rev 24679)
@@ -55,11 +55,11 @@
ob = context.object
bone = context.bone
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
if not bone:
bone = context.edit_bone
- if col2:
+ if wide_ui:
row = layout.row()
row.column().itemR(bone, "head")
row.column().itemR(bone, "tail")
@@ -80,7 +80,7 @@
else:
pchan = ob.pose.bones[context.bone.name]
- if col2:
+ if wide_ui:
row = layout.row()
col = row.column()
col.itemR(pchan, "location")
@@ -156,7 +156,7 @@
ob = context.object
bone = context.bone
arm = context.armature
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
if not bone:
bone = context.edit_bone
@@ -176,7 +176,7 @@
col.itemL(text="Bone Group:")
col.item_pointerR(pchan, "bone_group", ob.pose, "bone_groups", text="")
- if col2:
+ if wide_ui:
col = split.column()
col.itemL(text="Parent:")
if context.bone:
@@ -202,7 +202,7 @@
ob = context.object
bone = context.bone
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
if not bone:
bone = context.edit_bone
@@ -218,7 +218,7 @@
col.itemR(bone, "draw_wire", text="Wireframe")
col.itemR(bone, "hidden", text="Hide")
- if col2:
+ if wide_ui:
col = split.column()
col.itemL(text="Custom Shape:")
col.itemR(pchan, "custom_shape", text="")
@@ -240,7 +240,7 @@
layout = self.layout
bone = context.bone
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
if not bone:
bone = context.edit_bone
@@ -262,7 +262,7 @@
sub.itemR(bone, "head_radius", text="Head")
sub.itemR(bone, "tail_radius", text="Tail")
- if col2:
+ if wide_ui:
col = split.column()
col.itemL(text="Curved Bones:")
Modified: trunk/blender/release/scripts/ui/properties_data_camera.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_camera.py 2009-11-19 13:22:10 UTC (rev 24678)
+++ trunk/blender/release/scripts/ui/properties_data_camera.py 2009-11-19 13:26:51 UTC (rev 24679)
@@ -41,9 +41,9 @@
ob = context.object
cam = context.camera
space = context.space_data
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
- if col2:
+ if wide_ui:
split = layout.split(percentage=0.65)
if ob:
split.template_ID(ob, "data")
@@ -65,9 +65,9 @@
layout = self.layout
cam = context.camera
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
- if col2:
+ if wide_ui:
layout.itemR(cam, "type", expand=True)
else:
layout.itemR(cam, "type", text="")
@@ -80,7 +80,7 @@
col.itemR(cam, "lens", text="Angle")
elif cam.lens_unit == 'DEGREES':
col.itemR(cam, "angle")
- if col2:
+ if wide_ui:
col = split.column()
col.itemR(cam, "lens_unit", text="")
@@ -96,7 +96,7 @@
col.itemR(cam, "shift_x", text="X")
col.itemR(cam, "shift_y", text="Y")
- if col2:
+ if wide_ui:
col = split.column(align=True)
col.itemL(text="Clipping:")
col.itemR(cam, "clip_start", text="Start")
@@ -109,7 +109,7 @@
col = split.column()
col.itemR(cam, "dof_object", text="")
- if col2:
+ if wide_ui:
col = split.column()
col.itemR(cam, "dof_distance", text="Distance")
@@ -121,7 +121,7 @@
layout = self.layout
cam = context.camera
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
split = layout.split()
@@ -131,7 +131,7 @@
col.itemR(cam, "show_title_safe", text="Title Safe")
col.itemR(cam, "show_name", text="Name")
- if col2:
+ if wide_ui:
col = split.column()
col.itemR(cam, "draw_size", text="Size")
col.itemS()
Modified: trunk/blender/release/scripts/ui/properties_data_curve.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_curve.py 2009-11-19 13:22:10 UTC (rev 24678)
+++ trunk/blender/release/scripts/ui/properties_data_curve.py 2009-11-19 13:26:51 UTC (rev 24679)
@@ -56,10 +56,10 @@
ob = context.object
curve = context.curve
space = context.space_data
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
- if col2:
+ if wide_ui:
split = layout.split(percentage=0.65)
if ob:
@@ -80,7 +80,7 @@
ob = context.object
curve = context.curve
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
is_surf = (ob.type == 'SURFACE')
is_curve = (ob.type == 'CURVE')
is_text = (ob.type == 'TEXT')
@@ -104,7 +104,7 @@
col.itemL(text="Display:")
col.itemR(curve, "fast", text="Fast Editing")
- if col2:
+ if wide_ui:
col = split.column()
if is_surf:
@@ -132,7 +132,7 @@
layout = self.layout
curve = context.curve
- col2 = context.region.width > narrowui
+ wide_ui = context.region.width > narrowui
split = layout.split()
@@ -143,7 +143,7 @@
col.itemL(text="Taper Object:")
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list