Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Reynish <william@reynish.com>2009-10-20 17:56:53 +0400
committerWilliam Reynish <william@reynish.com>2009-10-20 17:56:53 +0400
commitb8eec2b8fe123b118aef925ce2f786842764413d (patch)
treee526348632e76664087076fb00a6d8c944c5ffbe
parent5e2ddea1f3a6253f57f101ee55ace1cd50095129 (diff)
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.
-rw-r--r--release/scripts/ui/buttons_data_empty.py4
-rw-r--r--release/scripts/ui/space_info.py3
-rw-r--r--source/blender/makesrna/intern/rna_object.c4
3 files changed, 6 insertions, 5 deletions
diff --git a/release/scripts/ui/buttons_data_empty.py b/release/scripts/ui/buttons_data_empty.py
index c07f3136fae..eda6cced0ae 100644
--- a/release/scripts/ui/buttons_data_empty.py
+++ b/release/scripts/ui/buttons_data_empty.py
@@ -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)
diff --git a/release/scripts/ui/space_info.py b/release/scripts/ui/space_info.py
index 6e5c4b9147d..f9feef6f023 100644
--- a/release/scripts/ui/space_info.py
+++ b/release/scripts/ui/space_info.py
@@ -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"
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 1e8d5fa6351..834cea93864 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -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 */