[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30905] trunk/blender/release/scripts/ui: Ui Scripts:
Thomas Dinges
dingto at gmx.de
Fri Jul 30 16:56:18 CEST 2010
Revision: 30905
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30905
Author: dingto
Date: 2010-07-30 16:56:17 +0200 (Fri, 30 Jul 2010)
Log Message:
-----------
Ui Scripts:
* Made a "View" Menu in the Text Editor, these settings don't belong into a "Text" Menu.
* Added "Properties" Operator into the VSE "View" menu.
Modified Paths:
--------------
trunk/blender/release/scripts/ui/space_sequencer.py
trunk/blender/release/scripts/ui/space_text.py
Modified: trunk/blender/release/scripts/ui/space_sequencer.py
===================================================================
--- trunk/blender/release/scripts/ui/space_sequencer.py 2010-07-30 13:31:22 UTC (rev 30904)
+++ trunk/blender/release/scripts/ui/space_sequencer.py 2010-07-30 14:56:17 UTC (rev 30905)
@@ -98,6 +98,10 @@
st = context.space_data
layout.column()
+
+ layout.operator("sequencer.properties", icon='MENU_PANEL')
+
+ layout.separator()
"""
uiBlock *block= uiBeginBlock(C, ar, "seq_viewmenu", UI_EMBOSSP);
@@ -127,7 +131,6 @@
menuwidth, 19, NULL, 0.0, 0.0, 1, 2, "");
"""
- layout.separator()
if (st.view_type == 'SEQUENCER') or (st.view_type == 'SEQUENCER_PREVIEW'):
layout.operator("sequencer.view_all", text='View all Sequences')
if (st.view_type == 'PREVIEW') or (st.view_type == 'SEQUENCER_PREVIEW'):
Modified: trunk/blender/release/scripts/ui/space_text.py
===================================================================
--- trunk/blender/release/scripts/ui/space_text.py 2010-07-30 13:31:22 UTC (rev 30904)
+++ trunk/blender/release/scripts/ui/space_text.py 2010-07-30 14:56:17 UTC (rev 30905)
@@ -34,6 +34,7 @@
if context.area.show_menus:
sub = row.row(align=True)
+ sub.menu("TEXT_MT_view")
sub.menu("TEXT_MT_text")
if text:
sub.menu("TEXT_MT_edit")
@@ -127,6 +128,20 @@
row.prop(st, "find_all", text="All")
+class TEXT_MT_view(bpy.types.Menu):
+ bl_label = "View"
+
+ def draw(self, context):
+ layout = self.layout
+
+ layout.operator("text.properties", icon='MENU_PANEL')
+
+ layout.separator()
+
+ layout.operator("screen.area_dupli")
+ layout.operator("screen.screen_full_area")
+
+
class TEXT_MT_text(bpy.types.Menu):
bl_label = "Text"
@@ -160,16 +175,9 @@
layout.separator()
- layout.operator("text.properties", icon='MENU_PANEL')
-
layout.menu("TEXT_MT_templates")
- layout.separator()
- layout.operator("screen.area_dupli")
- layout.operator("screen.screen_full_area")
-
-
class TEXT_MT_templates(bpy.types.Menu):
'''
Creates the menu items by scanning scripts/templates
@@ -294,6 +302,7 @@
TEXT_HT_header,
TEXT_PT_properties,
TEXT_PT_find,
+ TEXT_MT_view,
TEXT_MT_text,
TEXT_MT_templates,
TEXT_MT_format,
More information about the Bf-blender-cvs
mailing list