[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24000] trunk/blender: Added a button in the header to toggle full screen mode.

William Reynish william at reynish.com
Tue Oct 20 15:56:54 CEST 2009


Revision: 24000
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24000
Author:   billrey
Date:     2009-10-20 15:56:53 +0200 (Tue, 20 Oct 2009)

Log Message:
-----------
Added a button in the header to toggle full screen mode. It'd be nice to have this right-aligned, but this doesn't seem possible in the layout engine currently.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/buttons_data_empty.py
    trunk/blender/release/scripts/ui/space_info.py
    trunk/blender/source/blender/makesrna/intern/rna_object.c

Modified: trunk/blender/release/scripts/ui/buttons_data_empty.py
===================================================================
--- trunk/blender/release/scripts/ui/buttons_data_empty.py	2009-10-20 13:46:47 UTC (rev 23999)
+++ trunk/blender/release/scripts/ui/buttons_data_empty.py	2009-10-20 13:56:53 UTC (rev 24000)
@@ -17,7 +17,7 @@
 		
 		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)

Modified: trunk/blender/release/scripts/ui/space_info.py
===================================================================
--- trunk/blender/release/scripts/ui/space_info.py	2009-10-20 13:46:47 UTC (rev 23999)
+++ trunk/blender/release/scripts/ui/space_info.py	2009-10-20 13:56:53 UTC (rev 24000)
@@ -39,8 +39,9 @@
 		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"
 

Modified: trunk/blender/source/blender/makesrna/intern/rna_object.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_object.c	2009-10-20 13:46:47 UTC (rev 23999)
+++ trunk/blender/source/blender/makesrna/intern/rna_object.c	2009-10-20 13:56:53 UTC (rev 24000)
@@ -1405,13 +1405,13 @@
 	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 */





More information about the Bf-blender-cvs mailing list