Durian text editor requests:
authorWilliam Reynish <william@reynish.com>
Mon, 26 Oct 2009 16:48:23 +0000 (16:48 +0000)
committerWilliam Reynish <william@reynish.com>
Mon, 26 Oct 2009 16:48:23 +0000 (16:48 +0000)
-Added Run Script button in header
-Added hotkey for Line Select (Ctrl-Shift-A)

release/scripts/ui/space_text.py
source/blender/editors/space_text/space_text.c

index 4860767d69decefb48bb041a00aa473a1786286e..f3597955365f5a13bb065d6e66a71590f104d2f2 100644 (file)
@@ -44,6 +44,9 @@ class TEXT_HT_header(bpy.types.Header):
                                        row.itemL(text="Text: External")
                                else:
                                        row.itemL(text="Text: Internal")
+               
+               row = layout.row()
+               row.itemO("text.run_script")
 
 class TEXT_PT_properties(bpy.types.Panel):
        __space_type__ = 'TEXT_EDITOR'
index 09a5374a43b40d7f45ee9470712dbc6213982512..e9cd2644ba68104319426f3c6b47e48b725c823d 100644 (file)
@@ -224,6 +224,7 @@ static void text_keymap(struct wmKeyConfig *keyconf)
        WM_keymap_add_item(keymap, "TEXT_OT_paste", VKEY, KM_PRESS, KM_OSKEY, 0);
        WM_keymap_add_item(keymap, "TEXT_OT_find", FKEY, KM_PRESS, KM_OSKEY, 0);
        WM_keymap_add_item(keymap, "TEXT_OT_select_all", AKEY, KM_PRESS, KM_OSKEY, 0);
+       WM_keymap_add_item(keymap, "TEXT_OT_select_line", AKEY, KM_PRESS, KM_SHIFT|KM_OSKEY, 0);
        #endif
        
        WM_keymap_add_item(keymap, "TEXT_OT_new", NKEY, KM_PRESS, KM_ALT, 0);
@@ -252,6 +253,7 @@ static void text_keymap(struct wmKeyConfig *keyconf)
        WM_keymap_add_item(keymap, "TEXT_OT_to_3d_object", MKEY, KM_PRESS, KM_ALT, 0);
 
        WM_keymap_add_item(keymap, "TEXT_OT_select_all", AKEY, KM_PRESS, KM_CTRL, 0);
+       WM_keymap_add_item(keymap, "TEXT_OT_select_line", AKEY, KM_PRESS, KM_SHIFT|KM_CTRL, 0);
        
 
        WM_keymap_add_item(keymap, "TEXT_OT_indent", TABKEY, KM_PRESS, 0, 0);