- use a generic bone class so all 3 bone types (Edit/Pose/Armature) - can have the...
[blender.git] / release / scripts / ui / space_info.py
index 8c20de65ccf6e16893652005b1ae483897adfe84..5eea68728d628b70afc2a5e9ce480cb199378cdc 100644 (file)
@@ -88,7 +88,7 @@ class INFO_MT_file(bpy.types.Menu):
         layout.separator()
         layout.operator_context = 'INVOKE_AREA'
         layout.operator("wm.link_append", text="Link")
-        layout.operator_boolean("wm.link_append", "link", False, text="Append")
+        layout.operator("wm.link_append", text="Append").link = False
         layout.separator()
 
         layout.menu("INFO_MT_file_import")
@@ -192,12 +192,12 @@ class INFO_MT_add(bpy.types.Menu):
         layout.operator_context = 'INVOKE_SCREEN'
 
         layout.operator("object.armature_add", text="Armature", icon='ICON_OUTLINER_OB_ARMATURE')
-        layout.operator_enum("object.add", "type", 'LATTICE', icon='ICON_OUTLINER_OB_LATTICE')
-        layout.operator_enum("object.add", "type", 'EMPTY', icon='ICON_OUTLINER_OB_EMPTY')
+        layout.operator("object.add", text="Lattice", icon='ICON_OUTLINER_OB_LATTICE').type = 'LATTICE'
+        layout.operator("object.add", text="Empty", icon='ICON_OUTLINER_OB_EMPTY').type = 'EMPTY'
 
         layout.separator()
 
-        layout.operator_enum("object.add", "type", 'CAMERA', icon='ICON_OUTLINER_OB_CAMERA')
+        layout.operator("object.add", text="Camera", icon='ICON_OUTLINER_OB_CAMERA').type = 'CAMERA'
 
         layout.operator_context = 'EXEC_SCREEN'
 
@@ -239,12 +239,12 @@ class INFO_MT_render(bpy.types.Menu):
         # rd = context.scene.render_data
 
         layout.operator("screen.render", text="Render Image", icon='ICON_RENDER_STILL')
-        layout.operator_boolean("screen.render", "animation", True, text="Render Animation", icon='ICON_RENDER_ANIMATION')
+        layout.operator("screen.render", text="Render Animation", icon='ICON_RENDER_ANIMATION').animation = True
 
         layout.separator()
 
         layout.operator("screen.opengl_render", text="OpenGL Render Image")
-        layout.operator_boolean("screen.opengl_render", "animation", True, text="OpenGL Render Animation")
+        layout.operator("screen.opengl_render", text="OpenGL Render Animation").animation = True
 
         layout.separator()
 
@@ -269,6 +269,7 @@ class INFO_MT_help(bpy.types.Menu):
         layout.separator()
         layout.operator("help.report_bug", icon='ICON_URL')
         layout.separator()
+        layout.operator("help.python_api", icon='ICON_URL')
         layout.operator("help.operator_cheat_sheet")
 
 bpy.types.register(INFO_HT_header)
@@ -297,14 +298,14 @@ class HELP_OT_manual(HelpOperator):
     '''The Blender Wiki manual'''
     bl_idname = "help.manual"
     bl_label = "Manual"
-    _url = 'http://wiki.blender.org/index.php/Manual'
+    _url = 'http://wiki.blender.org/index.php/Doc:Manual'
 
 
 class HELP_OT_release_logs(HelpOperator):
     '''Information about the changes in this version of Blender'''
     bl_idname = "help.release_logs"
-    bl_label = "Release Logs"
-    _url = 'http://www.blender.org/development/release-logs/'
+    bl_label = "Release Log"
+    _url = 'http://www.blender.org/development/release-logs/blender-250/'
 
 
 class HELP_OT_blender_website(HelpOperator):
@@ -342,6 +343,13 @@ class HELP_OT_report_bug(HelpOperator):
     _url = 'http://projects.blender.org/tracker/?atid=498&group_id=9&func=browse'
 
 
+class HELP_OT_python_api(HelpOperator):
+    '''Reference for operator and data Python API'''
+    bl_idname = "help.python_api"
+    bl_label = "Python API Reference"
+    _url = 'http://www.blender.org/documentation/250PythonDoc/'
+
+
 class HELP_OT_operator_cheat_sheet(bpy.types.Operator):
     bl_idname = "help.operator_cheat_sheet"
     bl_label = "Operator Cheat Sheet (new textblock)"
@@ -375,4 +383,5 @@ bpy.ops.add(HELP_OT_blender_eshop)
 bpy.ops.add(HELP_OT_developer_community)
 bpy.ops.add(HELP_OT_user_community)
 bpy.ops.add(HELP_OT_report_bug)
+bpy.ops.add(HELP_OT_python_api)
 bpy.ops.add(HELP_OT_operator_cheat_sheet)