Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-06-23 04:19:10 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-06-23 04:19:10 +0400
commit272fac8fd6e8c64472c856b85994f841678f172c (patch)
treea6155319c56cc9a179a2c3c1f3eaf33e0b5d8f2d /release
parent333e231fa6c8e44582d94fedd2dda958e5131316 (diff)
UI: some API functions don't require explicit context passing anymore.
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_data_armature.py4
-rw-r--r--release/ui/buttons_data_camera.py4
-rw-r--r--release/ui/buttons_data_curve.py4
-rw-r--r--release/ui/buttons_data_lamp.py4
-rw-r--r--release/ui/buttons_data_lattice.py4
-rw-r--r--release/ui/buttons_data_mesh.py4
-rw-r--r--release/ui/buttons_data_text.py4
-rw-r--r--release/ui/buttons_material.py4
-rw-r--r--release/ui/buttons_particle.py2
-rw-r--r--release/ui/buttons_texture.py4
-rw-r--r--release/ui/buttons_world.py4
-rw-r--r--release/ui/space_buttons.py4
-rw-r--r--release/ui/space_image.py40
-rw-r--r--release/ui/space_outliner.py4
-rw-r--r--release/ui/space_sequencer.py14
-rw-r--r--release/ui/space_text.py18
16 files changed, 61 insertions, 61 deletions
diff --git a/release/ui/buttons_data_armature.py b/release/ui/buttons_data_armature.py
index c536f6bb87d..112724bea91 100644
--- a/release/ui/buttons_data_armature.py
+++ b/release/ui/buttons_data_armature.py
@@ -26,10 +26,10 @@ class DATA_PT_skeleton(DataButtonsPanel):
split = layout.split(percentage=0.65)
if ob:
- split.template_ID(context, ob, "data")
+ split.template_ID(ob, "data")
split.itemS()
elif arm:
- split.template_ID(context, space, "pin_id")
+ split.template_ID(space, "pin_id")
split.itemS()
if arm:
diff --git a/release/ui/buttons_data_camera.py b/release/ui/buttons_data_camera.py
index db2a1f9db25..9f3a062b429 100644
--- a/release/ui/buttons_data_camera.py
+++ b/release/ui/buttons_data_camera.py
@@ -26,10 +26,10 @@ class DATA_PT_camera(DataButtonsPanel):
split = layout.split(percentage=0.65)
if ob:
- split.template_ID(context, ob, "data")
+ split.template_ID(ob, "data")
split.itemS()
elif arm:
- split.template_ID(context, space, "pin_id")
+ split.template_ID(space, "pin_id")
split.itemS()
if cam:
diff --git a/release/ui/buttons_data_curve.py b/release/ui/buttons_data_curve.py
index 869d29802e1..e60f9591d29 100644
--- a/release/ui/buttons_data_curve.py
+++ b/release/ui/buttons_data_curve.py
@@ -26,10 +26,10 @@ class DATA_PT_shape_curve(DataButtonsPanel):
split = layout.split(percentage=0.65)
if ob:
- split.template_ID(context, ob, "data")
+ split.template_ID(ob, "data")
split.itemS()
elif curve:
- split.template_ID(context, space, "pin_id")
+ split.template_ID(space, "pin_id")
split.itemS()
if curve:
diff --git a/release/ui/buttons_data_lamp.py b/release/ui/buttons_data_lamp.py
index 52a60ce617e..a556aceb98d 100644
--- a/release/ui/buttons_data_lamp.py
+++ b/release/ui/buttons_data_lamp.py
@@ -36,10 +36,10 @@ class DATA_PT_lamp(DataButtonsPanel):
split = layout.split(percentage=0.65)
if ob:
- split.template_ID(context, ob, "data")
+ split.template_ID(ob, "data")
split.itemS()
elif lamp:
- split.template_ID(context, space, "pin_id")
+ split.template_ID(space, "pin_id")
split.itemS()
layout.itemS()
diff --git a/release/ui/buttons_data_lattice.py b/release/ui/buttons_data_lattice.py
index ad9b1b518b8..bf2aaad5a97 100644
--- a/release/ui/buttons_data_lattice.py
+++ b/release/ui/buttons_data_lattice.py
@@ -26,10 +26,10 @@ class DATA_PT_lattice(DataButtonsPanel):
split = layout.split(percentage=0.65)
if ob:
- split.template_ID(context, ob, "data")
+ split.template_ID(ob, "data")
split.itemS()
elif lat:
- split.template_ID(context, space, "pin_id")
+ split.template_ID(space, "pin_id")
split.itemS()
if lat:
diff --git a/release/ui/buttons_data_mesh.py b/release/ui/buttons_data_mesh.py
index c103a0f7055..fb64f42c24a 100644
--- a/release/ui/buttons_data_mesh.py
+++ b/release/ui/buttons_data_mesh.py
@@ -26,10 +26,10 @@ class DATA_PT_mesh(DataButtonsPanel):
split = layout.split(percentage=0.65)
if ob:
- split.template_ID(context, ob, "data")
+ split.template_ID(ob, "data")
split.itemS()
elif mesh:
- split.template_ID(context, space, "pin_id")
+ split.template_ID(space, "pin_id")
split.itemS()
if mesh:
diff --git a/release/ui/buttons_data_text.py b/release/ui/buttons_data_text.py
index bce16e78a40..5f4cdd3f838 100644
--- a/release/ui/buttons_data_text.py
+++ b/release/ui/buttons_data_text.py
@@ -27,10 +27,10 @@ class DATA_PT_shape_text(DataButtonsPanel):
split = layout.split(percentage=0.65)
if ob:
- split.template_ID(context, ob, "data")
+ split.template_ID(ob, "data")
split.itemS()
elif curve:
- split.template_ID(context, space, "pin_id")
+ split.template_ID(space, "pin_id")
split.itemS()
if curve:
diff --git a/release/ui/buttons_material.py b/release/ui/buttons_material.py
index 124fba83608..8b0ef82b628 100644
--- a/release/ui/buttons_material.py
+++ b/release/ui/buttons_material.py
@@ -40,10 +40,10 @@ class MATERIAL_PT_material(MaterialButtonsPanel):
split = layout.split(percentage=0.65)
if ob and slot:
- split.template_ID(context, slot, "material", new="MATERIAL_OT_new")
+ split.template_ID(slot, "material", new="MATERIAL_OT_new")
split.itemR(ob, "active_material_index", text="Active")
elif mat:
- split.template_ID(context, space, "pin_id")
+ split.template_ID(space, "pin_id")
split.itemS()
if mat:
diff --git a/release/ui/buttons_particle.py b/release/ui/buttons_particle.py
index e03db78b7e4..f82324db9d8 100644
--- a/release/ui/buttons_particle.py
+++ b/release/ui/buttons_particle.py
@@ -32,7 +32,7 @@ class PARTICLE_PT_particles(ParticleButtonsPanel):
split = layout.split(percentage=0.65)
if psys:
- split.template_ID(context, psys, "settings")
+ split.template_ID(psys, "settings")
if psys:
#row = layout.row()
diff --git a/release/ui/buttons_texture.py b/release/ui/buttons_texture.py
index de166cef796..31908d5ec9c 100644
--- a/release/ui/buttons_texture.py
+++ b/release/ui/buttons_texture.py
@@ -43,7 +43,7 @@ class TEXTURE_PT_texture(TextureButtonsPanel):
if ma or la or wo:
if slot:
- split.template_ID(context, slot, "texture", new="TEXTURE_OT_new")
+ split.template_ID(slot, "texture", new="TEXTURE_OT_new")
else:
split.itemS()
@@ -54,7 +54,7 @@ class TEXTURE_PT_texture(TextureButtonsPanel):
elif wo:
split.itemR(wo, "active_texture_index", text="Active")
elif tex:
- split.template_ID(context, space, "pin_id")
+ split.template_ID(space, "pin_id")
split.itemS()
layout.itemS()
diff --git a/release/ui/buttons_world.py b/release/ui/buttons_world.py
index d9516cb7900..39b5eca04ff 100644
--- a/release/ui/buttons_world.py
+++ b/release/ui/buttons_world.py
@@ -37,9 +37,9 @@ class WORLD_PT_world(WorldButtonsPanel):
split = layout.split(percentage=0.65)
if scene:
- split.template_ID(context, scene, "world", new="WORLD_OT_new")
+ split.template_ID(scene, "world", new="WORLD_OT_new")
elif world:
- split.template_ID(context, space, "pin_id")
+ split.template_ID(space, "pin_id")
split.itemS()
diff --git a/release/ui/space_buttons.py b/release/ui/space_buttons.py
index 76863046470..a669690b8bc 100644
--- a/release/ui/space_buttons.py
+++ b/release/ui/space_buttons.py
@@ -15,7 +15,7 @@ class Buttons_HT_header(bpy.types.Header):
if context.area.show_menus:
row = layout.row(align=True)
- row.itemM(context, "Buttons_MT_view", text="View")
+ row.itemM("Buttons_MT_view", text="View")
row = layout.row()
row.itemR(so, "buttons_context", expand=True, text="")
@@ -33,4 +33,4 @@ class Buttons_MT_view(bpy.types.Menu):
col.itemR(so, "panel_alignment", expand=True)
bpy.types.register(Buttons_HT_header)
-bpy.types.register(Buttons_MT_view) \ No newline at end of file
+bpy.types.register(Buttons_MT_view)
diff --git a/release/ui/space_image.py b/release/ui/space_image.py
index 3623b914942..dc20ee2d6cd 100644
--- a/release/ui/space_image.py
+++ b/release/ui/space_image.py
@@ -177,9 +177,9 @@ class IMAGE_MT_uvs(bpy.types.Menu):
layout.itemS()
- layout.itemM(context, "IMAGE_MT_uvs_transform")
- layout.itemM(context, "IMAGE_MT_uvs_mirror")
- layout.itemM(context, "IMAGE_MT_uvs_weldalign")
+ layout.itemM("IMAGE_MT_uvs_transform")
+ layout.itemM("IMAGE_MT_uvs_mirror")
+ layout.itemM("IMAGE_MT_uvs_weldalign")
layout.itemS()
@@ -188,7 +188,7 @@ class IMAGE_MT_uvs(bpy.types.Menu):
layout.itemS()
- layout.itemM(context, "IMAGE_MT_uvs_showhide")
+ layout.itemM("IMAGE_MT_uvs_showhide")
class IMAGE_HT_header(bpy.types.Header):
__space_type__ = "IMAGE_EDITOR"
@@ -202,23 +202,23 @@ class IMAGE_HT_header(bpy.types.Header):
show_paint = sima.show_paint
show_uvedit = sima.show_uvedit
- layout.template_header(context)
+ layout.template_header()
# menus
if context.area.show_menus:
row = layout.row()
- row.itemM(context, "IMAGE_MT_view")
+ row.itemM("IMAGE_MT_view")
if show_uvedit:
- row.itemM(context, "IMAGE_MT_select")
+ row.itemM("IMAGE_MT_select")
# XXX menuname= (ibuf && (ibuf->userflags & IB_BITMAPDIRTY))? "Image*": "Image";
- row.itemM(context, "IMAGE_MT_image")
+ row.itemM("IMAGE_MT_image")
if show_uvedit:
- row.itemM(context, "IMAGE_MT_uvs")
+ row.itemM("IMAGE_MT_uvs")
- layout.template_ID(context, sima, "image", new="IMAGE_OT_new", open="IMAGE_OT_open")
+ layout.template_ID(sima, "image", new="IMAGE_OT_new", open="IMAGE_OT_open")
"""
/* image select */
@@ -595,9 +595,9 @@ class IMAGE_MT_uvs(bpy.types.Menu):
layout.itemS()
- layout.itemM(context, "IMAGE_MT_uvs_transform")
- layout.itemM(context, "IMAGE_MT_uvs_mirror")
- layout.itemM(context, "IMAGE_MT_uvs_weldalign")
+ layout.itemM("IMAGE_MT_uvs_transform")
+ layout.itemM("IMAGE_MT_uvs_mirror")
+ layout.itemM("IMAGE_MT_uvs_weldalign")
layout.itemS()
@@ -606,7 +606,7 @@ class IMAGE_MT_uvs(bpy.types.Menu):
layout.itemS()
- layout.itemM(context, "IMAGE_MT_uvs_showhide")
+ layout.itemM("IMAGE_MT_uvs_showhide")
class IMAGE_HT_header(bpy.types.Header):
__space_type__ = "IMAGE_EDITOR"
@@ -620,23 +620,23 @@ class IMAGE_HT_header(bpy.types.Header):
show_paint = sima.show_paint
show_uvedit = sima.show_uvedit
- layout.template_header(context)
+ layout.template_header()
# menus
if context.area.show_menus:
row = layout.row()
- row.itemM(context, "IMAGE_MT_view")
+ row.itemM("IMAGE_MT_view")
if show_uvedit:
- row.itemM(context, "IMAGE_MT_select")
+ row.itemM("IMAGE_MT_select")
# XXX menuname= (ibuf && (ibuf->userflags & IB_BITMAPDIRTY))? "Image*": "Image";
- row.itemM(context, "IMAGE_MT_image")
+ row.itemM("IMAGE_MT_image")
if show_uvedit:
- row.itemM(context, "IMAGE_MT_uvs")
+ row.itemM("IMAGE_MT_uvs")
- layout.template_ID(context, sima, "image", new="IMAGE_OT_new", open="IMAGE_OT_open")
+ layout.template_ID(sima, "image", new="IMAGE_OT_new", open="IMAGE_OT_open")
"""
/* image select */
diff --git a/release/ui/space_outliner.py b/release/ui/space_outliner.py
index f039eb3f7c3..5a6ee5ea2aa 100644
--- a/release/ui/space_outliner.py
+++ b/release/ui/space_outliner.py
@@ -10,11 +10,11 @@ class OUTLINER_HT_header(bpy.types.Header):
sce = context.scene
layout = self.layout
- layout.template_header(context)
+ layout.template_header()
if context.area.show_menus:
row = layout.row(align=True)
- row.itemM(context, "OUTLINER_MT_view")
+ row.itemM("OUTLINER_MT_view")
row = layout.row()
row.itemR(so, "display_mode", text="")
diff --git a/release/ui/space_sequencer.py b/release/ui/space_sequencer.py
index 94858db81ad..b64e7d8e0c4 100644
--- a/release/ui/space_sequencer.py
+++ b/release/ui/space_sequencer.py
@@ -15,21 +15,21 @@ class SEQUENCER_HT_header(bpy.types.Header):
st = context.space_data
layout = self.layout
- layout.template_header(context)
+ layout.template_header()
if context.area.show_menus:
row = layout.row()
- row.itemM(context, "SEQUENCER_MT_view")
+ row.itemM("SEQUENCER_MT_view")
row.itemR(st, "display_mode")
layout.itemS()
if st.display_mode == 'SEQUENCER':
- row.itemM(context, "SEQUENCER_MT_select")
- row.itemM(context, "SEQUENCER_MT_marker")
- row.itemM(context, "SEQUENCER_MT_add")
- row.itemM(context, "SEQUENCER_MT_strip")
+ row.itemM("SEQUENCER_MT_select")
+ row.itemM("SEQUENCER_MT_marker")
+ row.itemM("SEQUENCER_MT_add")
+ row.itemM("SEQUENCER_MT_strip")
layout.itemS()
row.itemO("SEQUENCER_OT_reload")
else:
@@ -151,7 +151,7 @@ class SEQUENCER_MT_add(bpy.types.Menu):
layout.itemO("SEQUENCER_OT_sound_strip_add", text="Sound (Ram)")
layout.item_booleanO("SEQUENCER_OT_sound_strip_add", "hd", True, text="Sound (Streaming)") # FFMPEG ONLY
- layout.itemM(context, "SEQUENCER_MT_add_effect")
+ layout.itemM("SEQUENCER_MT_add_effect")
class SEQUENCER_MT_add_effect(bpy.types.Menu):
diff --git a/release/ui/space_text.py b/release/ui/space_text.py
index 42e5347ce6a..92e7639553f 100644
--- a/release/ui/space_text.py
+++ b/release/ui/space_text.py
@@ -14,14 +14,14 @@ class TEXT_HT_header(bpy.types.Header):
text = st.text
layout = self.layout
- layout.template_header(context)
+ layout.template_header()
if context.area.show_menus:
row = layout.row()
- row.itemM(context, "TEXT_MT_text")
+ row.itemM("TEXT_MT_text")
if text:
- row.itemM(context, "TEXT_MT_edit")
- row.itemM(context, "TEXT_MT_format")
+ row.itemM("TEXT_MT_edit")
+ row.itemM("TEXT_MT_format")
if text and text.modified:
row = layout.row()
@@ -33,7 +33,7 @@ class TEXT_HT_header(bpy.types.Header):
row.itemR(st, "word_wrap", text="")
row.itemR(st, "syntax_highlight", text="")
- layout.template_ID(context, st, "text", new="TEXT_OT_new", open="TEXT_OT_open", unlink="TEXT_OT_unlink")
+ layout.template_ID(st, "text", new="TEXT_OT_new", open="TEXT_OT_open", unlink="TEXT_OT_unlink")
if text:
row = layout.row()
@@ -217,9 +217,9 @@ class TEXT_MT_edit(bpy.types.Menu):
layout.itemS()
- layout.itemM(context, "TEXT_MT_edit_view")
- layout.itemM(context, "TEXT_MT_edit_select")
- layout.itemM(context, "TEXT_MT_edit_markers")
+ layout.itemM("TEXT_MT_edit_view")
+ layout.itemM("TEXT_MT_edit_select")
+ layout.itemM("TEXT_MT_edit_markers")
layout.itemS()
@@ -228,7 +228,7 @@ class TEXT_MT_edit(bpy.types.Menu):
layout.itemS()
- layout.itemM(context, "TEXT_MT_edit_to3d")
+ layout.itemM("TEXT_MT_edit_to3d")
bpy.types.register(TEXT_HT_header)
bpy.types.register(TEXT_PT_properties)