links to Python API docs from splash and help menu
authorCampbell Barton <ideasman42@gmail.com>
Mon, 23 Nov 2009 15:20:56 +0000 (15:20 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 23 Nov 2009 15:20:56 +0000 (15:20 +0000)
release/scripts/ui/space_info.py
source/blender/windowmanager/intern/wm_operators.c

index e234f451c89191a1157d0212060caa366fd302b5..d4da07a18d9152b080012c74d581faf23015b42c 100644 (file)
@@ -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)
@@ -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)
index 8eb980d0112b111cad8a03e116f87d4c3b2f80f6..676ba89bad59b457a76660b925c1a4f7f14d9f0a 100644 (file)
@@ -847,6 +847,7 @@ static uiBlock *wm_block_create_splash(bContext *C, ARegion *ar, void *arg_unuse
        uiItemO(col, NULL, ICON_URL, "HELP_OT_manual");
        uiItemO(col, NULL, ICON_URL, "HELP_OT_blender_website");
        uiItemO(col, NULL, ICON_URL, "HELP_OT_user_community");
+       uiItemO(col, NULL, ICON_URL, "HELP_OT_python_api");
        uiItemS(col);
        
        col = uiLayoutColumn(split, 0);