Added a button in the header to toggle full screen mode. It'd be nice to have this...
authorWilliam Reynish <william@reynish.com>
Tue, 20 Oct 2009 13:56:53 +0000 (13:56 +0000)
committerWilliam Reynish <william@reynish.com>
Tue, 20 Oct 2009 13:56:53 +0000 (13:56 +0000)
release/scripts/ui/buttons_data_empty.py
release/scripts/ui/space_info.py
source/blender/makesrna/intern/rna_object.c

index c07f3136fae274b31b3b4b1fde07af37c7623f98..eda6cced0ae47a8d86d940cac5a54101511b7d5d 100644 (file)
@@ -17,7 +17,7 @@ class DATA_PT_empty(DataButtonsPanel):
                
                ob = context.object
 
-               layout.itemR(ob, "empty_draw_type", text="Draw Type")
-               layout.itemR(ob, "empty_draw_size", text="Draw Size")
+               layout.itemR(ob, "empty_draw_type", text="Display")
+               layout.itemR(ob, "empty_draw_size", text="Size")
                
 bpy.types.register(DATA_PT_empty)
index 6e5c4b9147dfd0b15b4feae52bb7294fe90cb915..f9feef6f023ca737ea990e8b7551d827d1c70be3 100644 (file)
@@ -39,7 +39,8 @@ class INFO_HT_header(bpy.types.Header):
                layout.template_running_jobs()
 
                layout.itemL(text=scene.statistics())
-
+               
+               layout.itemO("wm.window_fullscreen_toggle", icon='ICON_ARROW_LEFTRIGHT', text="")
 
 class INFO_MT_file(bpy.types.Menu):
        __label__ = "File"
index 1e8d5fa6351c1f3b0e8c7c8b747b235d051d0d3f..834cea93864de0be43947c2e2f0ec219e449a1ce 100644 (file)
@@ -1405,13 +1405,13 @@ static void rna_def_object(BlenderRNA *brna)
        prop= RNA_def_property(srna, "empty_draw_type", PROP_ENUM, PROP_NONE);
        RNA_def_property_enum_sdna(prop, NULL, "empty_drawtype");
        RNA_def_property_enum_items(prop, empty_drawtype_items);
-       RNA_def_property_ui_text(prop, "Empty Draw Type", "Viewport display style for empties.");
+       RNA_def_property_ui_text(prop, "Empty Display Type", "Viewport display style for empties.");
        RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);
 
        prop= RNA_def_property(srna, "empty_draw_size", PROP_FLOAT, PROP_DISTANCE);
        RNA_def_property_float_sdna(prop, NULL, "empty_drawsize");
        RNA_def_property_range(prop, 0.01, 10.0);
-       RNA_def_property_ui_text(prop, "Empty Draw Size", "Size of of display for empties in the viewport.");
+       RNA_def_property_ui_text(prop, "Empty Display Size", "Size of of display for empties in the viewport.");
        RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);
 
        /* render */